import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../wayfinder'
/**
* @see \App\Http\Controllers\CurrencyController::index
 * @see app/Http/Controllers/CurrencyController.php:15
 * @route '/dashboard/currency-settings'
 */
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

index.definition = {
    methods: ["get","head"],
    url: '/dashboard/currency-settings',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\CurrencyController::index
 * @see app/Http/Controllers/CurrencyController.php:15
 * @route '/dashboard/currency-settings'
 */
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\CurrencyController::index
 * @see app/Http/Controllers/CurrencyController.php:15
 * @route '/dashboard/currency-settings'
 */
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\CurrencyController::index
 * @see app/Http/Controllers/CurrencyController.php:15
 * @route '/dashboard/currency-settings'
 */
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\CurrencyController::index
 * @see app/Http/Controllers/CurrencyController.php:15
 * @route '/dashboard/currency-settings'
 */
    const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: index.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\CurrencyController::index
 * @see app/Http/Controllers/CurrencyController.php:15
 * @route '/dashboard/currency-settings'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\CurrencyController::index
 * @see app/Http/Controllers/CurrencyController.php:15
 * @route '/dashboard/currency-settings'
 */
        indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    index.form = indexForm
/**
* @see \App\Http\Controllers\CurrencyController::create
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/create'
 */
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})

create.definition = {
    methods: ["get","head"],
    url: '/dashboard/currency-settings/create',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\CurrencyController::create
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/create'
 */
create.url = (options?: RouteQueryOptions) => {
    return create.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\CurrencyController::create
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/create'
 */
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\CurrencyController::create
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/create'
 */
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: create.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\CurrencyController::create
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/create'
 */
    const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: create.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\CurrencyController::create
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/create'
 */
        createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\CurrencyController::create
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/create'
 */
        createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    create.form = createForm
/**
* @see \App\Http\Controllers\CurrencyController::store
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings'
 */
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

store.definition = {
    methods: ["post"],
    url: '/dashboard/currency-settings',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\CurrencyController::store
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings'
 */
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\CurrencyController::store
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings'
 */
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\CurrencyController::store
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings'
 */
    const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: store.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\CurrencyController::store
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\CurrencyController::show
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
export const show = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/dashboard/currency-settings/{currency_setting}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\CurrencyController::show
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
show.url = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { currency_setting: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    currency_setting: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        currency_setting: args.currency_setting,
                }

    return show.definition.url
            .replace('{currency_setting}', parsedArgs.currency_setting.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\CurrencyController::show
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
show.get = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\CurrencyController::show
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
show.head = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\CurrencyController::show
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
    const showForm = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: show.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\CurrencyController::show
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
        showForm.get = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\CurrencyController::show
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
        showForm.head = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    show.form = showForm
/**
* @see \App\Http\Controllers\CurrencyController::edit
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}/edit'
 */
export const edit = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

edit.definition = {
    methods: ["get","head"],
    url: '/dashboard/currency-settings/{currency_setting}/edit',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\CurrencyController::edit
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}/edit'
 */
edit.url = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { currency_setting: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    currency_setting: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        currency_setting: args.currency_setting,
                }

    return edit.definition.url
            .replace('{currency_setting}', parsedArgs.currency_setting.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\CurrencyController::edit
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}/edit'
 */
edit.get = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\CurrencyController::edit
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}/edit'
 */
edit.head = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: edit.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\CurrencyController::edit
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}/edit'
 */
    const editForm = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: edit.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\CurrencyController::edit
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}/edit'
 */
        editForm.get = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\CurrencyController::edit
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}/edit'
 */
        editForm.head = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    edit.form = editForm
/**
* @see \App\Http\Controllers\CurrencyController::update
 * @see app/Http/Controllers/CurrencyController.php:36
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
export const update = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put","patch"],
    url: '/dashboard/currency-settings/{currency_setting}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\CurrencyController::update
 * @see app/Http/Controllers/CurrencyController.php:36
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
update.url = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { currency_setting: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    currency_setting: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        currency_setting: args.currency_setting,
                }

    return update.definition.url
            .replace('{currency_setting}', parsedArgs.currency_setting.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\CurrencyController::update
 * @see app/Http/Controllers/CurrencyController.php:36
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
update.put = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})
/**
* @see \App\Http\Controllers\CurrencyController::update
 * @see app/Http/Controllers/CurrencyController.php:36
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
update.patch = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(args, options),
    method: 'patch',
})

    /**
* @see \App\Http\Controllers\CurrencyController::update
 * @see app/Http/Controllers/CurrencyController.php:36
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
    const updateForm = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: update.url(args, {
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'PUT',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\CurrencyController::update
 * @see app/Http/Controllers/CurrencyController.php:36
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
        updateForm.put = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: update.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PUT',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
            /**
* @see \App\Http\Controllers\CurrencyController::update
 * @see app/Http/Controllers/CurrencyController.php:36
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
        updateForm.patch = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: update.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PATCH',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    update.form = updateForm
/**
* @see \App\Http\Controllers\CurrencyController::destroy
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
export const destroy = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

destroy.definition = {
    methods: ["delete"],
    url: '/dashboard/currency-settings/{currency_setting}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\CurrencyController::destroy
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
destroy.url = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { currency_setting: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    currency_setting: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        currency_setting: args.currency_setting,
                }

    return destroy.definition.url
            .replace('{currency_setting}', parsedArgs.currency_setting.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\CurrencyController::destroy
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
destroy.delete = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\CurrencyController::destroy
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
    const destroyForm = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: destroy.url(args, {
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'DELETE',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\CurrencyController::destroy
 * @see app/Http/Controllers/CurrencyController.php:0
 * @route '/dashboard/currency-settings/{currency_setting}'
 */
        destroyForm.delete = (args: { currency_setting: string | number } | [currency_setting: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: destroy.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'DELETE',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    destroy.form = destroyForm
const currencySettings = {
    index: Object.assign(index, index),
create: Object.assign(create, create),
store: Object.assign(store, store),
show: Object.assign(show, show),
edit: Object.assign(edit, edit),
update: Object.assign(update, update),
destroy: Object.assign(destroy, destroy),
}

export default currencySettings