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,Q","sources":["../webpack/bootstrap","../../../../../../../../external/prop-types","../../../../../../../../external/react","../webpack-src:/lazy-image/index.js","../webpack-src:/lazy-image/src/image.js","../webpack-src:/lazy-image/src/loading-place-holder.js","../../../../../../../../external/underscore","../webpack-src:/legacy-i18n-context/index.js","../webpack-src:/legacy-i18n-context/src/legacy-i18n-context.js","../../../../../../../../external/classnames","../../../../../../../../external/@bingads-webui-react/with-default-styles","../webpack-src:/masonry-layout/index.js","../webpack-src:/masonry-layout/src/index.js","../webpack-src:/masonry-layout/src/get-styles.js","../webpack-src:/multiline-ellipsis/index.js","../webpack-src:/multiline-ellipsis/src/multi-line-ellipsis-text.js","../webpack-src:/primitive-validation-fluent/index.js","../../../../../../../../external/@bingads-webui-react/validation","../webpack-src:/primitive-validation-fluent/src/validated-field.js","../../../../../../../../external/@fluentui/react-components","../../../../../../../../external/@bingads-webui-react/primitive","../../../../../../../../external/@bingads-webui-react/hoc-with-signal","../webpack-src:/primitive-with-signal/index.js","../webpack-src:/primitive-with-signal/src/with-signal-primitive.js","../../../../../../../../external/@bingads-webui-react/primitive-validation","../webpack-src:/primitive-with-validation-and-signal/index.js","../webpack-src:/primitive-with-validation-and-signal/src/primitive-with-signal-and-validation.js","../webpack-src:/progress/index.js","../webpack-src:/progress/src/progress.js","../webpack-src:/progress/src/radial-progress.js","../webpack-src:/progress/src/getStyles.js","../webpack-src:/step-progress-indicator/index.js","../webpack-src:/step-progress-indicator/src/index.js","../webpack-src:/step-progress-indicator/src/vertical-step-list.js","../webpack-src:/step-progress-indicator/src/utils.js","../webpack-src:/step-progress-indicator/src/styles/get-vertical-step-list-style.js","../webpack-src:/step-progress-indicator/src/responsive-step-list.js","../webpack-src:/step-progress-indicator/src/top-step-progress-bar.js","../webpack-src:/step-progress-indicator/src/styles/get-top-step-progress-bar-style.js","../webpack-src:/step-progress-indicator/src/horizontal-step-list.js","../webpack-src:/step-progress-indicator/src/styles/get-horizontal-step-list-style.js","../../../../../../../../external/@bingads-webui-react/i18n-context","../../../../../../../../external/@fluentui/react","../webpack-src:/url-editor/index.js","../webpack-src:/url-editor/src/url-editor.js","../../../../../../../../external/@bingads-webui-react/text-input","../webpack-src:/url-editor/src/parseUrl.js","../webpack-src:/url-editor/src/index.js","../webpack-src:/url-editor/src/validate.js","../../../../../../../../external/@bingads-webui/url-util","../webpack-src:/validation-controls/index.js","../../../../../../../../external/@bingads-webui-react/radio","../webpack-src:/validation-controls/src/checked-adapter.js","../../../../../../../../external/@bingads-webui-react/checkbox","../webpack-src:/video-clipper/index.js","../webpack-src:/video-clipper/src/index.js","../webpack-src:/video-clipper/styles/index.js","../webpack-src:/video-clipper/src/components/clip-selector.js","../webpack-src:/video-clipper/src/util.js","../webpack-src:/video-clipper/src/constants.js","../../../../../../../../external/@bingads-webui-react/fabric-control","../webpack-src:/video-controls/index.js","../webpack-src:/video-controls/src/index.js","../../../../../../../../external/@fluentui/style-utilities","../webpack-src:/video-controls/styles/index.js","../webpack-src:/video-controls/src/util.js","../webpack-src:/video-controls/src/constants.js","../webpack-src:/video-controls/src/reducers.js","../webpack-src:/wizard-core/index.js","../webpack-src:/wizard-core/src/index.js","../webpack-src:/wizard-core/src/core/wizard.js","../webpack-src:/wizard-core/src/core/wizard-service.js","../webpack-src:/wizard-core/src/machine/machine-factory.js","../webpack-src:/wizard-core/src/machine/machine-config.js","../webpack-src:/wizard-core/src/machine/step-state.js","../webpack-src:/wizard-core/src/machine/constants.js","../webpack-src:/wizard-core/src/machine/navigation-events.js","../webpack-src:/wizard-core/src/core/utils.js","../webpack-src:/wizard-core/src/core/wizard-props.js","../webpack-src:/wizard-core/src/step/step-container.js","../webpack-src:/wizard-core/src/step/single-step-container.js","../webpack-src:/wizard-core/src/step/step.js","../webpack-src:/wizard-core/src/test-utils/demo-step-in-wizard.js","../webpack-src:/wizard-core/src/test-utils/simple-configs.js","../../../../../../../../external/@bingads-webui-react/form-core","../../../../../../../../external/@xstate/react","../../../../../../../../external/xstate","../../../../../../../../external/bluebird","../../../../../../../../external/@bingads-webui-react/wizard-core","../webpack-src:/wizard-ui-library/index.js","../webpack-src:/wizard-ui-library/src/components/index.js","../webpack-src:/wizard-ui-library/src/components/blockers.js","../webpack-src:/wizard-ui-library/src/components/buttons.js","../webpack-src:/wizard-ui-library/src/components/confirm-dialog.js","../webpack-src:/wizard-ui-library/src/components/cancel-dialog.js","../webpack-src:/wizard-ui-library/src/components/footers.js","../webpack-src:/wizard-ui-library/src/components/loading-shimmer.js","../webpack-src:/wizard-ui-library/src/components/step-list.js","../../../../../../../../external/@bingads-webui-react/step-progress-indicator","../webpack-src:/wizard-ui-library/src/layout-templates/index.js","../webpack-src:/wizard-ui-library/src/layout-templates/card.js","../webpack-src:/wizard-ui-library/src/layout-templates/blank.js","../webpack-src:/wizard-ui-library/src/layout-templates/default.js","../../../../../../../../external/@bingads-webui-react/ui-blocker","../../../../../../../../external/@bingads-webui-theme-2018/theme-fluent","../../../../../../../../external/@bingads-webui-react/fabric-with-signal","../../../../../../../../external/@bingads-webui-react/with-responsive-size","../webpack-src:/wizard/index.js","../webpack-src:/wizard/src/index.js","../../../../../../../../external/@bingads-webui-react/wizard-ui-library","../webpack-src:/wizard/src/wizard.js","../webpack-src:/wizard/src/default-config.js","../webpack-src:/wizard/src/default-layout-container.js","../webpack-src:/wizard/src/layout-container.js","../webpack-src:/wizard/src/demo-step-in-wizard.js","../webpack-src:/yahoo-iframe/index.js","../webpack-src:/yahoo-iframe/src/index.js","../webpack-src:/yahoo-iframe/src/constants.js","../webpack-src:/yahoo-iframe/src/yahoo-customer-model.js","../webpack/universalModuleDefinition","../webpack-src:/parallel-job-with-rate-limit/index.ts","../webpack-src:/parallel-job-with-rate-limit/src/parallel-job-runner.ts","../webpack-src:/poll/index.ts","../webpack-src:/poll/src/index.ts","../webpack-src:/poll/src/poll-dispatcher.ts","../webpack-src:/task-manager/index.ts","../webpack-src:/task-manager/src/index.ts"],"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 = 728);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__10__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3__;","export { LazyImage } from './src/image.js';\r\n","import React, { PureComponent } from 'react';\r\nimport _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport loadingPlaceHolder from './loading-place-holder';\r\n\r\nexport class LazyImage extends PureComponent {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n loaded: false,\r\n inViewPort: false,\r\n };\r\n\r\n this.imgRef = React.createRef();\r\n this.target = null;\r\n\r\n this.isLoadingStarted = false;\r\n this.observer = null;\r\n this.intersected = false;\r\n }\r\n\r\n componentDidMount() {\r\n this.initIntersectionObserver();\r\n this.startObserver();\r\n }\r\n\r\n componentDidUpdate() {\r\n if (this.state.inViewPort && !this.state.loaded) {\r\n this.loadImage(this.props.src);\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n this.stopObserver();\r\n }\r\n\r\n startObserver = () => {\r\n if (this.target && this.observer) {\r\n this.observer.observe(this.target);\r\n }\r\n }\r\n\r\n stopObserver = () => {\r\n if (this.target && this.observer) {\r\n this.observer.unobserve(this.target);\r\n this.observer.disconnect();\r\n this.observer = null;\r\n }\r\n }\r\n\r\n handleIntersection = (entries) => {\r\n const entry = entries[0] || {};\r\n const { isIntersecting, intersectionRatio } = entry;\r\n const isInViewport = typeof isIntersecting !== 'undefined' ? isIntersecting : intersectionRatio > 0;\r\n\r\n // enter\r\n if (!this.intersected && isInViewport) {\r\n this.intersected = true;\r\n this.setState({\r\n inViewPort: true,\r\n });\r\n\r\n return;\r\n }\r\n\r\n // leave\r\n if (this.intersected && !isInViewport) {\r\n this.intersected = false;\r\n\r\n this.setState({\r\n inViewPort: false,\r\n });\r\n\r\n this.stopObserver();\r\n }\r\n }\r\n\r\n loadImage = (src) => {\r\n if (this.isLoadingStarted) {\r\n return;\r\n }\r\n\r\n this.isLoadingStarted = true;\r\n\r\n this.imgRef.current.onload = () => {\r\n this.setState({\r\n loaded: true,\r\n }, () => {\r\n this.props.onImageLoadSuccess();\r\n });\r\n };\r\n\r\n this.imgRef.current.onerror = () => {\r\n this.props.onImageLoadError(src);\r\n };\r\n\r\n this.setState({\r\n src,\r\n });\r\n };\r\n\r\n initIntersectionObserver = () => {\r\n if (!this.observer) {\r\n this.observer = new IntersectionObserver(this.handleIntersection, {});\r\n }\r\n }\r\n\r\n render() {\r\n const nagativeLeftMargin = -(this.props.width - this.props.limitWidth) / 2;\r\n\r\n return (\r\n { this.target = node; return node; }}\r\n style={{ minHeight: this.props.height }}\r\n >\r\n { e.preventDefault(); return false; }}\r\n />\r\n {\r\n !this.state.loaded &&\r\n
\r\n {\r\n this.props.imagePlaceHolder ? this.props.imagePlaceHolder() : loadingPlaceHolder()\r\n }\r\n
\r\n }\r\n \r\n );\r\n }\r\n}\r\n\r\nLazyImage.propTypes = {\r\n src: PropTypes.string.isRequired,\r\n alt: PropTypes.string,\r\n height: PropTypes.number,\r\n width: PropTypes.number,\r\n limitWidth: PropTypes.number,\r\n imagePlaceHolder: PropTypes.func,\r\n onImageLoadError: PropTypes.func,\r\n onImageLoadSuccess: PropTypes.func,\r\n};\r\n\r\nLazyImage.defaultProps = {\r\n alt: '',\r\n width: 200,\r\n height: 200,\r\n limitWidth: 200,\r\n imagePlaceHolder: null,\r\n onImageLoadError: _.noop,\r\n onImageLoadSuccess: _.noop,\r\n};\r\n","import React from 'react';\r\n\r\nconst loadingPlaceholder = () => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport default loadingPlaceholder;\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__9__;","export { LegacyI18nContext } from './src/legacy-i18n-context';\r\n","import React from 'react';\r\n\r\nexport const LegacyI18nContext = React.createContext();\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__11__;","module.exports = __WEBPACK_EXTERNAL_MODULE__35__;","export { MasonryLayout, MasonryLayoutUnstyled } from './src/index';\r\n","import _ from 'underscore';\r\nimport React, { useRef, useEffect, useState, useCallback, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getStyles } from './get-styles';\r\n\r\n\r\nfunction useEvent(event, handler) {\r\n useEffect(() => {\r\n // initiate the event handler\r\n window.addEventListener(event, handler);\r\n\r\n // this will clean up the event every time the component is re-rendered\r\n return function cleanup() {\r\n window.removeEventListener(event, handler);\r\n };\r\n }, [event, handler]);\r\n}\r\n\r\n/**\r\n * A masonry-layout container, sets up child elements on a masonry layout, ordered left to right\r\n */\r\n\r\nexport const MasonryLayoutUnstyled = React.memo((props) => {\r\n const {\r\n classes,\r\n children,\r\n minColumns,\r\n maxColumns,\r\n columnWidth,\r\n minWidth,\r\n maxWidth,\r\n isWidthResponsive,\r\n forceCalculateDependency,\r\n } = props;\r\n\r\n const childElements = React.Children.toArray(children);\r\n const [renderedColumns, setColumnCount] = useState(0);\r\n const ref = useRef(null);\r\n\r\n const calculateColumnCount = useCallback(() => {\r\n let columnCount = ref.current.clientWidth / columnWidth;\r\n if (columnCount < minColumns) {\r\n columnCount = minColumns;\r\n } else if (columnCount > maxColumns) {\r\n columnCount = maxColumns;\r\n }\r\n setColumnCount(Math.floor(columnCount));\r\n }, [columnWidth, maxColumns, minColumns]);\r\n\r\n useEvent('resize', calculateColumnCount);\r\n useEffect(calculateColumnCount, [ref, setColumnCount, forceCalculateDependency]);\r\n\r\n const columnStyle = useMemo(\r\n () => (isWidthResponsive ? { flex: 1, minWidth, maxWidth } : {})\r\n , [maxWidth, minWidth, isWidthResponsive]\r\n );\r\n\r\n const getDataInColumns = () => {\r\n const columns = [];\r\n for (let columnIndex = 0; columnIndex < renderedColumns; columnIndex += 1) {\r\n columns.push([]);\r\n // eslint-disable-next-line max-len\r\n for (let elementIndex = columnIndex; elementIndex < childElements.length; elementIndex += renderedColumns) {\r\n columns[columnIndex].push(
{childElements[elementIndex]}
);\r\n }\r\n\r\n // Add empty elements to keep structure\r\n // otherwise columns will be centered if there is only one row\r\n if (columns[columnIndex].length === 0) {\r\n columns[columnIndex].push(
);\r\n }\r\n }\r\n\r\n const result = [];\r\n for (let i = 0; i < columns.length; i += 1) {\r\n if (columns[i].length > 0) {\r\n result.push(
{columns[i]}
);\r\n }\r\n }\r\n return result;\r\n };\r\n\r\n return (\r\n \r\n {childElements &&\r\n getDataInColumns()\r\n }\r\n
\r\n );\r\n});\r\n\r\nMasonryLayoutUnstyled.propTypes = {\r\n classes: PropTypes.shape(_.mapObject(getStyles(), _.constant(PropTypes.string.isRequired)))\r\n .isRequired,\r\n minColumns: PropTypes.number,\r\n maxColumns: PropTypes.number,\r\n columnWidth: PropTypes.number,\r\n minWidth: PropTypes.number,\r\n maxWidth: PropTypes.number,\r\n isWidthResponsive: PropTypes.bool,\r\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),\r\n forceCalculateDependency: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\r\n};\r\n\r\nMasonryLayoutUnstyled.defaultProps = {\r\n minColumns: 1,\r\n maxColumns: 2,\r\n columnWidth: 500,\r\n minWidth: 320,\r\n maxWidth: 600,\r\n isWidthResponsive: false,\r\n children: [],\r\n forceCalculateDependency: undefined,\r\n};\r\n\r\nexport const MasonryLayout = withDefaultStyles(\r\n React.memo(MasonryLayoutUnstyled),\r\n getStyles\r\n);\r\n","export const getStyles = () => {\r\n const layoutContainer = {\r\n display: 'flex',\r\n 'justify-content': 'center',\r\n };\r\n\r\n const columnWrapper = {\r\n 'margin-bottom': '30px',\r\n };\r\n\r\n const childWrapper = {\r\n margin: '0px 8px',\r\n };\r\n\r\n return {\r\n layoutContainer,\r\n columnWrapper,\r\n childWrapper,\r\n };\r\n};\r\n","export { MultiLineEllipsisText } from './src/multi-line-ellipsis-text';\r\n","import React from 'react';\r\nimport _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\n\r\nexport class MultiLineEllipsisText extends React.PureComponent {\r\n constructor(props, context) {\r\n super(props, context);\r\n\r\n this.state = {\r\n processedText: '',\r\n };\r\n\r\n this.hiddenTextRef = React.createRef();\r\n this.containerRef = React.createRef();\r\n }\r\n\r\n componentDidMount() {\r\n this.processText();\r\n }\r\n\r\n componentDidUpdate() {\r\n this.processText();\r\n }\r\n\r\n processText = _.debounce(() => {\r\n if (!this.hiddenTextRef || !this.hiddenTextRef.current) {\r\n return;\r\n }\r\n\r\n this.hiddenTextRef.current.style.maxWidth = `${this.containerRef.current.clientWidth}px`;\r\n this.hiddenTextRef.current.style.position = 'absolute';\r\n\r\n const wordArray = this.props.text.split(' ');\r\n let newText = `${wordArray.join(' ')}`;\r\n this.hiddenTextRef.current.innerText = newText;\r\n\r\n while (this.hiddenTextRef.current.scrollHeight > this.containerRef.current.offsetHeight) {\r\n wordArray.pop();\r\n newText = `${wordArray.join(' ')}...`;\r\n\r\n if (this.hiddenTextRef.current.innerText === newText) {\r\n break;\r\n }\r\n\r\n this.hiddenTextRef.current.innerText = newText;\r\n }\r\n\r\n this.setState({\r\n processedText: `${newText}`,\r\n });\r\n }, 100);\r\n\r\n render() {\r\n return (\r\n \r\n \r\n
\r\n {this.state.processedText}\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nMultiLineEllipsisText.propTypes = {\r\n text: PropTypes.string,\r\n className: PropTypes.string,\r\n style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\r\n};\r\n\r\nMultiLineEllipsisText.defaultProps = {\r\n className: undefined,\r\n style: undefined,\r\n text: '',\r\n};\r\n","import {\r\n Input as InputPrimitive,\r\n Checkbox as CheckboxPrimitive,\r\n RadioGroup as RadioGroupPrimitive,\r\n Textarea as TextAreaPrimitive,\r\n Dropdown as DropdownPrimitive,\r\n} from '@fluentui/react-components';\r\n\r\nimport {\r\n withValidation,\r\n ValidationGroup,\r\n withError,\r\n CheckedItemAdapter,\r\n DropdownAdapter\r\n} from '@bingads-webui-react/validation';\r\n\r\nimport { ValidatedField, withErrorField } from './src/validated-field';\r\n\r\nexport { ValidatedField, withErrorField };\r\n\r\nexport const InputLite = withValidation(InputPrimitive);\r\nexport const Input = withError(InputLite);\r\nexport const InputField = withErrorField(InputLite);\r\n\r\nexport const TextAreaLite = withValidation(TextAreaPrimitive);\r\nexport const TextArea = withError(TextAreaLite);\r\nexport const TextAreaField = withErrorField(TextAreaLite);\r\n\r\nexport const CheckboxLite = withValidation(CheckboxPrimitive, CheckedItemAdapter);\r\nexport const Checkbox = withError(CheckboxLite);\r\nexport const CheckboxField = withErrorField(CheckboxLite);\r\n\r\nexport const RadioGroupLite = withValidation(RadioGroupPrimitive);\r\nexport const RadioGroup = withError(RadioGroupLite);\r\nexport const RadioGroupField = withErrorField(RadioGroupLite);\r\n\r\nexport const DropdownLite = withValidation(DropdownPrimitive, DropdownAdapter);\r\nexport const Dropdown = withError(DropdownLite);\r\nexport const DropdownField = withErrorField(DropdownLite);\r\n\r\nexport { ValidationGroup };\r\nexport const ValidationGroupWithErrors = withError(ValidationGroup);\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__37__;","import _ from 'underscore';\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Field } from '@fluentui/react-components';\r\nimport { ValidationGroup, withErrorMessage } from '@bingads-webui-react/validation';\r\n\r\nexport function withErrorField(Component) {\r\n class FieldWrapper extends React.PureComponent {\r\n static propTypes = {\r\n validationProps: PropTypes.shape({\r\n messages: PropTypes.arrayOf(PropTypes.string),\r\n }),\r\n fieldProps: PropTypes.shape({}),\r\n };\r\n\r\n static defaultProps = {\r\n validationProps: {\r\n messages: [],\r\n },\r\n fieldProps: undefined,\r\n };\r\n\r\n render() {\r\n const { fieldProps, ...restProps } = this.props;\r\n const {\r\n messages,\r\n } = this.props.validationProps;\r\n\r\n const validationMessage = messages && messages.join(',');\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n }\r\n return withErrorMessage(FieldWrapper);\r\n}\r\n\r\nexport const ValidatedField = withErrorField(ValidationGroup);\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__5__;","module.exports = __WEBPACK_EXTERNAL_MODULE__111__;","module.exports = __WEBPACK_EXTERNAL_MODULE__400__;","export * from './src/with-signal-primitive';\r\n","/* eslint-disable no-unused-vars */\r\nimport _ from 'underscore';\r\n\r\nimport {\r\n Button as ReactButton,\r\n Checkbox as ReactCheckbox,\r\n Input as ReactInput,\r\n Select as ReactSelect,\r\n TextArea as ReactTextArea,\r\n // Form as ReactForm,\r\n Radio as ReactRadio,\r\n RadioGroup as ReactRadioGroup,\r\n} from '@bingads-webui-react/primitive';\r\n\r\nimport {\r\n withSignal,\r\n CommonEventParser,\r\n} from '@bingads-webui-react/hoc-with-signal';\r\n\r\nexport const Button = withSignal(ReactButton, {\r\n onClick: CommonEventParser,\r\n});\r\n\r\nexport const Checkbox = withSignal(ReactCheckbox, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\nexport const Input = withSignal(ReactInput, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\nexport const Select = withSignal(ReactSelect, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\nexport const TextArea = withSignal(ReactTextArea, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\nexport const Radio = withSignal(ReactRadio, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\nexport const RadioGroup = withSignal(ReactRadioGroup, {\r\n onChange: CommonEventParser,\r\n});\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__308__;","export * from './src/primitive-with-signal-and-validation';\r\n","/* eslint-disable no-unused-vars */\r\nimport _ from 'underscore';\r\n\r\nimport {\r\n Input as InputWithValidation,\r\n TextArea as TextAreaWithValidation,\r\n RadioGroup as RadioGroupWithValidation,\r\n Select as SelectWithValidation,\r\n} from '@bingads-webui-react/primitive-validation';\r\n\r\nimport {\r\n withSignal,\r\n CommonEventParser,\r\n} from '@bingads-webui-react/hoc-with-signal';\r\n\r\nexport const Input = withSignal(InputWithValidation, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\nexport const TextArea = withSignal(TextAreaWithValidation, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\nexport const Select = withSignal(SelectWithValidation, {\r\n onChange: CommonEventParser,\r\n});\r\n\r\n// RadioGroup onChange param is the selected item\r\n// which could be number, string, or a react element depending on how items were defined\r\n// stringify the selected item disregarding its type in a try/catch block, best effort\r\nconst radioGroupEventParser = (e) => {\r\n let radioGroupSelectedItem;\r\n try {\r\n radioGroupSelectedItem = JSON.stringify(e[0]);\r\n } catch (err) {\r\n radioGroupSelectedItem = 'Failed to stringify selected item';\r\n }\r\n return { radioGroupSelectedItem };\r\n};\r\n\r\nexport const RadioGroup = withSignal(RadioGroupWithValidation, {\r\n onChange: radioGroupEventParser,\r\n});\r\n","export { Progress } from './src/progress';\r\nexport { RadialProgress } from './src/radial-progress';\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nexport const Progress = (props) => {\r\n const {\r\n progressPercentage,\r\n } = props;\r\n\r\n const styles = { width: `${progressPercentage * 100}%` };\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nProgress.propTypes = {\r\n progressPercentage: PropTypes.number,\r\n};\r\n\r\nProgress.defaultProps = {\r\n progressPercentage: 0.2,\r\n};\r\n\r\n","import React 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 { getStyles } from './getStyles';\r\n\r\nexport const RadialProgressUnthemed = (props) => {\r\n const {\r\n progressPercentage,\r\n size,\r\n stroke,\r\n strokeWidth,\r\n classes,\r\n className,\r\n } = props;\r\n\r\n const radius = (size / 2) - (strokeWidth / 2);\r\n const strokeLength = Math.PI * 2 * radius;\r\n const sizePixels = `${size}px`;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {`${parseInt(progressPercentage * 100, 10)}%`}\r\n \r\n \r\n );\r\n};\r\n\r\nRadialProgressUnthemed.propTypes = {\r\n progressPercentage: PropTypes.number.isRequired,\r\n size: PropTypes.number,\r\n strokeWidth: PropTypes.number,\r\n stroke: PropTypes.string,\r\n className: PropTypes.string,\r\n classes: PropTypes.shape({}).isRequired,\r\n};\r\n\r\nRadialProgressUnthemed.defaultProps = {\r\n size: 128,\r\n stroke: '#107C10',\r\n strokeWidth: 14,\r\n className: null,\r\n};\r\n\r\nexport const RadialProgress = withDefaultStyles(RadialProgressUnthemed, getStyles);\r\n","export const getStyles = (_, { palette = {} }) => ({\r\n container: {\r\n position: 'relative',\r\n },\r\n svg: {\r\n position: 'absolute',\r\n left: 0,\r\n top: 0,\r\n transform: 'rotate(270deg)',\r\n },\r\n circle: {\r\n fill: 'transparent',\r\n strokeDashoffset: '0',\r\n strokeLinecap: 'round',\r\n stroke: palette.neutralLight,\r\n },\r\n primary: {\r\n stroke: palette.green,\r\n },\r\n text: {\r\n position: 'absolute',\r\n left: 0,\r\n top: 0,\r\n textAlign: 'center',\r\n },\r\n});\r\n\r\n","export * from './src';\r\n","export { VerticalStepList } from './vertical-step-list';\r\nexport { ResponsiveStepList } from './responsive-step-list';\r\nexport { TopStepProgressBar } from './top-step-progress-bar';\r\nexport { HorizontalStepList } from './horizontal-step-list';\r\nexport { parseStepConfig, getAllExpandStepIds, getDefaultItemAriaLabel } from './utils';\r\n","import _ from 'underscore';\r\nimport React, { useMemo, useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { FontIcon, Stack, VerticalDivider } from '@fluentui/react';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getAllExpandStepIds, parseStepConfig, getDefaultItemIcon, getDefaultItemAriaLabel } from './utils';\r\nimport { getVerticalStepListStyle } from './styles/get-vertical-step-list-style';\r\n\r\nexport const VerticalStepList = (props) => {\r\n const {\r\n config, currentStepId, getItemIcon, getOnItemClickFn, getItemAriaLabel, expand,\r\n } = props;\r\n const i18n = useContext(I18nContext);\r\n const classes = useDefaultStyles(getVerticalStepListStyle);\r\n\r\n const currentFlow = useMemo(() => {\r\n if (props.currentFlow) {\r\n return props.currentFlow;\r\n }\r\n return getAllExpandStepIds(config);\r\n }, [config, props.currentFlow]);\r\n\r\n const steps = useMemo(() => parseStepConfig(config, currentStepId, currentFlow), [config, currentFlow, currentStepId]);\r\n\r\n return (\r\n
\r\n {_.map(steps, (step) => {\r\n if (!step.isEnabled || !step.title) {\r\n return null;\r\n }\r\n const listItemClassNames = [{\r\n 'step-list-item': true,\r\n [`step-list-item-${step.id}`]: true,\r\n 'step-list-item-sub-step': step.isSubStep,\r\n 'step-list-item-selected': step.isSelected,\r\n 'step-list-item-contains-selected': step.containsSelected,\r\n 'step-list-item-behind': step.isBehind,\r\n 'step-list-item-ahead': step.isAhead,\r\n }];\r\n\r\n const icon = getItemIcon ? getItemIcon(step) : getDefaultItemIcon(step);\r\n\r\n const onItemClick = getOnItemClickFn ? getOnItemClickFn(step) : undefined;\r\n const onItemKeyDown = onItemClick ? (e) => {\r\n if (e.key === 'Enter' || e.key === ' ') {\r\n onItemClick();\r\n }\r\n } : undefined;\r\n\r\n const itemAriaLabel = getItemAriaLabel ? getItemAriaLabel(step) : getDefaultItemAriaLabel(step, i18n);\r\n const a11yProps = onItemClick ? {\r\n role: 'button',\r\n tabIndex: 0,\r\n onClick: onItemClick,\r\n onKeyDown: onItemKeyDown,\r\n 'aria-label': itemAriaLabel,\r\n } : {};\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {step.title}\r\n \r\n
\r\n \r\n );\r\n })}\r\n \r\n );\r\n};\r\n\r\nVerticalStepList.propTypes = {\r\n config: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n steps: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n })),\r\n })).isRequired,\r\n currentStepId: PropTypes.string.isRequired,\r\n currentFlow: PropTypes.arrayOf(PropTypes.string),\r\n getItemIcon: PropTypes.func,\r\n getOnItemClickFn: PropTypes.func,\r\n getItemAriaLabel: PropTypes.func,\r\n expand: PropTypes.bool,\r\n};\r\n\r\nVerticalStepList.defaultProps = {\r\n currentFlow: undefined,\r\n getItemIcon: undefined,\r\n getOnItemClickFn: undefined,\r\n getItemAriaLabel: undefined,\r\n expand: true,\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const getDefaultItemIcon = (step) => {\r\n if (step.isSelected || step.containsSelected) {\r\n return 'StatusCircleInner'; // current step\r\n } else if (step.isBehind) {\r\n return 'SkypeCircleCheck';\r\n }\r\n\r\n // default\r\n return 'StatusCircleRing';\r\n};\r\n\r\nexport const getDefaultItemAriaLabel = (step, i18n) => {\r\n if (step.isBehind) {\r\n return i18n.getString(_TL_('Previous step'));\r\n } else if (step.isSelected || step.containsSelected) {\r\n return i18n.getString(_TL_('Current step'));\r\n }\r\n return i18n.getString(_TL_('Next step'));\r\n};\r\n\r\nexport const getAllExpandStepIds = (config) => {\r\n let stepIds = [];\r\n _.each(config, (s) => {\r\n if (!_.isEmpty(s.steps)) {\r\n stepIds = stepIds.concat(getAllExpandStepIds(s.steps));\r\n } else {\r\n stepIds.push(s.id);\r\n }\r\n });\r\n return stepIds;\r\n};\r\n\r\nexport const parseStepConfig = (config, currentStepId, currentFlow, isSubStep = false) => {\r\n let stepsConfig = [];\r\n _.each(config, (s) => {\r\n const isSelected = s.id === currentStepId;\r\n const containsSelected = _.some(s.steps, step => step.id === currentStepId);\r\n const isEnabled = currentFlow.includes(s.id) || _.some(s.steps, step => currentFlow.includes(step.id));\r\n const newStepConfig = {\r\n ...s,\r\n isEnabled,\r\n isSubStep,\r\n isSelected,\r\n containsSelected,\r\n };\r\n if (!_.isEmpty(s.steps)) {\r\n const isBehind = isEnabled && _.every(s.steps, step => currentFlow.indexOf(step.id) === -1 || currentFlow.indexOf(step.id) < currentFlow.indexOf(currentStepId));\r\n const isAhead = isEnabled && _.every(s.steps, step => currentFlow.indexOf(step.id) === -1 || currentFlow.indexOf(step.id) > currentFlow.indexOf(currentStepId));\r\n let subStepsConfig = parseStepConfig(s.steps, currentStepId, currentFlow, true);\r\n if (isBehind || isAhead) {\r\n subStepsConfig = _.map(subStepsConfig, step => ({ ...step, isEnabled: false }));\r\n }\r\n newStepConfig.steps = subStepsConfig;\r\n newStepConfig.isBehind = isBehind;\r\n newStepConfig.isAhead = isAhead;\r\n stepsConfig.push(newStepConfig);\r\n stepsConfig = stepsConfig.concat(subStepsConfig);\r\n } else {\r\n const isBehind = isEnabled && currentFlow.indexOf(s.id) < currentFlow.indexOf(currentStepId);\r\n const isAhead = isEnabled && currentFlow.indexOf(s.id) > currentFlow.indexOf(currentStepId);\r\n newStepConfig.isBehind = isBehind;\r\n newStepConfig.isAhead = isAhead;\r\n stepsConfig.push(newStepConfig);\r\n }\r\n });\r\n return stepsConfig;\r\n};\r\nexport const getIsLargeScreen = displayMode => ['', 'l', 'xl', 'xxl'].indexOf(displayMode) >= 0;\r\nexport const getShowCollapseVerticalTitle = displayMode => ['l', 'xl'].indexOf(displayMode) >= 0;\r\n","export const getVerticalStepListStyle = (_, { palette }) => ({\r\n listContainer: {\r\n width: 'fit-content',\r\n '& :first-child': {\r\n '& .step-list-item-divider': {\r\n display: 'none',\r\n },\r\n },\r\n '& .step-list-item': {\r\n '&:focus': {\r\n outline: '1px solid',\r\n },\r\n },\r\n '& .step-list-item-divider': {\r\n height: 40,\r\n '& >span': {\r\n width: 2,\r\n backgroundColor: '#797775',\r\n },\r\n },\r\n '& .step-list-item-content': {\r\n position: 'relative',\r\n },\r\n '& .step-list-item-icon': {\r\n fontSize: 16,\r\n margin: '6px 2px',\r\n color: palette.neutralTertiary,\r\n },\r\n '& .step-list-item-title': {\r\n position: 'absolute',\r\n float: 'right',\r\n maxWidth: 165,\r\n padding: '0px 10px',\r\n lineHeight: '36px',\r\n color: palette.black,\r\n textOverflow: 'ellipsis',\r\n overflow: 'hidden',\r\n whiteSpace: 'nowrap',\r\n },\r\n\r\n // step item has status\r\n '& .step-list-item-selected, & .step-list-item-contains-selected': {\r\n '& .step-list-item-title': {\r\n fontWeight: 'bold',\r\n },\r\n '& .step-list-item-icon': {\r\n color: palette.themePrimary,\r\n },\r\n '& .step-list-item-divider': {\r\n '& >span': {\r\n backgroundColor: palette.themePrimary,\r\n },\r\n },\r\n },\r\n '& .step-list-item-sub-step': {\r\n '& .step-list-item-title': {\r\n fontSize: 12,\r\n lineHeight: '26px',\r\n },\r\n '& .step-list-item-icon': {\r\n fontSize: 10,\r\n },\r\n },\r\n '& .step-list-item-behind': {\r\n '& .step-list-item-icon': {\r\n color: palette.themePrimary,\r\n },\r\n '& .step-list-item-divider': {\r\n '& >span': {\r\n backgroundColor: palette.themePrimary,\r\n },\r\n },\r\n },\r\n },\r\n // responsive vertical styles\r\n stepListItemTitleHide: {\r\n display: 'none',\r\n },\r\n listContainerCollapsible: {\r\n '&:hover': {\r\n paddingRight: 168,\r\n '& .step-list-item-title': {\r\n display: 'inline',\r\n },\r\n },\r\n },\r\n});\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { getShowCollapseVerticalTitle, getIsLargeScreen } from './utils';\r\nimport { TopStepProgressBar } from './top-step-progress-bar';\r\nimport { VerticalStepList } from './vertical-step-list';\r\n\r\nexport const ResponsiveStepList = (props) => {\r\n const {\r\n displayMode, LargeScreenStepListComponent, SmallScreenStepListComponent, ...sharedProps\r\n } = props;\r\n const isLargeScreen = getIsLargeScreen(displayMode);\r\n const collapseVerticalTitle = getShowCollapseVerticalTitle(displayMode);\r\n\r\n return (\r\n
\r\n {isLargeScreen ?\r\n :\r\n \r\n }\r\n
\r\n );\r\n};\r\n\r\nResponsiveStepList.propTypes = {\r\n config: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n steps: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n })),\r\n })).isRequired,\r\n currentStepId: PropTypes.string.isRequired,\r\n currentFlow: PropTypes.arrayOf(PropTypes.string),\r\n getItemIcon: PropTypes.func,\r\n getOnItemClickFn: PropTypes.func,\r\n getItemAriaLabel: PropTypes.func,\r\n displayMode: PropTypes.string,\r\n LargeScreenStepListComponent: PropTypes.func,\r\n SmallScreenStepListComponent: PropTypes.func,\r\n};\r\n\r\nResponsiveStepList.defaultProps = {\r\n currentFlow: undefined,\r\n getItemIcon: undefined,\r\n getOnItemClickFn: undefined,\r\n getItemAriaLabel: undefined,\r\n displayMode: '',\r\n LargeScreenStepListComponent: VerticalStepList,\r\n SmallScreenStepListComponent: TopStepProgressBar,\r\n};\r\n","import _ from 'underscore';\r\nimport React, { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport {\r\n ActionButton,\r\n ProgressIndicator,\r\n VerticalDivider,\r\n} from '@fluentui/react';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getAllExpandStepIds, parseStepConfig } from './utils';\r\nimport { getTopStepProgressBarStyle } from './styles/get-top-step-progress-bar-style';\r\n\r\nexport const TopStepProgressBar = (props) => {\r\n const {\r\n config, currentStepId, getOnItemClickFn,\r\n } = props;\r\n\r\n const classes = useDefaultStyles(getTopStepProgressBarStyle);\r\n\r\n const currentFlow = useMemo(() => {\r\n if (props.currentFlow) {\r\n return props.currentFlow;\r\n }\r\n return getAllExpandStepIds(config);\r\n }, [config, props.currentFlow]);\r\n\r\n const steps = useMemo(() => parseStepConfig(config, currentStepId, currentFlow), [config, currentFlow, currentStepId]);\r\n\r\n const currentStep = useMemo(() => _.find(steps, step => step.id === currentStepId), [currentStepId, steps]);\r\n const currentIndex = currentFlow.indexOf(currentStepId);\r\n const percentComplete = (currentIndex + 1) / currentFlow.length;\r\n\r\n const onBackFn = useMemo(() => {\r\n if (currentIndex > 0) {\r\n const previousStep = _.find(steps, step => step.id === currentFlow[currentIndex - 1]);\r\n if (getOnItemClickFn && previousStep) {\r\n return getOnItemClickFn(previousStep);\r\n }\r\n }\r\n return null;\r\n }, [currentFlow, currentIndex, getOnItemClickFn, steps]);\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nTopStepProgressBar.propTypes = {\r\n config: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n steps: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n })),\r\n })).isRequired,\r\n currentStepId: PropTypes.string.isRequired,\r\n currentFlow: PropTypes.arrayOf(PropTypes.string),\r\n getOnItemClickFn: PropTypes.func,\r\n};\r\n\r\nTopStepProgressBar.defaultProps = {\r\n currentFlow: undefined,\r\n getOnItemClickFn: undefined,\r\n};\r\n","export const getTopStepProgressBarStyle = () => ({\r\n listContainer: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n width: '100%',\r\n height: '64px',\r\n padding: '10px',\r\n boxShadow: '0px 3.2px 7.2px rgba(0, 0, 0, 0.132), 0px 0.6px 1.8px rgba(0, 0, 0, 0.108)',\r\n '& .back': {\r\n width: '48px',\r\n },\r\n '& .step-list-nav-divider': {\r\n height: '48px',\r\n margin: '0px 4px',\r\n '& >span': {\r\n width: 1,\r\n backgroundColor: '#E1DFDD',\r\n },\r\n },\r\n '& .ms-ProgressIndicator': {\r\n width: '100%',\r\n padding: '0px 10px',\r\n },\r\n '& .ms-ProgressIndicator-itemName': {\r\n fontWeight: '600',\r\n fontSize: '14px',\r\n lineHeight: '24px',\r\n },\r\n },\r\n});\r\n\r\n","import _ from 'underscore';\r\nimport React, { useMemo, useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { FontIcon, Stack } from '@fluentui/react';\r\n\r\nimport { getAllExpandStepIds, parseStepConfig, getDefaultItemAriaLabel } from './utils';\r\nimport { getHorizontalStepListStyle } from './styles/get-horizontal-step-list-style';\r\n\r\nconst getDefaultItemIcon = (step) => {\r\n if (step.isSelected || step.containsSelected) {\r\n return 'StatusCircleOuter'; // current step\r\n } else if (step.isBehind) {\r\n return 'Completed';\r\n }\r\n\r\n // default\r\n return 'CircleRing';\r\n};\r\n\r\nexport const HorizontalStepList = (props) => {\r\n const {\r\n config, currentStepId, getItemIcon, getOnItemClickFn, getItemAriaLabel,\r\n } = props;\r\n\r\n const i18n = useContext(I18nContext);\r\n const classes = useDefaultStyles(getHorizontalStepListStyle);\r\n\r\n const currentFlow = useMemo(() => {\r\n if (props.currentFlow) {\r\n return props.currentFlow;\r\n }\r\n return getAllExpandStepIds(config);\r\n }, [config, props.currentFlow]);\r\n\r\n const steps = useMemo(() => parseStepConfig(config, currentStepId, currentFlow), [config, currentFlow, currentStepId]);\r\n\r\n return (\r\n
\r\n {_.map(steps, (step) => {\r\n if (!step.isEnabled || !step.title) {\r\n return null;\r\n }\r\n\r\n const listItemClassNames = [{\r\n 'step-list-item': true,\r\n [`step-list-item-${step.id}`]: true,\r\n 'step-list-item-sub-step': step.isSubStep,\r\n 'step-list-item-selected': step.isSelected,\r\n 'step-list-item-contains-selected': step.containsSelected,\r\n 'step-list-item-behind': step.isBehind,\r\n 'step-list-item-ahead': step.isAhead,\r\n }];\r\n\r\n const icon = getItemIcon ? getItemIcon(step) : getDefaultItemIcon(step);\r\n\r\n const onItemClick = getOnItemClickFn ? getOnItemClickFn(step) : undefined;\r\n const onItemKeyDown = onItemClick ? (e) => {\r\n if (e.key === 'Enter' || e.key === ' ') {\r\n onItemClick();\r\n }\r\n } : undefined;\r\n\r\n const itemAriaLabel = getItemAriaLabel ? getItemAriaLabel(step) : getDefaultItemAriaLabel(step, i18n);\r\n const a11yProps = onItemClick ? {\r\n role: 'button',\r\n tabIndex: 0,\r\n onClick: onItemClick,\r\n onKeyDown: onItemKeyDown,\r\n 'aria-label': itemAriaLabel,\r\n } : {};\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n {step.title}\r\n \r\n
\r\n
\r\n );\r\n })}\r\n
\r\n );\r\n};\r\n\r\nHorizontalStepList.propTypes = {\r\n config: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n steps: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n })),\r\n })).isRequired,\r\n currentStepId: PropTypes.string.isRequired,\r\n currentFlow: PropTypes.arrayOf(PropTypes.string),\r\n getItemIcon: PropTypes.func,\r\n getOnItemClickFn: PropTypes.func,\r\n getItemAriaLabel: PropTypes.func,\r\n};\r\n\r\nHorizontalStepList.defaultProps = {\r\n currentFlow: undefined,\r\n getItemIcon: undefined,\r\n getOnItemClickFn: undefined,\r\n getItemAriaLabel: undefined,\r\n};\r\n","export const getHorizontalStepListStyle = (_, { palette }) => ({\r\n listContainer: {\r\n display: 'flex',\r\n flexDirection: 'row',\r\n justifyContent: 'space-between',\r\n paddingBottom: 24,\r\n '& .step-list-item:first-child': {\r\n width: 'auto',\r\n '& .step-list-item-divider': {\r\n display: 'none',\r\n },\r\n },\r\n '& .step-list-item:not(:first-child)': {\r\n width: '100%',\r\n },\r\n '& .step-list-item': {\r\n '&:focus': {\r\n outline: '1px solid',\r\n },\r\n },\r\n '& .step-list-item-divider': {\r\n width: '100%',\r\n minWidth: 40,\r\n height: 2,\r\n backgroundColor: palette.neutralTertiaryAlt,\r\n },\r\n '& .step-list-item-content': {\r\n position: 'relative',\r\n },\r\n '& .step-list-item-icon': {\r\n fontSize: 20,\r\n margin: '6px 4px',\r\n color: palette.neutralTertiaryAlt,\r\n },\r\n '& .step-list-item-title': {\r\n position: 'absolute',\r\n top: '25px',\r\n left: '0px',\r\n lineHeight: '36px',\r\n color: palette.black,\r\n textOverflow: 'ellipsis',\r\n overflow: 'hidden',\r\n whiteSpace: 'nowrap',\r\n },\r\n\r\n // step item has status\r\n '& .step-list-item-selected, & .step-list-item-contains-selected': {\r\n '& .step-list-item-title': {\r\n fontWeight: 'bold',\r\n },\r\n '& .step-list-item-icon': {\r\n color: palette.themePrimary,\r\n },\r\n '& .step-list-item-divider': {\r\n backgroundColor: palette.green,\r\n },\r\n },\r\n '& .step-list-item-sub-step': {\r\n '& .step-list-item-title': {\r\n fontSize: 12,\r\n lineHeight: '26px',\r\n },\r\n '& .step-list-item-icon': {\r\n fontSize: 14,\r\n },\r\n },\r\n '& .step-list-item-behind': {\r\n '& .step-list-item-icon': {\r\n color: palette.green,\r\n },\r\n '& .step-list-item-divider': {\r\n backgroundColor: palette.green,\r\n },\r\n },\r\n '& .step-list-item-ahead': {\r\n '& .step-list-item-title': {\r\n color: palette.neutralTertiary,\r\n },\r\n },\r\n },\r\n});\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__17__;","module.exports = __WEBPACK_EXTERNAL_MODULE__30__;","export { UrlEditor } from './src/url-editor';\r\nexport { parseUrl } from './src/parseUrl';\r\nexport { ValidatedUrlEditorLite, ValidatedUrlEditor } from './src/index';\r\nexport { validateUrl } from './src/validate';\r\n","/* eslint react/forbid-prop-types: 0 */\r\nimport _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport classnames from 'classnames';\r\nimport { TextInput } from '@bingads-webui-react/text-input';\r\nimport { parseUrl } from './parseUrl';\r\n\r\nexport class UrlEditor extends React.Component {\r\n static propTypes = {\r\n value: PropTypes.arrayOf(PropTypes.string),\r\n onChange: PropTypes.func.isRequired,\r\n protocols: PropTypes.arrayOf(PropTypes.shape({\r\n value: PropTypes.string.isRequired,\r\n text: PropTypes.string.isRequired,\r\n })),\r\n selectProtocol: PropTypes.string,\r\n };\r\n\r\n static defaultProps = {\r\n value: [],\r\n protocols: [{\r\n value: 'https',\r\n text: 'https://',\r\n }, {\r\n value: 'http',\r\n text: 'http://',\r\n }],\r\n selectProtocol: null,\r\n };\r\n constructor(props) {\r\n super(props);\r\n const { protocol, url } = parseUrl(_.size(props.value) > 0 ? props.value[0] : '');\r\n const selectProtocol = this.props.selectProtocol || protocol || _.first(props.protocols).value;\r\n this.state = { selectProtocol, url: url || '' };\r\n }\r\n\r\n onChange = (e) => {\r\n const protocol = this.state.selectProtocol;\r\n const url = e.target.value.trim();\r\n const model = url ? this.addSelectProtocol({\r\n protocol,\r\n url,\r\n }) : '';\r\n this.props.onChange(_.defaults({\r\n target: _.defaults({ value: model }, e.target),\r\n }, e));\r\n\r\n this.setState({ url });\r\n }\r\n\r\n addSelectProtocol = ({ protocol, url }) => {\r\n const prefix = (_.findWhere(\r\n this.props.protocols,\r\n { value: protocol }\r\n )).text;\r\n return `${prefix}${url}`;\r\n }\r\n\r\n handleProtocolChange = (e) => {\r\n e.stopPropagation();\r\n const protocol = e.target.value;\r\n const url = this.state.url.trim();\r\n if (url) {\r\n const model = this.addSelectProtocol({\r\n protocol,\r\n url,\r\n });\r\n this.props.onChange(_.defaults({\r\n target: _.defaults({ value: model }, e.target),\r\n }, e));\r\n }\r\n\r\n this.setState({ selectProtocol: protocol });\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n \r\n {this.props.protocols.map(option => (\r\n \r\n ))}\r\n \r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1176__;","export const parseUrl = (url) => {\r\n const urlRegex = new RegExp('^(?:\\\\s*(?:(\\\\S+):\\\\/\\\\/)?(?:(.+))?)?', 'i');\r\n const regexResult = urlRegex.exec(url);\r\n return { protocol: regexResult && regexResult[1], url: regexResult && regexResult[2] };\r\n};\r\n","import { withValidation, withError, AdapterFactory } from '@bingads-webui-react/validation';\r\nimport { UrlEditor } from './url-editor';\r\n\r\nexport const DefaultAdapter = AdapterFactory({\r\n convertEventToValue: event => (event.target.value ? [event.target.value] : []),\r\n});\r\nexport const ValidatedUrlEditorLite = withValidation(UrlEditor, DefaultAdapter);\r\nexport const ValidatedUrlEditor = withError(ValidatedUrlEditorLite);\r\n","import { hasScheme } from '@bingads-webui/url-util';\r\n\r\nexport const validateUrl = i18n => url => (hasScheme(url) ?\r\n [] : [i18n.getString('Validation_Url_InvalidUrlScheme')]);\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1180__;","import { TextInput } from '@bingads-webui-react/text-input';\r\nimport { RadioGroup } from '@bingads-webui-react/radio';\r\nimport { CheckboxGroup } from '@bingads-webui-react/checkbox';\r\nimport { withValidation, ValidationGroup, withError } from '@bingads-webui-react/validation';\r\nimport { CheckedAdapter } from './src/checked-adapter';\r\n\r\nexport const ValidatedInputLite = withValidation(TextInput);\r\nexport const ValidatedInput = withError(ValidatedInputLite);\r\n\r\nexport const ValidatedRadioGroupLite = withValidation(RadioGroup, CheckedAdapter);\r\nexport const ValidatedRadioGroup = withError(ValidatedRadioGroupLite);\r\n\r\nexport const ValidatedCheckboxGroupLite = withValidation(CheckboxGroup, CheckedAdapter);\r\nexport const ValidatedCheckboxGroup = withError(ValidatedCheckboxGroupLite);\r\n\r\nexport { ValidationGroup };\r\nexport const ValidationGroupWithErrors = withError(ValidationGroup);\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1217__;","import _ from 'underscore';\r\nimport React from 'react';\r\n\r\nexport class CheckedAdapter {\r\n constructor(PrimitiveComponent) {\r\n this.component = PrimitiveComponent;\r\n }\r\n\r\n getValue(props) {\r\n return props.checked;\r\n }\r\n\r\n renderComponent(props, value, onChange) {\r\n const PrimitiveComponent = this.component;\r\n\r\n return ( {\r\n onChange(checked);\r\n if (_.isFunction(props.onChange)) {\r\n props.onChange(checked);\r\n }\r\n }}\r\n />);\r\n }\r\n}\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__317__;","export { VideoClipper } from './src';\r\n","/* eslint-disable max-len */\r\n/* eslint-disable no-mixed-operators */\r\n/* eslint-disable no-param-reassign */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { Icon, Callout, Slider, DirectionalHint, Text, TextField } from '@bingads-webui-react/fabric-control';\r\nimport { getClipperStyles } from '../styles';\r\nimport { ClipSelector } from './components/clip-selector';\r\nimport { FormatTime, FormatTimeTo3Decimals, getValidClipperTime } from './util';\r\nimport { IconOffset, TimeDisplayOffset, DefaultVideoVolume } from './constants';\r\n\r\nfunction VideoClipperComponent(props) {\r\n const {\r\n children,\r\n width: defaultWidth,\r\n onSelectionChanged: _onSelectionChanged,\r\n onDurationChanged,\r\n onCurrentChanged,\r\n onSelectionOutofSync,\r\n timeErrorString,\r\n classes,\r\n } = props;\r\n\r\n const { current: id } = React.useRef(_.uniqueId('video-clipper-video-'));\r\n const [volumeVisible, setVolumeVisible] = React.useState(false);\r\n const [videoElement, setVideoElement] = React.useState(null);\r\n const [paused, setPaused] = React.useState(true);\r\n const [currentTime, setCurrentTime] = React.useState(0);\r\n const [duration, setDuration] = React.useState(0);\r\n const [startTimeInput, setStartTimeInput] = React.useState(FormatTimeTo3Decimals(0));\r\n const [endTimeInput, setEndTimeInput] = React.useState(FormatTimeTo3Decimals(0));\r\n const [selection, setSelection] = React.useState({ start: 0, end: duration });\r\n const [isSettingCurrentTime, setIsSettingCurrentTime] = React.useState(false);\r\n\r\n const setVideoCurrentTime = React.useCallback((time) => {\r\n if (videoElement) {\r\n videoElement.currentTime = time;\r\n setIsSettingCurrentTime(true);\r\n }\r\n }, [videoElement]);\r\n\r\n React.useEffect(() => {\r\n const container = document.querySelector(`#${id}`);\r\n const video = container.querySelector('video');\r\n /* istanbul ignore next */\r\n if (video == null) throw new Error('Unable to find video element.');\r\n video.volume = DefaultVideoVolume / 100;\r\n setVideoElement(video);\r\n }, [id]);\r\n\r\n React.useEffect(() => {\r\n if (videoElement) {\r\n /* istanbul ignore next */\r\n videoElement.onloadedmetadata = (event) => {\r\n setDuration(event.target.duration);\r\n onDurationChanged(event.target.duration);\r\n setEndTimeInput(FormatTimeTo3Decimals(event.target.duration));\r\n };\r\n videoElement.onplay = () => {\r\n setPaused(false);\r\n };\r\n videoElement.onpause = () => {\r\n setPaused(true);\r\n };\r\n videoElement.ontimeupdate = (event) => {\r\n if (isSettingCurrentTime) {\r\n // ignore event once after manually setting video current time.\r\n // https://stackoverflow.com/questions/12325787/setting-the-granularity-of-the-html5-audio-event-timeupdate/12325960#12325960\r\n setIsSettingCurrentTime(false);\r\n return;\r\n }\r\n let { currentTime: _currentTime } = event.target;\r\n if (_currentTime >= selection.end) {\r\n _currentTime = selection.start;\r\n videoElement.pause();\r\n setVideoCurrentTime(_currentTime);\r\n }\r\n setCurrentTime(_currentTime);\r\n onCurrentChanged(_currentTime);\r\n };\r\n }\r\n }, [videoElement, onDurationChanged, onCurrentChanged, selection, currentTime, setVideoCurrentTime, isSettingCurrentTime]);\r\n\r\n React.useEffect(() => {\r\n setSelection({ start: 0, end: duration });\r\n }, [duration]);\r\n\r\n const setVolume = (v) => {\r\n /* istanbul ignore else */\r\n if (videoElement) {\r\n videoElement.volume = v / 100;\r\n }\r\n };\r\n\r\n const isInvalidStartTime = startTime => startTime < 0 || startTime > selection.end;\r\n const isInvalidEndTime = endTime => endTime < selection.start || endTime > duration;\r\n\r\n const onStartTimeChanged = (e, value) => {\r\n setStartTimeInput(value);\r\n const { isValidTime, timeValue } = getValidClipperTime(value);\r\n if (isValidTime && !isInvalidStartTime(timeValue)) {\r\n _onSelectionChanged(timeValue, selection.end);\r\n }\r\n };\r\n\r\n const onEndTimeChanged = (e, value) => {\r\n setEndTimeInput(value);\r\n const { isValidTime, timeValue } = getValidClipperTime(value);\r\n if (isValidTime && !isInvalidEndTime(timeValue)) {\r\n _onSelectionChanged(selection.start, timeValue);\r\n }\r\n };\r\n\r\n const onSelectionChanged = (start, end) => {\r\n setSelection({ start, end });\r\n _onSelectionChanged(start, end);\r\n setStartTimeInput(FormatTimeTo3Decimals(start));\r\n setEndTimeInput(FormatTimeTo3Decimals(end));\r\n };\r\n\r\n /* istanbul ignore next */\r\n const onCurrentTimeChange = (time) => {\r\n setVideoCurrentTime(time);\r\n setCurrentTime(time);\r\n onCurrentChanged(time);\r\n };\r\n\r\n const onGetErrorMessage = (value, start = false) => {\r\n const { isValidTime, timeValue } = getValidClipperTime(value);\r\n if (!isValidTime || (start && isInvalidStartTime(timeValue)) || (!start && isInvalidEndTime(timeValue))) {\r\n onSelectionOutofSync(true);\r\n return timeErrorString;\r\n }\r\n\r\n setSelection(start ? { ...selection, start: timeValue } : { ...selection, end: timeValue });\r\n onSelectionOutofSync(false);\r\n return '';\r\n };\r\n\r\n /* istanbul ignore next */\r\n const width = defaultWidth || (videoElement ? videoElement.style.width || videoElement.clientWidth || videoElement.videoWidth : 0);\r\n\r\n return (\r\n
\r\n
\r\n {children}\r\n
\r\n {videoElement &&\r\n \r\n
\r\n (paused ? videoElement.play() : videoElement.pause())}\r\n />\r\n
\r\n { FormatTime(currentTime) }\r\n / \r\n { FormatTime(duration) }\r\n
\r\n \r\n setVolumeVisible(!volumeVisible)} />\r\n
\r\n
\r\n onGetErrorMessage(value, true)}\r\n />\r\n To\r\n onGetErrorMessage(value, false)}\r\n />\r\n
\r\n setVolumeVisible(false)}\r\n hidden={!volumeVisible}\r\n isBeakVisible={false}\r\n directionalHint={DirectionalHint.topCenter}\r\n >\r\n \r\n \r\n
\r\n }\r\n
\r\n );\r\n}\r\n\r\nVideoClipperComponent.propTypes = {\r\n onSelectionChanged: PropTypes.func,\r\n onCurrentChanged: PropTypes.func,\r\n onDurationChanged: PropTypes.func,\r\n onSelectionOutofSync: PropTypes.func,\r\n timeErrorString: PropTypes.string,\r\n width: PropTypes.number,\r\n children: PropTypes.element.isRequired,\r\n classes: PropTypes.shape({\r\n container: PropTypes.string,\r\n controlIcon: PropTypes.string,\r\n timeDisplay: PropTypes.string,\r\n selectionContainer: PropTypes.string,\r\n selectionText: PropTypes.string,\r\n videoVolume: PropTypes.string,\r\n volumeIcon: PropTypes.string,\r\n volumeSlider: PropTypes.string,\r\n }),\r\n};\r\n\r\nVideoClipperComponent.defaultProps = {\r\n onSelectionChanged: _.noop,\r\n onCurrentChanged: _.noop,\r\n onDurationChanged: _.noop,\r\n onSelectionOutofSync: _.noop,\r\n timeErrorString: 'Invalid time.',\r\n width: 0,\r\n classes: {},\r\n};\r\n\r\nexport const VideoClipper = withDefaultStyles(VideoClipperComponent, getClipperStyles);\r\n","export const getClipperStyles = () => ({\r\n container: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'space-around',\r\n '& i': {\r\n cursor: 'pointer',\r\n },\r\n height: 64,\r\n userSelect: 'none',\r\n backgroundColor: '#000000',\r\n },\r\n controlIcon: {\r\n fontSize: 20,\r\n color: '#ffffff',\r\n },\r\n timeDisplay: {\r\n color: '#ffffff',\r\n },\r\n volumeIcon: {\r\n },\r\n selectionContainer: {\r\n display: 'flex',\r\n justifyContent: 'center',\r\n alignItems: 'baseline',\r\n userSelect: 'none',\r\n marginTop: 15,\r\n },\r\n selectionText: {\r\n fontFamily: 'Segoe UI',\r\n marginLeft: 10,\r\n fontSize: 14,\r\n maxWidth: 100,\r\n },\r\n videoVolume: {\r\n boxShadow: 'none',\r\n '& .ms-Callout-main': {\r\n backgroundColor: 'rgba(0, 0, 0, 0)',\r\n },\r\n },\r\n volumeSlider: {\r\n height: 120,\r\n },\r\n});\r\n\r\nconst borderRadius = 0;\r\nconst height = 40;\r\n\r\nconst sliderCommonStyles = {\r\n display: 'inline-flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n backgroundColor: '#ffffff',\r\n width: 16,\r\n height,\r\n cursor: 'col-resize',\r\n position: 'relative',\r\n};\r\n\r\nexport const getClipSelectorStyles = () => ({\r\n root: {\r\n borderRadius,\r\n height,\r\n display: 'inline-flex',\r\n background: '#a19f9d',\r\n position: 'relative',\r\n },\r\n selection: {\r\n position: 'relative',\r\n backgroundColor: '#edebe9',\r\n cursor: 'move',\r\n borderTop: '4px solid #ffffff',\r\n borderBottom: '4px solid #ffffff',\r\n },\r\n starter: {\r\n ...sliderCommonStyles,\r\n borderRadius: `${borderRadius}px 0px 0px ${borderRadius}px`,\r\n marginLeft: -16,\r\n '&.dragging': {\r\n filter: 'brightness(70%)',\r\n },\r\n },\r\n ender: {\r\n ...sliderCommonStyles,\r\n borderRadius: `0px ${borderRadius}px ${borderRadius}px 0px`,\r\n marginRight: -16,\r\n '&.dragging': {\r\n filter: 'brightness(70%)',\r\n },\r\n },\r\n boundaryIcon: {\r\n fontSize: 12,\r\n color: '#000000',\r\n },\r\n cursor: {},\r\n progress: {},\r\n background: {\r\n position: 'absolute',\r\n borderRadius,\r\n height,\r\n },\r\n pin: {\r\n position: 'absolute',\r\n height: 56,\r\n bottom: 8,\r\n cursor: 'col-resize',\r\n '& .head': {\r\n height: 10,\r\n width: 10,\r\n marginLeft: -4,\r\n borderRadius: 5,\r\n background: 'black',\r\n display: 'none',\r\n },\r\n '& .body': {\r\n height: 44,\r\n width: 4,\r\n marginTop: 22,\r\n background: '#0078D4',\r\n borderRadius: 4,\r\n },\r\n '&.dragging': {\r\n filter: 'opacity(50%)',\r\n },\r\n },\r\n});\r\n","/* eslint-disable max-len */\r\n/* eslint-disable jsx-a11y/no-static-element-interactions */\r\n/* eslint-disable no-mixed-operators */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { Icon } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getClipSelectorStyles } from '../../styles';\r\nimport { round } from '../util';\r\n\r\nclass ClipSelectorComponent extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n videoTrackWidth: props.width,\r\n isStartMoving: false,\r\n isEndMoving: false,\r\n isPinMoving: false,\r\n isSelectionMoving: false,\r\n moveStart: 0,\r\n };\r\n this.ref = React.createRef();\r\n }\r\n\r\n componentDidMount() {\r\n document.addEventListener('mousemove', this.onMouseMove, { capture: true });\r\n document.addEventListener('mouseup', this.onMouseUp, { capture: true });\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (prevProps.width !== this.props.width) {\r\n // eslint-disable-next-line react/no-did-update-set-state\r\n this.setState({\r\n videoTrackWidth: this.props.width,\r\n });\r\n }\r\n if (\r\n prevProps.startTime !== this.props.startTime ||\r\n prevProps.endTime !== this.props.endTime ||\r\n prevProps.duration !== this.props.duration ||\r\n prevProps.width !== this.props.width\r\n ) {\r\n const {\r\n startTime,\r\n endTime,\r\n duration,\r\n currentTime,\r\n onCurrentTimeChange,\r\n } = this.props;\r\n const {\r\n videoTrackWidth,\r\n } = this.state;\r\n const current = videoTrackWidth * currentTime / duration;\r\n const start = videoTrackWidth * startTime / duration;\r\n const end = videoTrackWidth * endTime / duration;\r\n if (current < start) {\r\n onCurrentTimeChange(start / videoTrackWidth * duration);\r\n } else if (current > end) {\r\n onCurrentTimeChange(end / videoTrackWidth * duration);\r\n }\r\n }\r\n }\r\n\r\n /* istanbul ignore next */\r\n componentWillUnmount() {\r\n document.removeEventListener('mousemove', this.onMouseMove);\r\n document.removeEventListener('mouseup', this.onMouseUp);\r\n }\r\n\r\n onMouseUp = () => {\r\n this.setState({\r\n isStartMoving: false,\r\n isEndMoving: false,\r\n isPinMoving: false,\r\n isSelectionMoving: false,\r\n });\r\n };\r\n\r\n onMouseMove = _.throttle((e) => {\r\n const {\r\n videoTrackWidth,\r\n isStartMoving,\r\n isEndMoving,\r\n isPinMoving,\r\n isSelectionMoving,\r\n moveStart,\r\n } = this.state;\r\n const {\r\n startTime,\r\n endTime,\r\n duration,\r\n onCurrentTimeChange,\r\n onSelectionChanged,\r\n } = this.props;\r\n const start = round(videoTrackWidth * startTime / duration, 3);\r\n const end = round(videoTrackWidth * endTime / duration, 3);\r\n const offsetLeft = isStartMoving || isEndMoving || isPinMoving || isSelectionMoving ? this.ref.current.getBoundingClientRect().left : 0;\r\n if (isStartMoving) {\r\n const newStartTime = Math.min(Math.max(e.clientX - offsetLeft, 0), end) * duration / videoTrackWidth;\r\n onSelectionChanged(newStartTime, endTime);\r\n } else if (isEndMoving) {\r\n const newEndTime = Math.max(Math.min(e.clientX - offsetLeft, videoTrackWidth), start) * duration / videoTrackWidth;\r\n onSelectionChanged(startTime, newEndTime);\r\n } else if (isPinMoving) {\r\n const pos = Math.min(Math.max(e.clientX - offsetLeft, start), end);\r\n onCurrentTimeChange(pos / videoTrackWidth * duration);\r\n } else if (isSelectionMoving) {\r\n const width = end - start;\r\n let newStart = Math.min(Math.max(e.clientX - moveStart, 0), videoTrackWidth - width);\r\n newStart = newStart < 0 ? 0 : newStart;\r\n const newStartTime = newStart * duration / videoTrackWidth;\r\n const newEndTime = (newStart + width) * duration / videoTrackWidth;\r\n onSelectionChanged(newStartTime, newEndTime);\r\n }\r\n }, 16);\r\n\r\n onStarterMouseDown = (e) => {\r\n // Only effective for left button\r\n if (e.button !== 0) {\r\n return;\r\n }\r\n this.setState({ isStartMoving: true, moveStart: e.clientX });\r\n };\r\n\r\n onEnderMouseDown = (e) => {\r\n if (e.button !== 0) {\r\n return;\r\n }\r\n this.setState({ isEndMoving: true, moveStart: e.clientX - 10 });\r\n };\r\n\r\n onSelectionMouseDown = (e) => {\r\n if (e.button !== 0) {\r\n return;\r\n }\r\n const start = this.state.videoTrackWidth * this.props.startTime / this.props.duration;\r\n this.setState({ isSelectionMoving: true, moveStart: e.clientX - start });\r\n };\r\n\r\n onPinMouseDown = (e) => {\r\n if (e.button !== 0) {\r\n return;\r\n }\r\n this.setState({ isPinMoving: true, moveStart: e.clientX });\r\n };\r\n\r\n render() {\r\n const {\r\n startTime,\r\n endTime,\r\n width,\r\n classes,\r\n currentTime,\r\n duration,\r\n } = this.props;\r\n const {\r\n videoTrackWidth,\r\n isStartMoving,\r\n isEndMoving,\r\n isPinMoving,\r\n } = this.state;\r\n const current = videoTrackWidth * currentTime / duration;\r\n const start = videoTrackWidth * startTime / duration;\r\n const end = videoTrackWidth * endTime / duration;\r\n return duration > 0 ? (\r\n
\r\n {\r\n this.ref.current &&\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n }\r\n
) : null;\r\n }\r\n}\r\n\r\nClipSelectorComponent.propTypes = {\r\n startTime: PropTypes.number.isRequired, // time in second.\r\n endTime: PropTypes.number.isRequired, // time in second.\r\n duration: PropTypes.number.isRequired, // time in second.\r\n currentTime: PropTypes.number.isRequired, // time in second.\r\n width: PropTypes.number.isRequired, // space width for clipper, in unit of pixel.\r\n onCurrentTimeChange: PropTypes.func,\r\n onSelectionChanged: PropTypes.func,\r\n classes: PropTypes.shape({\r\n root: PropTypes.string,\r\n selector: PropTypes.string,\r\n starter: PropTypes.string,\r\n ender: PropTypes.string,\r\n boundaryIcon: PropTypes.string,\r\n progress: PropTypes.string,\r\n cursor: PropTypes.string,\r\n background: PropTypes.string,\r\n }),\r\n};\r\n\r\nClipSelectorComponent.defaultProps = {\r\n onCurrentTimeChange: _.noop,\r\n onSelectionChanged: _.noop,\r\n classes: {},\r\n};\r\n\r\nexport const ClipSelector = withDefaultStyles(ClipSelectorComponent, getClipSelectorStyles);\r\n","export function round(number, precision) {\r\n return Math.round(`${+number}e${precision}`) / (10 ** precision);\r\n}\r\n\r\nexport function FormatTime(_secNum, decimalPlaces = 0) {\r\n const secNum = parseFloat(_secNum);\r\n let minutes = Math.floor(secNum / 60);\r\n let seconds = secNum - (minutes * 60);\r\n\r\n if (minutes < 10) { minutes = `0${minutes}`; }\r\n seconds = `${round(seconds, decimalPlaces) < 10 ? '0' : ''}${seconds.toFixed(decimalPlaces)}`;\r\n return `${minutes}:${seconds}`;\r\n}\r\n\r\nexport function FormatTimeTo3Decimals(_secNum) {\r\n return FormatTime(_secNum, 3);\r\n}\r\n\r\nexport function IsValidTime(value) {\r\n return (/^\\d+:\\d+(\\.\\d{1,3})?$/g).test(value);\r\n}\r\n\r\nexport function ConvertTimeFrom3Decimals(timeStr) {\r\n const result = (/^(?\\d+):(?\\d+)(\\.(?\\d{1,3}))?$/g).exec(timeStr);\r\n if (!result) return 0;\r\n const { groups } = result;\r\n let {\r\n minute = 0,\r\n second = 0,\r\n millisec = 0,\r\n } = groups;\r\n minute = parseInt(minute, 10);\r\n second = parseInt(second, 10);\r\n millisec = parseInt(millisec, 10);\r\n return round((minute * 60) + second + (millisec / 1000), 3);\r\n}\r\n\r\nexport const getValidClipperTime = (value) => {\r\n const isValidTime = IsValidTime(value);\r\n return {\r\n isValidTime,\r\n timeValue: isValidTime ? ConvertTimeFrom3Decimals(value) : undefined,\r\n };\r\n};\r\n","export const IconOffset = 80;\r\nexport const TimeDisplayOffset = 140;\r\nexport const DefaultVideoVolume = 30;\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__5__;","export { VideoControls } from './src';\r\n","/* eslint-disable max-len */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { Icon, Callout, Slider, DirectionalHint } from '@bingads-webui-react/fabric-control';\r\nimport { registerIcons } from '@fluentui/style-utilities';\r\nimport { getControlStyles, getIconClass } from '../styles';\r\nimport { FormatTime } from './util';\r\nimport { DefaultVideoVolume } from './constants';\r\nimport { volumeReducer, VolumeActions } from './reducers';\r\n\r\nregisterIcons({\r\n icons: {\r\n videoPlayBig: (\r\n \r\n ),\r\n videoPause: (\r\n \r\n ),\r\n videoReplay: (\r\n \r\n ),\r\n videoMute: (\r\n \r\n ),\r\n videoUnmute: (\r\n \r\n ),\r\n },\r\n});\r\n\r\nfunction VideoControlsComponent(props) {\r\n const {\r\n children,\r\n width: defaultWidth,\r\n classes,\r\n showProgressText,\r\n muteByDefault,\r\n immersive,\r\n iconColor,\r\n } = props;\r\n const { current: id } = React.useRef(_.uniqueId('video-control-video-'));\r\n const { current: volumeId } = React.useRef(_.uniqueId('video-control-volume-'));\r\n const [volumeVisible, setVolumeVisible] = React.useState(false);\r\n const [videoElement, setVideoElement] = React.useState(null);\r\n const [paused, setPaused] = React.useState(true);\r\n const [ended, setEnded] = React.useState(false);\r\n const [currentTime, setCurrentTime] = React.useState(0);\r\n const [duration, setDuration] = React.useState(0);\r\n const [mouseIn, setMouseIn] = React.useState(true);\r\n const [{ currentVolume, muted }, dispatch] = React.useReducer(\r\n volumeReducer,\r\n {\r\n currentVolume: muteByDefault ? 0 : DefaultVideoVolume,\r\n previousVolume: DefaultVideoVolume,\r\n muted: muteByDefault,\r\n }\r\n );\r\n\r\n const formatProgress = (videoElement ? `${FormatTime(currentTime)}/${FormatTime(duration)}` : '');\r\n\r\n React.useEffect(() => {\r\n const container = document.querySelector(`#${id}`);\r\n const video = container.querySelector('video');\r\n /* istanbul ignore next */\r\n if (video == null) throw new Error('Unable to find video element.');\r\n setVideoElement(video);\r\n }, [id]);\r\n\r\n React.useEffect(() => {\r\n if (!videoElement) return;\r\n /* istanbul ignore next */\r\n videoElement.onloadedmetadata = (event) => {\r\n setDuration(event.target.duration);\r\n };\r\n videoElement.onplay = () => {\r\n setPaused(false);\r\n setEnded(false);\r\n };\r\n videoElement.onpause = () => {\r\n setPaused(true);\r\n };\r\n videoElement.onended = () => {\r\n /* istanbul ignore next */\r\n setEnded(true);\r\n };\r\n videoElement.ontimeupdate = (event) => {\r\n setCurrentTime(event.target.currentTime);\r\n };\r\n }, [videoElement]);\r\n\r\n React.useEffect(() => {\r\n if (!videoElement) return;\r\n videoElement.volume = currentVolume;\r\n }, [currentVolume, videoElement]);\r\n\r\n const width = defaultWidth || (videoElement ? videoElement.style.width || videoElement.clientWidth || videoElement.videoWidth : 0);\r\n\r\n const onUserSlideProgress = (v) => {\r\n if (_.isFinite(v)) {\r\n videoElement.currentTime = v;\r\n }\r\n /* istanbul ignore next */\r\n if (videoElement && videoElement.paused) {\r\n videoElement.play();\r\n }\r\n };\r\n\r\n const onVolumeClick = React.useCallback(() => {\r\n if (muted) {\r\n dispatch({ type: VolumeActions.SET_UNMUTED });\r\n } else {\r\n dispatch({ type: VolumeActions.SET_MUTED });\r\n }\r\n }, [muted]);\r\n\r\n const playIconName = React.useMemo(() => {\r\n /* istanbul ignore next */\r\n if (ended) {\r\n return 'videoReplay';\r\n }\r\n return paused ? 'videoPlayBig' : 'videoPause';\r\n }, [ended, paused]);\r\n\r\n const hideVideoControls = !videoElement || (videoElement && immersive && !mouseIn && !paused);\r\n const iconClass = getIconClass(iconColor);\r\n\r\n return (\r\n setMouseIn(true)}\r\n onMouseLeave={/* istanbul ignore next */ () => setMouseIn(false)}\r\n >\r\n
\r\n {children}\r\n
\r\n {\r\n !hideVideoControls &&\r\n \r\n {immersive &&
}\r\n
\r\n (paused ? videoElement.play() : videoElement.pause())}\r\n />\r\n {showProgressText && {formatProgress}}\r\n \r\n setVolumeVisible(!volumeVisible)}\r\n onFocus={/* istanbul ignore next */ () => setVolumeVisible(!volumeVisible)}\r\n onClick={onVolumeClick}\r\n />\r\n
\r\n setVolumeVisible(false)}\r\n hidden={!volumeVisible || muted}\r\n isBeakVisible={false}\r\n directionalHint={DirectionalHint.topCenter}\r\n >\r\n dispatch({ type: VolumeActions.SET_VOLUME, volume: v / 100 })} showValue={false} />\r\n \r\n \r\n }\r\n
\r\n );\r\n}\r\n\r\nVideoControlsComponent.propTypes = {\r\n children: PropTypes.element.isRequired,\r\n width: PropTypes.number,\r\n classes: PropTypes.shape({\r\n root: PropTypes.string,\r\n container: PropTypes.string,\r\n progress: PropTypes.string,\r\n progressText: PropTypes.string,\r\n videoVolume: PropTypes.string,\r\n volumeIcon: PropTypes.string,\r\n volumeSlider: PropTypes.string,\r\n }),\r\n showProgressText: PropTypes.bool,\r\n muteByDefault: PropTypes.bool,\r\n immersive: PropTypes.bool,\r\n iconColor: PropTypes.string,\r\n};\r\n\r\nVideoControlsComponent.defaultProps = {\r\n width: 0,\r\n classes: {},\r\n showProgressText: true,\r\n muteByDefault: false,\r\n immersive: false,\r\n iconColor: 'white',\r\n};\r\n\r\nexport const VideoControls = withDefaultStyles(VideoControlsComponent, getControlStyles);\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__103__;","import { mergeStyles } from '@fluentui/style-utilities';\r\n\r\nexport const getControlStyles = () => ({\r\n root: {\r\n position: 'relative',\r\n },\r\n container: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n '& i': {\r\n fontSize: 20,\r\n cursor: 'pointer',\r\n },\r\n },\r\n progress: {\r\n },\r\n progressText: {\r\n fontFamily: 'Segoe UI',\r\n marginLeft: 10,\r\n fontSize: 12,\r\n },\r\n videoVolume: {\r\n boxShadow: 'none',\r\n '& .ms-Callout-main': {\r\n backgroundColor: 'rgba(0, 0, 0, 0)',\r\n },\r\n },\r\n volumeSlider: {\r\n height: 120,\r\n },\r\n videoControlsShadow: {\r\n background: 'linear-gradient(180deg, rgba(34, 34, 34, 0) 0%, #111111 100%);',\r\n position: 'absolute',\r\n bottom: 0,\r\n height: 50,\r\n pointerEvents: 'none',\r\n transition: 'opacity 0.3s',\r\n },\r\n immersivePosition: {\r\n position: 'absolute',\r\n bottom: 0,\r\n },\r\n});\r\n\r\nexport const defaultIconClass = mergeStyles({\r\n display: 'flex',\r\n});\r\n\r\nexport const getIconClass = (colorString = 'white') => mergeStyles(defaultIconClass, {\r\n selectors: {\r\n svg: {\r\n fill: colorString,\r\n },\r\n },\r\n});\r\n","export function FormatTime(_secNum) {\r\n const secNum = parseFloat(_secNum);\r\n let minutes = Math.floor(secNum / 60);\r\n const seconds = secNum - (minutes * 60);\r\n\r\n if (minutes < 10) { minutes = `0${minutes}`; }\r\n return `${minutes}:${seconds < 10 ? '0' : ''}${Math.floor(seconds)}`;\r\n}\r\n","export const DefaultVideoVolume = 30 / 100;\r\n","export const VolumeActions = {\r\n SET_VOLUME: 'SET_VOLUME',\r\n SET_MUTED: 'SET_MUTED',\r\n SET_UNMUTED: 'SET_UNMUTED',\r\n};\r\n\r\nexport const volumeReducer = (state, action) => {\r\n switch (action.type) {\r\n case VolumeActions.SET_VOLUME:\r\n return { ...state, currentVolume: action.volume };\r\n case VolumeActions.SET_MUTED:\r\n return { previousVolume: state.currentVolume, currentVolume: 0, muted: true };\r\n case VolumeActions.SET_UNMUTED:\r\n return { ...state, currentVolume: state.previousVolume, muted: false };\r\n default:\r\n return state;\r\n }\r\n};\r\n","export * from './src';\r\n","export { Layout, LayoutContainer } from '@bingads-webui-react/form-core';\r\nexport { Wizard } from './core/wizard';\r\nexport { useWizardService } from './core/wizard-service';\r\nexport { WizardConfigPropsShape } from './core/wizard-props';\r\nexport * from './core/utils';\r\nexport { WIZARD_EVENTS, STEP_STATES, STEP_EVENTS } from './machine/constants';\r\nexport { StepContainer } from './step/step-container';\r\nexport { DemoStepInWizard } from './test-utils/demo-step-in-wizard';\r\nexport { useSimpleRepository, createSimpleStep } from './test-utils/simple-configs';\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { WizardService } from './wizard-service';\r\nimport { WizardConfigPropsShape } from './wizard-props';\r\n\r\nexport const Wizard = (props) => {\r\n const {\r\n config,\r\n children,\r\n } = props;\r\n\r\n const { render } = config;\r\n\r\n return (\r\n \r\n {children || render()}\r\n \r\n );\r\n};\r\n\r\nWizard.propTypes = {\r\n config: PropTypes.shape(WizardConfigPropsShape).isRequired,\r\n children: PropTypes.node,\r\n};\r\n\r\nWizard.defaultProps = {\r\n children: null,\r\n};\r\n","import React, { useContext, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { useInterpret, useActor } from '@xstate/react';\r\n\r\nimport { createWizardMachine } from '../machine/machine-factory';\r\nimport { WizardConfigPropsShape } from './wizard-props';\r\n\r\nconst WizardServiceContext = React.createContext();\r\n\r\nexport const useWizardService = () => {\r\n const [wizardService, config] = useContext(WizardServiceContext);\r\n const [state] = useActor(wizardService);\r\n\r\n return {\r\n config,\r\n state,\r\n send: wizardService.send,\r\n };\r\n};\r\n\r\nexport const WizardService = (props) => {\r\n const {\r\n config,\r\n children,\r\n } = props;\r\n const { observer, actions, ...restConfig } = config;\r\n\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 const wizardMachine = useMemo(() => createWizardMachine(restConfig), []);\r\n const options = useMemo(() => ({ actions }), [actions]);\r\n\r\n const wizardService = useInterpret(wizardMachine, options, observer);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nWizardService.propTypes = {\r\n config: PropTypes.shape(WizardConfigPropsShape).isRequired,\r\n children: PropTypes.node,\r\n};\r\n\r\nWizardService.defaultProps = {\r\n children: null,\r\n};\r\n","import { createMachine } from 'xstate';\r\nimport { createWizardConfig } from './machine-config';\r\nimport { DefaultWizardActions } from './step-state';\r\n\r\nexport const createWizardMachine = (config) => {\r\n const machineConfig = createWizardConfig(config);\r\n const options = {\r\n actions: DefaultWizardActions,\r\n };\r\n return createMachine(machineConfig, options);\r\n};\r\n","import _ from 'underscore';\r\nimport { createStepState } from './step-state';\r\nimport { createNavigationEvents } from './navigation-events';\r\n\r\nconst createWizardStates = (steps, navigationEvents, getFlow) => (\r\n _.reduce(steps, (states, stepConfig) => {\r\n const stepState = createStepState(stepConfig, navigationEvents, getFlow);\r\n return _.extend(states, stepState);\r\n }, {})\r\n);\r\n\r\nexport const createWizardConfig = (config) => {\r\n const {\r\n id,\r\n initialStep,\r\n initialFlowFactors,\r\n initialWizardData,\r\n getFlow,\r\n steps,\r\n } = config;\r\n\r\n const flowFactors = initialFlowFactors || {};\r\n const wizardData = initialWizardData || {};\r\n const allSteps = _.map(steps, stepConfig => stepConfig.id);\r\n let currentFlow = allSteps;\r\n if (_.isFunction(getFlow)) {\r\n currentFlow = getFlow(flowFactors);\r\n }\r\n\r\n const navigationEvents = createNavigationEvents(allSteps, getFlow);\r\n const states = createWizardStates(steps, navigationEvents, getFlow);\r\n\r\n return {\r\n id,\r\n initial: initialStep || currentFlow[0],\r\n preserveActionOrder: true,\r\n context: {\r\n stepServices: {},\r\n stepContexts: {}, // Child machine contexts, this will be maintained internally\r\n wizardData,\r\n currentFlow,\r\n flowFactors,\r\n },\r\n states,\r\n };\r\n};\r\n","import _ from 'underscore';\r\nimport { sendParent, assign, spawn, send } from 'xstate';\r\n\r\nimport { FORM_EVENTS, createFormMachine } from '@bingads-webui-react/form-core';\r\nimport { STEP_EVENTS, STEP_STATES, WIZARD_EVENTS } from './constants';\r\nimport { getUpdatedFlow } from './navigation-events';\r\n\r\nexport const DefaultWizardActions = {\r\n // Default callback actions on step state changes\r\n onDone: _.noop,\r\n onExited: _.noop,\r\n onStepChanged: _.noop,\r\n};\r\n\r\nconst stepCallbackActions = {\r\n onFetching: sendParent(STEP_EVENTS.START_FETCHING),\r\n onLoading: sendParent(STEP_EVENTS.START_LOADING),\r\n onFailedLoading: sendParent(STEP_EVENTS.RESET),\r\n onActive: sendParent(STEP_EVENTS.SYNC_ACTIVE),\r\n onConfirming: sendParent(STEP_EVENTS.START_CONFIRMING),\r\n onSaving: sendParent(STEP_EVENTS.START_SAVING),\r\n onDoneSaving: sendParent(STEP_EVENTS.SYNC_SAVED),\r\n onCanceled: sendParent(WIZARD_EVENTS.EXIT),\r\n onSyncContext: sendParent(context => ({\r\n ...context,\r\n type: WIZARD_EVENTS.UPDATE_STEP_CONTEXTS,\r\n })),\r\n};\r\n\r\nconst createStepService = stepConfig => ({\r\n stepServices: (context) => {\r\n const { id: stepId, machineOptions = {} } = stepConfig;\r\n const formMachine = createFormMachine({\r\n ...machineOptions,\r\n machineId: stepId,\r\n context: {\r\n ...machineOptions.context,\r\n config: stepConfig,\r\n },\r\n actions: {\r\n ...machineOptions.actions,\r\n ...stepCallbackActions,\r\n },\r\n });\r\n const service = spawn(formMachine, stepId);\r\n\r\n return {\r\n ...context.stepServices,\r\n [stepId]: service,\r\n };\r\n },\r\n});\r\n\r\nexport const createStepState = (stepConfig, navigationEvents, getFlow) => {\r\n const { id: stepId } = stepConfig;\r\n const assignStepService = assign(createStepService(stepConfig));\r\n const notifyStepToSave = send(\r\n { type: FORM_EVENTS.SAVE },\r\n { to: stepId }\r\n );\r\n const notifyStepToAbortSave = send(\r\n { type: FORM_EVENTS.ABORT_SAVE },\r\n { to: stepId }\r\n );\r\n const notifyStepToConfirmSave = send(\r\n { type: FORM_EVENTS.CONFIRM_SAVE },\r\n { to: stepId }\r\n );\r\n\r\n // TODO: remove SAVE_EMPTY_AND_NEXT and setEmptyData\r\n const setEmptyData = send(\r\n { type: FORM_EVENTS.CHANGE_DATA, data: { data: {}, isValid: true }, isValid: true },\r\n { to: stepId }\r\n );\r\n\r\n const setGoToStepId = assign({\r\n goToStepId: (context, event) => event.stepId,\r\n });\r\n\r\n const setToBeUpdateFlowFactors = assign({\r\n flowFactorsToBeUpdated: (context, event) => event.flowFactors,\r\n });\r\n\r\n const setToBeUpdateWizardData = assign({\r\n wizardDataToBeUpdated: (context, event) => event.wizardData,\r\n });\r\n\r\n const updateOnSaved = assign({\r\n flowFactors: context => ({\r\n ...context.flowFactors,\r\n ...context.flowFactorsToBeUpdated,\r\n }),\r\n currentFlow: context => getUpdatedFlow(context, { flowFactors: context.flowFactorsToBeUpdated }, getFlow),\r\n wizardData: context => ({\r\n ...context.wizardData,\r\n ...context.wizardDataToBeUpdated,\r\n }),\r\n });\r\n\r\n const cleanAfterSaved = assign({\r\n goToStepId: undefined,\r\n flowFactorsToBeUpdated: undefined,\r\n wizardDataToBeUpdated: undefined,\r\n });\r\n\r\n const updateFlow = assign({\r\n flowFactors: (context, event) => ({\r\n ...context.flowFactors,\r\n ...event.flowFactors,\r\n }),\r\n currentFlow: (context, event) => {\r\n const currentFlow = getUpdatedFlow(context, event, getFlow);\r\n return currentFlow;\r\n },\r\n });\r\n\r\n const updateWizardData = assign({\r\n wizardData: (context, event) => ({\r\n ...context.wizardData,\r\n ...event,\r\n }),\r\n });\r\n\r\n const updateStepContexts = assign({\r\n stepContexts: (context, event) => {\r\n const { config } = event;\r\n const { id } = config;\r\n return ({\r\n ...context.stepContexts,\r\n [id]: event,\r\n });\r\n },\r\n });\r\n\r\n return {\r\n [stepId]: {\r\n id: stepId,\r\n entry: ['onStepChanged'],\r\n // TODO: will revisit this part and remove idle after using callback service\r\n // currently spawn action has issue using xstate above version 4.33.0\r\n initial: 'idle',\r\n states: {\r\n idle: {\r\n after: {\r\n 1: {\r\n target: STEP_STATES.INIT,\r\n actions: [assignStepService],\r\n },\r\n },\r\n },\r\n [STEP_STATES.INIT]: {\r\n on: {\r\n [STEP_EVENTS.START_FETCHING]: STEP_STATES.FETCHING,\r\n [STEP_EVENTS.SYNC_ACTIVE]: STEP_STATES.ACTIVE,\r\n [STEP_EVENTS.START_LOADING]: STEP_STATES.LOADING,\r\n },\r\n },\r\n [STEP_STATES.FETCHING]: {\r\n on: {\r\n [STEP_EVENTS.SYNC_ACTIVE]: STEP_STATES.ACTIVE,\r\n [STEP_EVENTS.START_LOADING]: STEP_STATES.LOADING,\r\n },\r\n },\r\n [STEP_STATES.LOADING]: {\r\n on: {\r\n [STEP_EVENTS.SYNC_ACTIVE]: STEP_STATES.ACTIVE,\r\n [STEP_EVENTS.RESET]: STEP_STATES.INIT,\r\n },\r\n },\r\n [STEP_STATES.ACTIVE]: {\r\n on: {\r\n [STEP_EVENTS.START_SAVING]: STEP_STATES.SAVING,\r\n [STEP_EVENTS.START_LOADING]: STEP_STATES.LOADING,\r\n [STEP_EVENTS.START_CONFIRMING]: STEP_STATES.CONFIRMING,\r\n },\r\n },\r\n [STEP_STATES.CANCELING]: {\r\n on: {\r\n [WIZARD_EVENTS.CONFIRM_CANCEL]: STEP_STATES.EXITED,\r\n [WIZARD_EVENTS.ABORT_CANCEL]: STEP_STATES.ACTIVE,\r\n },\r\n },\r\n [STEP_STATES.CONFIRMING]: {\r\n on: {\r\n [STEP_EVENTS.ABORT_SAVE]: {\r\n actions: [notifyStepToAbortSave],\r\n },\r\n [STEP_EVENTS.CONFIRM_SAVE]: [{\r\n target: `${STEP_STATES.SAVING}.History`,\r\n actions: [notifyStepToConfirmSave],\r\n }],\r\n [STEP_EVENTS.START_SAVING]: [{\r\n target: `${STEP_STATES.SAVING}.History`,\r\n }],\r\n [STEP_EVENTS.SYNC_ACTIVE]: STEP_STATES.ACTIVE,\r\n },\r\n },\r\n [STEP_STATES.SAVING]: {\r\n states: {\r\n History: { type: 'history' },\r\n [STEP_STATES.GOING_NEXT]: {\r\n on: {\r\n [STEP_EVENTS.START_CONFIRMING]: {\r\n target: `#${stepId}.${STEP_STATES.CONFIRMING}`,\r\n },\r\n [STEP_EVENTS.SYNC_SAVED]: [{\r\n target: `#${stepId}.${STEP_STATES.DONE}`,\r\n cond: context => _.last(context.currentFlow) === stepId,\r\n }, {\r\n target: `#${stepId}.${STEP_STATES.ACTIVE}`,\r\n actions: [\r\n updateOnSaved,\r\n send(WIZARD_EVENTS.NEXT),\r\n cleanAfterSaved,\r\n ],\r\n }],\r\n },\r\n },\r\n [STEP_STATES.GOING_BACK]: {\r\n on: {\r\n [STEP_EVENTS.START_CONFIRMING]: {\r\n target: `#${stepId}.${STEP_STATES.CONFIRMING}`,\r\n },\r\n [STEP_EVENTS.SYNC_SAVED]: {\r\n target: `#${stepId}.${STEP_STATES.ACTIVE}`,\r\n actions: [\r\n updateOnSaved,\r\n send(WIZARD_EVENTS.BACK),\r\n cleanAfterSaved,\r\n ],\r\n },\r\n },\r\n },\r\n [STEP_STATES.EXITING]: {\r\n on: {\r\n [STEP_EVENTS.START_CONFIRMING]: {\r\n target: `#${stepId}.${STEP_STATES.CONFIRMING}`,\r\n },\r\n [STEP_EVENTS.SYNC_SAVED]: {\r\n target: `#${stepId}.${STEP_STATES.ACTIVE}`,\r\n actions: [\r\n updateOnSaved,\r\n send(WIZARD_EVENTS.EXIT),\r\n cleanAfterSaved,\r\n ],\r\n },\r\n },\r\n },\r\n [STEP_STATES.GOTO]: {\r\n on: {\r\n [STEP_EVENTS.START_CONFIRMING]: {\r\n target: `#${stepId}.${STEP_STATES.CONFIRMING}`,\r\n },\r\n [STEP_EVENTS.SYNC_SAVED]: {\r\n actions: [\r\n updateOnSaved,\r\n send(context => ({\r\n type: WIZARD_EVENTS.NAVIGATE_TO,\r\n stepId: context.goToStepId,\r\n })),\r\n cleanAfterSaved,\r\n ],\r\n },\r\n },\r\n },\r\n },\r\n on: {\r\n [STEP_EVENTS.SYNC_ACTIVE]: STEP_STATES.ACTIVE,\r\n },\r\n },\r\n [STEP_STATES.DONE]: {\r\n entry: ['onDone'],\r\n },\r\n [STEP_STATES.EXITED]: {\r\n entry: ['onExited'],\r\n },\r\n History: {\r\n type: 'history',\r\n },\r\n },\r\n on: {\r\n [WIZARD_EVENTS.UPDATE_FlOW_FACTORS]: {\r\n actions: [updateFlow],\r\n },\r\n [WIZARD_EVENTS.UPDATE_WIZARD_DATA]: {\r\n actions: [updateWizardData],\r\n },\r\n [WIZARD_EVENTS.UPDATE_STEP_CONTEXTS]: {\r\n actions: [updateStepContexts],\r\n },\r\n [WIZARD_EVENTS.NAVIGATE_TO]: navigationEvents.navigateTo,\r\n [WIZARD_EVENTS.NEXT]: navigationEvents.next,\r\n [WIZARD_EVENTS.BACK]: navigationEvents.back,\r\n [WIZARD_EVENTS.EXIT]: `.${STEP_STATES.EXITED}`,\r\n [WIZARD_EVENTS.SAVE_AND_BACK]: {\r\n target: `.${STEP_STATES.SAVING}.${STEP_STATES.GOING_BACK}`,\r\n actions: [notifyStepToSave, setToBeUpdateFlowFactors, setToBeUpdateWizardData],\r\n },\r\n [WIZARD_EVENTS.SAVE_AND_NEXT]: {\r\n target: `.${STEP_STATES.SAVING}.${STEP_STATES.GOING_NEXT}`,\r\n actions: [notifyStepToSave, setToBeUpdateFlowFactors, setToBeUpdateWizardData],\r\n },\r\n [WIZARD_EVENTS.SAVE_AND_EXIT]: {\r\n target: `.${STEP_STATES.SAVING}.${STEP_STATES.EXITING}`,\r\n actions: [notifyStepToSave, setToBeUpdateWizardData],\r\n },\r\n [WIZARD_EVENTS.SAVE_AND_GOTO]: {\r\n target: `.${STEP_STATES.SAVING}.${STEP_STATES.GOTO}`,\r\n actions: [notifyStepToSave, setGoToStepId, setToBeUpdateFlowFactors, setToBeUpdateWizardData],\r\n },\r\n [WIZARD_EVENTS.CANCEL]: {\r\n target: `.${STEP_STATES.CANCELING}`,\r\n },\r\n [WIZARD_EVENTS.SAVE_EMPTY_AND_NEXT]: {\r\n actions: [setEmptyData, send(WIZARD_EVENTS.SAVE_AND_NEXT)],\r\n },\r\n },\r\n },\r\n };\r\n};\r\n","export const STEP_STATES = {\r\n INIT: 'INIT',\r\n FETCHING: 'FETCHING',\r\n LOADING: 'LOADING',\r\n ACTIVE: 'ACTIVE',\r\n CANCELING: 'CANCELING',\r\n SAVING: 'SAVING',\r\n // Sub states of SAVING\r\n CONFIRMING: 'CONFIRMING',\r\n GOING_NEXT: 'GOING_NEXT',\r\n GOING_BACK: 'GOING_BACK',\r\n EXITING: 'EXITING',\r\n GOTO: 'GOTO',\r\n DONE: 'DONE',\r\n EXITED: 'EXITED',\r\n};\r\n\r\nexport const STEP_EVENTS = {\r\n START_FETCHING: 'START_FETCHING',\r\n START_LOADING: 'START_LOADING',\r\n RESET: 'RESET',\r\n SYNC_ACTIVE: 'SYNC_ACTIVE',\r\n START_CONFIRMING: 'START_CONFIRMING',\r\n ABORT_SAVE: 'ABORT_SAVE',\r\n CONFIRM_SAVE: 'CONFIRM_SAVE',\r\n START_SAVING: 'START_SAVING',\r\n SYNC_SAVED: 'SYNC_SAVED',\r\n};\r\n\r\nexport const WIZARD_EVENTS = {\r\n NAVIGATE_TO: 'NAVIGATE_TO',\r\n BACK: 'BACK',\r\n NEXT: 'NEXT',\r\n EXIT: 'EXIT',\r\n SAVE_AND_BACK: 'SAVE_AND_BACK',\r\n SAVE_AND_NEXT: 'SAVE_AND_NEXT',\r\n SAVE_AND_EXIT: 'SAVE_AND_EXIT',\r\n SAVE_AND_GOTO: 'SAVE_AND_GOTO',\r\n CANCEL: 'CANCEL',\r\n ABORT_CANCEL: 'ABORT_CANCEL',\r\n CONFIRM_CANCEL: 'CONFIRM_CANCEL',\r\n SAVE_EMPTY_AND_NEXT: 'SAVE_EMPTY_AND_NEXT',\r\n\r\n UPDATE_FlOW_FACTORS: 'UPDATE_FlOW_FACTORS',\r\n UPDATE_WIZARD_DATA: 'UPDATE_WIZARD_DATA',\r\n UPDATE_STEP_CONTEXTS: 'UPDATE_STEP_CONTEXTS',\r\n};\r\n","import _ from 'underscore';\r\nimport { assign } from 'xstate';\r\nimport { getCurrentStepId } from '../core/utils';\r\n\r\nexport const getUpdatedFlow = (context, event, getFlow) => {\r\n let { currentFlow } = context;\r\n if (event.flowFactors && _.isFunction(getFlow)) {\r\n currentFlow = getFlow({\r\n ...context.flowFactors,\r\n ...event.flowFactors,\r\n });\r\n }\r\n return currentFlow;\r\n};\r\n\r\nconst updateFlowOnNavigation = getFlow => ({\r\n flowFactors: (context, event) => ({\r\n ...context.flowFactors,\r\n ...event.flowFactors,\r\n }),\r\n currentFlow: (context, event) => {\r\n const currentFlow = getUpdatedFlow(context, event, getFlow);\r\n return currentFlow;\r\n },\r\n});\r\n\r\nconst createBackEvent = (stepId, getFlow) => ({\r\n target: stepId,\r\n cond: (context, event, { state }) => {\r\n const currentFlow = getUpdatedFlow(context, event, getFlow);\r\n const currentStep = getCurrentStepId(state);\r\n const currentStepIndex = currentFlow.indexOf(currentStep);\r\n if (currentStepIndex === -1 || currentStepIndex === 0) {\r\n return false;\r\n }\r\n return currentFlow[currentStepIndex - 1] === stepId;\r\n },\r\n actions: [assign(updateFlowOnNavigation(getFlow))],\r\n});\r\n\r\nconst createNextEvent = (stepId, getFlow) => ({\r\n target: stepId,\r\n cond: (context, event, { state }) => {\r\n const currentFlow = getUpdatedFlow(context, event, getFlow);\r\n const currentStep = getCurrentStepId(state);\r\n const currentStepIndex = currentFlow.indexOf(currentStep);\r\n if (currentStepIndex === -1 || currentStepIndex === currentFlow.length - 1) {\r\n return false;\r\n }\r\n return currentFlow[currentStepIndex + 1] === stepId;\r\n },\r\n actions: [assign(updateFlowOnNavigation(getFlow))],\r\n});\r\n\r\nconst createNavigateToEvent = (stepId, getFlow) => ({\r\n target: stepId,\r\n cond: (context, event) => {\r\n const { stepId: targetStepId } = event;\r\n const currentFlow = getUpdatedFlow(context, event, getFlow);\r\n return targetStepId === stepId && _.contains(currentFlow, stepId);\r\n },\r\n actions: [assign(updateFlowOnNavigation(getFlow))],\r\n});\r\n\r\nexport const createNavigationEvents = (allSteps, getFlow) => {\r\n const back = [];\r\n const next = [];\r\n const navigateTo = [];\r\n _.each(allSteps, (stepId) => {\r\n back.push(createBackEvent(stepId, getFlow));\r\n next.push(createNextEvent(stepId, getFlow));\r\n navigateTo.push(createNavigateToEvent(stepId, getFlow));\r\n });\r\n return {\r\n back,\r\n next,\r\n navigateTo,\r\n };\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const getStepState = (wizardState) => {\r\n const fullState = wizardState.toStrings()[1];\r\n const childState = fullState.split('.')[1];\r\n return childState;\r\n};\r\n\r\nexport const matchStepState = (wizardState, stepState) => getStepState(wizardState) === stepState;\r\n\r\nexport const getCurrentStepId = (wizardState) => {\r\n const stepId = wizardState.toStrings()[0];\r\n return stepId;\r\n};\r\n\r\nexport const getCurrentFlow = wizardState => wizardState.context.currentFlow;\r\n\r\nexport const getIsFirstStep = wizardState => _.first(getCurrentFlow(wizardState)) === getCurrentStepId(wizardState);\r\nexport const getIsLastStep = wizardState => _.last(getCurrentFlow(wizardState)) === getCurrentStepId(wizardState);\r\n\r\nexport const getFlowFactors = wizardState => wizardState.context.flowFactors;\r\nexport const getFlowFactor = (wizardState, factor) => getFlowFactors(wizardState)[factor];\r\n\r\nexport const getWizardData = wizardState => wizardState.context.wizardData;\r\n\r\nexport const getStepContexts = wizardState => wizardState.context.stepContexts;\r\nexport const getStepData = (wizardState, stepId) => _.get(getStepContexts(wizardState), [stepId, 'data']);\r\n\r\nexport const getIsStepValid = (wizardState, stepId) => {\r\n const stepContext = _.get(getStepContexts(wizardState), stepId);\r\n if (!stepContext) {\r\n return true; // if step context is not found, consider it as valid\r\n }\r\n return stepContext.isValid;\r\n};\r\n\r\nexport const getIsStepSaveFailed = (wizardState, stepId) => {\r\n const stepContext = _.get(getStepContexts(wizardState), stepId);\r\n return stepContext && stepContext.saveFailed;\r\n};\r\n\r\nexport const getVisitedSteps = wizardState => _.keys(getStepContexts(wizardState));\r\nexport const getIsStepVisited = (wizardState, stepId) => getVisitedSteps(wizardState).includes(stepId);\r\n","import PropTypes from 'prop-types';\r\n\r\nexport const WizardConfigPropsShape = {\r\n id: PropTypes.string, // wizard machine id\r\n initialStep: PropTypes.string, // initial step\r\n initialFlowFactors: PropTypes.shape({}), // initial flow factors\r\n initialWizardData: PropTypes.shape({}), // initial wizard data to share between steps\r\n getFlow: PropTypes.func, // if step flow is dynamic, getFlow will be used to get current flow using flow factors as input\r\n steps: PropTypes.arrayOf(PropTypes.shape({ // step configs\r\n id: PropTypes.string, // machine id for step\r\n view: PropTypes.func,\r\n viewProps: PropTypes.shape({}),\r\n repository: PropTypes.func,\r\n repositoryProps: PropTypes.shape({}),\r\n render: PropTypes.func,\r\n machineOptions: PropTypes.shape({\r\n initialState: PropTypes.string, // initial step state\r\n context: PropTypes.shape({}), // initial step context\r\n guards: PropTypes.shape({}), // step guards: needsLoading, needsSaving, needsConfirming\r\n actions: PropTypes.shape({}), // step actions: onLoading, onSaving etc.\r\n observer: PropTypes.oneOfType([\r\n PropTypes.func,\r\n PropTypes.shape({}),\r\n ]),\r\n }),\r\n })),\r\n render: PropTypes.func,\r\n actions: PropTypes.shape({}), // wizard actions: onDone, onExited etc.\r\n observer: PropTypes.oneOfType([\r\n PropTypes.func,\r\n PropTypes.shape({}),\r\n ]),\r\n};\r\n","import React from 'react';\r\nimport { SingleStepContainer } from './single-step-container';\r\n\r\nexport const StepContainer = () => ;\r\n","import React from 'react';\r\nimport { getCurrentStepId } from '../core/utils';\r\nimport { useWizardService } from '../core/wizard-service';\r\nimport { Step } from './step';\r\n\r\nexport const SingleStepContainer = () => {\r\n const { state } = useWizardService();\r\n const stepId = getCurrentStepId(state);\r\n\r\n return ;\r\n};\r\n","import React, { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Form } from '@bingads-webui-react/form-core';\r\n\r\nimport { matchStepState } from '../core/utils';\r\nimport { useWizardService } from '../core/wizard-service';\r\n\r\nexport const Step = ({ stepId }) => {\r\n const { state, config: { steps } } = useWizardService();\r\n const { stepServices } = state.context;\r\n const machineService = stepServices[stepId];\r\n const isInitialized = !matchStepState(state, 'idle');\r\n\r\n const formConfigWithService = useMemo(() => {\r\n const formConfig = steps.find(step => step.id === stepId);\r\n\r\n return {\r\n ...formConfig,\r\n machineOptions: {\r\n machineService,\r\n },\r\n };\r\n }, [steps, machineService, stepId]);\r\n\r\n if (!machineService || !isInitialized) {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n );\r\n};\r\n\r\nStep.propTypes = {\r\n stepId: PropTypes.string.isRequired,\r\n};\r\n","import React, { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Wizard } from '../core/wizard';\r\nimport { useSimpleRepository, createSimpleStep } from './simple-configs';\r\n\r\nexport const DemoStepInWizard = (props) => {\r\n const { stepConfig, ...restConfig } = props;\r\n const steps = useMemo(() => ([{\r\n id: 'mock-step-1',\r\n view: createSimpleStep('mock-step-1'),\r\n repository: useSimpleRepository,\r\n }, {\r\n ...stepConfig,\r\n id: 'demo-step',\r\n }, {\r\n id: 'mock-step-3',\r\n view: createSimpleStep('mock-step-3'),\r\n repository: useSimpleRepository,\r\n }]), [stepConfig]);\r\n\r\n const config = useMemo(() => ({\r\n id: 'demo-wizard',\r\n initialStep: 'demo-step',\r\n steps,\r\n ...restConfig,\r\n }), [steps, restConfig]);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nDemoStepInWizard.propTypes = {\r\n stepConfig: PropTypes.shape({}).isRequired,\r\n};\r\n","import React from 'react';\r\nimport Promise from 'bluebird';\r\n\r\nexport const createSimpleStep = title => () => (\r\n

{title}

\r\n);\r\n\r\nexport const useSimpleRepository = () => {\r\n const load = () => new Promise((resolve) => {\r\n setTimeout(() => resolve({}), 1000);\r\n });\r\n\r\n const save = () => new Promise((resolve) => {\r\n setTimeout(() => resolve({}), 800);\r\n });\r\n\r\n return {\r\n load,\r\n save,\r\n };\r\n};\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__540__;","module.exports = __WEBPACK_EXTERNAL_MODULE__550__;","module.exports = __WEBPACK_EXTERNAL_MODULE__552__;","module.exports = __WEBPACK_EXTERNAL_MODULE__60__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1824__;","export * from './src/components';\r\nexport * from './src/layout-templates';\r\n","export * from './blockers';\r\nexport * from './buttons';\r\nexport * from './confirm-dialog';\r\nexport * from './cancel-dialog';\r\nexport * from './footers';\r\nexport * from './loading-shimmer';\r\nexport * from './step-list';\r\n","import React, { useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { UiBlocker } from '@bingads-webui-react/ui-blocker';\r\nimport { matchStepState, useWizardService, STEP_STATES } from '@bingads-webui-react/wizard-core';\r\n\r\nexport const BusyBlocker = ({ children, loadingText }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state } = useWizardService();\r\n const isLoading = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING);\r\n const isSaving = matchStepState(state, STEP_STATES.SAVING);\r\n const defaultLoadingText = isLoading ? i18n.getString(_TL_('Loading...')) : i18n.getString(_TL_('Saving...'));\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\nBusyBlocker.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n loadingText: PropTypes.string,\r\n};\r\nBusyBlocker.defaultProps = {\r\n loadingText: '',\r\n};\r\n\r\nexport const SaveBlocker = ({ children, loadingText }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state } = useWizardService();\r\n const isSaving = matchStepState(state, STEP_STATES.SAVING);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\nSaveBlocker.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n loadingText: PropTypes.string,\r\n};\r\nSaveBlocker.defaultProps = {\r\n loadingText: '',\r\n};\r\n\r\nexport const LoadBlocker = ({ children, loadingText }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state } = useWizardService();\r\n const isLoading = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\nLoadBlocker.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n loadingText: PropTypes.string,\r\n};\r\nLoadBlocker.defaultProps = {\r\n loadingText: '',\r\n};\r\n\r\n","import React, { useCallback, useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { DefaultButton, PrimaryButton } from '@bingads-webui-react/fabric-with-signal';\r\nimport { ActionButton } from '@fluentui/react';\r\nimport { matchStepState, useWizardService, STEP_STATES, WIZARD_EVENTS } from '@bingads-webui-react/wizard-core';\r\n\r\nexport const NextButton = ({ buttonText, disabled, appearance }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state, send } = useWizardService();\r\n const isBlocking = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING) || matchStepState(state, STEP_STATES.SAVING);\r\n\r\n const onNextClicked = useCallback(() => {\r\n send(WIZARD_EVENTS.SAVE_AND_NEXT);\r\n }, [send]);\r\n\r\n const Button = appearance === 'primary' ? PrimaryButton : DefaultButton;\r\n\r\n return (\r\n \r\n {buttonText || i18n.getString(_TL_('Next'))}\r\n \r\n );\r\n};\r\nNextButton.propTypes = {\r\n buttonText: PropTypes.string,\r\n disabled: PropTypes.bool,\r\n appearance: PropTypes.string,\r\n};\r\nNextButton.defaultProps = {\r\n buttonText: undefined,\r\n disabled: false,\r\n appearance: 'primary',\r\n};\r\n\r\nexport const BackButton = ({ buttonText }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state, send } = useWizardService();\r\n const isBlocking = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING) || matchStepState(state, STEP_STATES.SAVING);\r\n\r\n const onBackClicked = useCallback(() => {\r\n send(WIZARD_EVENTS.BACK);\r\n }, [send]);\r\n\r\n return (\r\n \r\n {buttonText || i18n.getString(_TL_('Back'))}\r\n \r\n );\r\n};\r\nBackButton.propTypes = {\r\n buttonText: PropTypes.string,\r\n};\r\nBackButton.defaultProps = {\r\n buttonText: undefined,\r\n};\r\n\r\nexport const CancelButton = ({ buttonText }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state, send } = useWizardService();\r\n const isBlocking = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING) || matchStepState(state, STEP_STATES.SAVING);\r\n\r\n const onCancelClicked = useCallback(() => {\r\n send(WIZARD_EVENTS.CANCEL);\r\n }, [send]);\r\n\r\n return (\r\n \r\n {buttonText || i18n.getString(_TL_('Cancel'))}\r\n \r\n );\r\n};\r\nCancelButton.propTypes = {\r\n buttonText: PropTypes.string,\r\n};\r\nCancelButton.defaultProps = {\r\n buttonText: undefined,\r\n};\r\n\r\nexport const SaveAndExitButton = ({ buttonText, disabled, appearance }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state, send } = useWizardService();\r\n const isBlocking = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING) || matchStepState(state, STEP_STATES.SAVING);\r\n\r\n const onNextClicked = useCallback(() => {\r\n send(WIZARD_EVENTS.SAVE_AND_EXIT);\r\n }, [send]);\r\n\r\n const Button = appearance === 'primary' ? PrimaryButton : DefaultButton;\r\n\r\n return (\r\n \r\n {buttonText || i18n.getString(_TL_('Save and exit'))}\r\n \r\n );\r\n};\r\nSaveAndExitButton.propTypes = {\r\n buttonText: PropTypes.string,\r\n disabled: PropTypes.bool,\r\n appearance: PropTypes.string,\r\n};\r\nSaveAndExitButton.defaultProps = {\r\n buttonText: undefined,\r\n disabled: false,\r\n appearance: 'primary',\r\n};\r\n\r\nexport const SaveEmptyAndNextButton = ({ buttonText, disabled }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state, send } = useWizardService();\r\n const isBlocking = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING) || matchStepState(state, STEP_STATES.SAVING);\r\n\r\n const onNextClicked = useCallback(() => {\r\n send(WIZARD_EVENTS.SAVE_EMPTY_AND_NEXT);\r\n }, [send]);\r\n\r\n return (\r\n \r\n {buttonText || i18n.getString(_TL_('Skip step'))}\r\n \r\n );\r\n};\r\nSaveEmptyAndNextButton.propTypes = {\r\n buttonText: PropTypes.string,\r\n disabled: PropTypes.bool,\r\n};\r\nSaveEmptyAndNextButton.defaultProps = {\r\n buttonText: undefined,\r\n disabled: false,\r\n};\r\n\r\nexport const BackActionButton = ({ buttonText }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state, send } = useWizardService();\r\n const isBlocking = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING) || matchStepState(state, STEP_STATES.SAVING);\r\n\r\n const onBackClicked = useCallback(() => {\r\n send(WIZARD_EVENTS.BACK);\r\n }, [send]);\r\n\r\n return (\r\n \r\n {buttonText || i18n.getString(_TL_('Back'))}\r\n \r\n );\r\n};\r\nBackActionButton.propTypes = {\r\n buttonText: PropTypes.string,\r\n};\r\nBackActionButton.defaultProps = {\r\n buttonText: undefined,\r\n};\r\n\r\nexport const BackToSummaryButton = ({ buttonText, disabled, summaryStepId }) => {\r\n const i18n = useContext(I18nContext);\r\n\r\n const { state, send } = useWizardService();\r\n const isBlocking = matchStepState(state, STEP_STATES.FETCHING) || matchStepState(state, STEP_STATES.LOADING) || matchStepState(state, STEP_STATES.SAVING);\r\n\r\n const onBackToSummaryClicked = useCallback(() => {\r\n send(WIZARD_EVENTS.SAVE_AND_GOTO, {\r\n stepId: summaryStepId,\r\n });\r\n }, [send, summaryStepId]);\r\n\r\n return (\r\n \r\n {buttonText || i18n.getString(_TL_('Save & return to summary'))}\r\n \r\n );\r\n};\r\nBackToSummaryButton.propTypes = {\r\n buttonText: PropTypes.string,\r\n disabled: PropTypes.bool,\r\n summaryStepId: PropTypes.string.isRequired,\r\n};\r\nBackToSummaryButton.defaultProps = {\r\n buttonText: undefined,\r\n disabled: false,\r\n};\r\n","import _ from 'underscore';\r\nimport React, { useCallback, useContext, useEffect, useMemo } from 'react';\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { DefaultButton, PrimaryButton } from '@bingads-webui-react/fabric-with-signal';\r\nimport { Dialog, DialogFooter, DialogType } from '@fluentui/react';\r\n\r\nimport { matchStepState, useWizardService, STEP_STATES, STEP_EVENTS } from '@bingads-webui-react/wizard-core';\r\n\r\nexport const ConfirmWizardDialog = (props) => {\r\n const i18n = useContext(I18nContext);\r\n const { state, send } = useWizardService();\r\n const shouldShowConfirmDialog = matchStepState(state, STEP_STATES.CONFIRMING);\r\n const useConfig = useMemo(() => (_.isFunction(props.config) ? props.config : () => props.config), [props.config]);\r\n\r\n const {\r\n disableConfirmPopup = false,\r\n className = null,\r\n title = null,\r\n subText = null,\r\n content = null,\r\n confirmText = null,\r\n abortText = null,\r\n onOpenFn = null,\r\n onConfirmFn = null,\r\n onCancelFn = null,\r\n hideSubText = false,\r\n } = useConfig(shouldShowConfirmDialog) || {};\r\n\r\n const onConfirm = useCallback(() => {\r\n if (onConfirmFn) {\r\n onConfirmFn();\r\n }\r\n send(STEP_EVENTS.CONFIRM_SAVE);\r\n }, [onConfirmFn, send]);\r\n\r\n const onCancel = useCallback(() => {\r\n if (onCancelFn) {\r\n onCancelFn();\r\n }\r\n send(STEP_EVENTS.ABORT_SAVE);\r\n }, [onCancelFn, send]);\r\n\r\n useEffect(() => {\r\n if (disableConfirmPopup && shouldShowConfirmDialog) {\r\n onConfirm();\r\n }\r\n }, [disableConfirmPopup, onConfirm, shouldShowConfirmDialog]);\r\n\r\n const hidden = useMemo(() => !shouldShowConfirmDialog || disableConfirmPopup, [disableConfirmPopup, shouldShowConfirmDialog]);\r\n\r\n useEffect(() => {\r\n if (!hidden && onOpenFn) {\r\n onOpenFn();\r\n }\r\n }, [onOpenFn, hidden]);\r\n\r\n return (\r\n
\r\n );\r\n};\r\n\r\nDefaultTemplate.propTypes = {\r\n items: PropTypes.shape({\r\n Blocker: PropTypes.func,\r\n LoadingShimmer: PropTypes.func,\r\n StepList: PropTypes.func,\r\n StepContainer: PropTypes.func.isRequired,\r\n ErrorBar: PropTypes.func,\r\n Footer: PropTypes.func,\r\n CancelDialog: PropTypes.func,\r\n ConfirmDialog: PropTypes.func,\r\n }).isRequired,\r\n};\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__350__;","module.exports = __WEBPACK_EXTERNAL_MODULE__48__;","module.exports = __WEBPACK_EXTERNAL_MODULE__584__;","module.exports = __WEBPACK_EXTERNAL_MODULE__603__;","export * from './src';\r\n","export * from '@bingads-webui-react/wizard-ui-library';\r\nexport {\r\n useWizardService,\r\n WizardConfigPropsShape,\r\n WIZARD_EVENTS,\r\n STEP_STATES,\r\n STEP_EVENTS,\r\n Layout,\r\n StepContainer,\r\n getStepState,\r\n matchStepState,\r\n getCurrentStepId,\r\n getCurrentFlow,\r\n getIsFirstStep,\r\n getIsLastStep,\r\n getFlowFactors,\r\n getFlowFactor,\r\n getWizardData,\r\n getStepContexts,\r\n getStepData,\r\n getIsStepValid,\r\n getIsStepSaveFailed,\r\n getVisitedSteps,\r\n getIsStepVisited,\r\n useSimpleRepository,\r\n createSimpleStep,\r\n} from '@bingads-webui-react/wizard-core';\r\nexport { Wizard } from './wizard';\r\nexport { LayoutContainer } from './layout-container';\r\nexport { DefaultLayoutContainer } from './default-layout-container';\r\nexport { DemoStepInWizard } from './demo-step-in-wizard';\r\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1810__;","import React, { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Wizard as OriginalWizard, WizardConfigPropsShape } from '@bingads-webui-react/wizard-core';\r\n\r\nimport { defaultConfig } from './default-config';\r\n\r\nexport const Wizard = (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 } = mergedConfig;\r\n\r\n return (\r\n \r\n {children || render(config)}\r\n \r\n );\r\n};\r\n\r\nWizard.propTypes = {\r\n config: PropTypes.shape(WizardConfigPropsShape).isRequired,\r\n children: PropTypes.node,\r\n};\r\n\r\nWizard.defaultProps = {\r\n children: null,\r\n};\r\n","import React from 'react';\r\nimport { DefaultLayoutContainer } from './default-layout-container';\r\n\r\nexport const defaultConfig = {\r\n render: config => ,\r\n};\r\n","import React from 'react';\r\nimport { Layout, StepContainer, LayoutContainer } from '@bingads-webui-react/wizard-core';\r\nimport { StepList, BusyBlocker, CancelWizardDialog, BasicStepFooter, DefaultTemplate } from '@bingads-webui-react/wizard-ui-library';\r\n\r\nexport const DefaultLayoutContainer = config => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { LayoutContainer as OriginalLayoutContainer } from '@bingads-webui-react/wizard-core';\r\nimport { DefaultTemplate } from '@bingads-webui-react/wizard-ui-library';\r\n\r\nexport const LayoutContainer = (props) => {\r\n const {\r\n template,\r\n ...restProps\r\n } = props;\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nLayoutContainer.propTypes = {\r\n template: PropTypes.func,\r\n};\r\n\r\nLayoutContainer.defaultProps = {\r\n template: undefined,\r\n};\r\n","import React, { useMemo } from 'react';\r\nimport { DemoStepInWizard as OriginalDemoStepInWizard } from '@bingads-webui-react/wizard-core';\r\n\r\nimport { defaultConfig } from './default-config';\r\n\r\nexport const DemoStepInWizard = (props) => {\r\n const mergedProps = useMemo(() => ({\r\n ...defaultConfig,\r\n ...props,\r\n }), [props]);\r\n\r\n return (\r\n \r\n );\r\n};\r\n","export { YahooIframe } from './src/index';\r\nexport { getYahooModel } from './src/yahoo-customer-model';\r\n","/* eslint-disable jsx-a11y/iframe-has-title */\r\nimport React, { useRef, useLayoutEffect, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { BaseHosts, Actions, Path } from './constants';\r\n\r\nexport const YahooIframe = ({\r\n id,\r\n action,\r\n jwtToken,\r\n customerId,\r\n accountId,\r\n country,\r\n locale,\r\n isProd,\r\n}) => {\r\n const baseHost = isProd ? BaseHosts.Prod : BaseHosts.Int;\r\n\r\n const actionEndpoint = `${baseHost}/${Path}/${Actions[action]}`;\r\n\r\n const [frameHeight, setFrameHeight] = useState();\r\n\r\n const formRef = useRef(null);\r\n\r\n useLayoutEffect(() => {\r\n formRef.current.submit();\r\n\r\n const callback = (evt) => {\r\n if (evt.origin === baseHost && evt.data.action === action) {\r\n setFrameHeight(`${evt.data.height}px`);\r\n }\r\n };\r\n\r\n window.addEventListener('message', callback);\r\n\r\n return () => {\r\n window.removeEventListener('message', callback);\r\n };\r\n }, [action, baseHost]);\r\n\r\n return (\r\n
\r\n