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

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

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

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

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

            /**
* @see \App\Http\Controllers\ImageManageController::index
 * @see app/Http/Controllers/ImageManageController.php:15
 * @route '/dashboard/image-manage'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\ImageManageController::index
 * @see app/Http/Controllers/ImageManageController.php:15
 * @route '/dashboard/image-manage'
 */
        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\ImageManageController::create
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/create'
 */
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})

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

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

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

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

            /**
* @see \App\Http\Controllers\ImageManageController::create
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/create'
 */
        createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\ImageManageController::create
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/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\ImageManageController::store
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage'
 */
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

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

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

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

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

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

show.definition = {
    methods: ["get","head"],
    url: '/dashboard/image-manage/{image_manage}',
} satisfies RouteDefinition<["get","head"]>

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

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        image_manage: args.image_manage,
                }

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

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

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

            /**
* @see \App\Http\Controllers\ImageManageController::show
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
        showForm.get = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\ImageManageController::show
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
        showForm.head = (args: { image_manage: string | number } | [image_manage: 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\ImageManageController::edit
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}/edit'
 */
export const edit = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

edit.definition = {
    methods: ["get","head"],
    url: '/dashboard/image-manage/{image_manage}/edit',
} satisfies RouteDefinition<["get","head"]>

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

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        image_manage: args.image_manage,
                }

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

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

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

            /**
* @see \App\Http\Controllers\ImageManageController::edit
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}/edit'
 */
        editForm.get = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\ImageManageController::edit
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}/edit'
 */
        editForm.head = (args: { image_manage: string | number } | [image_manage: 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\ImageManageController::update
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
export const update = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put","patch"],
    url: '/dashboard/image-manage/{image_manage}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\ImageManageController::update
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
update.url = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { image_manage: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        image_manage: args.image_manage,
                }

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

/**
* @see \App\Http\Controllers\ImageManageController::update
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
update.put = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})
/**
* @see \App\Http\Controllers\ImageManageController::update
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
update.patch = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(args, options),
    method: 'patch',
})

    /**
* @see \App\Http\Controllers\ImageManageController::update
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
    const updateForm = (args: { image_manage: string | number } | [image_manage: 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\ImageManageController::update
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
        updateForm.put = (args: { image_manage: string | number } | [image_manage: 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\ImageManageController::update
 * @see app/Http/Controllers/ImageManageController.php:0
 * @route '/dashboard/image-manage/{image_manage}'
 */
        updateForm.patch = (args: { image_manage: string | number } | [image_manage: 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\ImageManageController::destroy
 * @see app/Http/Controllers/ImageManageController.php:53
 * @route '/dashboard/image-manage/{image_manage}'
 */
export const destroy = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

destroy.definition = {
    methods: ["delete"],
    url: '/dashboard/image-manage/{image_manage}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\ImageManageController::destroy
 * @see app/Http/Controllers/ImageManageController.php:53
 * @route '/dashboard/image-manage/{image_manage}'
 */
destroy.url = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { image_manage: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        image_manage: args.image_manage,
                }

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

/**
* @see \App\Http\Controllers\ImageManageController::destroy
 * @see app/Http/Controllers/ImageManageController.php:53
 * @route '/dashboard/image-manage/{image_manage}'
 */
destroy.delete = (args: { image_manage: string | number } | [image_manage: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\ImageManageController::destroy
 * @see app/Http/Controllers/ImageManageController.php:53
 * @route '/dashboard/image-manage/{image_manage}'
 */
    const destroyForm = (args: { image_manage: string | number } | [image_manage: 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\ImageManageController::destroy
 * @see app/Http/Controllers/ImageManageController.php:53
 * @route '/dashboard/image-manage/{image_manage}'
 */
        destroyForm.delete = (args: { image_manage: string | number } | [image_manage: 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 imageManage = {
    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 imageManage