import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::show
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:25
* @route '/app/settings/live-chat'
*/
export const show = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/app/settings/live-chat',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::show
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:25
* @route '/app/settings/live-chat'
*/
show.url = (options?: RouteQueryOptions) => {
    return show.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::show
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:25
* @route '/app/settings/live-chat'
*/
show.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::show
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:25
* @route '/app/settings/live-chat'
*/
show.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::show
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:25
* @route '/app/settings/live-chat'
*/
const showForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::show
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:25
* @route '/app/settings/live-chat'
*/
showForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::show
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:25
* @route '/app/settings/live-chat'
*/
showForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

show.form = showForm

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::update
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:45
* @route '/app/settings/live-chat'
*/
export const update = (options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(options),
    method: 'patch',
})

update.definition = {
    methods: ["patch"],
    url: '/app/settings/live-chat',
} satisfies RouteDefinition<["patch"]>

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::update
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:45
* @route '/app/settings/live-chat'
*/
update.url = (options?: RouteQueryOptions) => {
    return update.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::update
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:45
* @route '/app/settings/live-chat'
*/
update.patch = (options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(options),
    method: 'patch',
})

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::update
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:45
* @route '/app/settings/live-chat'
*/
const updateForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\LiveChatSettingsController::update
* @see app/Http/Controllers/Admin/LiveChatSettingsController.php:45
* @route '/app/settings/live-chat'
*/
updateForm.patch = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

update.form = updateForm

const LiveChatSettingsController = { show, update }

export default LiveChatSettingsController