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gBA,EAWtC,EAEFnT,QAASA,EACT8Q,eAAgBA,GAGrB,CAED8B,EAAsBryB,UAAY,CAChC9K,MAAO+K,EAAAA,QAAUE,OACjB2uB,IAAK7uB,EAAAA,QAAUE,OACf4uB,IAAK9uB,EAAAA,QAAUE,OACfoD,YAAatD,EAAAA,QAAUmf,UAAU,CAC/Bnf,EAAAA,QAAUC,MAAM,CACd/F,KAAM8F,EAAAA,QAAU6xB,MAAM,CAAC,WAAY,UAErC7xB,EAAAA,QAAUE,SAEZf,SAAUa,EAAAA,QAAUE,OACpBhC,KAAM8B,EAAAA,QAAUC,MAAM,CACpByyB,cAAe1yB,EAAAA,QAAUI,KACzBmyB,WAAYvyB,EAAAA,QAAUI,KACtB6uB,UAAWjvB,EAAAA,QAAUI,KACrB8uB,QAASlvB,EAAAA,QAAUI,OAClBD,WACH9J,SAAU2J,EAAAA,QAAUI,KACpBof,QAASxf,EAAAA,QAAUI,KACnBiyB,kBAAmBryB,EAAAA,QAAUC,MAAM,CACjCd,SAAUa,EAAAA,QAAUE,OACpB1D,KAAMwD,EAAAA,QAAU6xB,MAAM,CAAC,OAAQ,OAAQ,SAAU,UACjDvC,IAAKtvB,EAAAA,QAAUE,OACfmuB,SAAUruB,EAAAA,QAAUE,SAEtBowB,eAAgBtwB,EAAAA,QAAUE,QAG5BkyB,EAAsB7xB,aAAe,CACnCtL,MAAO,KACP45B,SAAK14B,EACL24B,SAAK34B,EACLmN,YAAa,KACbnE,SAAU,MACV9I,SAAUkM,EAAAA,QAAEgJ,KACZiU,QAASjd,EAAAA,QAAEgJ,KACX8mB,kBAAmB,CAAC,EACpB/B,oBAAgBn6B,E,kB5F9ElBpC,EAAOD,QAAU+P,C","sources":["../webpack/bootstrap","../../../../../../../../external/react","../webpack-src:/data-selection/index.ts","../webpack-src:/data-selection/src/index.ts","../webpack-src:/data-selection/src/data-selection.tsx","../webpack-src:/data-source/index.ts","../webpack-src:/data-source/src/index.ts","../webpack-src:/data-source/src/ServerDataSource.tsx","../webpack-src:/data-source/src/DataSourceContext.ts","../webpack-src:/data-source/src/reducer/index.ts","../webpack-src:/data-source/src/reducer/constants.ts","../webpack-src:/data-source/src/reducer/actions.ts","../webpack-src:/data-source/src/ClientDataSource.tsx","../webpack-src:/data-source/src/hook/useDataSource.tsx","../webpack-src:/data-source/src/hoc/withDataSource.tsx","../../../../../../../../external/prop-types","../../../../../../../../external/tc39-proposal-temporal","../../../../../../../../external/@bingads-webui-universal/temporal-utitlities","../../../../../../../../external/@bingads-webui-react/single-month-calendar","../../../../../../../../external/@bingads-webui-react/primitive-validation","../webpack-src:/date-time-picker/index.js","../webpack-src:/date-time-picker/src/date-picker-react.js","../webpack-src:/date-time-picker/src/date-picker-style.js","../webpack-src:/date-time-picker/src/date-time-picker.js","../../../../../../../../external/@bingads-webui-react/with-default-styles","../../../../../../../../external/@bingads-webui-react/fabric-control","../../../../../../../../external/underscore","../webpack/universalModuleDefinition","../webpack-src:/dimensions-target/index.js","../webpack-src:/dimensions-target/src/index.js","../webpack-src:/dimensions-target/src/target.js","../../../../../../../../external/@bingads-webui-universal/primitive-utilities","../../../../../../../../external/@bingads-webui-react/validation","../../../../../../../../external/@fluentui/react-components","../../../../../../../../external/classnames","../../../../../../../../external/@bingads-webui-react/i18n-context","../../../../../../../../external/@fluentui/react","../webpack-src:/double-list-box-fluent/index.js","../webpack-src:/double-list-box-fluent/src/index.js","../webpack-src:/double-list-box-fluent/src/styles.js","../webpack-src:/double-list-box-fluent/src/context/index.js","../webpack-src:/double-list-box-fluent/src/context/reducer.js","../webpack-src:/double-list-box-fluent/src/pagination/index.js","../webpack-src:/double-list-box-fluent/src/list/index.js","../webpack-src:/dropdown-searchbox/index.js","../webpack-src:/dropdown-searchbox/src/index.js","../webpack-src:/dropdown-searchbox/src/styles.js","../webpack-src:/dropdown-tree-view-selector/index.js","../webpack-src:/dropdown-tree-view-selector/src/tree-view-with-search-box.js","../webpack-src:/dropdown-tree-view-selector/src/styles/index.js","../webpack-src:/dropdown-tree-view-selector/src/styles/tree-view-with-search-box-styles.js","../webpack-src:/dropdown-tree-view-selector/src/constants.js","../webpack-src:/dropdown-tree-view-selector/src/dropdown-tree-view-selector.js","../webpack-src:/dropdown-tree-view-selector/src/utils.js","../../../../../../../../external/@bingads-webui-react/tree-view","../webpack-src:/event-provider/index.ts","../webpack-src:/event-provider/src/index.ts","../webpack-src:/event-provider/src/EventProvider.tsx","../webpack-src:/event-provider/src/EventConsumer.tsx","../webpack-src:/event-provider/src/use-event.ts","../webpack-src:/event-provider/src/with-event.tsx","../webpack-src:/form-core/index.js","../webpack-src:/form-core/src/index.js","../webpack-src:/form-core/src/core/form.js","../webpack-src:/form-core/src/core/default-config.js","../webpack-src:/form-core/src/core/form-content.js","../webpack-src:/form-core/src/components/data-repository.js","../webpack-src:/form-core/src/core/form-service.js","../../../../../../../../external/@xstate/react","../webpack-src:/form-core/src/machine/machine-factory.js","../../../../../../../../external/xstate","../webpack-src:/form-core/src/machine/machine-config.js","../webpack-src:/form-core/src/core/form-props.js","../webpack-src:/form-core/src/data/use-data-loader.js","../webpack-src:/form-core/src/data/is-promise.js","../webpack-src:/form-core/src/data/use-data-saver.js","../webpack-src:/form-core/src/components/view-container.js","../webpack-src:/form-core/src/components/dynamic-fetcher.js","../webpack-src:/form-core/src/data/view-fetcher.js","../webpack-src:/form-core/src/data/repository-fetcher.js","../webpack-src:/form-core/src/layout/layout-container.js","../webpack-src:/form-core/src/components/index.js","../webpack-src:/form-core/src/components/state-callbacks.js","../webpack-src:/form-core/src/components/dynamic-loader-factory.js","../../../../../../../../external/@bingads-webui-react/ui-blocker","../../../../../../../../external/@bingads-webui-react/form-core","../webpack-src:/form-ui-library/index.js","../webpack-src:/form-ui-library/src/index.js","../webpack-src:/form-ui-library/src/blockers.js","../webpack-src:/form-ui-library/src/footers.js","../webpack-src:/form-ui-library/src/buttons.js","../../../../../../../../external/@bingads-webui-react/fabric-with-signal","../webpack-src:/form-ui-library/src/cancel-dialog.js","../webpack-src:/form-ui-library/src/basic-dialog.js","../webpack-src:/form-ui-library/src/confirm-dialog.js","../webpack-src:/form/index.ts","../../../../../../../../external/@bingads-webui-react/form-ui-library","../../../../../../../../external/@bingads-webui/keycode","../../../../../../../../external/@bingads-webui-react/alert","../webpack-src:/image-picker/index.js","../webpack-src:/image-picker/src/image-picker-container.js","../webpack-src:/image-picker/src/loading-indicator.js","../webpack-src:/image-picker/src/image-list-view.js","../webpack-src:/image-picker/src/image-list-item.js","../../../../../../../../external/@bingads-webui-react/lazy-image","../webpack-src:/image-picker/src/item-model-shape.js","../webpack-src:/image-picker/src/styles/shared-styles.js","../webpack-src:/image-picker/src/data-source-def.js","../webpack-src:/image-picker/src/load-more-button.js","../webpack-src:/image-picker/src/i18n/legacy-keys-map.js","../../../../../../../../external/pug-runtime","../../../../../../../../external/jquery","../webpack-src:/kendo-date-picker/index.js","../webpack-src:/kendo-date-picker/src/date-picker.js","../../../../../../../../external/@bingads-webui/kendo/kendo.datepicker","../webpack-src:/kendo-date-picker/src/malformed-input-error.js","../webpack-src:/kendo-date-picker/src/month-empty.pug","../webpack-src:/kendo-date-picker/src/input.pug","../webpack-src:/kendo-date-picker/src/string-date-picker.js"],"sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 377);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__3__;","export * from './src/index';\r\n","export * from './data-selection';\r\nexport * from './types';\r\n","import React, {\r\n createContext,\r\n useCallback,\r\n useContext,\r\n useEffect,\r\n useMemo,\r\n useRef,\r\n useState,\r\n} from 'react';\r\n\r\nimport { DataSelectionContextValue } from './types';\r\n\r\nexport const DataSelectionContext = createContext | undefined>(undefined);\r\n\r\ninterface DataSelectionProviderProps {\r\n children: React.ReactNode;\r\n value?: T[];\r\n onChange?: (value: T[]) => void;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/comma-dangle\r\nexport const DataSelection = ({ children, value = [], onChange = () => {} }: DataSelectionProviderProps) => {\r\n const prevDataSelection = useRef(null);\r\n\r\n const [dataSelection, setDataSelection] = useState(value);\r\n const [openItems, setOpenItems] = useState(new Set());\r\n\r\n const updateDataSelection = useCallback((newSelection: T[]) => {\r\n prevDataSelection.current = newSelection;\r\n\r\n setDataSelection(newSelection);\r\n onChange(newSelection);\r\n }, [prevDataSelection.current, onChange]);\r\n\r\n const contextValue = useMemo(() => ({\r\n dataSelection,\r\n openItems,\r\n setDataSelection: updateDataSelection,\r\n setOpenItems,\r\n }), [dataSelection, openItems, updateDataSelection]);\r\n\r\n useEffect(() => {\r\n if (prevDataSelection.current !== value) {\r\n setDataSelection(value);\r\n }\r\n }, [value]);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport const useDataSelection = () => {\r\n const context = useContext(DataSelectionContext);\r\n\r\n if (context === undefined) {\r\n throw new Error('useDataSelection must be used within a DataSource provider');\r\n }\r\n\r\n return context;\r\n};\r\n","export * from './src/index';\r\n","export { ServerDataSource } from './ServerDataSource';\r\nexport { ClientDataSource } from './ClientDataSource';\r\nexport { useDataSource } from './hook/useDataSource';\r\nexport { withDataSource } from './hoc/withDataSource';\r\nexport * from './types';\r\n","import React, { useEffect, useMemo } from 'react';\r\nimport DataSourceContext from './DataSourceContext';\r\nimport {\r\n DataSourceProps, DataSourceState, DataSourceStatePayload, ServerDataSourceProviderProps,\r\n SortDefinition,\r\n} from './types';\r\nimport { dataReducer, initialState } from './reducer';\r\nimport {\r\n nextPage,\r\n prevPage,\r\n goToPage,\r\n setData,\r\n setIsLoading,\r\n setError,\r\n setSearch,\r\n setPageSize,\r\n setSortBy,\r\n} from './reducer/actions';\r\n\r\nexport const ServerDataSource: React.FC> = ({\r\n children,\r\n fetchData,\r\n ...overrideInitialState\r\n}) => {\r\n const [state, dispatch] = React.useReducer(dataReducer, { ...initialState, ...overrideInitialState });\r\n const {\r\n currentPage, pageSize, searchTerm, sortBy,\r\n } = state;\r\n const [refetchTrigger, setRefetchTrigger] = React.useState(0);\r\n\r\n useEffect(() => {\r\n if (fetchData) {\r\n dispatch(setIsLoading(true));\r\n fetchData({\r\n page: currentPage, pageSize, search: state.searchTerm, sortState: sortBy,\r\n })\r\n .then((data: DataSourceStatePayload) => {\r\n dispatch(setData(data));\r\n })\r\n .catch((error) => {\r\n dispatch(setError(error.message));\r\n });\r\n }\r\n }, [currentPage, pageSize, searchTerm, sortBy, refetchTrigger]);\r\n\r\n const value: DataSourceProps = useMemo(() => ({\r\n ...state,\r\n nextPage: () => dispatch(nextPage()),\r\n prevPage: () => dispatch(prevPage()),\r\n goToPage: (pageNumber: number) => dispatch(goToPage(pageNumber)),\r\n setError: (error: string) => dispatch(setError(error)),\r\n setData: (data: DataSourceStatePayload) => dispatch(setData(data)),\r\n search: (search: string) => dispatch(setSearch(search)),\r\n sort: (val: SortDefinition) => dispatch(setSortBy(val)),\r\n setPageSize: (size: number) => dispatch(setPageSize(size)),\r\n refetch: () => setRefetchTrigger((prev: number) => prev + 1),\r\n }), [state]);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n","import { createContext } from 'react';\r\nimport { DataSourceProps } from './types';\r\n\r\nexport default createContext(undefined);\r\n","import { DataSourceState, FSA } from '../types';\r\nimport {\r\n SEARCH_ACTION,\r\n SORT_ACTION,\r\n NEXT_PAGE_ACTION,\r\n PREV_PAGE_ACTION,\r\n SET_DATA_ACTION,\r\n SET_ERROR_ACTION,\r\n GO_TO_PAGE_ACTION,\r\n IS_LOADING_ACTION,\r\n SET_PAGE_SIZE_ACTION,\r\n} from './constants';\r\n\r\nexport const initialState: DataSourceState = {\r\n currentPage: 1,\r\n totalPages: 1,\r\n count: 0,\r\n pageSize: 25,\r\n searchTerm: '',\r\n sortBy: {},\r\n items: [],\r\n isLoading: true,\r\n error: null,\r\n};\r\n\r\nexport const dataReducer = (\r\n state: DataSourceState,\r\n action: FSA,\r\n): DataSourceState => {\r\n switch (action.type) {\r\n case NEXT_PAGE_ACTION:\r\n return {\r\n ...state,\r\n currentPage:\r\n state.currentPage < (state.totalPages || 1)\r\n ? state.currentPage + 1\r\n : state.currentPage,\r\n };\r\n case PREV_PAGE_ACTION:\r\n return {\r\n ...state,\r\n currentPage: state.currentPage === 1 ? 1 : state.currentPage - 1,\r\n };\r\n case GO_TO_PAGE_ACTION:\r\n return {\r\n ...state,\r\n currentPage: action.payload > 0 ? action.payload : state.currentPage,\r\n };\r\n case SEARCH_ACTION:\r\n return { ...state, searchTerm: action.payload, currentPage: 1 };\r\n case SORT_ACTION:\r\n return { ...state, sortBy: action.payload, currentPage: 1 };\r\n case IS_LOADING_ACTION:\r\n return { ...state, isLoading: action.payload };\r\n case SET_DATA_ACTION:\r\n return {\r\n ...state,\r\n items: action.payload.items,\r\n count: action.payload.count,\r\n error: null,\r\n isLoading: false,\r\n currentPage: action.payload.page ?? state.currentPage,\r\n totalPages: action.payload.totalPages ?? 1,\r\n };\r\n case SET_ERROR_ACTION:\r\n return {\r\n ...state, error: action.payload, items: [], isLoading: false,\r\n };\r\n case SET_PAGE_SIZE_ACTION:\r\n return { ...state, pageSize: action.payload ?? state.pageSize, currentPage: 1 };\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const NEXT_PAGE_ACTION = 'NEXT_PAGE';\r\nexport const PREV_PAGE_ACTION = 'PREV_PAGE';\r\nexport const GO_TO_PAGE_ACTION = 'GO_TO_PAGE';\r\nexport const SEARCH_ACTION = 'SEARCH_PAGE';\r\nexport const SORT_ACTION = 'SORT_PAGE';\r\nexport const IS_LOADING_ACTION = 'IS_LOADING';\r\nexport const SET_DATA_ACTION = 'SET_DATA_PAGE';\r\nexport const SET_ERROR_ACTION = 'SET_ERROR_PAGE';\r\nexport const SET_PAGE_SIZE_ACTION = 'SET_PAGE_SIZE';\r\n","import {\r\n NEXT_PAGE_ACTION,\r\n PREV_PAGE_ACTION,\r\n GO_TO_PAGE_ACTION,\r\n IS_LOADING_ACTION,\r\n SEARCH_ACTION,\r\n SORT_ACTION,\r\n SET_DATA_ACTION,\r\n SET_ERROR_ACTION,\r\n SET_PAGE_SIZE_ACTION,\r\n} from './constants';\r\nimport {\r\n DataSourceStatePayload,\r\n NextPageAction,\r\n PrevPageAction,\r\n GoToPageAction,\r\n IsLoadingAction,\r\n SearchAction,\r\n SortAction,\r\n SetDataAction,\r\n SetErrorAction,\r\n SetPageSizeAction,\r\n SortDefinition,\r\n} from '../types';\r\n\r\nexport const nextPage = (): NextPageAction => ({ type: NEXT_PAGE_ACTION });\r\nexport const prevPage = (): PrevPageAction => ({ type: PREV_PAGE_ACTION });\r\nexport const goToPage = (pageNumber: number): GoToPageAction => ({\r\n type: GO_TO_PAGE_ACTION,\r\n payload: pageNumber,\r\n});\r\nexport const setSearch = (search: string): SearchAction => ({\r\n type: SEARCH_ACTION,\r\n payload: search,\r\n});\r\nexport const setSortBy = (sort: SortDefinition): SortAction => ({\r\n type: SORT_ACTION,\r\n payload: sort,\r\n});\r\nexport const setIsLoading = (isLoading: boolean): IsLoadingAction => ({\r\n type: IS_LOADING_ACTION,\r\n payload: isLoading,\r\n});\r\nexport const setData = (data: DataSourceStatePayload): SetDataAction => ({\r\n type: SET_DATA_ACTION,\r\n payload: data,\r\n});\r\nexport const setError = (error: any): SetErrorAction => ({\r\n type: SET_ERROR_ACTION,\r\n payload: error,\r\n error: true,\r\n});\r\nexport const setPageSize = (pageSize: number): SetPageSizeAction => ({\r\n type: SET_PAGE_SIZE_ACTION,\r\n payload: pageSize,\r\n});\r\n","import React, { useEffect, useMemo } from 'react';\r\nimport DataSourceContext from './DataSourceContext';\r\nimport {\r\n DataSourceProps, DataSourceStatePayload, ClientDataSourceProviderProps, SortDefinition,\r\n} from './types';\r\nimport { dataReducer, initialState } from './reducer';\r\nimport {\r\n nextPage,\r\n prevPage,\r\n goToPage,\r\n setData,\r\n setError,\r\n setSearch,\r\n setPageSize,\r\n setSortBy,\r\n} from './reducer/actions';\r\n\r\nconst defaultSearchFn = (items: any[], searchTerm: string) => items?.filter((item) => item.name.toLowerCase().includes(searchTerm.toLowerCase()));\r\n\r\nexport const ClientDataSource: React.FC = ({\r\n children,\r\n data,\r\n paginate = false,\r\n searchFn = defaultSearchFn,\r\n}) => {\r\n const [state, dispatch] = React.useReducer(dataReducer, initialState);\r\n const { currentPage: page, pageSize, searchTerm } = state;\r\n\r\n const value: DataSourceProps = useMemo(() => ({\r\n ...state,\r\n nextPage: () => dispatch(nextPage()),\r\n prevPage: () => dispatch(prevPage()),\r\n goToPage: (pageNumber: number) => dispatch(goToPage(pageNumber)),\r\n setData: (payload: DataSourceStatePayload) => dispatch(setData(payload)),\r\n setError: (error: string) => dispatch(setError(error)),\r\n search: (search: string) => dispatch(setSearch(search)),\r\n sort: (sortBy: SortDefinition) => dispatch(setSortBy(sortBy)),\r\n setPageSize: (size: number) => dispatch(setPageSize(size)),\r\n }), [state]);\r\n\r\n useEffect(() => {\r\n if (data) {\r\n let items = searchFn(data, searchTerm);\r\n let totalPages = Math.ceil(items.length / pageSize);\r\n\r\n if (paginate) {\r\n const startIndex = (page - 1) * pageSize;\r\n const endIndex = startIndex + pageSize;\r\n\r\n items = items.slice(startIndex, endIndex);\r\n totalPages = Math.ceil((searchTerm ? items : data).length / pageSize);\r\n }\r\n\r\n value.setData({ totalPages, items });\r\n }\r\n }, [data, paginate, page, pageSize, searchTerm]);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n","import React from 'react';\r\nimport { DataSourceProps } from '../types';\r\nimport DataContext from '../DataSourceContext';\r\n\r\nexport const useDataSource = (): DataSourceProps => {\r\n const context = React.useContext(DataContext);\r\n if (context === undefined) {\r\n throw new Error('useDataSource must be used within a DataSource');\r\n }\r\n return context;\r\n};\r\n","import React from 'react';\r\nimport { DataSourceProps } from '../types';\r\nimport { useDataSource } from '../hook/useDataSource';\r\n\r\nexport const withDataSource =

(\r\n Component: React.ComponentType

,\r\n): React.FC> => (props: Omit) => {\r\n const dataSourceProps = useDataSource();\r\n\r\n return ;\r\n };\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__10__;","module.exports = __WEBPACK_EXTERNAL_MODULE__215__;","module.exports = __WEBPACK_EXTERNAL_MODULE__217__;","module.exports = __WEBPACK_EXTERNAL_MODULE__222__;","module.exports = __WEBPACK_EXTERNAL_MODULE__308__;","export { DatePickerReact } from './src/date-picker-react';\r\nexport { DateTimePicker } from './src/date-time-picker';\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { CivilDate } from 'tc39-proposal-temporal';\r\n\r\nimport { Input } from '@bingads-webui-react/primitive-validation';\r\nimport { getCivilDateToday } from '@bingads-webui-universal/temporal-utitlities';\r\nimport { SingleMonthCalendar } from '@bingads-webui-react/single-month-calendar';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getStyles } from './date-picker-style';\r\n\r\nclass DatePickerReact extends React.PureComponent {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n NavigatedDate: null,\r\n SelectedDate: null,\r\n isShowDatePicker: false,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n document.addEventListener('mousedown', this.handleClickOutsideCalendar);\r\n }\r\n\r\n componentWillUnmount() {\r\n document.removeEventListener('mousedown', this.handleClickOutsideCalendar);\r\n }\r\n\r\n static getDerivedStateFromProps(props) {\r\n if (props.selectedDate) {\r\n const date = new Date(props.selectedDate);\r\n const SelectedDate = new CivilDate(\r\n date.getUTCFullYear(),\r\n date.getUTCMonth() + 1,\r\n date.getUTCDate()\r\n );\r\n return {\r\n SelectedDate,\r\n NavigatedDate: SelectedDate,\r\n };\r\n }\r\n return null;\r\n }\r\n\r\n onSelectDate = (date) => {\r\n if (this.state.isShowDatePicker) {\r\n this.setState({\r\n SelectedDate: date,\r\n isShowDatePicker: false,\r\n });\r\n this.props.onDateChange(date);\r\n }\r\n }\r\n\r\n setWrapperRef = (node) => {\r\n this.wrapperRef = node;\r\n }\r\n\r\n handleClickOutsideCalendar = (event) => {\r\n if (this.wrapperRef && !this.wrapperRef.contains(event.target)) {\r\n this.setState({\r\n isShowDatePicker: false,\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n const {\r\n i18n,\r\n classes,\r\n minDate,\r\n maxDate,\r\n inputClassName,\r\n hideTitle,\r\n id,\r\n } = this.props;\r\n return (\r\n

\r\n
\r\n {hideTitle ? null :
{ i18n.getString(_TL_('Date')) }
}\r\n
\r\n {\r\n e.preventDefault();\r\n this.setState({\r\n isShowDatePicker: !this.state.isShowDatePicker,\r\n });\r\n }\r\n }\r\n id={id ? `${id}DateInput` : 'DateInput'}\r\n aria-label={i18n.getString(_TL_('Select date'))}\r\n value={this.state.SelectedDate ? i18n.formatCivilDate(this.state.SelectedDate, { skeleton: 'yMd' }) : null}\r\n />\r\n {\r\n this.state.isShowDatePicker &&\r\n
\r\n this.onSelectDate(date)}\r\n i18n={i18n}\r\n isMonthPickerEnabled\r\n />\r\n
\r\n }\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nDatePickerReact.propTypes = {\r\n classes: PropTypes.shape({\r\n calenderWrapper: PropTypes.string,\r\n }).isRequired,\r\n inputClassName: PropTypes.string,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func.isRequired,\r\n }).isRequired,\r\n onDateChange: PropTypes.func.isRequired,\r\n minDate: PropTypes.instanceOf(CivilDate),\r\n maxDate: PropTypes.instanceOf(CivilDate),\r\n hideTitle: PropTypes.bool,\r\n id: PropTypes.string,\r\n // eslint-disable-next-line react/no-unused-prop-types\r\n selectedDate: PropTypes.instanceOf(CivilDate),\r\n};\r\n\r\nDatePickerReact.defaultProps = {\r\n minDate: null,\r\n maxDate: null,\r\n selectedDate: null,\r\n inputClassName: null,\r\n hideTitle: false,\r\n id: undefined,\r\n};\r\n\r\nconst Wrapped = withDefaultStyles(DatePickerReact, getStyles);\r\n\r\nexport { Wrapped as DatePickerReact };\r\n","export function getStyles() {\r\n return {\r\n calenderWrapper: {\r\n position: 'absolute',\r\n zIndex: '1',\r\n background: 'white',\r\n boxShadow: 'rgb(0 0 0 / 13%) 0px 6.4px 14.4px 0px, rgb(0 0 0 / 11%) 0px 1.2px 3.6px 0px',\r\n padding: '12px',\r\n\r\n '& table': {\r\n marginBottom: '0px',\r\n },\r\n '& .single-month-calendar, & .calendar-month, & .calendar-year': {\r\n '& .navContainer': { display: 'flex' },\r\n '& .navContainer .prevMonth': { marginRight: 'auto' },\r\n '& .navContainer .prevMonth :hover': { cursor: 'pointer' },\r\n '& .navContainer .nextMonth': { marginLeft: 'auto' },\r\n '& .navContainer .nextMonth :hover': { cursor: 'pointer' },\r\n '& .navContainer .monthAndYear': {\r\n textAlign: 'center',\r\n fontWeight: '500',\r\n fontSize: '14px',\r\n },\r\n // fix https://msasg.visualstudio.com/Bing_Ads/_workitems/edit/3480161\r\n '& .navContainer .monthAndYear.monthYearButton': {\r\n fontWeight: '600',\r\n },\r\n },\r\n '& .single-month-calendar': {\r\n '& .table': { width: '200px', border: 'none', borderSpacing: 'unset' },\r\n '& th.weekday, .day': {\r\n textAlign: 'center',\r\n lineHeight: '15px',\r\n width: '28px',\r\n },\r\n '& .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td': {\r\n padding: '0',\r\n paddingTop: '6px',\r\n paddingBottom: '6px',\r\n borderRadius: '2px',\r\n border: 'none',\r\n },\r\n '& .table > thead > tr > th span, .table > tbody > tr > th span, .table > tfoot > tr > th span, .table > thead > tr > td span, .table > tbody > tr > td span, .table > tfoot > tr > td span': {\r\n fontSize: '12px',\r\n },\r\n '& .table > thead > tr > th.weekday, .table > tbody > tr > th.weekday, .table > tfoot > tr > th.weekday, .table > thead > tr > td.weekday, .table > tbody > tr > td.weekday, .table > tfoot > tr > td.weekday': {\r\n fontSize: '12px',\r\n fontWeight: '400',\r\n },\r\n '& .dayWrapper.isInBounds.isInMonth': { backgroundColor: '#F3F2F1' },\r\n '& .dayWrapper.isInBounds.isInMonth:hover': {\r\n cursor: 'pointer',\r\n backgroundColor: '#EDEBE9',\r\n },\r\n '& .dayWrapper.isInSelectedRange.isInMonth': { backgroundColor: '#CBE7F2' },\r\n '& .dayWrapper.isInComparedRange.isInMonth': { backgroundColor: '#DFF6DD' },\r\n '& .dayWrapper.isSelectedRangeStartOrEnd.isInMonth': {\r\n backgroundColor: '#0078D4',\r\n color: '#fff',\r\n },\r\n '& .dayWrapper.isComparedRangeStartOrEnd.isInMonth': {\r\n backgroundColor: '#107C10',\r\n color: '#fff',\r\n },\r\n '& .dayWrapper.notInMonth': { color: '#A19F9D' },\r\n '& .dayWrapper.notInBounds': { color: '#ccc', backgroundColor: '#fff' },\r\n '& .dayWrapper.isToday.isInMonth': { border: '1px solid #999 !important' },\r\n },\r\n },\r\n };\r\n}\r\n","import React, { useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { Stack, Dropdown } from '@bingads-webui-react/fabric-control';\r\nimport { DatePickerReact } from './date-picker-react';\r\n\r\nfunction getStyles() {\r\n return {\r\n inputClassName: {\r\n width: 'auto !important',\r\n },\r\n };\r\n}\r\n\r\nfunction DateTimePicker(props) {\r\n const {\r\n i18n,\r\n classes,\r\n onDateChange,\r\n selectedDate,\r\n onTimeChange,\r\n selectedHour,\r\n hideTitle,\r\n minDate,\r\n maxDate,\r\n datePickerId,\r\n timePickerId,\r\n } = props;\r\n\r\n const options = _.range(24).map(hour =>\r\n i18n.formatDate(new Date(2021, 1, 1, hour, 0), {\r\n skeleton: 'h',\r\n })).map((value, index) => ({ key: index.toString(), text: value }));\r\n\r\n const onChange = useCallback((_event, option) => {\r\n onTimeChange(option);\r\n }, [onTimeChange]);\r\n\r\n return (\r\n \r\n \r\n
\r\n {hideTitle ? null :
{i18n.getString(_TL_('Time'))}
}\r\n \r\n
\r\n \r\n );\r\n}\r\n\r\nDateTimePicker.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func.isRequired,\r\n }).isRequired,\r\n classes: PropTypes.shape({\r\n inputClassName: PropTypes.string,\r\n }).isRequired,\r\n onDateChange: PropTypes.func.isRequired,\r\n selectedDate: PropTypes.number,\r\n onTimeChange: PropTypes.func.isRequired,\r\n selectedHour: PropTypes.string,\r\n hideTitle: PropTypes.bool,\r\n minDate: PropTypes.shape(),\r\n maxDate: PropTypes.shape(),\r\n datePickerId: PropTypes.string,\r\n timePickerId: PropTypes.string,\r\n};\r\n\r\nDateTimePicker.defaultProps = {\r\n minDate: null,\r\n maxDate: null,\r\n selectedHour: null,\r\n selectedDate: null,\r\n hideTitle: false,\r\n datePickerId: undefined,\r\n timePickerId: undefined,\r\n};\r\n\r\nconst Wrapped = withDefaultStyles(DateTimePicker, getStyles);\r\n\r\nexport { Wrapped as DateTimePicker };\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__35__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5__;","module.exports = __WEBPACK_EXTERNAL_MODULE__9__;","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"prop-types\"), require(\"underscore\"), require(\"@bingads-webui-universal/primitive-utilities\"), require(\"@bingads-webui-react/validation\"), require(\"@fluentui/react-components\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"prop-types\", \"underscore\", \"@bingads-webui-universal/primitive-utilities\", \"@bingads-webui-react/validation\", \"@fluentui/react-components\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\"), require(\"prop-types\"), require(\"underscore\"), require(\"@bingads-webui-universal/primitive-utilities\"), require(\"@bingads-webui-react/validation\"), require(\"@fluentui/react-components\")) : factory(root[\"react\"], root[\"prop-types\"], root[\"underscore\"], root[\"@bingads-webui-universal/primitive-utilities\"], root[\"@bingads-webui-react/validation\"], root[\"@fluentui/react-components\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__4__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__9__) {\nreturn ","export * from './src';\r\n","export * from './target';\r\n","import React, { useCallback, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { contains, filter, map, size } from 'underscore';\r\nimport { curlyTemplate } from '@bingads-webui-universal/primitive-utilities';\r\nimport { withCustomValidation, withError } from '@bingads-webui-react/validation';\r\nimport { Checkbox, Label, Button, makeStyles, mergeClasses, shorthands, tokens, useId } from '@fluentui/react-components';\r\n\r\nexport const useStyles = makeStyles({\r\n targetContainer: {\r\n '& .dimensions': {\r\n display: 'grid',\r\n gridTemplateColumns: 'auto auto auto',\r\n columnGap: '10px',\r\n ...shorthands.padding('2px'),\r\n\r\n '& input[type=\"checkbox\"]': {\r\n ...shorthands.margin('8px'),\r\n },\r\n '& label': {\r\n flexGrow: 1,\r\n },\r\n },\r\n },\r\n toggleButton: {\r\n color: tokens.colorBrandForegroundLink,\r\n justifyContent: 'flex-start',\r\n },\r\n});\r\n\r\nconst getErrorMessage = ({ count, i18n }) => curlyTemplate(i18n.getString(_TL_('At least {{count}} target(s) should to be selected.')))({\r\n count,\r\n});\r\n\r\nconst Target = ({\r\n i18n,\r\n title,\r\n description,\r\n formatter,\r\n dimensions,\r\n availableDimensions,\r\n minSelection,\r\n validationProps,\r\n updateValidation,\r\n hideDeselectAll,\r\n hideSelectAll,\r\n onRenderLabel,\r\n targetClasses,\r\n checkBoxClass,\r\n containerClass,\r\n checkedClass,\r\n disabledClass,\r\n disabledDimensions,\r\n defaultSelectAll,\r\n size: optionSize,\r\n renderLabel,\r\n logger,\r\n ariaLabel,\r\n}) => {\r\n const classes = useStyles();\r\n\r\n const selectedAll = size(dimensions) === size(availableDimensions);\r\n\r\n const onToggleDimension = useCallback((dimension) => {\r\n let newDimensions;\r\n if (contains(dimensions, dimension)) {\r\n newDimensions = filter(dimensions, d => d !== dimension);\r\n } else {\r\n newDimensions = [...dimensions, dimension];\r\n }\r\n\r\n updateValidation(newDimensions.length >= minSelection ? [] : [getErrorMessage({ i18n, count: minSelection })], {\r\n [validationProps.field]: newDimensions,\r\n });\r\n\r\n if (logger) {\r\n logger.log(`onTargetChange - ${validationProps.field} - ${newDimensions}`);\r\n }\r\n }, [dimensions, updateValidation, minSelection, i18n, validationProps.field, logger]);\r\n\r\n const onToggleAll = useCallback(() => {\r\n if (size(dimensions) < size(availableDimensions)) {\r\n updateValidation([], {\r\n [validationProps.field]: Object.keys(availableDimensions),\r\n });\r\n } else {\r\n updateValidation([getErrorMessage({ i18n, count: minSelection })], {\r\n [validationProps.field]: [],\r\n });\r\n }\r\n }, [availableDimensions, dimensions, i18n, minSelection, updateValidation, validationProps.field]);\r\n\r\n useEffect(() => {\r\n if (defaultSelectAll) {\r\n updateValidation([], {\r\n [validationProps.field]: Object.keys(availableDimensions),\r\n });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [defaultSelectAll]);\r\n\r\n const descriptionId = useId('description');\r\n const dimensionId = useId('dimension');\r\n const labelById = description ? descriptionId : dimensionId;\r\n\r\n return (\r\n
\r\n {title && }\r\n {description &&
{description}
}\r\n {((!hideDeselectAll && selectedAll) || (!hideSelectAll && !selectedAll)) &&\r\n disabledDimensions.length === 0 &&\r\n \r\n {selectedAll ? i18n.getString(_TL_('Deselect all')) : i18n.getString(_TL_('Select all'))}\r\n \r\n }\r\n
\r\n {map(availableDimensions, (_, dimension) => {\r\n const checked = contains(dimensions, dimension);\r\n const disabled = contains(disabledDimensions, dimension);\r\n const label = renderLabel ? renderLabel({\r\n label: formatter(dimension, i18n),\r\n selected: checked,\r\n disabled,\r\n dimension,\r\n }) :\r\n formatter(dimension, i18n);\r\n\r\n return (\r\n onToggleDimension(dimension)}\r\n onRenderLabel={onRenderLabel}\r\n size={optionSize}\r\n />\r\n );\r\n })}\r\n
\r\n
\r\n );\r\n};\r\n\r\nTarget.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n title: PropTypes.string,\r\n description: PropTypes.string,\r\n formatter: PropTypes.func.isRequired,\r\n dimensions: PropTypes.arrayOf(PropTypes.string),\r\n availableDimensions: PropTypes.shape().isRequired,\r\n validationProps: PropTypes.shape({\r\n field: PropTypes.string.isRequired,\r\n }).isRequired,\r\n updateValidation: PropTypes.func.isRequired,\r\n hideDeselectAll: PropTypes.bool,\r\n hideSelectAll: PropTypes.bool,\r\n onRenderLabel: PropTypes.func,\r\n targetClasses: PropTypes.shape({}),\r\n containerClass: PropTypes.string,\r\n checkBoxClass: PropTypes.string,\r\n checkedClass: PropTypes.string,\r\n disabledClass: PropTypes.string,\r\n disabledDimensions: PropTypes.arrayOf(PropTypes.string),\r\n defaultSelectAll: PropTypes.bool,\r\n size: PropTypes.string,\r\n renderLabel: PropTypes.func,\r\n logger: PropTypes.shape({\r\n log: PropTypes.func,\r\n }),\r\n ariaLabel: PropTypes.string,\r\n minSelection: PropTypes.number,\r\n};\r\n\r\nTarget.defaultProps = {\r\n title: undefined,\r\n description: undefined,\r\n dimensions: [],\r\n hideDeselectAll: false,\r\n hideSelectAll: false,\r\n onRenderLabel: undefined,\r\n targetClasses: {},\r\n containerClass: '',\r\n checkBoxClass: '',\r\n checkedClass: '',\r\n disabledClass: '',\r\n disabledDimensions: [],\r\n defaultSelectAll: false,\r\n size: 'large',\r\n renderLabel: undefined,\r\n logger: undefined,\r\n ariaLabel: undefined,\r\n minSelection: 1,\r\n};\r\n\r\nconst validatedTarget = withError(withCustomValidation(Target));\r\n\r\nexport { validatedTarget as Target };\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__7__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8__;","module.exports = __WEBPACK_EXTERNAL_MODULE__9__;","module.exports = __WEBPACK_EXTERNAL_MODULE__11__;","module.exports = __WEBPACK_EXTERNAL_MODULE__17__;","module.exports = __WEBPACK_EXTERNAL_MODULE__30__;","export { DoubleListBox } from './src/index';\r\nexport { DoubleListBoxContext, DoubleListBoxContextProvider } from './src/context';\r\n","import _ from 'underscore';\r\nimport React, { useCallback, useMemo, useContext, useEffect, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { initializeComponentRef } from '@fluentui/react';\r\nimport { getStyles } from './styles';\r\nimport { DoubleListBoxContext, withDoubleListBoxContext } from './context';\r\nimport { Pagination } from './pagination';\r\nimport { List } from './list';\r\n\r\nconst DoubleListBoxUnstyled = ({\r\n classes,\r\n className,\r\n showSelectedItems,\r\n onSelectionChange,\r\n isAddSearchBoxEnabled,\r\n isAddSearchBoxAutoTrigger,\r\n isAddAllAlwaysEnabled,\r\n isAddAllAlwaysDisabled,\r\n addAllButtonText,\r\n onAddAllCallback,\r\n isRemoveSearchBoxEnabled,\r\n isRemoveSearchBoxAutoTrigger,\r\n isRemoveAllAlwaysEnabled,\r\n isRemoveAllAlwaysDisabled,\r\n removeAllButtonText,\r\n onRemoveAllCallback,\r\n customRenderBulkControl,\r\n customRenderItems,\r\n customRenderSelectedItems,\r\n customSearchPlaceHolder,\r\n}) => {\r\n const {\r\n state: {\r\n items,\r\n pageSize,\r\n selectedItems,\r\n pageNumber,\r\n totalCount,\r\n search,\r\n selectionSearch,\r\n },\r\n dispatch,\r\n } = useContext(DoubleListBoxContext);\r\n const isInitialRender = useRef(true);\r\n\r\n const onPageChange = useCallback((page) => {\r\n dispatch({ type: 'UPDATE_PAGE_NUMBER', payload: page });\r\n }, [dispatch]);\r\n\r\n const onSearchItems = useCallback(_.debounce((text) => {\r\n dispatch({ type: 'SET_ITEM_FILTER', payload: text });\r\n }, 500, false), [dispatch]);\r\n\r\n const onSearchSelectedItems = useCallback(_.debounce((text) => {\r\n dispatch({ type: 'SET_SELECTED_ITEM_FILTER', payload: text });\r\n }, 500, false), [dispatch]);\r\n\r\n const onItemDeselect = useCallback((item) => {\r\n dispatch({ type: 'DESELECT_ITEM', payload: item });\r\n }, [dispatch]);\r\n\r\n const onItemSelect = useCallback((item) => {\r\n dispatch({ type: 'SELECT_ITEM', payload: item });\r\n }, [dispatch]);\r\n\r\n const filteredSelectedItems = useMemo(() => {\r\n const result = selectionSearch ? selectedItems.filter(item => item.name.toLowerCase().includes(selectionSearch.toLowerCase())) : selectedItems;\r\n return result;\r\n }, [selectedItems, selectionSearch]);\r\n\r\n const addAll = useCallback(() => {\r\n dispatch({ type: 'SELECT_ALL' });\r\n onAddAllCallback();\r\n }, [dispatch, onAddAllCallback]);\r\n\r\n const removeAll = useCallback(() => {\r\n dispatch({ type: 'DESELECT_ITEMS', payload: filteredSelectedItems });\r\n onRemoveAllCallback();\r\n }, [dispatch, filteredSelectedItems, onRemoveAllCallback]);\r\n\r\n useEffect(() => {\r\n if (isInitialRender.current) {\r\n isInitialRender.current = false;\r\n } else {\r\n onSelectionChange(selectedItems);\r\n }\r\n }, [onSelectionChange, selectedItems]);\r\n\r\n return (\r\n
\r\n
\r\n \r\n {\r\n showSelectedItems && (\r\n \r\n )\r\n }\r\n
\r\n {pageSize && }\r\n
\r\n );\r\n};\r\n\r\nDoubleListBoxUnstyled.propTypes = {\r\n className: PropTypes.string,\r\n classes: PropTypes.shape(_.mapObject(\r\n getStyles({}, {}),\r\n _.constant(PropTypes.string.isRequired)\r\n )).isRequired,\r\n showSelectedItems: PropTypes.bool,\r\n onSelectionChange: PropTypes.func,\r\n isAddSearchBoxEnabled: PropTypes.bool,\r\n isAddSearchBoxAutoTrigger: PropTypes.bool,\r\n isAddAllAlwaysEnabled: PropTypes.bool,\r\n isAddAllAlwaysDisabled: PropTypes.bool,\r\n addAllButtonText: PropTypes.string,\r\n onAddAllCallback: PropTypes.func,\r\n isRemoveSearchBoxEnabled: PropTypes.bool,\r\n isRemoveSearchBoxAutoTrigger: PropTypes.bool,\r\n isRemoveAllAlwaysEnabled: PropTypes.bool,\r\n isRemoveAllAlwaysDisabled: PropTypes.bool,\r\n removeAllButtonText: PropTypes.string,\r\n onRemoveAllCallback: PropTypes.func,\r\n customRenderBulkControl: PropTypes.func,\r\n customRenderItems: PropTypes.func,\r\n customRenderSelectedItems: PropTypes.func,\r\n customSearchPlaceHolder: PropTypes.string,\r\n};\r\n\r\nDoubleListBoxUnstyled.defaultProps = {\r\n className: '',\r\n showSelectedItems: true,\r\n onSelectionChange: () => {},\r\n isAddSearchBoxEnabled: true,\r\n isAddSearchBoxAutoTrigger: true,\r\n isAddAllAlwaysEnabled: false,\r\n isAddAllAlwaysDisabled: false,\r\n addAllButtonText: null,\r\n onAddAllCallback: _.noop,\r\n isRemoveSearchBoxEnabled: true,\r\n isRemoveSearchBoxAutoTrigger: true,\r\n isRemoveAllAlwaysEnabled: false,\r\n isRemoveAllAlwaysDisabled: false,\r\n removeAllButtonText: null,\r\n onRemoveAllCallback: _.noop,\r\n customRenderBulkControl: null,\r\n customRenderItems: null,\r\n customRenderSelectedItems: null,\r\n customSearchPlaceHolder: '',\r\n};\r\n\r\nclass DoubleListBoxWithComponentRef extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n initializeComponentRef(this);\r\n }\r\n\r\n setSelectedItems = (selection) => {\r\n this.props.context.dispatch({ type: 'SET_SELECTED_ITEMS', payload: selection });\r\n };\r\n\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nDoubleListBoxWithComponentRef.propTypes = {\r\n context: PropTypes.shape({\r\n dispatch: PropTypes.func.isRequired,\r\n }).isRequired,\r\n};\r\n\r\nexport const DoubleListBox = withDefaultStyles(withDoubleListBoxContext(DoubleListBoxWithComponentRef), getStyles);\r\n","export const getStyles = () => ({\r\n container: {\r\n fontSize: '14px',\r\n lineHeight: '19px',\r\n },\r\n lists: {\r\n display: 'flex',\r\n gap: '8px',\r\n height: '300px',\r\n },\r\n});\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { reducer } from './reducer';\r\n\r\nexport const DoubleListBoxContext = React.createContext();\r\n\r\nexport function DoubleListBoxContextProvider({\r\n pageSize,\r\n children,\r\n initialSelectedItems,\r\n}) {\r\n const [state, dispatch] = React.useReducer(reducer, {\r\n items: [],\r\n selectedItems: initialSelectedItems || [],\r\n search: '',\r\n selectionSearch: '',\r\n pageNumber: 1,\r\n pageSize,\r\n });\r\n const context = {\r\n state,\r\n dispatch,\r\n };\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n}\r\n\r\nexport const withDoubleListBoxContext = Component => (props) => {\r\n const context = React.useContext(DoubleListBoxContext);\r\n return ;\r\n};\r\n\r\nDoubleListBoxContextProvider.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n pageSize: PropTypes.number,\r\n initialSelectedItems: PropTypes.arrayOf(PropTypes.shape({})),\r\n};\r\n\r\nDoubleListBoxContextProvider.defaultProps = {\r\n pageSize: null, // no pagination if not specified\r\n initialSelectedItems: null,\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport function reducer(state, action) {\r\n const { type, payload } = action;\r\n switch (type) {\r\n case 'START_LOAD_DATA':\r\n return {\r\n ...state,\r\n items: null,\r\n };\r\n case 'FINISH_LOAD_DATA':\r\n return {\r\n ...state,\r\n items: payload.items.map(item => (\r\n _.some(state.selectedItems, selected => selected.id === item.id) ?\r\n { ...item, isSelected: true } : { ...item, isSelected: false }\r\n )),\r\n totalCount: payload.totalCount,\r\n };\r\n case 'SET_ITEM_FILTER':\r\n return {\r\n ...state,\r\n search: payload,\r\n pageNumber: 1,\r\n totalCount: null,\r\n };\r\n case 'SET_SELECTED_ITEM_FILTER':\r\n return {\r\n ...state,\r\n selectionSearch: payload,\r\n };\r\n case 'UPDATE_PAGE_NUMBER':\r\n return {\r\n ...state,\r\n pageNumber: payload,\r\n };\r\n case 'SELECT_ALL':\r\n {\r\n const newlySelectedItems = state.items.filter(item => !_.some(state.selectedItems, selected => selected.id === item.id))\r\n .map(item => ({ id: item.id, name: item.name }));\r\n\r\n return {\r\n ...state,\r\n items: state.items.map(item => ({ ...item, isSelected: true })),\r\n selectedItems: [...state.selectedItems, ...newlySelectedItems],\r\n };\r\n }\r\n case 'SELECT_ITEM':\r\n return {\r\n ...state,\r\n items: state.items.map(item => (item.id === payload.id ? { ...item, isSelected: true } : item)),\r\n selectedItems: [...state.selectedItems, { id: payload.id, name: payload.name }],\r\n };\r\n case 'SET_SELECTED_ITEMS':\r\n return {\r\n ...state,\r\n selectedItems: payload,\r\n items: state.items.map(item => (\r\n _.some(payload, selected => selected.id === item.id) ?\r\n { ...item, isSelected: true } : { ...item, isSelected: false }\r\n )),\r\n };\r\n case 'DESELECT_ITEM':\r\n return {\r\n ...state,\r\n items: state.items.map(item => (item.id === payload.id ? { ...item, isSelected: false } : item)),\r\n selectedItems: state.selectedItems.filter(item => item.id !== payload.id),\r\n };\r\n case 'DESELECT_ITEMS': {\r\n const selectedItems = state.selectedItems.filter(item => !_.some(payload, deSelected => deSelected.id === item.id));\r\n const items = state.items.map(item => (_.some(selectedItems, selected => selected.id === item.id) ? item : { ...item, isSelected: false }));\r\n\r\n return {\r\n ...state,\r\n items,\r\n selectedItems,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\n","import React, { useContext, useMemo } from 'react';\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport { IconButton, TextField, Shimmer, ShimmerElementType } from '@fluentui/react';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { curlyTemplate } from '@bingads-webui-universal/primitive-utilities';\r\n\r\nconst getStyle = () => ({\r\n container: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n margin: '15px 0',\r\n },\r\n pageNumber: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n margin: '0 5px',\r\n },\r\n});\r\n\r\nconst textFieldStyles = {\r\n root: {\r\n width: 75,\r\n marginRight: 10,\r\n },\r\n};\r\n\r\nconst Pagination = ({\r\n classes,\r\n pageSize,\r\n pageNumber,\r\n total,\r\n onPageChange,\r\n}) => {\r\n const i18n = useContext(I18nContext);\r\n const totalPage = useMemo(() => ((total || total === 0) ? Math.ceil(total / pageSize) : undefined), [total, pageSize]);\r\n\r\n return (\r\n
\r\n onPageChange(pageNumber - 1)}\r\n />\r\n \r\n
\r\n {totalPage !== undefined &&\r\n curlyTemplate(i18n.getString(_TL_('{{pageNumber}} of {{totalPage}}')))({\r\n pageNumber: totalPage === 0 ? 0 : pageNumber,\r\n totalPage: ` ${i18n.formatDecimal(totalPage)}`,\r\n })\r\n }\r\n
\r\n \r\n onPageChange(pageNumber + 1)}\r\n />\r\n
\r\n );\r\n};\r\n\r\nPagination.propTypes = {\r\n classes: PropTypes.shape({\r\n container: PropTypes.string.isRequired,\r\n pageNumber: PropTypes.string.isRequired,\r\n }).isRequired,\r\n pageNumber: PropTypes.number,\r\n pageSize: PropTypes.number.isRequired,\r\n total: PropTypes.number,\r\n onPageChange: PropTypes.func,\r\n};\r\n\r\nPagination.defaultProps = {\r\n pageNumber: 1,\r\n total: null,\r\n onPageChange: () => {},\r\n};\r\n\r\nconst Wrapped = withDefaultStyles(Pagination, getStyle);\r\n\r\nexport { Wrapped as Pagination };\r\n","/* eslint-disable jsx-a11y/anchor-is-valid */\r\nimport React, { useCallback, useContext, useMemo } from 'react';\r\nimport classNames from 'classnames';\r\nimport _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport { SearchBox, Link, FocusZone, FocusZoneDirection, Shimmer, ShimmerElementType, TooltipHost, TooltipOverflowMode } from '@fluentui/react';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { curlyTemplate } from '@bingads-webui-universal/primitive-utilities';\r\n\r\nconst getStyles = (_component, { palette = {} }) => ({\r\n container: {\r\n border: `1px solid ${palette.neutralSecondaryAlt}`,\r\n width: '300px',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n height: '100%',\r\n },\r\n listBox: {\r\n flex: '1 1 auto',\r\n overflow: 'auto',\r\n padding: '0 4px',\r\n },\r\n searchBox: {\r\n flex: '0 0 auto',\r\n height: '36px',\r\n },\r\n item: {\r\n height: '36px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'space-between',\r\n cursor: 'pointer',\r\n '&:hover': {\r\n backgroundColor: palette.neutralLighter,\r\n },\r\n padding: '0px 4px',\r\n },\r\n name: {\r\n overflow: 'hidden',\r\n textOverflow: 'ellipsis',\r\n whiteSpace: 'nowrap',\r\n flex: '1 1 0px',\r\n marginRight: '4px',\r\n },\r\n bulkControl: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'space-between',\r\n padding: '8px',\r\n },\r\n notSelected: {\r\n color: palette.themePrimary,\r\n },\r\n});\r\n\r\nconst List = ({\r\n items,\r\n onItemSelect,\r\n onItemDeselect,\r\n isSelectedList,\r\n classes,\r\n onSearch,\r\n isFiltered,\r\n onBulkOperation,\r\n defaultItemCount,\r\n isSearchBoxEnabled,\r\n isSearchBoxAutoTrigger,\r\n customizedActionText,\r\n isActionAlwaysEnabled,\r\n isActionAlwaysDisabled,\r\n isPaginationEnabled,\r\n customRenderBulkControl,\r\n customRenderItems,\r\n customRenderSelectedItems,\r\n customSearchPlaceHolder,\r\n}) => {\r\n const i18n = useContext(I18nContext);\r\n const searchPlaceholder = useMemo(\r\n () => (\r\n customSearchPlaceHolder || (isSelectedList ? i18n.getString(_TL_('Search selected items')) : i18n.getString(_TL_('Search available items')))),\r\n [customSearchPlaceHolder, isSelectedList, i18n]\r\n );\r\n\r\n const toggleSelection = useCallback((item) => {\r\n if (item.isSelected) {\r\n onItemDeselect(item);\r\n } else {\r\n onItemSelect(item);\r\n }\r\n }, [onItemSelect, onItemDeselect]);\r\n\r\n const getItemName = useCallback(itemName => (\r\n \r\n {itemName}\r\n \r\n ), [classes.name]);\r\n\r\n const renderItems = useCallback(\r\n () => {\r\n if (customRenderItems) {\r\n return customRenderItems(items, toggleSelection, classes);\r\n }\r\n return (\r\n
\r\n {items && items.map(item => (\r\n // keydown event is handled by FocusZone\r\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\r\n (item.isEditDisabled ? _.noop : toggleSelection(item))}\r\n >\r\n {getItemName(item.name)}\r\n
\r\n { item.isSelected ? i18n.getString(_TL_('added')) : i18n.getString(_TL_('add')) }\r\n
\r\n
))}\r\n );\r\n },\r\n [classes, customRenderItems, getItemName, i18n, items, toggleSelection]\r\n );\r\n\r\n const renderShimmer = useCallback(\r\n () => (\r\n
\r\n {_.range(defaultItemCount).map(index => ())}\r\n
\r\n )\r\n , [classes.item, classes.listBox, defaultItemCount, i18n]\r\n );\r\n\r\n const renderSelectedItems = useCallback(\r\n () => {\r\n if (customRenderSelectedItems) {\r\n return customRenderSelectedItems(items, onItemDeselect, classes);\r\n }\r\n return (\r\n
\r\n {items && items.map(item => (\r\n // keydown event is handled by FocusZone\r\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\r\n (item.isEditDisabled ? _.noop : onItemDeselect(item))}\r\n >\r\n {getItemName(item.name)}\r\n {!item.isEditDisabled &&
{ i18n.getString(_TL_('Remove')) }
}\r\n
))}\r\n );\r\n },\r\n [classes, customRenderSelectedItems, getItemName, i18n, items, onItemDeselect]\r\n );\r\n\r\n const renderBulkControl = useCallback(() => {\r\n const length = items ? items.length : 0;\r\n\r\n const customerRendered = customRenderBulkControl && customRenderBulkControl(items, onBulkOperation, isSelectedList, classes);\r\n if (customerRendered) {\r\n return customerRendered;\r\n }\r\n\r\n let text;\r\n let actionText;\r\n let disabled = false;\r\n if (isSelectedList) {\r\n text = isFiltered ?\r\n curlyTemplate(i18n.getString(_TL_('Filtered items: {{count}}')))({ count: length }) :\r\n curlyTemplate(i18n.getString(_TL_('Selected items: {{count}}')))({ count: length });\r\n actionText = customizedActionText || (isFiltered ? i18n.getString(_TL_('Remove all filtered')) : i18n.getString(_TL_('Remove all')));\r\n disabled = isActionAlwaysDisabled || (!isActionAlwaysEnabled && length === 0);\r\n } else {\r\n text = isFiltered ?\r\n curlyTemplate(i18n.getString(_TL_('Filtered items: {{count}}')))({ count: length }) :\r\n curlyTemplate(i18n.getString(_TL_('Available items: {{count}}')))({ count: length });\r\n actionText = customizedActionText || (isPaginationEnabled ? i18n.getString(_TL_('Add all on this page')) : i18n.getString(_TL_('Add all')));\r\n disabled = isActionAlwaysDisabled || (!isActionAlwaysEnabled && _.every(items, { isSelected: true }));\r\n }\r\n\r\n return (\r\n
\r\n
\r\n \r\n {text}\r\n \r\n
\r\n {actionText}\r\n
\r\n );\r\n }, [items, customRenderBulkControl, isSelectedList, classes, onBulkOperation, isFiltered, i18n, customizedActionText, isActionAlwaysDisabled, isActionAlwaysEnabled, isPaginationEnabled]);\r\n\r\n return (\r\n \r\n
\r\n {(isSearchBoxEnabled && ((items && items.length > 0) || isFiltered || !isSelectedList)) && (isSearchBoxAutoTrigger ? onSearch(value) : _.noop())}\r\n onClear={() => onSearch('')}\r\n underlined\r\n />}\r\n {renderBulkControl()}\r\n { items === null && renderShimmer() }\r\n {isSelectedList ? renderSelectedItems() : renderItems()}\r\n
\r\n
\r\n );\r\n};\r\n\r\nList.propTypes = {\r\n classes: PropTypes.shape({\r\n container: PropTypes.string,\r\n listBox: PropTypes.string,\r\n searchBox: PropTypes.string,\r\n item: PropTypes.string,\r\n bulkControl: PropTypes.string,\r\n notSelected: PropTypes.string,\r\n name: PropTypes.string,\r\n }).isRequired,\r\n items: PropTypes.arrayOf(PropTypes.shape({})),\r\n customRenderBulkControl: PropTypes.func,\r\n customRenderItems: PropTypes.func,\r\n customRenderSelectedItems: PropTypes.func,\r\n customSearchPlaceHolder: PropTypes.string,\r\n onItemSelect: PropTypes.func,\r\n onItemDeselect: PropTypes.func,\r\n isSelectedList: PropTypes.bool,\r\n onSearch: PropTypes.func,\r\n onBulkOperation: PropTypes.func,\r\n isFiltered: PropTypes.bool,\r\n defaultItemCount: PropTypes.number,\r\n isSearchBoxEnabled: PropTypes.bool,\r\n isSearchBoxAutoTrigger: PropTypes.bool,\r\n customizedActionText: PropTypes.string,\r\n isActionAlwaysEnabled: PropTypes.bool,\r\n isActionAlwaysDisabled: PropTypes.bool,\r\n isPaginationEnabled: PropTypes.bool,\r\n};\r\n\r\nList.defaultProps = {\r\n defaultItemCount: 0,\r\n items: null,\r\n onItemSelect: () => {},\r\n onItemDeselect: () => {},\r\n isSelectedList: false,\r\n onSearch: () => {},\r\n onBulkOperation: () => {},\r\n customRenderBulkControl: null,\r\n customRenderItems: null,\r\n customRenderSelectedItems: null,\r\n customSearchPlaceHolder: '',\r\n isFiltered: false,\r\n isSearchBoxEnabled: true,\r\n isSearchBoxAutoTrigger: true,\r\n customizedActionText: null,\r\n isActionAlwaysEnabled: false,\r\n isActionAlwaysDisabled: false,\r\n isPaginationEnabled: true,\r\n};\r\n\r\nconst ListWithStyles = withDefaultStyles(List, getStyles);\r\nexport { ListWithStyles as List };\r\n","export { DropdownSearchBox } from './src/index';\r\n","import React, { useEffect, useRef, useState, useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { compose, isFunction, debounce } from 'underscore';\r\nimport classNames from 'classnames';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { withI18nConsumer } from '@bingads-webui-react/i18n-context';\r\nimport { ContextualMenu, DirectionalHint, SearchBox, Spinner, SpinnerSize, Stack } from '@fluentui/react';\r\nimport { getStyles } from './styles';\r\n\r\nconst onRenderMenuHeader = columns => (\r\n \r\n {columns && columns.map(column => (\r\n {column.name}\r\n \r\n ))}\r\n \r\n);\r\n\r\nconst onRenderMenuItem = (dismissMenu, item, columns, onSelectItem) => (\r\n {\r\n dismissMenu();\r\n onSelectItem(item);\r\n }}\r\n horizontal\r\n className=\"menu-item\"\r\n role=\"menuitem\"\r\n >\r\n {columns && columns.map(column => (\r\n \r\n {column.onRender ? column.onRender(item) : item[column.key]}\r\n \r\n ))}\r\n \r\n);\r\n\r\nconst onRenderMenuLoading = i18n => (\r\n \r\n \r\n {i18n.getString(_TL_('Loading...'))}\r\n \r\n);\r\n\r\nconst onRenderMenuEmpty = (dismissMenu, i18n) => (\r\n {\r\n dismissMenu();\r\n }}\r\n horizontal\r\n className=\"menu-empty\"\r\n role=\"menuitem\"\r\n >\r\n\r\n \r\n {i18n.getString(_TL_('No results found'))}\r\n \r\n \r\n);\r\n\r\nfunction UnstyledDropdownSearchBox({\r\n i18n, classes, className, menuClassName, placeholder, searchText, onSearchTextChange, onSearchValidation, onSearch, columns, onSelectItem, items, isLoading, ariaLabel,\r\n}) {\r\n const linkRef = useRef(null);\r\n const [showMenu, setShowMenu] = useState(false);\r\n const onShowMenu = () => setShowMenu(true);\r\n const onHideMenu = () => setShowMenu(false);\r\n const [menuItems, setMenuItems] = useState([]);\r\n\r\n const onSearchWithValidation = useCallback(debounce((newSearchText) => {\r\n if (onSearchValidation && isFunction(onSearchValidation)) {\r\n const isValid = onSearchValidation(newSearchText);\r\n if (!isValid) {\r\n return;\r\n }\r\n }\r\n onShowMenu();\r\n onSearch(newSearchText);\r\n }, 500, false), [onSearch, onSearchValidation]);\r\n\r\n useEffect(() => {\r\n if (isLoading) {\r\n setMenuItems([{\r\n key: 'loading',\r\n onRender: () => onRenderMenuLoading(i18n),\r\n }]);\r\n return;\r\n }\r\n\r\n const newMenuHeader = [{\r\n key: 'menu-header',\r\n onRender: () => onRenderMenuHeader(columns),\r\n }];\r\n\r\n // render empty cases\r\n if (!items || items.length === 0) {\r\n setMenuItems(newMenuHeader.concat({\r\n key: 'menu-empty',\r\n onRender: (_item, dismissMenu) => onRenderMenuEmpty(dismissMenu, i18n),\r\n }));\r\n return;\r\n }\r\n\r\n // render non-empty case\r\n const newMenuItems = items.map((newItem, index) => ({\r\n key: `menu-item-${index}`,\r\n onRender: (_item, dismissMenu) => onRenderMenuItem(dismissMenu, newItem, columns, onSelectItem),\r\n }));\r\n setMenuItems(newMenuHeader.concat(newMenuItems));\r\n }, [columns, i18n, isLoading, items, onSelectItem]);\r\n\r\n return (\r\n
\r\n {\r\n onSearchTextChange('');\r\n }}\r\n onChange={(_, newValue) => {\r\n const text = newValue || '';\r\n onSearchTextChange(text);\r\n onSearchWithValidation(text);\r\n }}\r\n className=\"dropdown-searchbox\"\r\n ariaLabel={ariaLabel || i18n.getString(_TL_('Search box'))}\r\n />\r\n
\r\n );\r\n}\r\n\r\nUnstyledDropdownSearchBox.defaultProps = {\r\n className: '',\r\n menuClassName: '',\r\n placeholder: '',\r\n ariaLabel: '',\r\n onSearchValidation: null,\r\n isLoading: false,\r\n};\r\n\r\nUnstyledDropdownSearchBox.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n classes: PropTypes.shape({\r\n dropdownSearchContainer: PropTypes.string,\r\n dropdownSearchBoxMenu: PropTypes.string,\r\n }).isRequired,\r\n searchText: PropTypes.string.isRequired,\r\n onSearchTextChange: PropTypes.func.isRequired,\r\n onSearchValidation: PropTypes.func,\r\n onSearch: PropTypes.func.isRequired,\r\n columns: PropTypes.arrayOf(PropTypes.shape({\r\n key: PropTypes.string.isRequired,\r\n name: PropTypes.string.isRequired,\r\n onRender: PropTypes.func,\r\n })).isRequired,\r\n items: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\r\n isLoading: PropTypes.bool,\r\n onSelectItem: PropTypes.func.isRequired,\r\n className: PropTypes.string,\r\n menuClassName: PropTypes.string,\r\n placeholder: PropTypes.string,\r\n ariaLabel: PropTypes.string,\r\n};\r\n\r\nexport const DropdownSearchBox = compose(\r\n withI18nConsumer,\r\n WrappedComponent => withDefaultStyles(WrappedComponent, getStyles)\r\n)(UnstyledDropdownSearchBox);\r\n","\r\nexport function getStyles(_, { palette = {} }) {\r\n return {\r\n dropdownSearchBoxMenu: {\r\n width: 800,\r\n maxHeight: 300,\r\n '& .menu-header': {\r\n display: 'flex',\r\n color: palette.neutralPrimary,\r\n '& .ms-StackItem': {\r\n flex: 1,\r\n fontWeight: 'bold',\r\n padding: 10,\r\n '&.app-no-col': {\r\n textAlign: 'right',\r\n flex: 'none',\r\n },\r\n },\r\n },\r\n '& .menu-item': {\r\n display: 'flex',\r\n color: palette.neutralPrimary,\r\n cursor: 'pointer',\r\n '&:hover': {\r\n background: palette.neutralLighter,\r\n },\r\n '& .ms-StackItem': {\r\n flex: 1,\r\n padding: 10,\r\n overflow: 'hidden',\r\n whiteSpace: 'nowrap',\r\n },\r\n },\r\n '& .menu-empty': {\r\n padding: 10,\r\n },\r\n '& .menu-loading': {\r\n display: 'flex',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n height: 200,\r\n '& .ms-Spinner': {\r\n margin: 5,\r\n },\r\n '& span': {\r\n color: palette.themePrimary,\r\n },\r\n },\r\n },\r\n };\r\n}\r\n","export * from './src/tree-view-with-search-box';\r\nexport * from './src/dropdown-tree-view-selector';\r\n","import _ from 'underscore';\r\nimport React, { useState, useCallback, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\n\r\nimport { SearchBox } from '@fluentui/react';\r\nimport { TreeView, TreeViewProps } from '@bingads-webui-react/tree-view';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getTreeViewWithSearchBoxStyles } from './styles';\r\nimport { IconsClassNameMap } from './constants';\r\n\r\nconst TreeViewWithSearchBoxUnstyled = ({\r\n searchBoxPlaceholder,\r\n treeViewProps,\r\n classes,\r\n}) => {\r\n const cellHeight = 33;\r\n const [searchValue, setSearchValue] = useState('');\r\n\r\n const debouncedValueUpdate = useCallback(_.debounce(n => setSearchValue(n), 250));\r\n\r\n const filterNodeFunc = useCallback((node) => {\r\n const nodeName = _.result(node.name, 'toLowerCase', '');\r\n return nodeName.indexOf(searchValue.toLowerCase()) !== -1;\r\n }, [searchValue]);\r\n\r\n const filterNode = useMemo(() =>\r\n (searchValue ? filterNodeFunc : null), [filterNodeFunc, searchValue]);\r\n\r\n const getClassNames = useCallback(node => [`checkbox-node-${node.id}`], []);\r\n\r\n return (\r\n
\r\n {\r\n // This prevents searches from being executed too quickly.\r\n debouncedValueUpdate(n);\r\n }}\r\n placeholder={searchBoxPlaceholder}\r\n />\r\n \r\n
\r\n );\r\n};\r\n\r\nTreeViewWithSearchBoxUnstyled.propTypes = {\r\n searchBoxPlaceholder: PropTypes.string,\r\n treeViewProps: PropTypes.shape(TreeViewProps),\r\n classes: PropTypes.shape({\r\n treeViewWithSearchBox: PropTypes.string,\r\n }),\r\n};\r\n\r\nTreeViewWithSearchBoxUnstyled.defaultProps = {\r\n searchBoxPlaceholder: '',\r\n treeViewProps: {},\r\n classes: {},\r\n};\r\n\r\nexport const TreeViewWithSearchBox =\r\n withDefaultStyles(TreeViewWithSearchBoxUnstyled, getTreeViewWithSearchBoxStyles);\r\n","export * from './tree-view-with-search-box-styles';\r\n","export const getTreeViewWithSearchBoxStyles = (_, { palette = {} }) => ({\r\n treeViewWithSearchBox: {\r\n '& .grid-expanded-icon:before': {\r\n content: '\"\\\\E70D\"',\r\n fontFamily: 'MsAds MDL2 Assets',\r\n fontSize: '12px',\r\n color: palette.neutralSecondary,\r\n marginRight: '8px',\r\n marginTop: '2px',\r\n },\r\n '& .grid-expand-icon:before': {\r\n content: '\"\\\\E76C\"',\r\n fontFamily: 'MsAds MDL2 Assets',\r\n fontSize: '12px',\r\n color: palette.neutralSecondary,\r\n marginRight: '8px',\r\n marginTop: '2px',\r\n },\r\n '& .tree-view-container': {\r\n paddingLeft: 8,\r\n },\r\n },\r\n});\r\n","export const IconsClassNameMap = {\r\n expanded: 'grid-expanded-icon',\r\n collapsed: 'grid-expand-icon',\r\n lastChild: '',\r\n};\r\n","/* eslint-disable max-len */\r\nimport _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useCallback, useEffect, useMemo, useRef } from 'react';\r\nimport { Dropdown, Callout, DirectionalHint } from '@fluentui/react';\r\nimport { CheckBoxNode, TreeViewProps } from '@bingads-webui-react/tree-view';\r\nimport { TreeViewWithSearchBox } from './tree-view-with-search-box';\r\nimport { getSelectedNodes } from './utils';\r\n\r\nexport const DropdownTreeViewSelector = ({\r\n searchBoxPlaceholder,\r\n treeViewProps,\r\n dropdownProps,\r\n onChange,\r\n}) => {\r\n const dropdownRootRef = useRef(null);\r\n // use dummyOptions and selectedKey to make sure customized onRenderTitle always get called\r\n const dummyOptions = useMemo(() => [{ key: 1 }], []);\r\n const selectedNodes = useMemo(() => getSelectedNodes(treeViewProps.nodes), [treeViewProps.nodes]);\r\n const mergedSelectedNodes = useMemo(() => selectedNodes.filter((node) => {\r\n const parentIds = _.result(node, 'parents', []);\r\n return !parentIds.some(parentId => selectedNodes.some(parentNode => parentNode.id === parentId));\r\n }), [selectedNodes]);\r\n\r\n useEffect(() => {\r\n if (onChange) {\r\n onChange({\r\n selectedNodes,\r\n mergedSelectedNodes,\r\n });\r\n }\r\n }, [selectedNodes, mergedSelectedNodes, onChange]);\r\n\r\n const onRenderContainer = useCallback((props) => {\r\n const { calloutProps, dropdownWidth, onDismiss } = props;\r\n\r\n let calloutWidth;\r\n let calloutMinWidth;\r\n calloutMinWidth = dropdownRootRef.current ? dropdownRootRef.current.clientWidth : 0;\r\n if (dropdownWidth === 'auto') {\r\n calloutMinWidth = dropdownRootRef.current ? dropdownRootRef.current.clientWidth : 0;\r\n } else {\r\n calloutWidth = dropdownWidth || (dropdownRootRef.current ? dropdownRootRef.current.clientWidth : 0);\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n }, [searchBoxPlaceholder, treeViewProps]);\r\n\r\n const onRenderTitle = useCallback(() => (\r\n \r\n {mergedSelectedNodes.map(item => item.name).join(', ')}\r\n \r\n ), [mergedSelectedNodes]);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nDropdownTreeViewSelector.propTypes = {\r\n searchBoxPlaceholder: PropTypes.string,\r\n treeViewProps: PropTypes.shape(TreeViewProps),\r\n dropdownProps: PropTypes.shape({}),\r\n onChange: PropTypes.func,\r\n};\r\n\r\nDropdownTreeViewSelector.defaultProps = {\r\n searchBoxPlaceholder: '',\r\n treeViewProps: {},\r\n dropdownProps: {},\r\n onChange: null,\r\n};\r\n","import { reduce } from 'underscore';\r\n\r\nexport const getSelectedNodes = nodes => reduce(nodes, (selectedNodes, node) => {\r\n if (node.state && node.state.checked) {\r\n selectedNodes.push(node);\r\n }\r\n if (node.children) {\r\n selectedNodes.push(...getSelectedNodes(node.children));\r\n }\r\n return selectedNodes;\r\n}, []);\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__4__;","export * from './src/index';\r\n","export { EventProvider, useEventContext } from './EventProvider';\r\nexport { EventConsumer } from './EventConsumer';\r\nexport { withEvent } from './with-event';\r\nexport { useEvent } from './use-event';\r\n","import React, {\r\n createContext,\r\n useState,\r\n useContext,\r\n} from 'react';\r\n\r\ninterface EventProviderProps {\r\n children: React.ReactNode;\r\n}\r\ninterface EventHandler {\r\n (data: any): void\r\n}\r\ninterface Listeners {\r\n [key: string]: Array;\r\n}\r\n\r\nexport interface EmitEvent {\r\n (event: string, data: any): void\r\n}\r\n\r\nexport interface AddEvent {\r\n (event: string, callback: EventHandler): void\r\n}\r\n\r\nexport interface RemoveEvent {\r\n (event: string, callback: EventHandler): void\r\n}\r\n\r\nexport interface EventContextType {\r\n emit: EmitEvent;\r\n on: AddEvent;\r\n remove: RemoveEvent;\r\n}\r\n\r\nconst defaultEventContext: EventContextType = {\r\n emit: () => { },\r\n on: () => { },\r\n remove: () => { },\r\n};\r\n\r\nconst EventContext = createContext(defaultEventContext);\r\n\r\nexport const EventProvider: React.FC = ({ children }) => {\r\n const [listeners, setListeners] = useState({});\r\n\r\n const emit: EmitEvent = (event, data) => {\r\n listeners[event]?.forEach((callback: EventHandler) => callback?.(data));\r\n };\r\n\r\n const on: AddEvent = (event, callback) => {\r\n setListeners((prevListeners: Listeners) => ({\r\n ...prevListeners,\r\n [event]: [...(prevListeners[event] || []), callback],\r\n }));\r\n };\r\n\r\n const remove: RemoveEvent = (event, callback) => {\r\n setListeners((prevListeners: Listeners) => ({\r\n ...prevListeners,\r\n [event]: prevListeners[event]?.filter((handler) => handler !== callback),\r\n }));\r\n };\r\n\r\n const value = React.useMemo(() => ({ emit, on, remove }), [emit, on, remove]);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport const useEventContext = (): EventContextType => {\r\n const context = useContext(EventContext);\r\n\r\n if (!context) {\r\n throw new Error('useEventContext must be used within an EventProvider');\r\n }\r\n\r\n return context;\r\n};\r\n","import React, { useState } from 'react';\r\nimport { useEvent } from './use-event';\r\n\r\ninterface EventConsumerProps {\r\n event: string;\r\n children: (data: any) => React.ReactNode;\r\n}\r\n\r\nexport const EventConsumer: React.FC = ({ event, children }) => {\r\n const [data, setData] = useState(null);\r\n\r\n useEvent(event, setData);\r\n\r\n return <>{children(data)};\r\n};\r\n","import {\r\n useCallback,\r\n useEffect,\r\n} from 'react';\r\nimport { useEventContext } from './EventProvider';\r\n\r\nexport interface UseEventHookTrigger {\r\n (data: any): void;\r\n}\r\n\r\nexport interface UseEventHookHandler {\r\n (data: any): void;\r\n}\r\n\r\nexport interface UseEventHook {\r\n (event: string, handler?: UseEventHookHandler): UseEventHookTrigger\r\n}\r\n\r\nexport const useEvent: UseEventHook = (event, handler) => {\r\n const { emit, on, remove } = useEventContext();\r\n\r\n const onEvent = useCallback(\r\n (data: any) => {\r\n handler?.(data);\r\n },\r\n [handler],\r\n );\r\n\r\n useEffect(() => {\r\n on(event, onEvent);\r\n\r\n return () => {\r\n remove(event, onEvent);\r\n };\r\n }, [event, onEvent]);\r\n\r\n return (data: any) => emit(event, data);\r\n};\r\n","import React from 'react';\r\nimport {\r\n useEventContext, EmitEvent, AddEvent, RemoveEvent,\r\n} from './EventProvider';\r\n\r\nexport interface WithEventProps {\r\n emit: EmitEvent, on: AddEvent, remove: RemoveEvent\r\n}\r\n\r\nexport function withEvent

(WrappedComponent: React.ComponentType

) {\r\n return (props: P & Partial) => {\r\n const { emit, on, remove } = useEventContext();\r\n\r\n return ;\r\n };\r\n}\r\n","export * from './src';\r\n","export { Form } from './core/form';\r\nexport { useFormService } from './core/form-service';\r\nexport { FormContent } from './core/form-content';\r\nexport { FORM_EVENTS, FORM_STATES } from './machine/machine-config';\r\nexport { createFormMachine } from './machine/machine-factory';\r\nexport { Layout, LayoutContainer } from './layout/layout-container';\r\nexport * from './components';\r\n","import React, { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { defaultConfig } from './default-config';\r\nimport { NewFormService, CustomFormService } from './form-service';\r\nimport { FormConfigPropsShape } from './form-props';\r\n\r\nexport const Form = (props) => {\r\n const {\r\n config,\r\n children,\r\n } = props;\r\n\r\n const mergedConfig = useMemo(() => ({\r\n ...defaultConfig,\r\n ...config,\r\n }), [config]);\r\n\r\n const { render, machineOptions } = mergedConfig;\r\n const { machineService } = machineOptions;\r\n\r\n const FormService = machineService ? CustomFormService : NewFormService;\r\n\r\n return (\r\n \r\n {children || render()}\r\n \r\n );\r\n};\r\n\r\nForm.propTypes = {\r\n config: PropTypes.shape(FormConfigPropsShape).isRequired,\r\n children: PropTypes.node,\r\n};\r\n\r\nForm.defaultProps = {\r\n children: null,\r\n};\r\n","import React from 'react';\r\nimport { FormContent } from './form-content';\r\n\r\nexport const defaultConfig = {\r\n view: () => null,\r\n repository: () => ({}),\r\n render: () => ,\r\n machineOptions: {},\r\n};\r\n","import React from 'react';\r\nimport { DataRepository } from '../components/data-repository';\r\nimport { ViewContainer } from '../components/view-container';\r\nimport { DynamicFetcher } from '../components/dynamic-fetcher';\r\n\r\nexport const FormContent = () => (\r\n <>\r\n \r\n \r\n \r\n \r\n);\r\n","import _ from 'underscore';\r\nimport React from 'react';\r\nimport { useFormService } from '../core/form-service';\r\nimport { useDataLoader } from '../data/use-data-loader';\r\nimport { useDataSaver } from '../data/use-data-saver';\r\nimport { FORM_STATES } from '../machine/machine-config';\r\n\r\nconst DataRepositoryInternal = () => {\r\n const { state, send, config: dynamicConfig } = useFormService();\r\n const config = _.get(state, ['context', 'config']);\r\n\r\n const { repository: useRepository } = config;\r\n const { repositoryProps } = dynamicConfig;\r\n\r\n const { load, save } = useRepository(repositoryProps);\r\n\r\n useDataLoader({ load, state, send });\r\n useDataSaver({ save, state, send });\r\n\r\n return null;\r\n};\r\n\r\nexport const DataRepository = () => {\r\n const { state } = useFormService();\r\n const isFetching = state.matches(FORM_STATES.FETCHING);\r\n const config = _.get(state, ['context', 'config']);\r\n const { repositoryWrapper: RepositoryWrapper = React.Fragment } = config;\r\n\r\n return (!isFetching &&\r\n \r\n \r\n \r\n );\r\n};\r\n","import React, { useContext, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { useActor, useInterpret } from '@xstate/react';\r\n\r\nimport { createFormMachine } from '../machine/machine-factory';\r\nimport { FormConfigPropsShape } from './form-props';\r\n\r\nconst FormServiceContext = React.createContext();\r\n\r\nexport const useFormService = () => {\r\n const [formService, config] = useContext(FormServiceContext);\r\n const [state] = useActor(formService);\r\n\r\n return {\r\n config,\r\n state,\r\n send: formService.send,\r\n };\r\n};\r\n\r\nexport const CustomFormService = (props) => {\r\n const {\r\n config,\r\n children,\r\n } = props;\r\n\r\n const { machineOptions } = config;\r\n const { machineService } = machineOptions;\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nCustomFormService.propTypes = {\r\n config: PropTypes.shape(FormConfigPropsShape).isRequired,\r\n children: PropTypes.node,\r\n};\r\n\r\nCustomFormService.defaultProps = {\r\n children: null,\r\n};\r\n\r\nexport const NewFormService = (props) => {\r\n const {\r\n config,\r\n children,\r\n } = props;\r\n\r\n const { machineOptions, id: machineId } = config;\r\n\r\n const {\r\n initialState,\r\n observer,\r\n ...options\r\n } = machineOptions;\r\n\r\n const formMachine = useMemo(() => createFormMachine({\r\n machineId,\r\n initialState,\r\n context: { config },\r\n // useInterpret will listen to options change, so we don't need to create machine again\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }), []);\r\n\r\n const formService = useInterpret(formMachine, options, observer);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nNewFormService.propTypes = {\r\n config: PropTypes.shape(FormConfigPropsShape).isRequired,\r\n children: PropTypes.node,\r\n};\r\n\r\nNewFormService.defaultProps = {\r\n children: null,\r\n};\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__562__;","import { createMachine } from 'xstate';\r\n\r\nimport {\r\n FormMachine,\r\n DefaultContext,\r\n DefaultActions,\r\n DefaultGuards,\r\n DefaultInitialState,\r\n DefaultMachineId,\r\n} from './machine-config';\r\nimport { defaultConfig } from '../core/default-config';\r\n\r\nexport const createFormMachine = ({\r\n machineId,\r\n initialState,\r\n context: overrideContext,\r\n guards: overrideGuards,\r\n actions: overrideActions,\r\n}) => {\r\n const machine = {\r\n ...FormMachine,\r\n id: machineId || DefaultMachineId,\r\n initial: initialState || DefaultInitialState,\r\n context: {\r\n ...DefaultContext,\r\n ...overrideContext,\r\n config: {\r\n ...defaultConfig,\r\n ...(overrideContext ? overrideContext.config : {}),\r\n },\r\n },\r\n };\r\n\r\n // Below options can also be overridden thru useInterpret options\r\n const options = {\r\n actions: {\r\n ...DefaultActions,\r\n ...overrideActions,\r\n },\r\n guards: {\r\n ...DefaultGuards,\r\n ...overrideGuards,\r\n },\r\n };\r\n return createMachine(machine, options);\r\n};\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__564__;","import _ from 'underscore';\r\nimport { assign } from 'xstate';\r\n\r\nexport const FORM_STATES = {\r\n FETCHING: 'FETCHING',\r\n INIT: 'INIT',\r\n LOADING: 'LOADING',\r\n LOADING_FAILED: 'LOADING_FAILED',\r\n ACTIVE: 'ACTIVE',\r\n CANCELING: 'CANCELING',\r\n CONFIRMING: 'CONFIRMING',\r\n SAVING: 'SAVING',\r\n SAVING_SUCCEEDED: 'SAVING_SUCCEEDED',\r\n SAVING_FAILED: 'SAVING_FAILED',\r\n CANCELED: 'CANCELED',\r\n};\r\n\r\nexport const FORM_EVENTS = {\r\n UPDATE_CONFIG: 'UPDATE_CONFIG',\r\n DONE_FETCHING: 'DONE_FETCHING',\r\n\r\n LOAD: 'LOAD',\r\n DONE_LOADING: 'DONE_LOADING',\r\n FAILED_LOADING: 'FAILED_LOADING',\r\n\r\n CHANGE_DATA: 'CHANGE_DATA',\r\n\r\n CANCEL: 'CANCEL',\r\n ABORT_CANCEL: 'ABORT_CANCEL',\r\n CONFIRM_CANCEL: 'CONFIRM_CANCEL',\r\n\r\n SAVE: 'SAVE',\r\n ABORT_SAVE: 'ABORT_SAVE',\r\n CONFIRM_SAVE: 'CONFIRM_SAVE',\r\n\r\n DONE_SAVING: 'DONE_SAVING',\r\n FAILED_SAVING: 'FAILED_SAVING',\r\n};\r\n\r\nexport const DefaultActions = {\r\n setInitialData: assign({\r\n data: (context, event) => (!_.isUndefined(event.data) ? _.clone(event.data) : context.data),\r\n initialData: (context, event) => (!_.isUndefined(event.data) ? _.clone(event.data) : context.initialData),\r\n }),\r\n setError: assign({\r\n error: (context, event) => event.error,\r\n }),\r\n changeData: assign({\r\n data: (context, event) => {\r\n if (_.isFunction(event.data)) {\r\n const newData = event.data(context.data);\r\n if (_.isEqual(newData, context.data)) {\r\n return context.data;\r\n }\r\n return _.clone(newData);\r\n }\r\n if (_.isUndefined(event.data) || _.isEqual(event.data, context.data)) {\r\n return context.data;\r\n }\r\n return _.clone(event.data);\r\n },\r\n }),\r\n cleanErrorIfDataChanged: assign({\r\n error: (context, event) => {\r\n if (_.isFunction(event.data)) {\r\n const newData = event.data(context.data);\r\n if (_.isEqual(newData, context.data)) {\r\n return context.error;\r\n }\r\n return undefined;\r\n }\r\n if (_.isUndefined(event.data) || _.isEqual(event.data, context.data)) {\r\n return context.error;\r\n }\r\n return undefined;\r\n },\r\n }),\r\n setDataOnError: assign({\r\n data: (context, event) => (!_.isUndefined(event.data) ? _.clone(event.data) : context.data),\r\n // allow change initialData for partial successful load/save\r\n initialData: (context, event) => (!_.isUndefined(event.initialData) ? _.clone(event.initialData) : context.initialData),\r\n }),\r\n setSaveFailed: assign({\r\n saveFailed: () => true,\r\n }),\r\n setIsValid: assign({\r\n isValid: (context, event) => (_.isBoolean(event.isValid) ? event.isValid : context.isValid),\r\n }),\r\n setIsDirty: assign({\r\n isDirty: (context, event) => !_.isEqual(context.initialData, event.data),\r\n }),\r\n cleanError: assign({\r\n error: () => undefined,\r\n }),\r\n resetStates: assign({\r\n isValid: () => true,\r\n isDirty: () => false,\r\n }),\r\n updateConfig: assign({\r\n config: (context, event) => _.extend({}, context.config, event.config),\r\n }),\r\n\r\n // Default callback actions on state changes\r\n onFetching: _.noop,\r\n onLoading: _.noop,\r\n onDoneLoading: _.noop,\r\n onFailedLoading: _.noop,\r\n onActive: _.noop,\r\n onCanceling: _.noop,\r\n onConfirming: _.noop,\r\n onSaving: _.noop,\r\n onDoneSaving: _.noop,\r\n onFailedSaving: _.noop,\r\n onCanceled: _.noop,\r\n onSyncContext: _.noop, // This should be called when the context is updated\r\n};\r\n\r\nexport const DefaultGuards = {\r\n // Can be overridden thru machineOptions.guards\r\n // Eg. needsSaving: context => context.isDirty,\r\n isManualLoad: () => false,\r\n needsLoading: () => true,\r\n needsSaving: () => true,\r\n needsConfirming: () => false,\r\n needsCanceling: () => false,\r\n};\r\n\r\nexport const DefaultMachineId = 'FormStateMachine';\r\n\r\nexport const DefaultInitialState = FORM_STATES.LOADING;\r\n\r\nexport const DefaultContext = {\r\n config: {},\r\n data: undefined,\r\n initialData: undefined,\r\n error: undefined,\r\n isValid: true,\r\n isDirty: false,\r\n};\r\n\r\nexport const FormMachine = {\r\n id: DefaultMachineId,\r\n initial: DefaultInitialState,\r\n context: DefaultContext,\r\n preserveActionOrder: true,\r\n states: {\r\n [FORM_STATES.FETCHING]: {\r\n entry: ['onFetching'],\r\n on: {\r\n [FORM_EVENTS.UPDATE_CONFIG]: {\r\n actions: ['updateConfig', 'onSyncContext'],\r\n },\r\n [FORM_EVENTS.DONE_FETCHING]: [\r\n { target: FORM_STATES.INIT, cond: 'isManualLoad' },\r\n { target: FORM_STATES.LOADING, cond: 'needsLoading' },\r\n { target: FORM_STATES.ACTIVE },\r\n ],\r\n },\r\n },\r\n [FORM_STATES.INIT]: {\r\n on: {\r\n [FORM_EVENTS.LOAD]: [\r\n { target: FORM_STATES.LOADING, cond: 'needsLoading' },\r\n { target: FORM_STATES.ACTIVE },\r\n ],\r\n },\r\n },\r\n [FORM_STATES.LOADING]: {\r\n entry: ['onLoading'],\r\n on: {\r\n [FORM_EVENTS.DONE_LOADING]: {\r\n target: FORM_STATES.ACTIVE,\r\n actions: ['setInitialData', 'onDoneLoading', 'onSyncContext'],\r\n },\r\n [FORM_EVENTS.FAILED_LOADING]: {\r\n target: FORM_STATES.LOADING_FAILED,\r\n actions: ['setDataOnError', 'setError', 'onSyncContext'],\r\n },\r\n },\r\n },\r\n [FORM_STATES.LOADING_FAILED]: {\r\n entry: ['onFailedLoading'],\r\n on: {\r\n [FORM_EVENTS.LOAD]: FORM_STATES.LOADING,\r\n },\r\n },\r\n [FORM_STATES.ACTIVE]: {\r\n entry: ['onActive', 'onSyncContext'],\r\n on: {\r\n [FORM_EVENTS.CHANGE_DATA]: {\r\n actions: ['cleanErrorIfDataChanged', 'changeData', 'setIsValid', 'setIsDirty', 'onSyncContext'],\r\n },\r\n [FORM_EVENTS.CANCEL]: [\r\n { target: FORM_STATES.CANCELING, cond: 'needsCanceling' },\r\n { target: FORM_STATES.CANCELED },\r\n ],\r\n [FORM_EVENTS.SAVE]: [\r\n { target: FORM_STATES.CONFIRMING, cond: 'needsConfirming' },\r\n { target: FORM_STATES.SAVING, cond: 'needsSaving' },\r\n { target: FORM_STATES.SAVING_SUCCEEDED },\r\n ],\r\n [FORM_EVENTS.LOAD]: [\r\n { target: FORM_STATES.LOADING, cond: 'needsLoading' },\r\n { target: FORM_STATES.ACTIVE },\r\n ],\r\n },\r\n },\r\n [FORM_STATES.CANCELING]: {\r\n entry: ['onCanceling'],\r\n on: {\r\n [FORM_EVENTS.CONFIRM_CANCEL]: FORM_STATES.CANCELED,\r\n [FORM_EVENTS.ABORT_CANCEL]: FORM_STATES.ACTIVE,\r\n },\r\n },\r\n [FORM_STATES.CONFIRMING]: {\r\n entry: ['onConfirming'],\r\n on: {\r\n [FORM_EVENTS.CHANGE_DATA]: {\r\n actions: ['cleanErrorIfDataChanged', 'changeData', 'setIsValid', 'setIsDirty', 'onSyncContext'],\r\n },\r\n [FORM_EVENTS.CONFIRM_SAVE]: [\r\n { target: FORM_STATES.SAVING, cond: 'needsSaving' },\r\n { target: FORM_STATES.SAVING_SUCCEEDED },\r\n ],\r\n [FORM_EVENTS.ABORT_SAVE]: FORM_STATES.ACTIVE,\r\n },\r\n },\r\n [FORM_STATES.SAVING]: {\r\n entry: ['onSaving'],\r\n on: {\r\n [FORM_EVENTS.CHANGE_DATA]: {\r\n actions: ['cleanErrorIfDataChanged', 'changeData', 'setIsValid', 'setIsDirty', 'onSyncContext'],\r\n },\r\n [FORM_EVENTS.DONE_SAVING]: {\r\n target: FORM_STATES.SAVING_SUCCEEDED,\r\n actions: ['setInitialData', 'resetStates', 'cleanError', 'onSyncContext'],\r\n },\r\n [FORM_EVENTS.FAILED_SAVING]: {\r\n target: FORM_STATES.SAVING_FAILED,\r\n actions: ['setSaveFailed', 'setDataOnError', 'setError', 'onSyncContext'],\r\n },\r\n [FORM_EVENTS.ABORT_SAVE]: FORM_STATES.ACTIVE,\r\n },\r\n },\r\n [FORM_STATES.SAVING_SUCCEEDED]: {\r\n entry: ['onDoneSaving'],\r\n after: {\r\n 0: { target: FORM_STATES.ACTIVE },\r\n },\r\n },\r\n [FORM_STATES.SAVING_FAILED]: {\r\n entry: ['onFailedSaving'],\r\n after: {\r\n 0: { target: FORM_STATES.ACTIVE },\r\n },\r\n },\r\n [FORM_STATES.CANCELED]: {\r\n entry: ['onCanceled'],\r\n after: {\r\n 0: { target: FORM_STATES.ACTIVE },\r\n },\r\n },\r\n },\r\n};\r\n","import PropTypes from 'prop-types';\r\n\r\nexport const FormConfigPropsShape = {\r\n id: PropTypes.string, // machine id\r\n view: PropTypes.func,\r\n viewProps: PropTypes.shape({}),\r\n repository: PropTypes.func,\r\n repositoryProps: PropTypes.shape({}),\r\n machineOptions: PropTypes.shape({\r\n machineService: PropTypes.shape({}), // register by Parent Machine\r\n\r\n initialState: PropTypes.string, // initial state\r\n context: PropTypes.shape({}), // initial context\r\n guards: PropTypes.shape({}), // guards: needsLoading, needsSaving, needsConfirming\r\n actions: PropTypes.shape({}), // actions: onLoading, onSaving etc.\r\n observer: PropTypes.oneOfType([\r\n PropTypes.func,\r\n PropTypes.shape({}),\r\n ]),\r\n }),\r\n render: PropTypes.func,\r\n};\r\n","import _ from 'underscore';\r\nimport { useEffect, useState, useCallback } from 'react';\r\nimport { FORM_STATES, FORM_EVENTS } from '../machine/machine-config';\r\nimport { isPromise } from './is-promise';\r\n\r\nexport const useDataLoader = ({ load, state, send }) => {\r\n const [isLoading, setIsLoading] = useState(false);\r\n const shouldLoad = state.matches(FORM_STATES.LOADING);\r\n const currentData = _.get(state, ['context', 'data']);\r\n\r\n const onDoneLoading = useCallback((data) => {\r\n send(FORM_EVENTS.DONE_LOADING, { data });\r\n }, [send]);\r\n\r\n const onFailedLoading = useCallback(({ data, initialData, error } = {}) => {\r\n send(FORM_EVENTS.FAILED_LOADING, { data, initialData, error });\r\n }, [send]);\r\n\r\n useEffect(() => {\r\n if (shouldLoad && !isLoading) {\r\n if (!load) {\r\n onDoneLoading();\r\n return;\r\n }\r\n setIsLoading(true);\r\n const res = load({\r\n data: currentData,\r\n onComplete: onDoneLoading,\r\n onError: onFailedLoading,\r\n });\r\n if (isPromise(res)) {\r\n res.then(onDoneLoading).catch(onFailedLoading);\r\n }\r\n } else if (!shouldLoad && isLoading) {\r\n setIsLoading(false);\r\n }\r\n }, [currentData, isLoading, load, onDoneLoading, onFailedLoading, shouldLoad]);\r\n};\r\n","import _ from 'underscore';\r\n\r\n// A function that returns true if the given object is a promise.\r\nexport const isPromise = obj => _.isObject(obj) && _.isFunction(obj.then) && _.isFunction(obj.catch);\r\n","import _ from 'underscore';\r\nimport { useEffect, useState, useCallback } from 'react';\r\nimport { FORM_STATES, FORM_EVENTS } from '../machine/machine-config';\r\nimport { isPromise } from './is-promise';\r\n\r\nexport const useDataSaver = ({ save, state, send }) => {\r\n const [isSaving, setIsSaving] = useState(false);\r\n const shouldSave = state.matches(FORM_STATES.SAVING);\r\n const currentData = _.get(state, ['context', 'data']);\r\n const isValid = _.get(state, ['context', 'isValid']);\r\n const initData = _.get(state, ['context', 'initialData']);\r\n\r\n const onDoneSaving = useCallback((data) => {\r\n send(FORM_EVENTS.DONE_SAVING, { data });\r\n }, [send]);\r\n\r\n const onFailedSaving = useCallback(({ data, initialData, error } = {}) => {\r\n send(FORM_EVENTS.FAILED_SAVING, { data, initialData, error });\r\n }, [send]);\r\n\r\n useEffect(() => {\r\n if (shouldSave && !isSaving) {\r\n if (!save) {\r\n onDoneSaving();\r\n return;\r\n }\r\n if (!isValid) {\r\n onFailedSaving();\r\n return;\r\n }\r\n setIsSaving(true);\r\n const res = save({\r\n data: currentData,\r\n initialData: initData,\r\n onComplete: onDoneSaving,\r\n onError: onFailedSaving,\r\n });\r\n if (isPromise(res)) {\r\n res.then(onDoneSaving).catch(onFailedSaving);\r\n }\r\n } else if (!shouldSave && isSaving) {\r\n setIsSaving(false);\r\n }\r\n }, [isSaving, save, onDoneSaving, onFailedSaving, shouldSave, currentData, initData, isValid]);\r\n};\r\n","import _ from 'underscore';\r\nimport React, { useCallback } from 'react';\r\nimport { useFormService } from '../core/form-service';\r\nimport { FORM_EVENTS, FORM_STATES } from '../machine/machine-config';\r\n\r\nexport const ViewContainer = React.memo(() => {\r\n const { state, send, config: dynamicConfig } = useFormService();\r\n const config = _.get(state, ['context', 'config']);\r\n const { view: View } = config;\r\n const { viewProps } = dynamicConfig;\r\n\r\n const currentData = _.get(state, ['context', 'data']);\r\n const currentError = _.get(state, ['context', 'error']);\r\n\r\n const onDataChange = useCallback(({ data, isValid }) => {\r\n send(FORM_EVENTS.CHANGE_DATA, { data, isValid });\r\n }, [send]);\r\n\r\n const isFetching = state.matches(FORM_STATES.FETCHING);\r\n\r\n if (isFetching) {\r\n return

;\r\n }\r\n\r\n return (\r\n \r\n );\r\n});\r\n","import React, { useState, useEffect } from 'react';\r\nimport { useFormService } from '../core/form-service';\r\nimport { FORM_STATES, FORM_EVENTS } from '../machine/machine-config';\r\nimport { ViewFetcher } from '../data/view-fetcher';\r\nimport { RepositoryFetcher } from '../data/repository-fetcher';\r\n\r\nexport const DynamicFetcher = () => {\r\n const { state, send } = useFormService();\r\n const isFetching = state.matches(FORM_STATES.FETCHING);\r\n\r\n const [isViewFetched, setIsViewFetched] = useState(false);\r\n const [isRepositoryFetched, setIsRepositoryFetched] = useState(false);\r\n\r\n useEffect(() => {\r\n if (isViewFetched && isRepositoryFetched && isFetching) {\r\n send(FORM_EVENTS.DONE_FETCHING);\r\n }\r\n }, [isFetching, isRepositoryFetched, isViewFetched, send]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n );\r\n};\r\n","import _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport { useEffect, useState } from 'react';\r\nimport { useFormService } from '../core/form-service';\r\nimport { FORM_STATES, FORM_EVENTS } from '../machine/machine-config';\r\nimport { isPromise } from './is-promise';\r\n\r\nexport const ViewFetcher = ({ isViewFetched, setIsViewFetched }) => {\r\n const [chunkError, setChunkError] = useState(null);\r\n const { state, send } = useFormService();\r\n const config = _.get(state, ['context', 'config']);\r\n const { view } = config;\r\n\r\n const isFetching = state.matches(FORM_STATES.FETCHING);\r\n\r\n useEffect(() => {\r\n if (!isViewFetched && isFetching) {\r\n let viewPromise;\r\n\r\n if (_.isFunction(view)) {\r\n try {\r\n viewPromise = view();\r\n } catch (e) {\r\n // if error is thrown, then view could already be loaded\r\n }\r\n }\r\n\r\n if (!viewPromise || !isPromise(viewPromise)) {\r\n setIsViewFetched(true);\r\n return;\r\n }\r\n // If view is a promise, then we need to wait for it to resolve\r\n view().then((resolvedView) => {\r\n setIsViewFetched(true);\r\n send(FORM_EVENTS.UPDATE_CONFIG, { config: { view: resolvedView } });\r\n }).catch((e) => {\r\n if (e && e.name === 'ChunkLoadError') {\r\n setChunkError(e);\r\n }\r\n });\r\n }\r\n }, [isFetching, isViewFetched, send, setIsViewFetched, view]);\r\n\r\n useEffect(() => {\r\n if (chunkError) {\r\n throw chunkError;\r\n }\r\n }, [chunkError]);\r\n\r\n return null;\r\n};\r\n\r\nViewFetcher.propTypes = {\r\n isViewFetched: PropTypes.bool.isRequired,\r\n setIsViewFetched: PropTypes.func.isRequired,\r\n};\r\n","import _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useState, useRef, useEffect, useCallback } from 'react';\r\nimport { useFormService } from '../core/form-service';\r\nimport { FORM_STATES, FORM_EVENTS } from '../machine/machine-config';\r\nimport { isPromise } from './is-promise';\r\n\r\nexport const RepositoryFetcher = ({ isRepositoryFetched, setIsRepositoryFetched }) => {\r\n const [chunkError, setChunkError] = useState(null);\r\n const { state, send } = useFormService();\r\n const config = _.get(state, ['context', 'config']);\r\n const isFetching = state.matches(FORM_STATES.FETCHING);\r\n const [isFactoryResolved, setIsFactoryResolved] = useState(false);\r\n const { repository } = config;\r\n const lazyComponent = useRef(null);\r\n\r\n useEffect(() => {\r\n if (!isRepositoryFetched && isFetching && !isFactoryResolved) {\r\n let repositoryPromise;\r\n\r\n if (_.isFunction(repository)) {\r\n try {\r\n repositoryPromise = repository();\r\n } catch (e) {\r\n // if error is thrown, then repository could already be loaded\r\n }\r\n }\r\n\r\n if (!repositoryPromise || !isPromise(repositoryPromise)) {\r\n setIsRepositoryFetched(true);\r\n return;\r\n }\r\n\r\n if (isPromise(repositoryPromise)) {\r\n repositoryPromise.then((resolvedConfig) => {\r\n lazyComponent.current = resolvedConfig;\r\n setIsFactoryResolved(true);\r\n send(FORM_EVENTS.UPDATE_CONFIG, { config: { repositoryWrapper: resolvedConfig } });\r\n }).catch((e) => {\r\n if (e && e.name === 'ChunkLoadError') {\r\n setChunkError(e);\r\n }\r\n });\r\n }\r\n }\r\n }, [isFactoryResolved, isFetching, isRepositoryFetched, repository, send, setIsRepositoryFetched]);\r\n\r\n useEffect(() => {\r\n if (chunkError) {\r\n throw chunkError;\r\n }\r\n }, [chunkError]);\r\n\r\n const updateRepositoryCallback = useCallback((callbackRepository) => {\r\n if (!isRepositoryFetched) {\r\n setIsRepositoryFetched(true);\r\n send(FORM_EVENTS.UPDATE_CONFIG, { config: { repository: callbackRepository } });\r\n }\r\n }, [isRepositoryFetched, send, setIsRepositoryFetched]);\r\n\r\n return (\r\n lazyComponent.current ? : null\r\n );\r\n};\r\n\r\nRepositoryFetcher.propTypes = {\r\n isRepositoryFetched: PropTypes.bool.isRequired,\r\n setIsRepositoryFetched: PropTypes.func.isRequired,\r\n};\r\n","import _ from 'underscore';\r\nimport React, { useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nexport const Layout = () => null;\r\n\r\nexport const LayoutContainer = ({\r\n children,\r\n template: Template,\r\n ...templateProps\r\n}) => {\r\n const items = useRef({});\r\n const childrenCache = useRef({});\r\n const childrenArray = React.Children.toArray(children);\r\n\r\n _.each(childrenArray, (child) => {\r\n if (child.type === Layout || child.type.displayName === 'Layout' || child.type.name === 'Layout') {\r\n const { type, component: Component, ...rest } = child.props;\r\n if (!childrenCache.current[type]\r\n || !_.isEqual(childrenCache.current[type].component, Component)\r\n || !_.isEqual(childrenCache.current[type].componentProps, rest)) {\r\n childrenCache.current[type] = {\r\n component: Component,\r\n componentProps: rest,\r\n };\r\n items.current[type] = props => {props.children};\r\n }\r\n }\r\n });\r\n\r\n return