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B,QAA4C0F,EAAAA,EAAAA,IAAUtF,OAAO+oB,IAAU,WACtF,OAAOG,EAAAA,EAAAA,GAAoBrK,EAAUsK,QAASrrB,EAClD,C","sources":["../../../../../addons/adc-wizard/package/dist/components/wizard-items/ sync ^/.//.*/-item$","src/components/progress-bar.hbs","src/components/progress-bar.ts","src/components/wizard-step.hbs","src/components/wizard-step.ts","src/components/adc-wizard.hbs","src/components/adc-wizard.ts","src/utils/add-steps.ts","src/components/items-iterator.hbs","src/components/items-iterator.ts","src/components/loading-spinner.hbs","src/components/loading-spinner.ts","src/modifiers/attributes-support.ts","src/modifiers/css-support.ts","src/components/wizard-items/auto-response-input-item.hbs","src/components/wizard-items/auto-response-input-item.ts","src/components/wizard-items/base-wizard-item.ts","src/components/wizard-items/base.ts","src/components/wizard-items/body-container-item.hbs","src/components/wizard-items/body-container-item.ts","src/components/wizard-items/button-bar-item.hbs","src/components/wizard-items/button-bar-item.ts","src/components/wizard-items/button-item.hbs","src/components/wizard-items/button-item.ts","src/components/wizard-items/button-list-item.hbs","src/components/wizard-items/button-list-item.ts","src/components/wizard-items/container-item.hbs","src/components/wizard-items/container-item.ts","src/components/wizard-items/countdown-timer-item.hbs","src/components/wizard-items/countdown-timer-item.ts","src/components/wizard-items/dropdown-select-item.hbs","src/components/wizard-items/dropdown-select-item.ts","src/components/wizard-items/file-upload-item.hbs","src/components/wizard-items/file-upload-item.ts","src/utils/serialize-array.js","src/components/wizard-items/form-item.hbs","src/components/wizard-items/form-item.ts","src/components/wizard-items/header-item.hbs","src/components/wizard-items/header-item.ts","src/components/wizard-items/if-then-item.hbs","src/components/wizard-items/if-then-item.ts","src/components/wizard-items/iframe-item.hbs","src/components/wizard-items/iframe-item.ts","src/components/wizard-items/image-item.hbs","src/components/wizard-items/image-item.ts","src/components/wizard-items/info-item.hbs","src/components/wizard-items/info-item.ts","src/components/wizard-items/input-item.hbs","src/components/wizard-items/input-item.ts","src/components/wizard-items/input-list-item.hbs","src/components/wizard-items/input-list-item.ts","src/components/wizard-items/link-item.hbs","src/components/wizard-items/link-item.ts","src/components/wizard-items/list-item.hbs","src/components/wizard-items/list-item.ts","src/components/wizard-items/option-list-item.hbs","src/components/wizard-items/option-list-item.ts","src/components/wizard-items/placeholder-item.hbs","src/components/wizard-items/placeholder-item.ts","src/components/qr-code-scanner.hbs","src/components/qr-code-scanner.ts","src/utils/qr-code-scanner.ts","src/components/wizard-items/qrscan-item.hbs","src/components/wizard-items/qrscan-item.ts","src/components/wizard-items/select-item.hbs","src/components/wizard-items/select-item.ts","src/components/wizard-items/svg-item.hbs","src/components/wizard-items/svg-item.ts","src/components/wizard-items/table-item.hbs","src/components/wizard-items/table-item.ts","src/components/wizard-items/text-item.hbs","src/components/wizard-items/text-item.ts","src/components/wizard-items/textarea-item.hbs","src/components/wizard-items/textarea-item.ts","src/components/wizard-items/video-item.hbs","src/components/wizard-items/video-item.ts","src/utils/explode.js","src/utils/logic.js","src/utils/resolve-shared.ts","src/utils/replace-shared.ts","src/utils/resolve-item-component.ts"],"sourcesContent":["var map = {\n\t\"./auto-response-input-item\": 75882,\n\t\"./base-wizard-item\": 94471,\n\t\"./body-container-item\": 74246,\n\t\"./button-bar-item\": 76032,\n\t\"./button-item\": 17176,\n\t\"./button-list-item\": 88563,\n\t\"./container-item\": 61159,\n\t\"./countdown-timer-item\": 74387,\n\t\"./dropdown-select-item\": 80182,\n\t\"./file-upload-item\": 82030,\n\t\"./form-item\": 10042,\n\t\"./header-item\": 73671,\n\t\"./if-then-item\": 7617,\n\t\"./iframe-item\": 40520,\n\t\"./image-item\": 32665,\n\t\"./info-item\": 32732,\n\t\"./input-item\": 95650,\n\t\"./input-list-item\": 76469,\n\t\"./link-item\": 56856,\n\t\"./list-item\": 4624,\n\t\"./option-list-item\": 4970,\n\t\"./placeholder-item\": 2025,\n\t\"./qrscan-item\": 8876,\n\t\"./select-item\": 79740,\n\t\"./svg-item\": 94360,\n\t\"./table-item\": 950,\n\t\"./text-item\": 90317,\n\t\"./textarea-item\": 65058,\n\t\"./video-item\": 17395\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 35505;","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<ul class=\\\"adc-wizard-progress-bar\\\" ...attributes>\\n    {{#each this.progressBarItems as |item|}}\\n        <li class=\\\"adc-wizard-pbar-step {{item.state}}\\\">\\n            <span class=\\\"adc-wizard-pbar-step-title\\\">{{item.text}}</span>\\n        </li>\\n    {{/each}}\\n</ul>\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { registerDestructor } from '@ember/destroyable';\nimport { computed } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\n\nimport type { WizardStep } from '../types';\n\ninterface ProgressBarSignature {\n    Element: HTMLUListElement;\n    Args: {\n        steps: WizardStep[];\n        step?: number;\n    };\n}\n\nclass ProgressItem {\n    @tracked progressBar?: ProgressBar;\n    @tracked itemIndex: number;\n    @tracked text: string;\n\n    constructor(progressBar: ProgressBar, itemIndex: number, text?: string) {\n        this.progressBar = progressBar;\n        this.itemIndex = itemIndex;\n        this.text = text ?? '';\n\n        registerDestructor(progressBar, () => delete this.progressBar);\n    }\n\n    @computed('itemIndex', 'progressBar.lastProgressStepComplete')\n    get state() {\n        const { itemIndex } = this,\n            lastProgressStepComplete = this.progressBar?.lastProgressStepComplete;\n\n        if (lastProgressStepComplete !== undefined) {\n            if (itemIndex == lastProgressStepComplete) {\n                return 'current';\n            }\n\n            if (itemIndex < lastProgressStepComplete) {\n                return 'complete';\n            }\n        }\n\n        return '';\n    }\n}\n\n/**\n * @classdesc\n * Creates an index of steps like a wizard menu and aggregates steps\n */\nexport default class ProgressBar extends Component<ProgressBarSignature> {\n    /**\n     * The wizard steps to show in the progress bar.\n     */\n    @filterBy('args.steps', 'progress')\n    declare progressSteps: WizardStep[];\n\n    /**\n     * The current progress step.\n     * It finds between all steps last completed 'progress' step\n     */\n    @computed('progressSteps', 'args.{step,steps}')\n    get lastProgressStepComplete(): number {\n        const { args } = this,\n            lastCompleteProgressStep = A(args.steps.slice(0, args.step ?? 1))\n                .filterBy('progress')\n                .pop();\n\n        return lastCompleteProgressStep ? this.progressSteps.indexOf(lastCompleteProgressStep) + 1 : 0;\n    }\n\n    /**\n     * Return items for the bar based on the progress steps\n     */\n    get progressBarItems(): ProgressItem[] {\n        return this.progressSteps.map((step, idx) => new ProgressItem(this, idx + 1, step.progress));\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class=\\\"adc-wizard-step\\\"\\n    ...attributes\\n    {{css-support css=@props.css disabled=@props.disabled hidden=@props.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <div class=\\\"wizard-step-wrapper\\\">\\n        <ItemsIterator @props={{this.propertiesReplacedShared}} @shared={{@shared}} @executeAction={{@executeAction}} />\\n    </div>\\n</div>\")","import Component from '@glimmer/component';\nimport { computed } from '@ember/object';\nimport replaceShared from '../utils/replace-shared.ts';\n\nimport type { WizardStep, WizardItem, SharedConfig, ExecuteActionFn } from '../types';\n\ninterface WizardStepArgs {\n    props: WizardStep;\n    shared?: SharedConfig;\n    executeAction?: ExecuteActionFn;\n}\n\ninterface WizardStepSignature {\n    Element: HTMLDivElement;\n    Args: WizardStepArgs;\n}\n\n/**\n * @classdesc\n * A component that represents a whole wizard step holding items, actions, etc.\n */\nexport default class WizardStepComponent extends Component<WizardStepSignature> {\n    @computed('args.{shared,props}')\n    get propertiesReplacedShared(): Partial<WizardStep> {\n        const { shared, props } = this.args;\n        return {\n            ...(props ?? {}),\n            items: replaceShared(shared ?? {}, (props?.items as WizardItem[]) ?? [])\n        };\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class=\\\"adc-wizard-most-outer-container surface {{this.cssClasses}}\\\"\\n    {{did-update this.updateTitle this.title}}\\n    {{did-insert this.initializeComponent}}\\n    {{did-insert this.resetConfig}}\\n    {{did-update this.calculateCss this.localState.numChanges}}\\n    {{did-update this.calculateCss @config.css}}\\n    {{did-update this.resetConfig @config}}\\n    {{did-update this.updateStep @step}}\\n    data-test-last-visited={{this.lastVisitedStepNameStack.length}}\\n    data-test-step={{this.step}}\\n    ...attributes\\n>\\n    <SvgSpriteLoader @spriteRootPath={{this.spriteRootPath}} @spritePaths={{this.spritePaths}} />\\n\\n    <div class=\\\"adc-wizard-container\\\">\\n        <div class=\\\"adc-wizard-inner\\\">\\n            {{#if this.initialized}}\\n                {{#unless this.hideTitle}}\\n                    <h1 class=\\\"adc-wizard-title\\\">{{this.title}}</h1>\\n                {{/unless}}\\n                <LoadingSpinner @running={{this.requestRunning}} />\\n\\n                {{#if this.showProgressBar}}\\n                    <button\\n                        class=\\\"btn btn-icon adc-wizard-pbar-button\\\"\\n                        type=\\\"button\\\"\\n                        {{on \\\"click\\\" this.toggleProgressBarOpen}}\\n                    ></button>\\n                    <ProgressBar @steps={{this.stepsForProgress}} @step={{this.step}} />\\n                {{/if}}\\n\\n                <WizardStep @props={{this.stepConfig}} @shared={{this.shared}} @executeAction={{this.executeAction}} />\\n            {{/if}}\\n        </div>\\n    </div>\\n</div>\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { computed, action, setProperties, set } from '@ember/object';\nimport { alias, reads } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { once } from '@ember/runloop';\nimport { schedule } from '@ember/runloop';\nimport { inject as service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport { task, timeout } from 'ember-concurrency';\nimport { NotLoggedIn } from '@adc/ajax/enums/AjaxResponseHttpCode';\nimport { URL_ENCODED, JSON_REQUEST } from '@adc/ajax/services/adc-ajax';\nimport addSteps from '../utils/add-steps.ts';\nimport { replaceParams, convertToTranslatedVersion } from '../utils/explode.js';\n\nimport type AjaxService from '@adc/ajax/services/adc-ajax';\nimport type NativeBridgeService from '@adc/app-infrastructure/services/native-bridge';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type RouterService from '@ember/routing/router-service';\nimport type { TaskForAsyncTaskFunction, TaskInstance } from 'ember-concurrency';\nimport type LocalStateService from '../services/local-state.ts';\nimport type PlaceholderService from '../services/placeholder.ts';\nimport type {\n    Wizard,\n    WizardStep,\n    SharedConfig,\n    RequestAction,\n    InitialState,\n    RequestResponse,\n    CSSObject\n} from '../types';\n\ninterface AdcWizardArgs {\n    config?: Wizard;\n    ajax?: AjaxService;\n    messagingInterface: (action: string, data?: any) => void;\n    onStepChanged?: (alias: string, step: number) => void;\n    onTitleChanged?: (title: string) => void;\n    initialState: InitialState;\n    translations: Record<string, string>;\n    languageCode?: string;\n    showProgressBar?: boolean;\n    hideTitle?: boolean;\n    spritePaths?: string[];\n    spriteRootPath?: string;\n    step?: number;\n}\n\ninterface AdcWizardSignanature {\n    Element: HTMLElement;\n    Args: AdcWizardArgs;\n}\n\ntype PostObject = BodyInit & {\n    [key: string]: any;\n    placeholderKey?: string;\n};\n\ntype ProgressStep = Pick<WizardStep, 'progress' | '_progress_key'>;\n\n/**\n * Sends command over native bridge to setup the skip setup button on the native app toolbar.\n */\nfunction setSkipSetupNativeButton(this: AdcWizard, buttonText: string): void {\n    const { nativeBridge } = this;\n    nativeBridge.setToolbarButtons({\n        id: guidFor(this),\n        backButtons: [],\n        contextButtons: [\n            {\n                text: buttonText,\n                type: 'cancel',\n                isPromisePending: false,\n                action: () => {\n                    if (nativeBridge.doesSupportCloseWebViewV2) {\n                        nativeBridge.closeWebViewV2();\n                    }\n                }\n            }\n        ]\n    });\n}\n\n/**\n * Deeply merges two objects.  Does not mutate the original objects.  Arrays are not merged.\n */\nfunction deepMerge(a: Record<string, any>, b: Record<string, any>): Record<string, any> {\n    const newObj: Record<string, any> = {},\n        allKeys: Record<string, any> = {},\n        fnIsObject = (v: any) => typeof v === 'object';\n\n    // Create collection of all keys\n    Object.keys(a).forEach((k) => (allKeys[k] = true));\n    Object.keys(b).forEach((k) => (allKeys[k] = true));\n\n    // Iterate through all keys\n    Object.keys(allKeys).forEach((key) => {\n        const aProp = a[key],\n            bProp = b[key];\n\n        // If both a and b provided an obj, then we need to deepMerge\n        if (fnIsObject(aProp) && fnIsObject(bProp)) {\n            newObj[key] = deepMerge(aProp, bProp);\n        }\n        // If b has the property it takes precidence\n        else if (bProp !== undefined) {\n            newObj[key] = bProp;\n        }\n        // If b didn't have it, then a must.\n        else {\n            newObj[key] = aProp;\n        }\n    });\n\n    return newObj;\n}\n\n/**\n * Checks to see if the request/response is associated w/ a placeholder component that needs updated.\n */\nfunction handlePlaceholderUpdate(this: AdcWizard, requestAction: RequestAction, response?: any): void {\n    // We only need to update placeholder components (via the service) if we have a placeholderKey and the response has data.\n    if ((response?.items || response?.data) && requestAction.placeholderKey) {\n        this.placeholder.update(response, requestAction.placeholderKey);\n    }\n}\n\n/**\n * Converts an object into query parameters.\n */\nexport function serializeQueryParams(obj: Record<string, string | string[]>): string {\n    const formEntries: string[] = [];\n\n    // Iterate the object and push all of its keys into the formEntries.\n    Object.keys(obj).forEach((key) => {\n        const encodedKey = encodeURIComponent(key);\n        const value = obj[key];\n\n        // If the value is an array, we must iterate those as well.\n        if (Array.isArray(value)) {\n            value.forEach((i) => {\n                const encodedValue = encodeURIComponent(i);\n                formEntries.push(`${encodedKey}=${encodedValue}`);\n            });\n        } else {\n            const encodedValue = encodeURIComponent(value);\n            formEntries.push(`${encodedKey}=${encodedValue}`);\n        }\n    });\n\n    return formEntries.join('&');\n}\n\n/**\n * Converts a CSS object into a valid css string\n */\nfunction convertToCssString(cssObject: CSSObject): string {\n    const flattenedNestedStyles: string[] = [];\n\n    // We declare an inner fn so that flattenedNestedStyles can be a closure scoped variable\n    const recursiveFn = function (cssObject: CSSObject, existingParentSelectors: string[] = []) {\n        return Object.keys(cssObject)\n            .map((key) => {\n                const keyDasherized = dasherize(key),\n                    cssValue = cssObject[key];\n\n                // If the value is an object, we assume the key is a css selector not a css property\n                if (typeof cssValue === 'object') {\n                    // Recursively call, passing down the current selector and any parent selectors for concatenation\n                    const css = recursiveFn(cssValue, [...existingParentSelectors, key]);\n                    // Convert to string and push the css to flattenedNestedStyles so that it gets serialized at the top level instead of the current\n                    flattenedNestedStyles.push(`${existingParentSelectors.join(' ')} ${key} {${css}}`);\n                    return null;\n                } else {\n                    // Its a css property, format it as such.\n                    return `${keyDasherized}: ${cssValue};`;\n                }\n            })\n            .join(' ');\n    };\n\n    return recursiveFn(cssObject) + flattenedNestedStyles.join(' ');\n}\n\n/**\n * @classdesc\n * This is the main component, the component rendering the wizard itself with all the steps and items in it.\n */\nexport default class AdcWizard extends Component<AdcWizardSignanature> {\n    @service declare router: RouterService;\n    @service declare intl: ADCIntlService;\n    @service declare ajax: AjaxService;\n    @service declare localState: LocalStateService;\n    @service declare placeholder: PlaceholderService;\n    @service declare nativeBridge: NativeBridgeService;\n\n    constructor(owner: any, args: AdcWizardArgs) {\n        super(owner, args);\n\n        const { ajax } = args;\n        if (ajax) {\n            // Override local ajax service if custom one was provided.\n            this.ajax = ajax;\n        }\n    }\n\n    @computed(\n        'args.config.cssVersion',\n        'handleComplexAction.isRunning',\n        'hideTitle',\n        'progressBarOpen',\n        'showProgressBar'\n    )\n    get cssClasses(): string {\n        return A([\n            `css-version-${this.args.config?.cssVersion === 'V1' ? 'one' : 'two'}`,\n            this.progressBarOpen ? 'progress-bar-open' : undefined,\n            this.showProgressBar ? 'show-progress-bar' : undefined,\n            this.hideTitle ? 'hide-title' : undefined,\n            this.handleComplexAction.isRunning ? 'request-running' : undefined\n        ])\n            .compact()\n            .join(' ');\n    }\n\n    private oldConfig?: Wizard;\n\n    @action resetConfig(): void {\n        // For some reason this fires when we advance to a new step in the wizard-config app.  It doesn't happen in wizard-loader\n        // we must be mutating one of the props that wizard-config passes to adc-wizard from inside this component, but I can't find it.\n        const { oldConfig } = this;\n        if (oldConfig && JSON.stringify(oldConfig) === JSON.stringify(this.args.config)) {\n            return;\n        }\n\n        // The following code generally would only need to be ran on initialization because it doesn't change once an app starts\n        // However, it frequently changes when building wizards using the wizard-config app.\n        this.localState.save('', this.mergedInitialState);\n\n        this.oldConfig = this.args.config;\n    }\n\n    /**\n     * Array of tasks specific to the step active at the moment when the trigger action occurred.\n     * All tasks of this array should be cancelled before the step changes.\n     */\n    currentStepBoundTasks?: TaskInstance<void>[];\n\n    /**\n     * A list of action aliases that should be triggered at initialization.\n     */\n    @computed('args.config.initialActions.[]')\n    get initialActions(): string[] {\n        return this.args.config?.initialActions ?? [];\n    }\n\n    /**\n     * The name of the current step.  Returns a 'stepAliasNotDefined' if the alias is undefined.\n     */\n    @alias('stepConfig.alias')\n    declare currentStepName: string;\n\n    /**\n     * The path to the sprite SVG file.\n     */\n    @computed('router.rootURL')\n    get spriteRootPath(): string {\n        // Note if the file is not found.  Make sure to run 'gulp svg'.  It is built from source.\n        return this.router.rootURL + '@adc/wizard/assets';\n    }\n\n    /**\n     * An array of sprite files to load.  Values are appended to spriteRootPath.\n     */\n    get spritePaths(): string[] {\n        return this.args.spritePaths ?? ['wizard-sprite'];\n    }\n\n    /**\n     * Is the component ready to render its child components\n     */\n    @tracked initialized = false;\n\n    /**\n     * Flag to force progress to be hidden\n     */\n    @alias('localState.hideProgress')\n    declare hideProgress: boolean;\n\n    /**\n     * Flag to force the title to be hidden\n     */\n    @alias('args.hideTitle')\n    hideTitle?: boolean;\n\n    /**\n     * Flag to show the loading spinner\n     */\n    @reads('handleComplexAction.isRunning')\n    declare requestRunning: boolean;\n\n    /**\n     * The language code/locale to be used for translating.\n     */\n    get languageCode(): string {\n        return this.args.languageCode ?? 'en';\n    }\n\n    /**\n     * The key/value pair object that contains the translations\n     */\n    get translations(): Record<string, string> {\n        return this.args.translations ?? {};\n    }\n\n    globalCss?: string;\n\n    @computed('args.config.steps.[]')\n    get steps(): ReturnType<typeof A<WizardStep>> {\n        return A<WizardStep>((this.args.config?.steps ?? []).slice());\n    }\n\n    @tracked _step?: number;\n    get step(): number {\n        const { _step } = this;\n        if (_step !== undefined) {\n            return _step;\n        }\n\n        return this.args.step ?? 1;\n    }\n    set step(v: number) {\n        this._step = v;\n    }\n\n    post?: PostObject;\n\n    /**\n     * The stack that keeps track of previously visited steps.\n     * We push to this stack, when we are transitioning normally (not a 'goBackToLastVisitedStep' action).\n     * We pop from this stack when doing 'goBackToLastVisitedStep' action\n     */\n    lastVisitedStepNameStack: ReturnType<typeof A<string>> = A([]);\n\n    /**\n     * Tracks the progress bar open state (for mobile)\n     */\n    @tracked progressBarOpen = false;\n\n    /**\n     * The title of the wizard\n     */\n    @computed('args.config.title', 'step', 'initialized', 'localState.numChanges')\n    get title(): string {\n        // translate the JSON node - 'title'  before bind to localState\n        return replaceParams(this.translate<Wizard, string>(this.args.config, 'title'), this.localState);\n    }\n\n    /**\n     * Execute onTitleChanged if it was provided to the component.\n     */\n    @action updateTitle(): void {\n        const onTitleChange = () => {\n            this.args.onTitleChanged?.(this.title);\n        };\n\n        // Do not copy this deprecated usage. If you see this, please fix.\n        // eslint-disable-next-line ember/no-runloop\n        once(this, onTitleChange);\n    }\n\n    /**\n     * The \"shared\" node of the wizard - specifies the page elements that are shared through multiple steps\n     */\n    @computed('args.config.shared', 'initialized')\n    get shared(): SharedConfig {\n        // translate the JSON node - 'shared'\n        return this.translate<SharedConfig>(this.args.config?.shared);\n    }\n\n    /**\n     * Steps transformed for providing to the progress bar.\n     */\n    @computed('steps.[]', 'initialized')\n    get stepsForProgress(): ProgressStep[] {\n        // Simplify the data structure to only include the essentials, and translate.\n        return this.translate<ProgressStep[]>(\n            this.steps.map(({ progress, _progress_key }) => ({\n                progress,\n                _progress_key\n            }))\n        );\n    }\n\n    /**\n     * The Wizard config actions\n     */\n    @computed('args.config.actions.[]', 'localState.numChanges')\n    get requestActions(): RequestAction[] {\n        // Replace any parameter values.\n        return (this.args.config?.actions ?? []).map((i) => replaceParams(i, this.localState));\n    }\n\n    /**\n     * Combined initial state of the json values and any values provided directly to this component\n     */\n    @computed('args.{initialState,config.initialState}', 'initialized')\n    get mergedInitialState(): InitialState {\n        return this.translate<InitialState>(\n            deepMerge(this.args.config?.initialState || {}, this.args.initialState ?? {})\n        );\n    }\n\n    /**\n     * Whether to show an index of steps with the wizard progress\n     */\n    @computed('stepsForProgress.@each.progress', 'hideProgress', 'args.showProgressBar')\n    get showProgressBar(): boolean {\n        const { showProgressBar } = this.args;\n        return (\n            (showProgressBar !== undefined ? showProgressBar : !this.hideProgress) &&\n            !!A(this.stepsForProgress).findBy('progress')\n        );\n    }\n\n    /**\n     * Updates the step.\n     */\n    @action updateStep() {\n        const { step } = this.args;\n        if (step !== undefined) {\n            set(this, 'step', step);\n        }\n    }\n\n    /**\n     * Calculates and attaches the Global CSS to the dom.\n     */\n    @action calculateCss(): void {\n        const buildCSS = () => {\n            const rawCss = this.args.config?.css;\n\n            // If we have css, replace any variables with their values.\n            const formattedCss = rawCss\n                ? // We add a lot of CSS selectors to increase the specificity and help it take precedence over other CSS.\n                  convertToCssString({\n                      'div.adc-wizard-most-outer-container div.adc-wizard-container div.adc-wizard-inner':\n                          replaceParams(rawCss, this.localState)\n                  })\n                : undefined;\n\n            // Exit early if the CSS hasn't changed.\n            if (this.globalCss === formattedCss) {\n                return;\n            }\n\n            // Remove existing style and add new if it exists\n            const styleId = 'wizard-style';\n            document.getElementById(styleId)?.remove();\n\n            if (rawCss && formattedCss) {\n                const newCssEl = document.createElement('style');\n                newCssEl.id = styleId;\n                newCssEl.innerText = formattedCss;\n                document.head.appendChild(newCssEl);\n            }\n\n            // We save the css so we can compare it in the future.\n            this.globalCss = formattedCss;\n        };\n\n        // Do not copy this deprecated usage. If you see this, please fix.\n        // eslint-disable-next-line ember/no-runloop\n        once(this, buildCSS);\n    }\n\n    /**\n     * Returns the current step configuration\n     */\n    @computed('steps', 'step', 'initialized')\n    get stepConfig(): WizardStep {\n        return this.translate<WizardStep>(this.steps.objectAt(this.step - 1));\n    }\n\n    /**\n     * Translates the provided object.  If a property is specified, it translates only that property.\n     *\n     * @note: returns a new object and does not mutate the input\n     */\n    translate<K, T = K>(obj: K = {} as K, prop?: keyof K): T {\n        if (this.initialized) {\n            return convertToTranslatedVersion<K>(obj, this.intl, prop) as T;\n        }\n\n        if (prop !== undefined) {\n            return obj[prop] as T;\n        }\n\n        return obj as unknown as T;\n    }\n\n    /**\n     * Change to the specified step. Optionally stores a post object, to be sent\n     * to the back-end.\n     */\n    stepTo(step: number, post?: PostObject, isBackStep = false): void {\n        // we only push to the stack if it's a normal stepTo (NOT a 'goBackToLastVisitedStep' action)\n        if (!isBackStep) {\n            this.lastVisitedStepNameStack.pushObject(this.currentStepName);\n        }\n\n        setProperties(this, { step, post });\n\n        A(this.currentStepBoundTasks || []).invoke('cancel');\n        this.currentStepBoundTasks = [];\n\n        this.args.onStepChanged?.(this.currentStepName, this.step);\n    }\n\n    /**\n     * Run the action that matches the specified reference.\n     *\n     * * If the reference is a number or a step alias, it will jump to that step.\n     * * If it's a {@link config.RequestAction} alias, it will execute the request.\n     *\n     */\n    runAction(action?: string | number, post?: PostObject): void {\n        if (action === undefined) {\n            return;\n        }\n\n        // Go to step by number\n        if (typeof action === 'number') {\n            this.stepTo(this.step + action, post);\n            return;\n        }\n\n        let isBackAction = false;\n\n        if (action === 'goBackToLastVisitedStep') {\n            action = this.lastVisitedStepNameStack.popObject() ?? undefined;\n            isBackAction = true;\n        }\n\n        // Go to step by alias\n        const { steps } = this,\n            step = steps.findBy('alias', action);\n\n        if (step) {\n            const indexOfStep = steps.indexOf(step);\n            if (indexOfStep !== -1) {\n                this.stepTo(indexOfStep + 1, post, isBackAction);\n                return;\n            }\n        }\n\n        // Complex Actions - attempt to lookup from defined actions\n        const requestAction = A(this.requestActions).findBy('alias', action);\n\n        if (requestAction) {\n            /*\n             * When a complex action is executed, we treat the initial action and all\n             * subsequent polling (if any) as one task. The task will not complete,\n             * until polling is complete. However, if at any time we hit an error or the\n             * \"success\" action at the end of a task, we trigger this w/ a new call to\n             * runAction and its activity IS NOT included as part of the initial task.\n             * More than anything, this is done just to simplify the plumbing (we would\n             * need to return tasks nearly everywhere). Additionally, it doesn't seem like\n             * recursively creating child instances of handleComplexAction does anything\n             * beneficial. We can reevaluate this if necessary.\n             */\n            const complexActionTaskInstance = this.handleComplexAction.perform(requestAction, post);\n\n            if (!requestAction.runAcrossSteps) {\n                const currentStepBoundTasks = this.currentStepBoundTasks ?? [];\n                currentStepBoundTasks.push(complexActionTaskInstance);\n                this.currentStepBoundTasks = currentStepBoundTasks;\n            }\n\n            return;\n        }\n\n        // Trigger Misc. Action Support.  We pass the action to the provided handler\n        if (typeof action === 'string' && this.args.messagingInterface) {\n            this.args.messagingInterface(action, post);\n            return;\n        }\n\n        console.warn('Action could not be routed based on its configuration.', action);\n        return;\n    }\n\n    /**\n     * Processes an actions which are objects and not simple step changes\n     */\n    handleComplexAction: TaskForAsyncTaskFunction<\n        unknown,\n        (action: RequestAction, post?: PostObject) => Promise<void>\n    > = task(async (action: RequestAction, post?: PostObject): Promise<void> => {\n        if (post?.placeholderKey) {\n            // If a placeholder key was provided, we tag the action with it. It will be used later to lookup the placeholder we need to update\n            action.placeholderKey = post.placeholderKey;\n            // We remove it form the post object as its no longer needed and this is passed along in the web request. Pretty gross.\n            delete post.placeholderKey;\n        }\n\n        const localState = this.localState;\n        // an empty string is a valid value so we can't test for truthiness'\n        if (typeof action.saveTo === 'string') {\n            localState.save(action.saveTo, post);\n\n            // saving to localState can make action stale, so refresh it before continuing\n            action = A(this.requestActions || []).findBy('alias', action.alias) as RequestAction;\n        }\n\n        const method = (action.method ?? '').toLowerCase();\n\n        if (method === 'exittutorial') {\n            this.args.messagingInterface('exitTutorial');\n            return;\n        }\n\n        if (method === 'enablebluetooth') {\n            this.args.messagingInterface('enableBluetooth');\n            return;\n        }\n\n        if (method === 'checkbluetoothpermissions') {\n            this.args.messagingInterface('checkBluetoothPermissions');\n            return;\n        }\n\n        if (method === 'startbleadvertising') {\n            this.args.messagingInterface('startBleAdvertising');\n            return;\n        }\n\n        if (method === 'stopbleadvertising') {\n            this.args.messagingInterface('stopBleAdvertising');\n            return;\n        }\n\n        if (method === 'setupnativebutton') {\n            if (this.nativeBridge.doesSupportToolbarButtons) {\n                const { buttonType = '' } = action;\n                if (buttonType.toLowerCase() === 'skipsetup') {\n                    setSkipSetupNativeButton.call(this, action.text);\n                } else {\n                    console.error(\n                        `[@adc/wizard] setupNativeButton: buttonType=${buttonType} is not handled in the messagingInterface.`\n                    );\n                }\n            }\n\n            return;\n        }\n\n        if (!action.url) {\n            console.error(`[@adc/wizard] Action alias =${action.alias} does not have a URL.  Aborting action.`);\n            return;\n        }\n\n        // If the HTTP method is REDIRECT, we have to handle manually\n        if (method === 'redirect') {\n            // We let the host app handle any redirection.\n            this.args.messagingInterface('redirect', action.url);\n            return;\n        }\n\n        if (method === 'nativebridgeredirect') {\n            // use native bridge to redirect from wizard to native page\n            try {\n                const nativeBridgeTransitionData = String(action.url).split(','),\n                    [nativeViewId, deviceId] = nativeBridgeTransitionData.map((dataSegment) =>\n                        parseInt(dataSegment, 10)\n                    );\n\n                if (this.nativeBridge.doesSupportTransitionToNativeViewWithId(nativeViewId)) {\n                    this.nativeBridge.transitionToNativeView(nativeViewId, {\n                        deviceID: String(deviceId),\n                        showBackArrow: true,\n                        returnToWebView: false\n                    });\n                    return;\n                }\n            } catch (res) {\n                console.error(res);\n                return;\n            }\n\n            // Do nothing if native bridge is not supported\n            return;\n        }\n\n        // We support 'nativeBridgeLaunchBrowser' and 'nativeBridgeLaunchBrowserForSso'.\n        if (method.startsWith('nativebridgelaunchbrowser')) {\n            this.args.messagingInterface('nativeBridgeLaunchBrowser', {\n                url: action.url,\n                isForSso: method === 'nativebridgelaunchbrowserforsso'\n            });\n            return;\n        }\n\n        try {\n            // If its a local request we spoof the web request so we can maintain the same promise chain.\n            let response = {} as RequestResponse;\n            if (action.url !== 'local') {\n                response = await this.requestTo<RequestResponse>(action, post);\n            }\n\n            const result = this.handleResponse(action, response);\n            if (result) {\n                await this.poll.perform(result.requestAction, result.pollSeconds);\n            }\n        } catch (res) {\n            console.error(res);\n            console.info(`Routing to requestAction.errorAction=${action.errorAction}`);\n            this.runAction(action.errorAction);\n        }\n    });\n\n    /**\n     * Perform a request based on the action specified.\n     */\n    async requestTo<T>(requestAction: RequestAction, post?: PostObject): Promise<T> {\n        if (!requestAction.errorAction) {\n            console.debug(`No error action was defined for action alias=${requestAction.alias}`);\n            // Default the errorAction to staying on the current step (ie. do nothing.)\n        }\n\n        let requestOptions: Partial<RequestAction> = { method: requestAction.method },\n            serializedPost: PostObject | string | undefined;\n\n        if (post) {\n            if (requestAction.requestType && requestAction.requestType.toLowerCase() == 'json') {\n                // Our backend does not work with JSON post requests yet. Other domains that a wizard might contact may use JSON.\n                requestOptions = Object.assign({}, requestOptions, JSON_REQUEST);\n            } else {\n                // When posting data to our backend, we need to convert it to query params.  This is how jquery did it and now\n                // that we are using fetch we must continue to do it to avoid making server changes.\n                serializedPost = serializeQueryParams(post);\n                requestOptions = Object.assign({}, requestOptions, URL_ENCODED);\n            }\n        }\n\n        // Allow request to an absolute url so that the wizards can connect to third-party API's.\n        // Third-party url's must be added to the CSP Manager for the request to be allowed.\n        if (requestAction.url.startsWith('http')) {\n            return this.ajax\n                .simpleRequest<T>(requestAction.url, requestOptions, serializedPost ?? post)\n                .catch((error) => {\n                    this.handleCaughtRequestError(error);\n                }) as unknown as T;\n        }\n\n        return this.ajax.apiRequest<T>(requestAction.url, requestOptions, serializedPost ?? post).catch((error) => {\n            this.handleCaughtRequestError(error);\n        }) as unknown as T;\n    }\n\n    /**\n     * Handles error caught from making an ajax request.\n     */\n    handleCaughtRequestError(error: Error & { code?: number }) {\n        if (error.code !== NotLoggedIn) {\n            throw error;\n        }\n\n        // Trigger the sessionExpired handler.\n        this.runAction('sessionExpired');\n    }\n\n    /**\n     * Handle the action response\n     */\n    handleResponse(\n        requestAction: RequestAction,\n        response: RequestResponse = {} as RequestResponse\n    ): { requestAction: RequestAction; pollSeconds: number } | undefined {\n        // Update RequestAction properties based on the response\n        requestAction.action = requestAction.action || response.action;\n\n        this.saveNetworkResponse(requestAction, response);\n\n        if (!this.schedulePolling(requestAction, response)) {\n            // Do not copy this deprecated usage. If you see this, please fix.\n            // eslint-disable-next-line ember/no-runloop\n            schedule('afterRender', () => this.handleFinalResponse(requestAction, response));\n            return;\n        }\n\n        requestAction.pollUrl = response.pollUrl || requestAction.pollUrl;\n        const pollSeconds = response.pollSeconds || (requestAction.pollSeconds ?? 1);\n\n        // Polling responses can stream new items into the placeholder w/ each response\n        handlePlaceholderUpdate.call(this, requestAction, response);\n\n        return { requestAction, pollSeconds };\n    }\n\n    /**\n     * Trigger an ajax call to the polling URL\n     */\n    poll: TaskForAsyncTaskFunction<unknown, (requestAction: RequestAction, pollSeconds: number) => Promise<void>> =\n        task(async (requestAction: RequestAction, pollSeconds: number) => {\n            for (;;) {\n                // Makes the task wait until the poll request time. This way we can easily cancel it on step change using the \"poll\" task object.\n                await timeout(pollSeconds * 1000);\n\n                // Makes the poll request.\n                const apiResponse = await this.ajax.apiRequest<RequestResponse>(requestAction.pollUrl as string);\n\n                // Handles the response\n                try {\n                    const result = this.handleResponse(requestAction, apiResponse);\n                    if (!result) {\n                        break;\n                    }\n\n                    requestAction = result.requestAction;\n                    pollSeconds = result.pollSeconds;\n                } catch (res) {\n                    console.error(res);\n                    console.info('Routing to requestAction.errorAction.');\n                    this.runAction(requestAction.errorAction);\n                }\n            }\n        });\n\n    /**\n     * Check if polling should be scheduled or not.\n     */\n    schedulePolling({ polling }: RequestAction, response: RequestResponse = {} as RequestResponse): boolean {\n        return !!(polling && (!!response.pollUrl || response.status === 'wait'));\n    }\n\n    /**\n     * Saves the network response data to local state (if it meets criteria)\n     */\n    saveNetworkResponse(requestAction: RequestAction, response?: RequestResponse): boolean {\n        // We save error and polling data\n        if (response?.data && typeof requestAction.saveResponseTo === 'string') {\n            this.localState.save(requestAction.saveResponseTo, response.data);\n            return true;\n        }\n\n        return false;\n    }\n\n    /**\n     * Handle the final response in our request cycle (ie. no additional polling is required)\n     */\n    handleFinalResponse(requestAction: RequestAction, response: RequestResponse = {} as RequestResponse): void {\n        handlePlaceholderUpdate.call(this, requestAction, response);\n\n        if (response?.steps) {\n            addSteps(this.steps, response.steps, this.step);\n        }\n\n        const action = response.status === 'error' ? requestAction.errorAction : requestAction.action;\n\n        // action may be null if it is an error and the user did not define an error action.\n        if (action) {\n            this.runAction(action);\n        }\n    }\n\n    willDestroy(): void {\n        super.willDestroy();\n\n        delete window.localState;\n        delete window.saveState;\n        delete window.isWizard;\n    }\n\n    @action toggleProgressBarOpen(): void {\n        this.progressBarOpen = !this.progressBarOpen;\n    }\n\n    /**\n     * Sets the global variables.\n     */\n    @action initializeComponent(): void {\n        this.args.onStepChanged?.(this.currentStepName, this.step);\n\n        // We initialize the translation resources and only show the content after its asynchronous loading completes\n        Promise.resolve(this.intl.initialize(this.languageCode, this.translations))\n            .then(() => {\n                this.initialized = true;\n                this.localState.save('', this.mergedInitialState);\n            })\n            .catch((param) => {\n                this.initialized = false;\n                console.error('Translation initialization failed.' + param);\n            });\n\n        // We make localState globally available so that PMs and casual users can easily inspect their data without Ember Inspector\n        const localState = (window.localState = this.localState);\n        window.saveState = (key: string, data: any) => localState.save(key, data);\n        localState.save('', this.mergedInitialState);\n\n        // We set a flag so that any nested iframes can identify the document scope which contains the actual wizard component\n        window.isWizard = true;\n\n        // Trigger all of the initial actions\n        this.initialActions.forEach((action) => this.runAction(action));\n\n        this.calculateCss();\n    }\n\n    @action executeAction(action?: string | number, post?: PostObject): void {\n        // Do not copy this deprecated usage. If you see this, please fix.\n        // eslint-disable-next-line ember/no-runloop\n        schedule('afterRender', this, this.runAction, action, post);\n    }\n}\n","import type { A } from '@ember/array';\nimport type { WizardStep } from '../types';\n\ntype StepsArray = ReturnType<typeof A<WizardStep>>;\n\n/**\n * Adds steps taking into account ember observing.\n * Used only when an AJAX response has steps to add\n */\n\nexport default function addSteps(steps: StepsArray, newSteps: WizardStep[], step: number): StepsArray {\n    newSteps.forEach((newStep, index) => {\n        steps.insertAt(step + index, newStep);\n    });\n\n    return steps;\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#each this.containerItems as |item|}}\\n    {{! Component properties and their types are not compatible.}}\\n    {{! @glint-expect-error Variable component is unknown to glint}}\\n    <item.component\\n        @props={{item}}\\n        @shared={{@shared}}\\n        @executeAction={{@executeAction}}\\n        data-test-selector=\\\"{{item.text}}\\\"\\n        ...attributes\\n    />\\n{{/each}}\")","import Component from '@glimmer/component';\nimport EmberObject, { computed } from '@ember/object';\nimport replaceShared from '../utils/replace-shared.ts';\nimport resolveItemComponent from '../utils/resolve-item-component.ts';\n\nimport type { WizardStep, SharedConfig, WizardItem, ExecuteActionFn, WizardItemPath } from '../types';\n\nexport interface ItemsIteratorSignature {\n    Element: HTMLElement;\n    Args: {\n        props?: WizardStep;\n        shared?: SharedConfig;\n        itemState?: Record<string, any>;\n        items?: WizardItem[];\n        executeAction?: ExecuteActionFn;\n    };\n}\n\ninterface ContainerItem extends WizardItem {\n    text?: string;\n    component?: WizardItemPath;\n}\n\n/**\n * @classdesc\n * Iterator for items. Internal use intended. Doesn't generate `<div>`\n */\nexport default class ItemsIterator extends Component<ItemsIteratorSignature> {\n    /**\n     * Return items with it's type mapped to the component name.\n     * It's transforming to Ember.Object to fix problems on rendering twice\n     * and to avoid problems on re-rendering with different configs\n     */\n    @computed('args.{items,itemState,props.items,shared}')\n    get containerItems(): EmberObject[] & ContainerItem[] {\n        const { args } = this,\n            items = args.props?.items ?? args.items ?? [],\n            { itemState } = args;\n\n        // Replace any shared items.\n        return (\n            (replaceShared(args.shared, items as WizardItem[]) ?? [])\n                // filter down to items which have a WizardItem type defined\n                .filter((item) => !!item.type)\n                .map((item) => {\n                    // @ts-expect-error: Not sure how to types this.\n                    const itemObject = EmberObject.create(item);\n                    if (item.type) {\n                        itemObject.set('component', resolveItemComponent(item.type, this));\n                    }\n\n                    // If a localstate was given to itemsIterator, we pass it down to all of the child components.\n                    // This is necessary in cases like when a placeholder renders child items w/ a network response.\n                    // Those child items need access to the network response.\n                    if (itemState) {\n                        itemObject.set('itemState', itemState);\n                    }\n\n                    return itemObject;\n                })\n        );\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div class=\\\"loader {{if @running \\'running\\'}}\\\" ...attributes>\\n    {{t \\\"@adc/wizard.components.loading-spinner.loading\\\"}}\\n</div>\")","import templateOnlyComponent from '@ember/component/template-only';\n\nexport interface LoadingSpinnerSignature {\n    Element: HTMLDivElement;\n    Args: { running: boolean };\n}\nconst LoadigSpinner = templateOnlyComponent<LoadingSpinnerSignature>();\nexport default LoadigSpinner;\n","import { A } from '@ember/array';\nimport Modifier from 'ember-modifier';\n\nimport type { PositionalArgs, NamedArgs } from 'ember-modifier';\n\ninterface AttributesSupportSignature {\n    Args: {\n        Named: {\n            attrs?: Record<string, unknown>;\n        };\n    };\n    Element: HTMLElement;\n}\n\nconst attrCache = 'data-attributes-support';\n\n/**\n * @classdesc\n * A template modifier for attribute support.\n */\nexport default class AttributesSupportModifier extends Modifier<AttributesSupportSignature> {\n    modify(\n        element: Element,\n        _positional: PositionalArgs<AttributesSupportSignature>,\n        named: NamedArgs<AttributesSupportSignature>\n    ): void {\n        const attrs = A(Object.entries(named.attrs ?? {})).reject(([key]) => key === 'class'),\n            previousAttrs = element.getAttribute(attrCache)?.split('|');\n\n        // Set current attribute values.\n        attrs.forEach(([key, value]) => element.setAttribute(key, String(value)));\n\n        if (previousAttrs) {\n            // Remove previous attribute values not present in current attributes.\n            const keys = attrs.map(([k]) => k);\n            previousAttrs.filter((k) => !keys.includes(k)).forEach((key) => element.removeAttribute(key));\n            element.removeAttribute(attrCache);\n        }\n\n        if (attrs.length) {\n            // Cache current attribute keys.\n            element.setAttribute(attrCache, attrs.map(([key]) => key).join('|'));\n        }\n    }\n}\n","import { A } from '@ember/array';\nimport Modifier from 'ember-modifier';\nimport { evaluateLogic } from '../utils/logic.js';\n\nimport type { PositionalArgs, NamedArgs } from 'ember-modifier';\nimport type { LogicObject } from '../utils/logic';\n\ninterface CssSupportSignature {\n    Args: {\n        Named: {\n            css?: string | string[];\n            disabled?: boolean | LogicObject;\n            hidden?: boolean | LogicObject;\n        };\n    };\n    Element: HTMLElement;\n}\n\nconst cssCache = 'data-css-support';\n\n/**\n * @classdesc\n * A template modifier for CSS support\n */\nexport default class CssSupportModifier extends Modifier<CssSupportSignature> {\n    modify(\n        element: Element,\n        _positional: PositionalArgs<CssSupportSignature>,\n        named: NamedArgs<CssSupportSignature>\n    ): void {\n        const { css = '', disabled = false, hidden = false } = named,\n            newCss = ((css ? (typeof css === 'string' ? css.split(/\\s+/) : css) : []) as string[]).filter((c) => !!c);\n\n        const cssAttribute = element.getAttribute(cssCache);\n        if (cssAttribute) {\n            // Remove any previous CSS classes not present in current CSS classes.\n            A(element.getAttribute(cssCache)?.split(/\\s+/) ?? [])\n                .reject((c) => newCss?.includes(c))\n                .forEach((c) => element.classList.remove(c));\n            element.removeAttribute(cssCache);\n        }\n\n        // Clear previous CSS cache.\n        element.removeAttribute(cssCache);\n\n        if (newCss) {\n            // Add current CSS classes and cache.\n            newCss.forEach((c) => element.classList.add(c));\n            element.setAttribute(cssCache, newCss.join(' '));\n        }\n\n        element.toggleAttribute('disabled', evaluateLogic(disabled));\n        element.toggleAttribute('hidden', evaluateLogic(hidden));\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <Input\\n        @type={{this.inputType}}\\n        id={{this.inputId}}\\n        name={{this.name}}\\n        pattern={{this.pattern}}\\n        hidden={{this.hidden}}\\n        disabled={{this.disabled}}\\n        {{did-insert this.setupInput}}\\n        {{will-destroy this.cleanupInput}}\\n    />\\n</div>\")","import { action, computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { isPresent } from '@ember/utils';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { AutoResponseInputItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ntype ARIInput = HTMLInputElement & { _inputChangedByJSListeners?: (val: string) => void };\n\ninterface AutoResponseInputItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<AutoResponseInputItem>;\n}\n\n/**\n * @classdesc\n * This is a special input field that we can use in conjunction with QR scanner.\n * When the QR scanner in android/iOS app changes the value property of the input via document.getElementById().value,\n * if the value matches with the pattern, we will automatically execute the given action.\n *\n * We had to manually customize the setter because native ember lifecycle or event triggers did not work when you change an input's value via Javascript.\n */\nexport default class AutoResponseInputItemComponent extends BaseWizardItem<AutoResponseInputItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.inputId')\n    get inputId(): AutoResponseInputItem['inputId'] {\n        return this.args.props?.inputId ?? guidFor(this);\n    }\n\n    @reads('args.props.name')\n    declare name: AutoResponseInputItem['name'];\n\n    @reads('args.props.pattern')\n    pattern: AutoResponseInputItem['pattern'];\n\n    @computed('args.props.required')\n    get required(): AutoResponseInputItem['required'] {\n        return this.args.props?.required ?? false;\n    }\n\n    @reads('args.props.actionOnValueMatch')\n    declare actionOnValueMatch: AutoResponseInputItem['actionOnValueMatch'];\n\n    @reads('args.props.errorAction')\n    declare errorAction: AutoResponseInputItem['errorAction'];\n\n    @computed('args.props.inputType')\n    get inputType(): AutoResponseInputItem['inputType'] {\n        return this.args.props?.inputType ?? 'text';\n    }\n\n    // endregion\n\n    @action setupInput(el: ARIInput): void {\n        const valueDescriptor = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value');\n\n        el._inputChangedByJSListeners = (val) => {\n            this.executeActionFromValue(val);\n        };\n\n        Object.defineProperty(el, 'value', {\n            get: function (this: ARIInput, ...args) {\n                return valueDescriptor?.get?.apply(this, args);\n            },\n            set: function (this: ARIInput, ...args) {\n                valueDescriptor?.set?.apply(this, args);\n                this._inputChangedByJSListeners?.call(this, args[0]);\n            }\n        });\n    }\n\n    @action cleanupInput(el: ARIInput) {\n        delete el._inputChangedByJSListeners;\n    }\n\n    executeActionFromValue(val: string): void {\n        const { executeAction } = this.args,\n            { name, actionOnValueMatch, errorAction, pattern } = this;\n\n        if (isPresent(actionOnValueMatch) && isPresent(pattern) && isPresent(name) && pattern && val.match(pattern)) {\n            try {\n                executeAction?.(actionOnValueMatch, {\n                    [name]: val\n                });\n            } catch (ex) {\n                console.error(ex);\n            }\n        } else if (errorAction) {\n            executeAction?.(errorAction, {\n                error: true\n            });\n        }\n    }\n}\n","import { isEnterOrSpaceCode } from '@adc/ember-utils/utils/a11y';\nimport { A } from '@ember/array';\nimport { computed, action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { dasherize } from '@ember/string';\nimport { htmlSafe } from '@ember/template';\nimport BaseComponent from './base.ts';\n\nimport type { SafeString } from 'handlebars';\nimport type { CSSObject, WizardItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface WizardItemSignature {\n    Args: BaseComponentArgs<WizardItem>;\n}\n\nexport default class BaseWizardItem<T extends WizardItemSignature = WizardItemSignature> extends BaseComponent<T> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.attributes')\n    attributes: WizardItem['attributes'];\n\n    @reads('args.props.visibleFields')\n    visibleFields: WizardItem['visibleFields'];\n\n    @reads('args.props.enableFields')\n    enableFields: WizardItem['enableFields'];\n\n    @reads('args.props.style')\n    style: WizardItem['style'];\n\n    @reads('args.props.css')\n    css: WizardItem['css'];\n\n    @reads('args.props.disabled')\n    disabled: WizardItem['disabled'];\n\n    @reads('args.props.hidden')\n    hidden: WizardItem['hidden'];\n\n    @reads('args.props.action')\n    action: WizardItem['action'];\n\n    @reads('args.props.postData')\n    postData: WizardItem['postData'];\n\n    // endregion\n\n    isClickable = false;\n\n    @computed('style')\n    get cssStyle(): SafeString | undefined {\n        const { style } = this;\n        return style ? htmlSafe(convertToCssString(style)) : undefined;\n    }\n\n    /**\n     * Subclasses can override this method to return custom CSS classes.\n     */\n    getCss(): string[] {\n        return A(['adc-wizard-item', this.isInteractive ? 'clickable' : undefined]).compact();\n    }\n\n    /**\n     * The collection of css classes to apply to the wizard item.\n     */\n    get cssClasses(): string {\n        return this.getCss().join(' ');\n    }\n\n    /**\n     * Indicates whether this item is interactive or not.\n     */\n    get isInteractive(): boolean {\n        if (!this.isClickable) {\n            return false;\n        }\n\n        if (this.disabled) {\n            return false;\n        }\n\n        if (!this.action) {\n            return false;\n        }\n\n        return true;\n    }\n\n    /**\n     * Handles click events on the wizard item.\n     */\n    @action handleClickEvent(evt: Event): boolean {\n        if (!this.isInteractive) {\n            return false;\n        }\n\n        // Cancel default behavior.\n        evt.preventDefault();\n\n        this.args.executeAction?.(this.action, this.postData);\n        return true;\n    }\n\n    /**\n     * Handles keyboard events on the wizard item.\n     */\n    @action handleKeyboardEvent(evt: KeyboardEvent): boolean {\n        if (isEnterOrSpaceCode(evt.code)) {\n            return this.handleClickEvent(evt);\n        }\n\n        return false;\n    }\n}\n\n/**\n * Converts a CSS object into a valid css string.\n */\nexport function convertToCssString(cssObject: CSSObject): string {\n    const flattenedNestedStyles: string[] = [];\n\n    // We declare an inner fn so that flattenedNestedStyles can be a closure scoped variable\n    const fn = (cssObject: CSSObject, existingParentSelectors: string[] = []) => {\n        return Object.entries(cssObject)\n            .map(([k, cssValue]) => {\n                const key = dasherize(k);\n\n                // If the value is an object, we assume the key is a css selector not a css property\n                if (typeof cssValue === 'object') {\n                    // Recursively call, passing down the current selector and any parent selectors for concatenation\n                    const css = fn(cssValue, [...existingParentSelectors, key]);\n\n                    // Convert to string and push the css to flattenedNestedStyles so that it gets serialized at the top level instead of the current\n                    flattenedNestedStyles.push(`${existingParentSelectors.join(' ')} ${key} {${css}}`);\n\n                    return null;\n                } else {\n                    // Its a css property, format it as such.\n                    return `${key}: ${cssValue};`;\n                }\n            })\n            .join(' ');\n    };\n\n    return fn(cssObject) + flattenedNestedStyles.join(' ');\n}\n","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { addObserver } from '@ember/object/observers';\nimport { inject as service } from '@ember/service';\nimport explode from '../../utils/explode.js';\n\nimport type LocalStateService from '../../services/local-state.ts';\nimport type { SharedConfig, ExecuteActionFn } from '../../types';\n\nexport interface BaseComponentArgs<T> {\n    props?: T;\n    shared?: SharedConfig;\n    executeAction?: ExecuteActionFn;\n}\ninterface BaseComponentSignature<T> {\n    Args: BaseComponentArgs<T>;\n}\n\nexport default class BaseComponent<\n    T extends BaseComponentSignature<any> = BaseComponentSignature<any>\n> extends Component<T> {\n    @service declare localState: LocalStateService;\n\n    constructor(owner: unknown, args: BaseComponentArgs<any>) {\n        super(owner, args);\n\n        this.explodeProps(true);\n\n        // eslint-disable-next-line ember/no-observers\n        addObserver(this, 'args.props' as keyof this, this, () => this.explodeProps(false));\n    }\n\n    @action private explodeProps(silent: boolean): void {\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        explode(this, 'args.props', this.localState, silent);\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    tabindex={{if this.isInteractive 0}}\\n    role={{if this.isInteractive \\\"button\\\"}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{on \\\"click\\\" this.handleClickEvent}}\\n    {{on \\\"keyup\\\" this.handleKeyboardEvent}}\\n>\\n    <ItemsIterator @props={{@props}} @shared={{@shared}} @executeAction={{@executeAction}} />\\n</div>\")","import BaseWizardItem from './base-wizard-item.ts';\n\nimport type { BodyContainerItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface BodyContainerItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<BodyContainerItem>;\n}\n\n/**\n * @classdesc\n * Body-container fills the remaining space on a page and allows its inner content to scroll if too large.\n */\nexport default class BodyContainerItemComponent extends BaseWizardItem<BodyContainerItemSignature> {\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-body-container-item', 'adc-wizard-container-item'];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.isInteractive}}\\n    <button\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        tabindex=\\\"0\\\"\\n        type=\\\"button\\\"\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n        {{on \\\"click\\\" this.handleClickEvent}}\\n    >\\n        <ItemsIterator @props={{@props}} @shared={{@shared}} @executeAction={{@executeAction}} />\\n    </button>\\n{{else}}\\n    <div\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n    >\\n        <ItemsIterator @props={{@props}} @shared={{@shared}} @executeAction={{@executeAction}} />\\n    </div>\\n{{/if}}\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { ButtonListItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface ButtonBarItemSignature {\n    Element: HTMLDivElement | HTMLButtonElement;\n    Args: BaseComponentArgs<ButtonListItem>;\n}\n\n/**\n * @classdesc\n * Button bar, for handling button layouts at the bottom of the page\n */\nexport default class ButtonBarItemComponent extends BaseWizardItem<ButtonBarItemSignature> {\n    @reads('args.props.items')\n    declare items: ButtonListItem['items'];\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-button-bar-item', 'adc-wizard-container-item', this.buttonSpacingCss];\n    }\n\n    @computed('items.[]')\n    get buttonSpacingCss() {\n        const { length } = this.items ?? [];\n        return ['exactly-one', 'exactly-two'][length - 1] ?? 'more-than-two';\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<button\\n    type={{this.buttonType}}\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    title={{this.title}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{on \\\"click\\\" this.handleClickEvent}}\\n>\\n    {{safe-html this.text}}\\n</button>\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { ButtonItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface ButtonItemSignature {\n    Element: HTMLButtonElement;\n    Args: BaseComponentArgs<ButtonItem>;\n}\n\n/**\n * @classdesc\n * Renders a `<button>` element.\n */\nexport default class ButtonItemComponent extends BaseWizardItem<ButtonItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.buttonType')\n    get buttonType(): ButtonItem['buttonType'] {\n        return this.args.props?.buttonType ?? 'button';\n    }\n\n    @reads('args.props.text')\n    declare text: ButtonItem['text'];\n\n    @reads('args.props.title')\n    title: ButtonItem['title'];\n\n    // endregion\n\n    isClickable = true;\n\n    getCss(): string[] {\n        return [...super.getCss(), 'btn', 'adc-wizard-button-item'];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    {{#each this.buttons as |btn|}}\\n        <button\\n            type=\\\"button\\\"\\n            class=\\\"btn {{if btn.selected \\'selected\\'}}\\\"\\n            {{on \\\"click\\\" (fn this.select btn.value)}}\\n            value={{btn.value}}\\n        >\\n            <span class=\\\"selected-icon\\\"></span>\\n            {{btn.text}}\\n        </button>\\n\\n        <input\\n            type=\\\"checkbox\\\"\\n            name={{this.name}}\\n            value={{btn.value}}\\n            class=\\\"hidden\\\"\\n            checked={{btn.selected}}\\n            aria-label={{btn.text}}\\n        />\\n    {{/each}}\\n</div>\")","import { A } from '@ember/array';\nimport { action, set, computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { ButtonListItem, SelectOption } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\nexport interface ButtonListItemSignature {\n    Element: Omit<HTMLDivElement, 'align'>;\n    Args: BaseComponentArgs<ButtonListItem>;\n}\n\n/**\n * @classdesc\n * Allows to create a form element that holds a list of buttons.\n */\nexport default class ButtonListItemComponent extends BaseWizardItem<ButtonListItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.items')\n    declare items: ButtonListItem['items'];\n\n    @reads('args.props.multiselect')\n    multiselect: ButtonListItem['multiselect'];\n\n    @reads('args.props.name')\n    name: ButtonListItem['name'];\n\n    // endregion\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-button-list'];\n    }\n\n    @computed('items')\n    get buttons(): ReturnType<typeof A<SelectOption>> {\n        return A((this.items ?? []).map((item) => ({ ...item })));\n    }\n\n    /**\n     * Selects a button by value.\n     */\n    @action select(selectedValue: string): void {\n        const { buttons, action } = this;\n\n        if (!this.multiselect) {\n            A(buttons.rejectBy('value', selectedValue)).setEach('selected', false);\n        }\n\n        const btn = buttons.findBy('value', selectedValue);\n        if (btn) {\n            set(btn, 'selected', !btn.selected);\n        }\n\n        if (action) {\n            const selectedValues = A(buttons.filterBy('selected')).mapBy('value');\n\n            // If there is only one selected value we send it instead of an array.\n            // Using pop handles an empty array by returning undefined, which we convert to null\n            this.args.executeAction?.(\n                action,\n                selectedValues.length <= 1 ? selectedValues.pop() : (selectedValues as unknown as BodyInit)\n            );\n        }\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    tabindex={{if this.isInteractive 0}}\\n    role={{if this.isInteractive \\\"button\\\"}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{on \\\"click\\\" this.handleClickEvent}}\\n    {{on \\\"keyup\\\" this.handleKeyboardEvent}}\\n>\\n    <ItemsIterator @props={{@props}} @shared={{@shared}} @executeAction={{@executeAction}} />\\n</div>\")","import { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { ContainerItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface ContainerItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<ContainerItem>;\n}\n\n/**\n * @classdesc\n * Container Wizard Item. Used to generate a `<div>` container.\n */\nexport default class ContainerItemComponent extends BaseWizardItem<ContainerItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.items')\n    declare items: ContainerItem['items'];\n\n    // endregion\n\n    isClickable = true;\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-container-item'];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{did-insert this.tick.perform}}\\n>\\n    <div class=\\\"countdown-display\\\" hidden={{this.isHidden}}>\\n        {{this.secondsRemaining}}\\n    </div>\\n</div>\")","import { tracked } from '@glimmer/tracking';\nimport { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { task, timeout } from 'ember-concurrency';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { TaskForAsyncTaskFunction } from 'ember-concurrency';\nimport type { CountdownTimerItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface CountdownTimerItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<CountdownTimerItem>;\n}\n\n/**\n * @classdesc\n * CountdownTimer wizard item. Used to make an automatic next action after specified seconds.\n */\nexport default class CountdownTimerItemComponent extends BaseWizardItem<CountdownTimerItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.seconds')\n    get seconds(): CountdownTimerItem['seconds'] {\n        return this.args.props?.seconds ?? 0;\n    }\n\n    @reads('args.props.hideCountdown')\n    hideCountdown: CountdownTimerItem['hideCountdown'];\n\n    // endregion\n\n    @computed('hideCountdown')\n    get isHidden(): boolean {\n        return this.hideCountdown ?? true;\n    }\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-countdown'];\n    }\n\n    /**\n     * Seconds remaining in the timer.\n     */\n    @tracked secondsRemaining = this.seconds;\n\n    tick: TaskForAsyncTaskFunction<unknown, () => Promise<void>> = task(async () => {\n        for (;;) {\n            if (this.secondsRemaining <= 0) {\n                const { action, postData } = this;\n                if (action) {\n                    this.args.executeAction?.(action, postData);\n                }\n\n                return;\n            }\n\n            await timeout(1000);\n\n            this.secondsRemaining--;\n        }\n    });\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    id={{guid-for this}}\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{did-insert this.updateFromInitialValue this.initialValue}}\\n    {{did-update this.updateFromInitialValue this.initialValue}}\\n>\\n\\n    {{#if this.multiselect}}\\n        <DropdownSelect::MultiSelect @items={{this.dataToRender}} @value-change={{this.setSelectedValue}} />\\n        {{!\\n            dropdown-select doesn\\'t support html forms. We use a hidden select element to provide the data.\\n            We always use a multiselect because it allows for a null/empty selection which we must support.\\n        }}\\n        <select id={{this.selectElementId}} multiple=\\\"true\\\" hidden name={{this.name}}>\\n            {{#each this.dataToRender as |item|}}\\n                <option name={{item.name}} value={{item.value}}></option>\\n            {{/each}}\\n        </select>\\n    {{else}}\\n        <DropdownSelect::SingleSelect\\n            @items={{this.dataToRender}}\\n            @value-change={{this.setSelectedValue}}\\n            name={{this.name}}\\n        />\\n    {{/if}}\\n</div>\")","import { A } from '@ember/array';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { scheduleOnce } from '@ember/runloop';\nimport DropdownSelectItem, { SELECTED, UNSELECTED } from '@adc/ui-components/utils/dropdown-select-item';\nimport PlaceholderItemComponent from './placeholder-item.ts';\n\nimport type { DropdownSelectItem as Item } from '../../types';\n\n/**\n * @classdesc\n * A wizard-item that can fetch local or remote data and then render it as a dropdown\n */\nexport default class DropdownSelectItemComponent extends PlaceholderItemComponent {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.name')\n    name: Item['name'];\n\n    @reads('args.props.multiselect')\n    multiselect: Item['multiselect'];\n\n    @reads('args.props.initialValue')\n    declare initialValue: Item['initialValue'];\n\n    // endregion\n\n    supportItemTemplate = false;\n\n    /**\n     * Performs post processing on the item before rendering.\n     */\n    decorateData({ name, value }: { name: string; value: string }): DropdownSelectItem {\n        const initialVal = this.initialValue,\n            isSelected = Array.isArray(initialVal)\n                ? initialVal.map(String).includes(String(value))\n                : String(initialVal) === String(value);\n\n        return DropdownSelectItem.create({\n            name,\n            value,\n            selected: isSelected,\n            state: isSelected ? SELECTED : UNSELECTED\n        });\n    }\n\n    /**\n     * Id for the select element\n     */\n    get selectElementId(): string {\n        return `select-${guidFor(this)}`;\n    }\n\n    @action updateFromInitialValue(_el: HTMLElement, value: string | string[]): void {\n        // Do not copy this deprecated usage. If you see this, please fix.\n        // eslint-disable-next-line ember/no-runloop\n        scheduleOnce('afterRender', this, this.setSelectionFromValue, value);\n    }\n\n    /**\n     * Updates the <select> element's selection based on the value provided\n     */\n    @action setSelectionFromValue(value: string | string[]): void {\n        const selectElement = document.getElementById(this.selectElementId);\n        if (selectElement) {\n            const values = (Array.isArray(value) ? value : [value]).map(String);\n\n            // If the option value is in the provided values, set selected = true, otherwise false;\n            Array.from(selectElement.children).forEach((opt: HTMLOptionElement) => {\n                opt.selected = values.includes(opt.value);\n            });\n        }\n    }\n\n    /**\n     * Updates the <select> element's selection based on the value provided\n     */\n    @action setSelectedValue(value: string | DropdownSelectItem[]): void {\n        if (Array.isArray(value)) {\n            this.setSelectionFromValue(\n                A(A<DropdownSelectItem>(value as DropdownSelectItem[]).filterBy('isFullySelected')).mapBy('value')\n            );\n        } else {\n            this.setSelectionFromValue(value);\n        }\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <div class=\\\"file-upload\\\">\\n        <label for={{this.fileUploadElementId}} class=\\\"btn adc-wizard-button-item browse-btn\\\">\\n            {{tc this \\\"browse\\\"}}\\n        </label>\\n\\n        <span class=\\\"content-wrapper\\\">\\n            {{#if this.isUploading}}\\n                <LoadingSpinner @running={{true}} />\\n            {{else}}\\n                {{coalesce this.fileName (tc this \\\"noFileSelected\\\")}}\\n            {{/if}}\\n        </span>\\n\\n        <p class=\\\"error-message\\\"> {{this.errorMessage}} </p>\\n        <input\\n            id={{this.fileUploadElementId}}\\n            type=\\\"file\\\"\\n            accept={{this.accept}}\\n            disabled={{this.isUploading}}\\n            {{on \\\"change\\\" this.fileSelected}}\\n        />\\n    </div>\\n</div>\")","import { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type AjaxService from '@adc/ajax/services/adc-ajax';\nimport type { FileUploadItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface FileUploadItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<FileUploadItem>;\n}\n\n/**\n * Default max file size in bytes. (10,000,000)\n */\nconst DEFAULT_MAX_FILE_SIZE_BYTES = 10000000;\n\n/**\n * Upload the specified file.\n */\nasync function uploadFile(this: FileUploadItemComponent, file: File): Promise<void> {\n    const formData = new FormData();\n    formData.append('file', file);\n\n    Object.assign(this, {\n        isUploading: true,\n        fileName: file.name\n    });\n\n    const { executeAction } = this.args,\n        { saveTo, successAction, errorAction } = this;\n\n    try {\n        const result = await postFormData.call(this, this.endpoint, formData);\n        if (saveTo) {\n            this.localState.save(saveTo, result.data);\n        }\n\n        if (successAction) {\n            executeAction?.(successAction, this.postData);\n        }\n    } catch (error) {\n        this.errorMessage = 'File Upload Failed';\n        if (errorAction) {\n            executeAction?.(errorAction);\n        }\n    }\n}\n\n/**\n * Send the specified formData to the endpoint.\n */\nfunction postFormData(\n    this: FileUploadItemComponent,\n    endpoint: string,\n    formData: XMLHttpRequestBodyInit\n): Promise<Record<string, unknown>> {\n    const { defaultHeaders, apiBaseUrl } = this.ajax;\n    const joinChar = endpoint[0] === '/' ? '' : '/';\n\n    return new Promise((resolve, reject) => {\n        const xhr = new XMLHttpRequest();\n        xhr.open('POST', `${apiBaseUrl}${joinChar}${endpoint}`);\n        xhr.setRequestHeader('AjaxRequestUniqueKey', defaultHeaders.ajaxrequestuniquekey ?? '');\n\n        xhr.onload = function () {\n            const { status } = this;\n            if (status >= 200 && status < 300) {\n                resolve(JSON.parse(xhr.responseText));\n                return;\n            }\n\n            reject({\n                status,\n                statusText: xhr.statusText\n            });\n        };\n\n        xhr.onerror = function () {\n            reject({\n                status: this.status,\n                statusText: xhr.statusText\n            });\n        };\n\n        xhr.send(formData);\n    });\n}\n\n/**\n * Reset the upload field.\n */\nfunction resetUploadField(this: FileUploadItemComponent, fileInput: HTMLInputElement): void {\n    fileInput.files = null;\n    fileInput.value = '';\n    this.isUploading = false;\n}\n\n/**\n * @classdesc\n * Use this component to upload files.\n */\n@intlPath({ module: '@adc/wizard', path: 'file-upload' })\nexport default class FileUploadItemComponent extends BaseWizardItem<FileUploadItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.accept')\n    declare accept: FileUploadItem['accept'];\n\n    @reads('args.props.endpoint')\n    declare endpoint: FileUploadItem['endpoint'];\n\n    @reads('args.props.webapi')\n    declare webapi: FileUploadItem['webapi'];\n\n    @reads('args.props.saveTo')\n    saveTo: FileUploadItem['saveTo'];\n\n    @reads('args.props.successAction')\n    successAction: FileUploadItem['successAction'];\n\n    @reads('args.props.errorAction')\n    errorAction: FileUploadItem['errorAction'];\n\n    @reads('args.props.maxFileSize')\n    maxFileSize: FileUploadItem['maxFileSize'];\n\n    // endregion\n\n    @service declare ajax: AjaxService;\n\n    /**\n     * Name of the currently selected file.\n     */\n    @tracked fileName = '';\n\n    /**\n     * Is a file currently being uploaded?\n     */\n    @tracked isUploading = false;\n\n    /**\n     * Error Message\n     */\n    @tracked errorMessage = '';\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-file-upload-item'];\n    }\n\n    /**\n     * A unique ID for the file upload input element.\n     */\n    get fileUploadElementId(): string {\n        return `${guidFor(this)}FileUpload`;\n    }\n\n    /**\n     * Upload a file when a user selects one to be uploaded.\n     */\n    @action async fileSelected(event: Event & { target: HTMLInputElement }): Promise<void> {\n        const fileInput = event.target;\n\n        if (!fileInput.files?.length) {\n            return;\n        }\n\n        const file = fileInput.files[0];\n        if (file.size > (this.maxFileSize ?? DEFAULT_MAX_FILE_SIZE_BYTES)) {\n            this.errorMessage = 'The file size is too large';\n            resetUploadField.call(this, fileInput);\n            return;\n        } else {\n            this.errorMessage = '';\n        }\n\n        await uploadFile.call(this, file);\n        resetUploadField.call(this, fileInput);\n    }\n}\n","/** The element types we are used to submit the form and that we DO NOT want to serialize.\n * @type {RegExp}\n */\n\nconst SUBMITTER_TYPES = /^(?:submit|button|image|reset|file)$/i;\n\n/**\n * The element types that can be \"checked\"\n *\n * @type {RegExp}\n */\nconst CHECKABLE_TYPE = /^(?:checkbox|radio)$/i;\n\n/**\n * The element types we want to serialize.\n *\n * @type {RegExp}\n */\nconst SERIALIZABLE_ELEMENTS = /^(?:input|select|textarea|keygen)/i;\n\n/**\n * Regex for CRLF\n *\n * @type {RegExp}\n */\nconst CRLF = /\\r?\\n/g;\n\n/**\n * Polyfill for jQuery.serializeArray().  Converts a HTML form into a serialized array.\n *\n *\n * @param {HTMLElement} element\n */\nexport function serializeArray(element) {\n    // This attempts to duplicate the logic found at: https://github.com/jquery/jquery/blob/e743cbd28553267f955f71ea7248377915613fd9/src/serialize.js\n\n    /**\n     * The serialized results.\n     * @type {{name: string, value: string}}\n     */\n    const results = [];\n\n    /**\n     *  Get all child and nested child nodes of the element.\n     * @type {NodeList}\n     */\n    const elements = element.querySelectorAll('*');\n\n    // We loop because elements is not a true array and IE11 has poor support for the NodeList iterators.\n    for (let i = 0; i < elements.length; i++) {\n        const el = elements[i];\n\n        // We don't do anything with the node if:\n        // It doesn't have a name.\n        // Its disabled\n        // It is not one of the element types we care about.\n        // It is a checkable type and it is not checked.\n        if (\n            !el.name ||\n            el.disabled ||\n            SUBMITTER_TYPES.test(el.type) ||\n            !SERIALIZABLE_ELEMENTS.test(el.nodeName) ||\n            (CHECKABLE_TYPE.test(el.type) && !el.checked)\n        ) {\n            continue;\n        }\n\n        // Continue w/ the processing.\n\n        const value = el.value;\n\n        // Selects need special handling because 'value' only returns the first selected value in a multiselect.\n        if (el.tagName.toLowerCase() === 'select') {\n            const options = el.getElementsByTagName('option');\n\n            for (let j = 0; j < options.length; j++) {\n                const option = options[j];\n                if (option.selected) {\n                    results.push(createDataNode(el.name, option.value));\n                }\n            }\n        }\n\n        // If its an array, we create a node for each value.  All nodes use the same name key.\n        else if (Array.isArray(value)) {\n            results.push(\n                value.map((i) => {\n                    return createDataNode(el.name, i.value);\n                })\n            );\n        } else {\n            results.push(createDataNode(el.name, el.value));\n        }\n    }\n\n    return results;\n}\n\n/**\n * Creates the appropriate data structure and format for the node.  Converts the value ot a string.\n *\n * @private\n * @param {string} name\n * @param {*} value\n */\nfunction createDataNode(name, value) {\n    if (value === null || value === undefined) {\n        return '';\n    }\n\n    // Force a string conversion.\n    value = value + '';\n\n    return {\n        name,\n        value: value.replace(CRLF, '\\r\\n')\n    };\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<form\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{on \\\"submit\\\" this.submit}}\\n>\\n    <ItemsIterator @props={{@props}} @shared={{@shared}} @executeAction={{@executeAction}} />\\n</form>\")","import { isArray } from '@ember/array';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { camelize } from '@ember/string';\nimport { serializeArray } from '../../utils/serialize-array.js';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { FormItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface FormItemSignature {\n    Element: HTMLFormElement;\n    Args: BaseComponentArgs<FormItem>;\n}\n\n/**\n * @classdesc\n * Use this component to create a form that can hold input items.\n */\nexport default class FormItemComponent extends BaseWizardItem<FormItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.items')\n    declare items: FormItem['items'];\n\n    // endregion\n\n    @action submit(evt: SubmitEvent & { target: HTMLFormElement }): false {\n        evt.stopPropagation();\n        evt.preventDefault();\n\n        if (!this.disabled) {\n            // We wrap this in a try just in case it throws.  If we fail to return false from this function\n            // the default form submit will trigger and force a hard refresh of the page.  The refresh can occur before\n            // the original error is sent to our server.\n            try {\n                this.args.executeAction?.(this.action, this.convertFormToObject(evt.target));\n            } catch (ex) {\n                console.error(ex);\n            }\n        }\n\n        return false;\n    }\n\n    /**\n     * Converts the form into an object.\n     */\n    convertFormToObject(form: HTMLFormElement): Record<string, string | string[]> {\n        const formData = serializeArray(form),\n            formObj: Record<string, string | string[]> = {};\n\n        formData.forEach((item) => {\n            const key = camelize(item.name),\n                value = item.value;\n\n            // Forms can include multiple entries with the same key.\n            // Values that share keys are stored in arrays, otherwise they're saved as single items.\n            if (formObj[key]) {\n                if (isArray(formObj[key])) {\n                    (formObj[key] as unknown as string[]).push(value);\n                } else {\n                    formObj[key] = [formObj[key] as string, value];\n                }\n            } else {\n                formObj[key] = value;\n            }\n        });\n\n        return formObj;\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#let (element this.headerComponent) as |HeaderComponent|}}\\n    <HeaderComponent\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n    >\\n        {{safe-html this.text}}\\n    </HeaderComponent>\\n{{/let}}\")","import { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { HeaderItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface HeaderItemSignature {\n    Element: HTMLHeadingElement;\n    Args: BaseComponentArgs<HeaderItem>;\n}\n\n/**\n * @classdesc\n * Header wizard item. Use to add h1 to h5 to the wizard step.\n */\nexport default class HeaderItemComponent extends BaseWizardItem<HeaderItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.text')\n    declare text: HeaderItem['text'];\n\n    @reads('args.props.size')\n    size: HeaderItem['size'];\n\n    // endregion\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-header-item'];\n    }\n\n    get headerComponent(): 'h1' | 'h2' | 'h3' | 'h4' | 'h5' {\n        return `h${this.size ?? 1}`;\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<ItemsIterator\\n    @items={{this.componentsToRender}}\\n    @shared={{@shared}}\\n    @executeAction={{@executeAction}}\\n    @itemState={{this.itemState}}\\n/>\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { evaluateLogic } from '../../utils/logic.js';\nimport BaseComponent from './base.ts';\n\nimport type { WizardItem, IfThenItem } from '../../types';\nimport type { ItemsIteratorSignature } from '../items-iterator.ts';\nimport type { BaseComponentArgs } from './base';\n\ninterface IfThenItemSignature {\n    Element: ItemsIteratorSignature['Element'];\n    Args: BaseComponentArgs<IfThenItem>;\n}\n\n/**\n * @classdesc\n * IfThen Item. Used to conditionally render components based on a test condition.\n */\nexport default class IfThenItemComponent extends BaseComponent<IfThenItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.test')\n    get test(): IfThenItem['test'] {\n        return this.args.props?.test ?? true;\n    }\n\n    @reads('args.props.trueComponent')\n    declare trueComponent: IfThenItem['trueComponent'];\n\n    @reads('args.props.falseComponent')\n    declare falseComponent: IfThenItem['falseComponent'];\n\n    @reads('args.props.itemState')\n    itemState: IfThenItem['itemState'];\n\n    // endregion\n\n    /**\n     * The evaluated value used to determine the if statement's outcome.\n     */\n    @computed('test')\n    get evaluatedTest(): boolean {\n        return evaluateLogic(this.test);\n    }\n\n    /**\n     * The WizardItem to render.  Its an array for implementation reasons but will only be one component.\n     */\n    @computed('evaluatedTest', 'falseComponent', 'trueComponent')\n    get componentsToRender(): WizardItem[] {\n        // We return an array so that we can use it with items-iterator.  It is already setup to handle rendering and resolving components\n        // We use props.true/falseComponent because we need the version that still contains #{} params and hasn't been 'exploded'.\n        return [this.evaluatedTest ? this.trueComponent : this.falseComponent];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <iframe class=\\\"wizard-iframe-item\\\" src={{this.url}} title=\\\"remote\\\"></iframe>\\n</div>\")","import { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { IframeItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface IframeItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<IframeItem>;\n}\n\n/**\n * @classdesc\n * A wizard-item that renders an iframe\n */\nexport default class IframeItemComponent extends BaseWizardItem<IframeItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.url')\n    declare url: IframeItem['url'];\n\n    // endregion\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-iframe', 'adc-wizard-container-item', 'adc-wizard-body-container-item'];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.isInteractive}}\\n    <button\\n        type=\\\"button\\\"\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        tabindex=\\\"0\\\"\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n        {{on \\\"click\\\" this.handleClickEvent}}\\n        {{on \\\"keyup\\\" this.handleKeyboardEvent}}\\n    >\\n        <div class=\\\"image-wrapper\\\">\\n            <img src={{this.src}} alt={{this.alt}} />\\n        </div>\\n\\n        {{#if this.caption}}\\n            <WizardItems::TextItem @text={{this.caption}} />\\n        {{/if}}\\n    </button>\\n{{else}}\\n    <span\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n    >\\n        <div class=\\\"image-wrapper\\\">\\n            <img src={{this.src}} alt={{this.alt}} />\\n        </div>\\n        {{#if this.caption}}\\n            <WizardItems::TextItem @text={{this.caption}} />\\n        {{/if}}\\n    </span>\\n{{/if}}\")","import { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { ImageItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface ImageItemSignature {\n    Element: HTMLButtonElement | HTMLSpanElement;\n    Args: BaseComponentArgs<ImageItem>;\n}\n\n/**\n * @classdesc\n * Link wizard item. Use to move from steps and execute actions.\n */\nexport default class ImageItemComponent extends BaseWizardItem<ImageItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.src')\n    src: ImageItem['src'];\n\n    @reads('args.props.alt')\n    alt: ImageItem['alt'];\n\n    @reads('args.props.caption')\n    caption: ImageItem['caption'];\n\n    // endregion\n\n    isClickable = true;\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-image-item'];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#let (element this.listComponent) as |ListComponent|}}\\n    <ListComponent\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        listStyle={{this.listStyle}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n    >\\n        <li class=\\\"adc-wizard-list-item\\\">\\n            <div class=\\\"info-wrapper\\\">\\n                {{#each this.itemsToRender as |item|}}\\n                    {{#if item.component}}\\n                        {{!@glint-expect-error Variable component is unknown to glint}}\\n                        <item.component @props={{item}} @executeAction={{@executeAction}} />\\n                    {{else}}\\n                        {{item}}\\n                    {{/if}}\\n                {{/each}}\\n            </div>\\n        </li>\\n    </ListComponent>\\n{{/let}}\")","import { computed } from '@ember/object';\nimport ListItem from './list-item.ts';\n\nimport type { ListItem as IListItem } from '../../types';\n\n/**\n * @classdesc\n * List wizard item. Used to show list ordered and unordered.\n */\nexport default class InfoItem extends ListItem {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.listStyle')\n    get listStyle(): IListItem['listStyle'] {\n        return this.args.props?.listStyle ?? 'info';\n    }\n\n    // endregion\n\n    getCss(): string[] {\n        // Legacy version doesn't include any of the super class names (probably a bug), so I'm doing this also to keep it backward compatible.\n        return ['adc-wizard-info'];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.isCheckbox}}\\n    <Input\\n        @type=\\\"checkbox\\\"\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        name={{this.name}}\\n        disabled={{if this.disabled \\\"true\\\"}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n    />\\n{{else}}\\n    <input\\n        type={{this.inputType}}\\n        value={{this.value}}\\n        name={{this.name}}\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        disabled={{if this.disabled \\\"true\\\"}}\\n        max={{this.max}}\\n        min={{this.min}}\\n        pattern={{this.pattern}}\\n        placeholder={{this.placeholder}}\\n        size={{this.size}}\\n        readonly={{this.readonly}}\\n        lang={{this.lang}}\\n        dir={{this.dir}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n        {{on \\\"change\\\" this.updateValue}}\\n    />\\n{{/if}}\")","import { computed, action, set } from '@ember/object';\nimport { equal, reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { InputItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface InputItemignature {\n    Element: HTMLInputElement;\n    Args: BaseComponentArgs<InputItem>;\n}\n\n/**\n * Form input item. Used to show input tags.\n */\nexport default class InputItemComponent extends BaseWizardItem<InputItemignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.inputType')\n    get inputType(): InputItem['inputType'] {\n        return this.args.props?.inputType ?? 'text';\n    }\n\n    @reads('args.props.name')\n    declare name: InputItem['name'];\n\n    @reads('args.props.placeholder')\n    placeholder: InputItem['placeholder'];\n\n    @reads('args.props.ariaRole')\n    ariaRole: InputItem['ariaRole'];\n\n    @reads('args.props.max')\n    max: InputItem['max'];\n\n    @reads('args.props.min')\n    min: InputItem['min'];\n\n    @reads('args.props.pattern')\n    pattern: InputItem['pattern'];\n\n    @reads('args.props.size')\n    size: InputItem['size'];\n\n    @reads('args.props.readonly')\n    readonly: InputItem['readonly'];\n\n    @reads('args.props.value')\n    value: InputItem['value'];\n\n    @reads('args.props.lang')\n    lang: InputItem['lang'];\n\n    @reads('args.props.dir')\n    dir: InputItem['dir'];\n\n    // endregion\n\n    @equal('inputType', 'checkbox')\n    declare isCheckbox: boolean;\n\n    /**\n     * Update actual value when input changes.\n     */\n    @action\n    updateValue(event: Event & { target?: { value: string } }): void {\n        if (this.args.props) {\n            set(this.args.props, 'value', event.target?.value ?? '');\n        }\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<ul\\n    class=\\\"{{this.cssClasses}} {{if @props.reverseLabels \\'reverse-labels\\'}}\\\"\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    {{#each this.inputs as |item|}}\\n        <li class=\\\"adc-wizard-list-item\\\">\\n            <span class=\\\"input-wrapper\\\">\\n                <input\\n                    type={{this.inputType}}\\n                    name={{this.name}}\\n                    value={{item.value}}\\n                    id={{item.id}}\\n                    checked={{if item.selected \\\"checked\\\"}}\\n                    disabled={{this.disabled}}\\n                />\\n                <span class=\\\"ui-input\\\"></span>\\n            </span>\\n            <label class=\\\"list-item-label\\\" for={{item.id}}>\\n                {{item.text}}\\n            </label>\\n        </li>\\n    {{/each}}\\n</ul>\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { htmlSafe } from '@ember/template';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { SafeString } from 'handlebars';\nimport type { OptionListItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\nexport interface InputListItemSignature {\n    Element: HTMLUListElement;\n    Args: BaseComponentArgs<OptionListItem>;\n}\n\n/**\n * @classdesc\n * Allows to create a form element that holds a list of checkboxes or radio buttons.\n */\nexport default class InputListItemComponent extends BaseWizardItem<InputListItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.name')\n    declare name: OptionListItem['name'];\n\n    @reads('args.props.items')\n    declare items: OptionListItem['items'];\n\n    @reads('args.props.listType')\n    listType: OptionListItem['listType'];\n\n    @reads('args.props.multiselect')\n    multiselect: OptionListItem['multiselect'];\n\n    // endregion\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-input-list'];\n    }\n\n    @computed('items', 'name')\n    get inputs(): { id: string; text: SafeString; value: string; selected?: boolean }[] {\n        const { name = '' } = this;\n\n        return (this.items ?? []).map((item) => ({\n            ...item,\n            id: `${name}_${item.value}`,\n            text: htmlSafe(item.text)\n        }));\n    }\n\n    /**\n     * Return the input list type, `checkbox` (default) or radio.\n     */\n    @computed('listType')\n    get inputType(): string {\n        const listType = this.listType;\n        return !listType || listType === 'check' ? 'checkbox' : listType;\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<a\\n    href={{if this.href this.href \\\"#\\\"}}\\n    target={{if this.target this.target \\\"_blank\\\"}}\\n    title={{this.title}}\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{on \\\"click\\\" this.handleClickEvent}}\\n    {{on \\\"keyup\\\" this.handleKeyboardEvent}}\\n>\\n    {{this.text}}\\n</a>\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { LinkItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface LinkItemignature {\n    Element: HTMLAnchorElement;\n    Args: BaseComponentArgs<LinkItem>;\n}\n\n/**\n * @classdesc\n * Link wizard item. Use to move from steps and execute actions.\n */\nexport default class LinkItemComponent extends BaseWizardItem<LinkItemignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.text')\n    declare text: LinkItem['text'];\n\n    @computed('args.props.href')\n    get href(): LinkItem['href'] {\n        return this.args.props?.href ?? '#';\n    }\n\n    @reads('args.props.target')\n    target: LinkItem['target'];\n\n    @reads('args.props.title')\n    title: LinkItem['title'];\n\n    // endregion\n\n    isClickable = true;\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#let (element this.listComponent) as |ListComponent|}}\\n    <ListComponent\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        listStyle={{this.listStyle}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n    >\\n        {{#each this.itemsToRender as |item|}}\\n            <li class=\\\"adc-wizard-list-item\\\">\\n                {{#if item.component}}\\n                    {{!@glint-expect-error Variable component is unknown to glint}}\\n                    <item.component @props={{item}} @executeAction={{@executeAction}} />\\n                {{else}}\\n                    {{item}}\\n                {{/if}}\\n            </li>\\n        {{/each}}\\n    </ListComponent>\\n{{/let}}\")","import { assert } from '@ember/debug';\nimport { computed } from '@ember/object';\nimport { map } from '@ember/object/computed';\nimport resolveItemComponent from '../../utils/resolve-item-component.ts';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { ContentValue } from '@glint/template';\nimport type { ListItem, WizardItem } from '../../types';\nimport type { BaseComponentArgs } from './base.ts';\n\ninterface ListItemSignature {\n    Element: HTMLUListElement | HTMLOListElement;\n    Args: BaseComponentArgs<ListItem>;\n}\n\ntype Item = {\n    type: string;\n    component: typeof BaseWizardItem<any>;\n} & {\n    [key: string]: any; // Other unspecified keys\n};\n\n/**\n * @classdesc\n * List wizard item. Used to show list ordered and unordered.\n */\nexport default class ListItemComponent extends BaseWizardItem<ListItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.listStyle')\n    get listStyle(): ListItem['listStyle'] {\n        return this.args.props?.listStyle ?? 'bulleted';\n    }\n\n    // endregion\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-list'];\n    }\n\n    constructor(owner: unknown, args: BaseComponentArgs<ListItem>) {\n        super(owner, args);\n\n        const { listStyle = 'bulleted' } = this,\n            valid = ['bulleted', 'numbered', 'plain', 'info'];\n\n        assert(\n            `[@adc/wizard] ListItemComponent Invalid listStyle \"${listStyle}\", valid options are \"${valid.join(\n                '\", \"'\n            )}\".`,\n            valid.includes(listStyle)\n        );\n    }\n\n    get listComponent() {\n        return this.listStyle === 'numbered' ? 'ol' : 'ul';\n    }\n\n    @map('items', (item: Item) => {\n        if (typeof item !== 'object') {\n            // This is necessary so we can support i18n\n            return '[@adc/wizard] Must provide array of wizard items instead of raw text array.';\n        }\n\n        item.component = resolveItemComponent(item?.type, this);\n        return item;\n    })\n    declare itemsToRender: (ContentValue &\n        WizardItem &\n        Record<string, unknown> & {\n            component: 'WizardItems::TextItem' | null | undefined;\n        })[];\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-expect-error Variable component is unknown to glint }}\\n<this.wrapped @props={{@props}} @shared={{@shared}} @executeAction={{@executeAction}} ...attributes />\")","import Component from '@glimmer/component';\nimport { computed } from '@ember/object';\nimport ButtonListItemComponent from './button-list-item.ts';\nimport InputListItemComponent from './input-list-item.ts';\nimport SelectItemComponent from './select-item.ts';\n\nimport type { OptionListItem, SharedConfig, ExecuteActionFn } from '../../types';\nimport type { ButtonListItemSignature } from './button-list-item';\nimport type { InputListItemSignature } from './input-list-item';\nimport type { SelectItemSignature } from './select-item';\n\ntype WrappendComponentType =\n    | typeof ButtonListItemComponent\n    | typeof SelectItemComponent\n    | typeof InputListItemComponent;\n\ninterface OptionListItemComponentArgs {\n    props: OptionListItem;\n    shared?: SharedConfig;\n    executeAction: ExecuteActionFn;\n}\n\ninterface OptionListItemSignature {\n    Element: ButtonListItemSignature['Element'] | SelectItemSignature['Element'] | InputListItemSignature['Element'];\n    Args: OptionListItemComponentArgs;\n}\n\n/**\n * @classdesc\n * This is a wrapper for the many ways of listing options within a form. Depending on the\n * `listType`, it will render as a list of radio buttons, checkboxes, buttons or a select.\n */\nexport default class OptionListItemComponent extends Component<OptionListItemSignature> {\n    /**\n     * Resolves the component to be rendered based on the `listType`.\n     */\n    @computed('args.props.listType')\n    get wrapped(): WrappendComponentType {\n        const { listType } = this.args.props ?? {};\n\n        if (listType === 'button') {\n            return ButtonListItemComponent;\n        }\n\n        if (listType === 'select') {\n            return SelectItemComponent;\n        }\n\n        return InputListItemComponent;\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    id={{this.placeholderKey}}\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <ItemsIterator @items={{this.dataToRender}} @shared={{@shared}} @executeAction={{@executeAction}} />\\n</div>\")","import { tracked } from '@glimmer/tracking';\nimport { isDestroyed } from '@adc/ember-utils/utils/ember-helpers';\nimport { computed, get } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { inject as service } from '@ember/service';\nimport replaceShared from '../../utils/replace-shared.ts';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type PlaceholderService from '../../services/placeholder.ts';\nimport type { PlaceholderItem, RequestResponse, WizardItem, InitialState } from '../../types';\nimport type { BaseComponentArgs } from './base.ts';\n\ninterface PlaceholderItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<PlaceholderItem>;\n}\n\n/**\n * @classdesc\n * PlaceholderItem is a wizard-item that can fetch local or remote data and then render it using a given template\n */\nexport default class PlaceholderItemComponent extends BaseWizardItem<PlaceholderItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.alias')\n    declare alias: PlaceholderItem['alias'];\n\n    @computed('args.props.placeholderKey')\n    get placeholderKey(): PlaceholderItem['placeholderKey'] {\n        return this.args.props?.placeholderKey ?? guidFor(this);\n    }\n\n    @reads('args.props.placeHolderProps')\n    declare placeHolderProps: PlaceholderItem['placeHolderProps'];\n\n    @reads('args.props.responseTransform')\n    declare responseTransform: PlaceholderItem['responseTransform'];\n\n    @reads('args.props.contentRequestAction')\n    contentRequestAction: PlaceholderItem['contentRequestAction'];\n\n    @reads('args.props.dataPath')\n    dataPath: PlaceholderItem['dataPath'];\n\n    @reads('args.props.networkResponsePath')\n    networkResponsePath: PlaceholderItem['networkResponsePath'];\n\n    @reads('args.props.itemTemplate')\n    itemTemplate: PlaceholderItem['itemTemplate'];\n\n    // endregion\n\n    @service declare placeholder: PlaceholderService;\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-placeholder-item'];\n    }\n\n    constructor(owner: unknown, args: BaseComponentArgs<PlaceholderItem>) {\n        super(owner, args);\n\n        const action = this.contentRequestAction;\n        this.placeholder.subscribe(this);\n\n        // If an api action was specified, make the request.\n        if (action) {\n            // We pass along the placeholderKey so that adc-wizard can find this component later on to update it.\n            args.executeAction?.(action, {\n                placeholderKey: this.placeholderKey\n            });\n        }\n    }\n\n    willDestroy(): void {\n        super.willDestroy();\n\n        // FYI - it seems like willDestroy can be quite delayed. Ie. it may not trigger until after a complete rendering of a new wizard step.\n        this.placeholder.unsubscribe(this);\n    }\n\n    /**\n     * Does the component support rendering of a provided itemTemplate\n     *\n     * @todo NOTE: supportItemTemplate exists because Other components extend this class and do not support templates.\n     * Refactor the network fetching functionality into a separate mixin so that components borrow from it\n     * rather than extending this class.\n     */\n    supportItemTemplate = true;\n\n    /**\n     * Most recent network response received by the placeholder.\n     */\n    @tracked networkResponse?: RequestResponse;\n\n    /**\n     * Combines any local data, the Wizard's localState and the WizardItem object definition so that it can be rendered by item iterator\n     */\n    decorateData(data: Record<string, unknown> | null, initialState?: InitialState, wizardItem?: WizardItem): any {\n        // We merge wizardItem.localState with the data provided.  This will allow networkResponse to be included in the\n        // pre-existing parameter templating.  It also allows shorter property reference.\n        const newObj = {\n            ...wizardItem,\n            ...{\n                itemState: {\n                    ...initialState,\n                    ...data\n                }\n            }\n        };\n\n        // We need to recurse down any nested items and also decorate those elements\n        if (newObj.items) {\n            newObj.items = newObj.items.map((item) => this.decorateData(data, initialState, item as WizardItem));\n        }\n\n        return newObj;\n    }\n\n    /**\n     * Transformation function used to convert response.data into renderable wizard items\n     */\n    @computed('responseTransform')\n    get responseTransformFn(): any {\n        const transform = this.responseTransform;\n        if (!transform) {\n            return null;\n        }\n\n        const fnWrapper = new Function(`return ${transform}`);\n        return fnWrapper();\n    }\n\n    /**\n     * Updates the placeholder's internal state.\n     */\n    updatePlaceholder(response: RequestResponse): void {\n        // Its possible the component is no longer rendered and has been destroyed in which case we don't do anything.\n        // eslint-disable-next-line @adc/ember/no-is-destroyed\n        if (isDestroyed(this)) {\n            return;\n        }\n\n        const transform = this.responseTransformFn ?? ((json: Record<string, unknown>) => json),\n            // We make a copy so that we don't mutate the original response\n            modifiedResponse = transform(JSON.parse(JSON.stringify(response)));\n\n        // Replace any shared items w/ real definitions before setting\n        modifiedResponse.items = replaceShared(this.args.shared, modifiedResponse.items);\n\n        this.networkResponse = modifiedResponse;\n    }\n\n    /**\n     * The data array to enumerate and render.\n     */\n    @computed(\n        'dataPath',\n        'networkResponsePath',\n        'localState.numChanges',\n        'itemTemplate',\n        'networkResponse',\n        'supportItemTemplate'\n    )\n    get dataToRender(): any[] {\n        // We monitor changes in the localState service and rerender anytime changes are made.  This is a little lazy\n        // but its simple.  Changes to localState shouldn't happen often and when they do there is a good chance we want to rerender.\n        const { supportItemTemplate, networkResponse, itemTemplate, dataPath, networkResponsePath } = this;\n\n        // If dataPath was provided, do some initial validation\n        if (dataPath) {\n            let errorMessage = '';\n\n            // We can't do anything if the user wants to use a dataPath and does not provide a template\n            if (supportItemTemplate && !itemTemplate) {\n                errorMessage =\n                    'PlaceholderItem attempts rendering on dataPath but does not define an itemTemplate.  Cannot render.';\n            } else if (networkResponse) {\n                errorMessage = 'PlaceholderItem defines both data and a network request.  You must pick one.';\n            }\n\n            if (errorMessage) {\n                console.error(errorMessage);\n                return [];\n            }\n        }\n\n        let { data } = networkResponse ?? {};\n        const { items } = networkResponse ?? {},\n            { localState } = this;\n\n        // Items were returned from the server.  Render those.\n        if (items) {\n            return items.map((item) => this.decorateData(null, localState, item));\n        }\n\n        if (data && networkResponsePath) {\n            // networkResponsePath could be something like 'foo.bar'.  In that case we need to trace down the path by\n            // looking up networkResponse.foo.bar\n            data = networkResponsePath.split('.').reduce((currentObj, key) => currentObj[key], data) as Record<\n                string,\n                unknown\n            >;\n        }\n\n        // Either lookup data from the dataPath or use the network response's data\n        if (dataPath || data) {\n            data = (dataPath ? get(localState, dataPath) : data) as Record<string, unknown>;\n\n            // data may be an array or object so we force to array.\n            return (Array.isArray(data) ? data : data ? [data] : []).map((d) =>\n                this.decorateData(d, localState, itemTemplate)\n            );\n        }\n\n        return [];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div class=\\\"qrcode-scanner\\\">\\n    <TextInput\\n        {{did-insert this.checkForInputChangesTask.perform}}\\n        @value={{coalesce @value \\\"\\\"}}\\n        @value-change={{coalesce @value-change (noop)}}\\n        placeholder={{coalesce @placeholder \\\"\\\"}}\\n        required={{coalesce @required false}}\\n        name={{coalesce @name \\\"\\\"}}\\n        @type={{coalesce @type \\\"text\\\"}}\\n        pattern={{@pattern}}\\n        id={{this.textFieldId}}\\n        disabled={{@disabled}}\\n        @didInsert={{@didInsert}}\\n        @willDestroy={{@willDestroy}}\\n        ...attributes\\n    />\\n    {{#if (or @isScanFeatureAvailable (and @isScanFeatureAvailableForAppOnly this.isMobile))}}\\n        <SvgSymbol\\n            @icon={{this.scanParameters.icon}}\\n            @on-click={{this.redirectToQrCameraApp}}\\n            role=\\\"button\\\"\\n            class=\\\"scan-icon\\\"\\n        />\\n    {{/if}}\\n</div>\")","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { task, timeout } from 'ember-concurrency';\nimport { getScanParameters, getLinkToCamera } from '../utils/qr-code-scanner.ts';\n\nimport type EnvSettingsService from '@adc/app-infrastructure/services/env-settings';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { SCAN_TYPE, ScanParameters } from '../utils/qr-code-scanner.ts';\nimport type { TextInputSignature } from './text-input.ts';\n\ntype TextInputSignatureArgs = TextInputSignature['Args'];\n\ninterface QrCodeScannerSignature {\n    Element: HTMLInputElement;\n    Args: Pick<TextInputSignatureArgs, 'value-change' | 'value' | 'type'> & {\n        /** Indicates the input is required. */\n        required?: boolean;\n        /** Text to be shown when value is empty. */\n        placeholder?: string;\n        /** The name attribute for the input. */\n        name?: string;\n        /** The pattern attribute specifies a regular expression that the input element's value is checked against. */\n        pattern?: string;\n        /** The html id of the `<input/>` element that will retrieve that qrcode value. */\n        textFieldId?: string;\n        /** Determines what type of code we want to scan. */\n        scanCodeType?: 'qr' | 'bar' | 'both';\n        /** Indicates QR scanning can be done anywhere. */\n        isScanFeatureAvailable?: boolean;\n        /** Indicates QR scanning can be done if isMobile also returns true. */\n        isScanFeatureAvailableForAppOnly?: boolean;\n        /** If using this component on the spark app. */\n        isMobileTech?: boolean;\n        /** If the input should be disabled. */\n        disabled?: boolean;\n        /** Action that get's called when component is created */\n        didInsert?: () => void;\n        /** Action that get's called when component is destroyed */\n        willDestroy?: () => void;\n    };\n}\n\n/**\n * The translation keys for the scan code types.\n */\nconst TRANSLATION_KEYS = {\n    both: 'scannerBoth',\n    bar: 'scannerBar',\n    qr: 'scannerQR'\n};\n\n/**\n * The timeout (in ms) used when polling to see if there are changes to the input element.\n */\nconst POLLING_INTERVAL_MS = 500;\n\n/**\n * @classdesc\n *\n * A component consisting of a <TextInput/> and <SvgSymbol/> component.\n * The svg symbol redirects the user to a qrcode scanner in the mobile code.\n * Once the scanner fetches a value, the value is placed into the <input /> element inside <TextInput/>.\n *\n * NOTE: the scanner in mobile code works for both barcode and qrcode.\n */\nexport default class QrCodeScanner extends Component<QrCodeScannerSignature> {\n    @service declare intl: ADCIntlService;\n    @service declare envSettings: EnvSettingsService;\n\n    /**\n     * Id for input element that will receive QR code value.\n     * NOTE: textFieldId property is the custom html id given to <Input/> tag within <TextInput /> component.\n     * This is necessary because the mobile qr scanner requires a specific element ID of an input element.\n     */\n    get textFieldId(): string {\n        return this.args.textFieldId ?? 'qrcontent-input';\n    }\n\n    /**\n     * Returns intent to be used for the barcode scanner based on value of 'isMobileTech'.\n     */\n    get barcodeLocation(): string {\n        return getBarcodeLocation(this.args.isMobileTech ?? false);\n    }\n\n    /**\n     * Returns scan parameters based on what was specified in the 'scanCodeType'.\n     */\n    get scanParameters(): ScanParameters {\n        return buildScanParameters(this.args.scanCodeType ?? 'qr', this.intl);\n    }\n\n    /*\n     *  Returns true if user is on mobile (Currently only supports mobiletech app)\n     */\n    get isMobile(): boolean {\n        return isMobileTechApp();\n    }\n\n    /**\n     * Task that checks for changes to the input element.\n     * This is needed because we cannot detect when the mobile device updates the input with the scanned value.\n     */\n    checkForInputChangesTask = task({ drop: true }, async (el: HTMLInputElement) => {\n        if (this.envSettings.isTestEnvironment() || !this.args['value-change']) {\n            return;\n        }\n\n        for (;;) {\n            await timeout(POLLING_INTERVAL_MS);\n            const currentValue = el.value || '',\n                previousValue = this.args.value || '';\n            if (currentValue === previousValue) {\n                continue;\n            }\n\n            this.args['value-change'](currentValue);\n        }\n    });\n\n    /**\n     * Action to redirect to scanner in mobile app.\n     */\n    @action redirectToQrCameraApp(): void {\n        window.location.href = getLinkToCamera(this.textFieldId, this.scanParameters, this.barcodeLocation);\n    }\n}\n\n/**\n * Determines whether or not user is using the mobiletech app\n * currently only supports mobiletech\n */\nfunction isMobileTechApp(): boolean {\n    const userAgent = navigator.userAgent;\n\n    return /MOBILE\\s*TECH/i.test(userAgent);\n}\n\n/**\n * Builds a `ScanParameters` object given a `scanCodeType`.\n * This is used by the qr/barcode scanner feature in the customer mobile app.\n */\nfunction buildScanParameters(scanCodeType: SCAN_TYPE, intl: ADCIntlService): ScanParameters {\n    const translationKey = TRANSLATION_KEYS[scanCodeType];\n\n    return getScanParameters(scanCodeType, intl.t(`@adc/ui-components.${translationKey}`));\n}\n\n/**\n * Gets an intent string representing a barcode location based on `isMobileTech`.\n * This is used by the qr/barcode scanner feature in the customer mobile app.\n */\nfunction getBarcodeLocation(isMobileTech: boolean): string {\n    return isMobileTech\n        ? 'com.alarm.alarmmobile.android.tools.mobiletech#Intent;action=com.alarm.alarmmobile.android.mobiletech.BARCODE;'\n        : '#barcode;action=com.alarm.alarmmobile.android.BARCODE;';\n}\n\nexport { isMobileTechApp, buildScanParameters, getBarcodeLocation };\n","export interface ScanParameters {\n    umask: number;\n    icon: string;\n    scanDescription: string;\n}\n\nexport type SCAN_TYPE = 'qr' | 'bar' | 'both';\n\n/**\n * Returns the scan parameters based on what was specified in the 'scanCodeType'\n */\nexport function getScanParameters(scanCodeType: SCAN_TYPE, scanDescription: string): ScanParameters {\n    const [umask, icon] = {\n        both: [0, 'QRcode-scanner'],\n        qr: [1, 'QRcode-scanner'],\n        bar: [2, 'barcode-scanner']\n    }[scanCodeType] as [number, string];\n\n    return {\n        umask,\n        icon,\n        scanDescription\n    };\n}\n\n/**\n * Returns the redirect link to access the qr/barcode scanner feature in customer mobile app.\n */\nexport function getLinkToCamera(textFieldId: string, scanParameters: ScanParameters, barcodeLocation: string): string {\n    return `android-app://${barcodeLocation}B.AutoFocus=true;S.fieldName=${textFieldId};B.ScanType=1;B.ScanDesc=${scanParameters.scanDescription};B.ScanCodeType=${scanParameters.umask};end`;\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <QrCodeScanner\\n        @name={{this.name}}\\n        @type={{this.inputType}}\\n        @value={{this.value}}\\n        @placeholder={{this.placeholder}}\\n        @pattern={{this.pattern}}\\n        @required={{this.required}}\\n        @textFieldId={{this.textFieldId}}\\n        @scanCodeType={{this.scanCodeType}}\\n        @isScanFeatureAvailable={{this.isScanFeatureAvailable}}\\n    />\\n</div>\")","import { computed } from '@ember/object';\nimport { bool, reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { QRScanItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface QRScanItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<QRScanItem>;\n}\n\n/**\n * @classdesc\n * This component wraps around @adc/ui-component's qr-code-scanner.\n */\nexport default class QrscanItemComponent extends BaseWizardItem<QRScanItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.name')\n    declare name: QRScanItem['name'];\n\n    @computed('args.props.inputType')\n    get inputType(): QRScanItem['inputType'] {\n        return this.args.props?.inputType ?? 'text';\n    }\n\n    @reads('args.props.placeholder')\n    placeholder: QRScanItem['placeholder'];\n\n    @reads('args.props.pattern')\n    pattern: QRScanItem['pattern'];\n\n    @computed('args.props.required')\n    get required(): QRScanItem['required'] {\n        return this.args.props?.required ?? true;\n    }\n\n    @reads('args.props.value')\n    value: QRScanItem['value'];\n\n    @computed('args.props.textFieldId')\n    get textFieldId(): QRScanItem['textFieldId'] {\n        return this.args.props?.textFieldId ?? 'qrscan-item-input';\n    }\n\n    @computed('args.props.scanCodeType')\n    get scanCodeType(): QRScanItem['scanCodeType'] {\n        return this.args.props?.scanCodeType ?? 'qr';\n    }\n\n    // endregion\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-qrscan-item'];\n    }\n\n    /**\n     * Returns true if qr/bar code scanning feature is available.\n     */\n    @bool('localState.isScanFeatureAvailable')\n    declare isScanFeatureAvailable: boolean;\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<select\\n    name={{this.name}}\\n    required={{this.required}}\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n    {{did-update this.syncSelectedIndex this.selectedIndex}}\\n>\\n    {{#each this.items as |item|}}\\n        {{! Note: in firefox it seems to only use the selected value in initial rendering. After that it ignores any changes to item.selected\\n            To account for this we have a handler in the js.\\n        }}\\n        <option name={{item.value}} value={{item.value}} selected={{item.selected}}>\\n            {{item.text}}\\n        </option>\\n    {{/each}}\\n</select>\")","import { A } from '@ember/array';\nimport { action, computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { OptionListItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\nexport interface SelectItemSignature {\n    Element: HTMLSelectElement;\n    Args: BaseComponentArgs<OptionListItem>;\n}\n\n/**\n * @classdesc\n * Options list also known as HTML select element.\n */\nexport default class SelectItemComponent extends BaseWizardItem<SelectItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.name')\n    declare name: OptionListItem['name'];\n\n    @reads('args.props.items')\n    declare items: OptionListItem['items'];\n\n    @reads('args.props.listType')\n    listType: OptionListItem['listType'];\n\n    @reads('args.props.multiselect')\n    multiselect: OptionListItem['multiselect'];\n\n    @reads('args.props.attributes.required')\n    required: OptionListItem['required'];\n\n    // endregion\n\n    getCss() {\n        return [...super.getCss(), 'adc-wizard-select-item'];\n    }\n\n    @computed('items.@each.selected', 'required')\n    get selectedIndex() {\n        const { items = [] } = this,\n            selected = A(items).findBy('selected');\n\n        return selected ? items.indexOf(selected) : this.required ? 0 : -1;\n    }\n\n    @action syncSelectedIndex(select: HTMLSelectElement, [idx]: number[]): void {\n        select.selectedIndex = idx;\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<div\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    {{#if this.isInteractive}}\\n        <button type=\\\"button\\\" tabindex=\\\"0\\\" {{on \\\"click\\\" this.handleClickEvent}} {{on \\\"keyup\\\" this.handleKeyboardEvent}}>\\n            <SvgSymbol @icon={{this.icon}} />\\n        </button>\\n    {{else}}\\n        <SvgSymbol @icon={{this.icon}} role=\\\"img\\\" focusable=\\\"false\\\" />\\n    {{/if}}\\n</div>\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { htmlSafe } from '@ember/template';\nimport BaseWizardItem, { convertToCssString } from './base-wizard-item.ts';\n\nimport type { SvgItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface SvgItemSignature {\n    Element: HTMLDivElement;\n    Args: BaseComponentArgs<SvgItem>;\n}\n\n/**\n * SVG Item.  Color support is not working until we can use svg-system.  That is the only method in which you can use CSS to change SVG color.\n */\nexport default class SvgItemComponent extends BaseWizardItem<SvgItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @computed('args.props.icon')\n    get icon(): SvgItem['icon'] {\n        return this.args.props?.icon ?? 'info';\n    }\n\n    @reads('args.props.expand')\n    expand: SvgItem['expand'];\n\n    @reads('args.props.color')\n    color: SvgItem['color'];\n\n    // endregion\n\n    isClickable = true;\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-svg-item'];\n    }\n\n    /**\n     * The CSS string that we want to use for the style attribute\n     */\n    @computed('color', 'style')\n    get cssStyle(): ReturnType<typeof htmlSafe> | undefined {\n        const style = {\n            ...(this.style ?? {})\n        };\n\n        if (this.color) {\n            style.fill = this.color;\n        }\n\n        if (Object.keys(style).length) {\n            return htmlSafe(convertToCssString(style));\n        }\n\n        return undefined;\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<table\\n    class=\\\"adc-wizard-table-item {{this.cssClasses}}\\\"\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <thead>\\n        <tr>\\n            {{#each this.data.headers as |headerText|}}\\n                <th>{{headerText}}</th>\\n            {{/each}}\\n        </tr>\\n    </thead>\\n    <tbody>\\n        {{#each this.data.rows as |row|}}\\n            <tr>\\n                {{#each row as |value|}}\\n                    <td>{{value}}</td>\\n                {{/each}}\\n            </tr>\\n        {{/each}}\\n    </tbody>\\n</table>\")","import { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { TableItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface TableItemSignature {\n    Element: HTMLTableElement;\n    Args: BaseComponentArgs<TableItem>;\n}\n\n/**\n * @classdesc\n * Table Wizard Item. Used to generate a `<table>`.\n */\nexport default class TableItemComponent extends BaseWizardItem<TableItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.data')\n    declare data: TableItem['data'];\n\n    // endregion\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#let (element this.textComponent) as |TextComponent|}}\\n    <TextComponent\\n        class={{this.cssClasses}}\\n        style={{this.cssStyle}}\\n        tabindex={{if this.isInteractive 0}}\\n        role={{if this.isInteractive \\\"button\\\"}}\\n        ...attributes\\n        {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n        {{attributes-support attrs=@props.attributes}}\\n        {{on \\\"click\\\" this.handleClickEvent}}\\n        {{on \\\"keyup\\\" this.handleKeyboardEvent}}\\n    >\\n        {{this.displayText}}\\n    </TextComponent>\\n{{/let}}\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { htmlSafe } from '@ember/template';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { SafeString } from 'handlebars';\nimport type { TextItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface TextItemSignature {\n    Element: HTMLSpanElement | HTMLParagraphElement;\n    Args: BaseComponentArgs<TextItem> & TextItem;\n}\n\n/**\n * Text wizard item. Use to add text to the wizard step.\n */\nexport default class TextItemComponent extends BaseWizardItem<TextItemSignature> {\n    @reads('args.props.text')\n    declare text: TextItem['text'];\n\n    @computed('text')\n    get displayText(): SafeString {\n        return htmlSafe(this.text ?? '');\n    }\n\n    @computed('args.props.fill')\n    get fill(): TextItem['fill'] {\n        return this.args.props?.fill ?? true;\n    }\n\n    // endregion\n\n    isClickable = true;\n\n    get textComponent(): 'p' | 'span' {\n        return `${this.fill ? 'p' : 'span'}`;\n    }\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-text-item'];\n    }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<Textarea\\n    @value={{this.value}}\\n    class={{this.cssClasses}}\\n    name={{this.name}}\\n    rows={{this.rows}}\\n    cols={{this.cols}}\\n    wrap={{this.wrap}}\\n    lang={{this.lang}}\\n    style={{this.cssStyle}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n/>\")","import { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { TextareaItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface TextareaItemSignature {\n    Element: HTMLTextAreaElement;\n    Args: BaseComponentArgs<TextareaItem>;\n}\n\n/**\n * Textarea item. Use to add the multi-line `textarea` element.\n */\nexport default class TextareaItemComponent extends BaseWizardItem<TextareaItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.name')\n    declare name: TextareaItem['name'];\n\n    @reads('args.props.value')\n    value: TextareaItem['value'];\n\n    @reads('args.props.rows')\n    rows: TextareaItem['rows'];\n\n    @reads('args.props.cols')\n    cols: TextareaItem['cols'];\n\n    @reads('args.props.wrap')\n    wrap: TextareaItem['wrap'];\n\n    @reads('args.props.lang')\n    lang: TextareaItem['lang'];\n\n    // endregion\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"<video\\n    class={{this.cssClasses}}\\n    style={{this.cssStyle}}\\n    controls={{this.controls}}\\n    preload={{this.preload}}\\n    ...attributes\\n    {{css-support css=this.css disabled=this.disabled hidden=this.hidden}}\\n    {{attributes-support attrs=@props.attributes}}\\n>\\n    <source src={{this.src}} type=\\\"video/mp4\\\" />\\n</video>\")","import { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport BaseWizardItem from './base-wizard-item.ts';\n\nimport type { VideoItem } from '../../types';\nimport type { BaseComponentArgs } from './base';\n\ninterface VideoItemSignature {\n    Element: HTMLVideoElement;\n    Args: BaseComponentArgs<VideoItem>;\n}\n\n/**\n * Video Item. Generates `<video>` tag\n *\n * @see MDN Docs https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video\n */\nexport default class VideoItemComponent extends BaseWizardItem<VideoItemSignature> {\n    // region Exploded props (do not edit unless changing the props interface).\n\n    @reads('args.props.src')\n    declare src: VideoItem['src'];\n\n    @computed('args.props.controls')\n    get controls(): VideoItem['controls'] {\n        return this.args.props?.controls ?? true;\n    }\n\n    @computed('args.props.preload')\n    get preload(): VideoItem['preload'] {\n        return this.args.props?.preload ?? 'auto';\n    }\n\n    // endregion\n\n    getCss(): string[] {\n        return [...super.getCss(), 'adc-wizard-video-item'];\n    }\n}\n","import EmberObject, { computed, defineProperty, get, set } from '@ember/object';\nimport { notifyPropertyChange } from '@ember/object';\n\n/**\n * Defines the format #{ any.Number.Of.periods } - Does not accept numbers. Accepts '_', but no other symbols.  Allows N spaces just inside the curly braces.\n *\n * @type {RegExp}\n */\n// NOTE: As you modify this REGEX you may also need to modify the translation REGEX.  This is because allowing new parameter names, means translation keys of a similar format will be generated.\nexport const paramRegex = /(#{\\s*[a-zA-Z._]*\\s*})/g;\n\n/**\n * Defines the format _ItemTypeName_key. - Use to identify all the Json nodes that have a translation key associated. e.g. _text_key\n *\n * @type {RegExp}\n */\nexport const translationKeyRegex = /(_[a-zA-Z_]+_key)/;\n\n/**\n *\n * Binds the data from an item config to a component\n *\n * @global\n * @function explode\n * @param {Ember.object} obj The object whose properties should be exploded.\n * @param {String} properties The name of the property on the passed object to be expanded.\n * @param { Ember.object } [ state ] the application state we bind any template parameters to\n * @param {boolean} [silent=false] Indicates the explode is happening pre-render so it doesn't need to notify anybody of property value changes.\n */\nexport default function (obj, properties, state, silent = false) {\n    const props = get(obj, properties) || {};\n    // We prefer any state provided directly to the component\n\n    const hasItemState = !!props.itemState;\n    state = props.itemState || props.localState || state;\n\n    // Iterate through each prop and set it on the object\n    // NOTE: We do not alter localState.  We want it to remain a pure Ember object\n    // and not have properties overwritten by replaceParams\n    Object.keys(props).forEach((key) => {\n        const val = props[key];\n\n        // In the following scenarios we do not want to traverse down the tree.\n        // If it is an explodable object, it will take care of processing itself when it gets instantiated.\n        if (\n            isExplodableObject(val) ||\n            (Array.isArray(val) && isExplodableObject(val[0])) ||\n            key === 'localState' ||\n            key === 'itemState'\n        ) {\n            if (silent) {\n                obj[key] = val;\n            } else {\n                set(obj, key, val);\n            }\n\n            return;\n        }\n\n        // We find all template parameters that are in the property\n        const params = findParams(val, paramRegex).map((item) =>\n            hasItemState ? `itemState.${item}` : `localState.${item}`\n        );\n\n        // Set the key and observe if the prop changes OR any of the localState data that populated it.\n        // See https://github.com/emberjs/ember.js/issues/16980 - we need to use notifyPropertyChange when using defineProperty.\n        defineProperty(\n            obj,\n            key,\n            computed(\n                `${properties}.${key}`,\n                ...params,\n                (function () {\n                    // We have to make this function an IIFE so that the path takes the value at the time of the code execution\n                    const propertyPath = `${properties}.${key}`;\n                    return () => replaceParams(get(obj, propertyPath), state, paramRegex, hasItemState);\n                })()\n            )\n        );\n\n        if (!silent) {\n            notifyPropertyChange(obj, key);\n        }\n    });\n}\n\n/**\n * Takes a string and replaces any '#{...}' tokens with data values based on the state passed in.\n *\n * @export\n * @param {*} prop the property to replace parameters.  If not a string, the object is simply returned\n * @param {Ember.Object} state the object that contains the data\n * @param {Regex} [regex = paramRegex] the regex we want to replace\n * @returns {*} Returns whatever type was passed as prop\n */\nexport function replaceParams(prop, state, regex = paramRegex, hasItemState = false) {\n    if (Array.isArray(prop)) {\n        return prop.map((i) => replaceParams(i, state, regex, hasItemState));\n    }\n\n    if (isObject(prop)) {\n        const newObj = {};\n        Object.keys(prop).forEach((key) => (newObj[key] = replaceParams(prop[key], state, regex, hasItemState)));\n        return newObj;\n    }\n\n    // If its a string replace the params.\n    if (typeof prop === 'string' && state && (state.get || hasItemState)) {\n        // Replace any params with values from state.\n        const newProp = prop.replace(regex, (param) =>\n            convertToProperStringFormat(\n                hasItemState ? state[`${param.slice(2, -1).trim()}`] : state.get(`${param.slice(2, -1).trim()}`)\n            )\n        );\n        // Continue calling replaceParams until the content is done changing, ie. we replaced all of the params\n        // When we are finally finished we attempt to parse the string as JSON.  If its a valid object/array\n        // we return the object instead of the string.\n        return prop === newProp ? convertStringToType(newProp) : replaceParams(newProp, state, regex, hasItemState);\n    }\n\n    // Default;\n    return prop;\n}\n\n/**\n * Returns the translation for the key provided, or the string prop if a translation is not found.\n * If any object is passed as the first property, it is simply returned.\n *\n * @param {any} string\n * @param {string} key\n * @param {EmberIntlService} intl\n */\nfunction translateStringByKey(string, key, intl) {\n    return typeof string === 'string' && key && intl.exists(key) ? intl.lookup(key) : string;\n}\n\n/**\n * Convert the English text to the expected language version according to the translation dictionary\n *\n * @export\n * @param {Object} obj\n * @param {intl} intl  - the ember-intl service\n * @param {string} [nodeName=''] - the name of the node that needs to be translated\n *\n * TO-DO: should we log a warning if the missing translation is missing?\n */\nexport function convertToTranslatedVersion(obj, intl, nodeName = '') {\n    // translate the specific node by provided name.  Our base case which handles all translation\n    if (nodeName) {\n        let translationKey = obj[`_${nodeName}_key`];\n        return translateStringByKey(obj[nodeName], translationKey, intl);\n    }\n\n    // iterate through each object and translate it recursively\n    if (Array.isArray(obj)) {\n        return obj.map((arrItem) => convertToTranslatedVersion(arrItem, intl));\n    }\n\n    if (isObject(obj)) {\n        return EmberObject.create(\n            Object.keys(obj).reduce((newObj, key) => {\n                // eslint-disable-next-line no-prototype-builtins\n                if (obj.hasOwnProperty(key)) {\n                    const keyToTranslate = `${key.slice(1, -4)}`;\n\n                    // Its a translation key and the object contains the both the translation key and the original property to be translated\n                    // eslint-disable-next-line no-prototype-builtins\n                    if (translationKeyRegex.test(key) && Object.prototype.hasOwnProperty.call(obj, keyToTranslate)) {\n                        const translatedValue = convertToTranslatedVersion(obj, intl, keyToTranslate);\n                        if (translatedValue) {\n                            newObj[keyToTranslate] = translatedValue;\n                        }\n                    } else {\n                        let value = obj[key];\n\n                        if (typeof value === 'string') {\n                            // We have to be careful to not overwrite things we have already translated so we only set if undefined.\n                            value = newObj[key] || value;\n                        } else if (typeof value === 'object' || Array.isArray(value)) {\n                            value = convertToTranslatedVersion(value, intl);\n                        }\n\n                        // For functions and any other weird case we simply copy over the property.\n                        newObj[key] = value;\n                    }\n                }\n\n                return newObj;\n            }, {})\n        );\n    }\n\n    // Default case\n    return obj;\n}\n\n/**\n * Finds any template parameters (ie. #{..}) in the provided object.  It searches the entire object.\n *\n * @param { any } obj\n * @param { Regex } regex\n * @returns { Array<String> }\n */\nfunction findParams(obj, regex) {\n    // If its an object or array, we search all of its contents for params and flatten the results\n    if (Array.isArray(obj)) {\n        return obj.map((i) => findParams(i, regex)).reduce((memo, item) => memo.concat(item), []);\n    }\n\n    if (isObject(obj)) {\n        return Object.keys(obj)\n            .map((key) => findParams(obj[key], regex))\n            .reduce((memo, item) => memo.concat(item), []);\n    }\n\n    if (typeof obj === 'string') {\n        // We find all #{some.path} and return an array of the string paths without the #{}\n        return (obj.match(regex) || []).map((x) => `${x.slice(2, -1).trim()}`) || [];\n    }\n\n    return [];\n}\n\n/**\n * Attempts to parse the string and return its true value.  Similar to JSON.parse except it converts stringified versions of null/undefined.\n *\n * @param {string} string\n * @returns {String|Object}\n */\nfunction convertStringToType(string) {\n    try {\n        return JSON.parse(string);\n    } catch (_) {\n        switch (string) {\n            case 'undefined':\n                return undefined;\n            case 'null':\n                return null;\n            default:\n                return string;\n        }\n    }\n}\n\n/**\n * If provided a string, it returns the string.  Otherwise, it JSON.stringifies the param.\n *\n * @param {any} obj\n * @returns {String}\n */\nfunction convertToProperStringFormat(obj) {\n    return typeof obj === 'string' ? obj : JSON.stringify(obj);\n}\n\n/**\n * Returns true if typeof === 'object' and its not null or an array.\n *\n * @param {*} obj\n */\nfunction isObject(obj) {\n    return typeof obj === 'object' && obj !== null && !Array.isArray(obj);\n}\n\n/**\n * Returns true if the object is 'explodable' and therfore something we do not want to recurse down.\n * It will be processed on its own when it 'explodes'.\n *\n * @param {*} obj\n * @returns {bool}\n */\nfunction isExplodableObject(obj) {\n    // This is an extremely naive check to determine if something is a WizardItem (which by definition is Explodable)\n    // We should try to do something better.\n    return isObject(obj) && !!obj.type;\n}\n","import { assert } from '@ember/debug';\n\n/**\n * Dictionary containing the possible operators as keys and their comparison function as values\n *\n */\nconst operators = {\n    eq: (a, b) => a === b,\n    not: (a, b) => a !== b,\n    gte: (a, b) => a >= b,\n    lte: (a, b) => a <= b,\n    lt: (a, b) => a < b,\n    gt: (a, b) => a > b,\n    ok: (a) => !!a,\n    notOk: (a) => !a,\n    // and/or can accept a LogicObject as their input.  This allows us to nest logic n levels.\n    and: (a, b) => evaluateLogic(a) && evaluateLogic(b),\n    or: (a, b) => evaluateLogic(a) || evaluateLogic(b),\n    xor: (a, b) => evaluateLogic(a) ^ evaluateLogic(b)\n};\n\n/**\n * Comparison function which returns a bool based on a logic comparison\n *\n * @param {LogicObject | boolean} logicObj\n *\n * @example\n * const logic = {\n *   eq: [1,2]\n * };\n * evaluateLogic(logic); // Evaluates 1 === 2 and returns false.\n */\nexport function evaluateLogic(logicObj) {\n    if (logicObj === null || logicObj === undefined) {\n        return false;\n    }\n\n    // If passed a bool, number, undefined or null we coerce to a bool.\n    if (typeof logicObj === 'boolean' || typeof logicObj === 'number') {\n        return !!logicObj;\n    }\n\n    if (typeof logicObj === 'string') {\n        // If the string is a '#{variable}', it means the var could not be found so we should treat it as undefined/false\n        // Otherwise, we cooerce the string to a bool.  We accidentally did this early on and now support it for backwards compat.\n        return logicObj.indexOf('#{') === 0 ? false : !!logicObj;\n    }\n\n    // If we made it this far, we assume it is a logic object.\n    const keys = Object.keys(logicObj);\n    assert('Logic must contain exactly one operator.', keys.length === 1);\n\n    const operator = keys[0],\n        compareFn = operators[operator];\n\n    let params = logicObj[operator];\n\n    if (!compareFn) {\n        throw new Error(`You provided an invalid operator = ${operator}`);\n    }\n\n    if (!Array.isArray(params)) {\n        params = [params];\n    }\n\n    return compareFn(...params);\n}\n\n/**\n * The custom Logic datastructure\n *\n * @typedef LogicObject\n * @example\n * I'm not really sure how to structure this jsdoc, but below are some examples.  The key of the object\n * should be one of the keys defined in operators and the value should be an array of two items to compare.\n *\n * // Will compare 1 === 2\n * const exA = {\n *   eq: [1, 2]\n * }\n *\n * // Will compare 2 >= 1\n * const exB = {\n *   gte: [2, 1]\n * }\n */\n","import type { SharedItem, SharedConfig, WizardItem } from '../types';\n\n/**\n * Replaces for a specific item the information from the shared-configuration\n * If a shared uses a shared, it will fetch both and successively\n */\nconst resolveShared = function resolveShared(shared: SharedItem | SharedConfig, item: WizardItem): WizardItem {\n    const sharedKeys = Object.keys(shared);\n    let newItem = item;\n    while (newItem.type && sharedKeys.indexOf(newItem.type) !== -1) {\n        const sharedItem = shared[newItem.type as keyof (SharedItem | SharedConfig)] as WizardItem;\n        newItem = Object.assign({}, sharedItem, newItem);\n        // replaced shared type, as that is the only property that\n        // has preference on the shared\n        newItem.type = sharedItem.type;\n    }\n\n    return newItem;\n};\n\nexport default resolveShared;\n","import { set } from '@ember/object';\nimport resolveShared from './resolve-shared.ts';\n\nimport type { SharedConfig, WizardItem } from '../types';\n\n/**\n * Replaces inside the items-configuration the shared definition. In the case of\n * a shared that uses a shared, the configuration passed here will fetch successively\n * until it resolves with {@link resolveShared}\n */\nexport default function replaceShared(shared?: SharedConfig, items?: WizardItem[]): WizardItem[] | undefined {\n    // If there are no shared items, we can't do anything'\n    if (!shared) {\n        return items;\n    }\n\n    // If items is array, we can actually attempt to replace\n    if (Array.isArray(items)) {\n        return items.map((item) => {\n            const newItem = resolveShared(shared, item);\n            if (newItem.items) {\n                set(newItem, 'items', replaceShared(shared, newItem.items as WizardItem[]));\n            }\n\n            return newItem;\n        });\n    }\n\n    return items;\n}\n","import { dasherize } from '@ember/string';\nimport { importSync } from '@embroider/macros';\nimport { ensureSafeComponent } from '@embroider/util';\n\nimport type BaseWizardItem from '../components/wizard-items/base-wizard-item.ts';\n\n/**\n * Given an item type {@link WizardItem} return the corresponding\n * component name for rendering on a template.\n */\nexport default function resolveItemComponent(itemType: string, owner: any): typeof BaseWizardItem<any> {\n    // has to be cast because importSync returns unknown and accepts no generic\n    const component = importSync(`../components/wizard-items/${dasherize(String(itemType))}-item`) as any;\n    return ensureSafeComponent(component.default, owner);\n}\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","TEMPLATE","createTemplateFactory","_progressBar","WeakMap","_itemIndex","_text","ProgressItem","constructor","progressBar","itemIndex","text","_classPrivateFieldInitSpec","i","this","registerDestructor","state","_this$progressBar","lastProgressStepComplete","undefined","_ProgressItem","g","prototype","tracked","n","computed","_progressSteps","ProgressBar","Component","arguments","_args$step","args","lastCompleteProgressStep","A","steps","slice","step","filterBy","pop","progressSteps","indexOf","progressBarItems","idx","progress","_ProgressBar","setComponentTemplate","scope","cssSupport_","attributesSupport_","itemsIterator_","WizardStepComponent","propertiesReplacedShared","_props$items","shared","props","_objectSpread","items","replaceShared","_WizardStepComponent","didUpdate_","didInsert_","svgSpriteLoader_","loadingSpinner_","on","progressBar_","wizardStep_","setSkipSetupNativeButton","buttonText","nativeBridge","setToolbarButtons","guidFor","backButtons","contextButtons","type","isPromisePending","action","doesSupportCloseWebViewV2","closeWebViewV2","deepMerge","a","b","newObj","allKeys","fnIsObject","v","forEach","k","key","aProp","bProp","handlePlaceholderUpdate","requestAction","response","data","placeholderKey","placeholder","update","_router","_intl","_ajax","_localState","_placeholder","_nativeBridge","_currentStepName","_initialized","_hideProgress","_hideTitle","_requestRunning","_step2","_progressBarOpen","AdcWizard","owner","super","_defineProperty","buildTask","context","generator","post","_action$method","localState","saveTo","save","requestActions","findBy","alias","method","toLowerCase","url","startsWith","messagingInterface","isForSso","requestTo","result","handleResponse","poll","perform","pollSeconds","res","console","error","info","concat","errorAction","runAction","nativeBridgeTransitionData","String","split","nativeViewId","deviceId","dataSegment","parseInt","doesSupportTransitionToNativeViewWithId","transitionToNativeView","deviceID","showBackArrow","returnToWebView","doesSupportToolbarButtons","buttonType","call","timeout","apiResponse","ajax","apiRequest","pollUrl","cssClasses","_this$args$config","config","cssVersion","progressBarOpen","showProgressBar","hideTitle","handleComplexAction","isRunning","compact","join","resetConfig","oldConfig","JSON","stringify","mergedInitialState","initialActions","_this$args$config$ini","_this$args$config2","spriteRootPath","router","rootURL","spritePaths","_this$args$spritePath","languageCode","_this$args$languageCo","translations","_this$args$translatio","_this$args$config$ste","_this$args$config3","_this$args$step","_step","title","replaceParams","translate","updateTitle","once","onTitleChange","_this$args$onTitleCha","_this$args","onTitleChanged","_this$args$config4","stepsForProgress","_ref","_progress_key","_this$args$config$act","_this$args$config5","actions","_this$args$config6","_this$args$initialSta","initialState","hideProgress","updateStep","set","calculateCss","buildCSS","_this$args$config7","_document$getElementB","rawCss","css","formattedCss","cssObject","flattenedNestedStyles","recursiveFn","existingParentSelectors","length","keyDasherized","dasherize","cssValue","push","convertToCssString","globalCss","styleId","document","getElementById","remove","newCssEl","createElement","innerText","head","appendChild","stepConfig","objectAt","obj","prop","initialized","convertToTranslatedVersion","intl","stepTo","_this$args$onStepChan","_this$args2","lastVisitedStepNameStack","pushObject","currentStepName","setProperties","currentStepBoundTasks","invoke","onStepChanged","isBackAction","_this$lastVisitedStep","popObject","indexOfStep","complexActionTaskInstance","runAcrossSteps","_this$currentStepBoun","warn","_serializedPost2","debug","serializedPost","requestOptions","_serializedPost","requestType","assign","JSON_REQUEST","formEntries","encodedKey","encodeURIComponent","value","Array","isArray","encodedValue","serializeQueryParams","URL_ENCODED","simpleRequest","catch","handleCaughtRequestError","NotLoggedIn","_requestAction$pollSe","saveNetworkResponse","schedulePolling","schedule","handleFinalResponse","_ref2","polling","status","saveResponseTo","newSteps","newStep","index","insertAt","willDestroy","window","saveState","isWizard","toggleProgressBarOpen","initializeComponent","_this$args$onStepChan2","_this$args3","Promise","initialize","then","param","executeAction","_AdcWizard","inject","reads","ItemsIterator","containerItems","_args$props$items","_args$props","_replaceShared","itemState","filter","item","itemObject","EmberObject","resolveItemComponent","_ItemsIterator","t_","LoadigSpinner","templateOnlyComponent","loadingSpinner","attrCache","AttributesSupportModifier","Modifier","modify","element","_positional","named","_named$attrs","_element$getAttribute","attrs","entries","reject","previousAttrs","getAttribute","setAttribute","_ref3","includes","removeAttribute","_ref4","cssCache","CssSupportModifier","disabled","hidden","newCss","c","_element$getAttribute2","classList","add","toggleAttribute","evaluateLogic","Input","willDestroy_","_name","_pattern","_actionOnValueMatch","_errorAction","AutoResponseInputItemComponent","BaseWizardItem","inputId","_this$args$props$inpu","_this$args$props","required","_this$args$props$requ","_this$args$props2","inputType","_this$args$props$inpu2","_this$args$props3","setupInput","el","valueDescriptor","getOwnPropertyDescriptor","HTMLInputElement","_inputChangedByJSListeners","val","executeActionFromValue","defineProperty","get","_valueDescriptor$get","_len","_key","apply","_valueDescriptor$set","_this$_inputChangedBy","_len2","_key2","cleanupInput","name","actionOnValueMatch","pattern","isPresent","match","ex","_AutoResponseInputItemComponent","BaseComponent","_attributes","_visibleFields","_enableFields","_style","_css","_disabled","_hidden","_action","_postData","cssStyle","style","htmlSafe","getCss","isInteractive","isClickable","handleClickEvent","evt","_this$args$executeAct","preventDefault","postData","handleKeyboardEvent","isEnterOrSpaceCode","fn","_BaseWizardItem","explodeProps","addObserver","silent","explode","_BaseComponent","BodyContainerItemComponent","_items","ButtonBarItemComponent","buttonSpacingCss","_this$items","_ButtonBarItemComponent","safeHtml_","_title","ButtonItemComponent","_this$args$props$butt","_ButtonItemComponent","_multiselect","ButtonListItemComponent","buttons","select","selectedValue","multiselect","rejectBy","setEach","btn","selected","selectedValues","mapBy","_ButtonListItemComponent","ContainerItemComponent","_ContainerItemComponent","_hideCountdown","_secondsRemaining","CountdownTimerItemComponent","secondsRemaining","seconds","_this$args$props$seco","isHidden","_this$hideCountdown","hideCountdown","_CountdownTimerItemComponent","guidFor_","dropdownSelectMultiSelect_","dropdownSelectSingleSelect_","_initialValue","DropdownSelectItemComponent","PlaceholderItemComponent","decorateData","initialVal","initialValue","isSelected","DropdownSelectItem","create","SELECTED","UNSELECTED","selectElementId","updateFromInitialValue","_el","scheduleOnce","setSelectionFromValue","selectElement","values","from","children","opt","setSelectedValue","_DropdownSelectItemComponent","tc_","coalesce_","tc_0","async","uploadFile","file","formData","FormData","append","isUploading","fileName","successAction","postFormData","endpoint","errorMessage","defaultHeaders","apiBaseUrl","joinChar","_defaultHeaders$ajaxr","xhr","XMLHttpRequest","open","setRequestHeader","ajaxrequestuniquekey","onload","parse","responseText","statusText","onerror","send","resetUploadField","fileInput","files","FileUploadItemComponent","_accept","_endpoint","_webapi","_saveTo","_successAction","_maxFileSize","_fileName","_isUploading","_errorMessage","_FileUploadItemComponent","fileUploadElementId","fileSelected","event","_fileInput$files","_this$maxFileSize","target","size","maxFileSize","intlPath","path","SUBMITTER_TYPES","CHECKABLE_TYPE","SERIALIZABLE_ELEMENTS","CRLF","createDataNode","replace","FormItemComponent","submit","stopPropagation","convertFormToObject","form","results","elements","querySelectorAll","test","nodeName","checked","tagName","options","getElementsByTagName","j","option","serializeArray","formObj","camelize","_FormItemComponent","element_","_size","HeaderItemComponent","headerComponent","_this$size","_HeaderItemComponent","_trueComponent","_falseComponent","_itemState","IfThenItemComponent","_this$args$props$test","evaluatedTest","componentsToRender","trueComponent","falseComponent","_IfThenItemComponent","_url","IframeItemComponent","_IframeItemComponent","wizardItemsTextItem_","_src","_alt","_caption","ImageItemComponent","_ImageItemComponent","InfoItem","ListItemComponent","listStyle","_this$args$props$list","_InfoItem","_ariaRole","_max","_min","_readonly","_value","_lang","_dir","_isCheckbox","InputItemComponent","updateValue","_event$target$value","_event$target","_InputItemComponent","equal","_listType","InputListItemComponent","inputs","listType","_InputListItemComponent","_target","LinkItemComponent","href","_this$args$props$href","_LinkItemComponent","_itemsToRender","listComponent","_ListItemComponent","component","OptionListItemComponent","wrapped","SelectItemComponent","_OptionListItemComponent","_alias","_placeHolderProps","_responseTransform","_contentRequestAction","_dataPath","_networkResponsePath","_itemTemplate","_networkResponse","_this$args$props$plac","contentRequestAction","_args$executeAction","subscribe","unsubscribe","wizardItem","responseTransformFn","transform","responseTransform","Function","fnWrapper","updatePlaceholder","_this$responseTransfo","isDestroyed","modifiedResponse","json","networkResponse","dataToRender","supportItemTemplate","itemTemplate","dataPath","networkResponsePath","reduce","currentObj","d","_PlaceholderItemComponent","textInput_","noop_","or_","and_","svgSymbol_","TRANSLATION_KEYS","both","bar","qr","_envSettings","QrCodeScanner","envSettings","isTestEnvironment","currentValue","drop","textFieldId","_this$args$textFieldI","barcodeLocation","_this$args$isMobileTe","isMobileTech","scanParameters","_this$args$scanCodeTy","scanCodeType","translationKey","scanDescription","umask","icon","getScanParameters","t","buildScanParameters","isMobile","userAgent","navigator","isMobileTechApp","redirectToQrCameraApp","location","_QrCodeScanner","qrCodeScanner_","_isScanFeatureAvailable","QrscanItemComponent","_this$args$props$text","_this$args$props$scan","_this$args$props4","_QrscanItemComponent","bool","_required","selectedIndex","syncSelectedIndex","_SelectItemComponent","_expand","_color","SvgItemComponent","_this$args$props$icon","_this$style","color","fill","_SvgItemComponent","_data","TableItemComponent","_TableItemComponent","TextItemComponent","displayText","_this$text","_this$args$props$fill","textComponent","_TextItemComponent","Textarea","_rows","_cols","_wrap","TextareaItemComponent","_TextareaItemComponent","VideoItemComponent","controls","_this$args$props$cont","preload","_this$args$props$prel","_VideoItemComponent","paramRegex","translationKeyRegex","properties","hasItemState","isExplodableObject","params","findParams","propertyPath","notifyPropertyChange","regex","isObject","newProp","convertToProperStringFormat","trim","string","_","convertStringToType","exists","lookup","translateStringByKey","arrItem","hasOwnProperty","keyToTranslate","translatedValue","memo","x","operators","eq","not","gte","lte","lt","gt","ok","notOk","and","or","xor","logicObj","operator","compareFn","resolveShared","sharedKeys","newItem","sharedItem","itemType","esc","require","ensureSafeComponent","default"],"sourceRoot":""}