How to override get_dialog_constructor(type) function in custom app

origanl function is frappe-bench/apps/frappe/frappe/public/js/frappe/widgets/widget_dialog.js
export default function get_dialog_constructor(type) {
const widget_map = {
chart: ChartDialog,
shortcut: ShortcutDialog,
number_card: NumberCardDialog,
links: CardDialog,
onboarding: OnboardingDialog,
quick_list: QuickListDialog,
};

return widget_map[type] || WidgetDialog;

}

we need to modify and add other data like quick_card: QuickCardDialog
please help me
thanks