@fctc/interface-logic 4.4.2 → 4.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/provider.mjs CHANGED
@@ -3224,8 +3224,40 @@ function useActionService() {
3224
3224
 
3225
3225
  // src/services/auth-service/index.ts
3226
3226
  import { useCallback as useCallback2 } from "react";
3227
+
3228
+ // src/provider/supabase-provider.tsx
3229
+ import { createContext, useContext, useMemo } from "react";
3230
+ import { createClient } from "@supabase/supabase-js";
3231
+ import { jsx as jsx4 } from "react/jsx-runtime";
3232
+ var SupabaseContext = createContext(null);
3233
+ var SupabaseProvider = ({
3234
+ supabaseUrl,
3235
+ supabaseKey,
3236
+ children
3237
+ }) => {
3238
+ const supabase = useMemo(() => {
3239
+ if (!supabaseUrl || !supabaseKey) return null;
3240
+ return createClient(supabaseUrl, supabaseKey);
3241
+ }, [supabaseUrl, supabaseKey]);
3242
+ return /* @__PURE__ */ jsx4(SupabaseContext.Provider, { value: supabase, children });
3243
+ };
3244
+ var useSupabase = () => {
3245
+ const context = useContext(SupabaseContext);
3246
+ if (!context) {
3247
+ throw new Error(
3248
+ "useSupabase must be used within a SupabaseProvider or check your env config"
3249
+ );
3250
+ }
3251
+ return context;
3252
+ };
3253
+ var useSupabaseOptional = () => {
3254
+ return useContext(SupabaseContext);
3255
+ };
3256
+
3257
+ // src/services/auth-service/index.ts
3227
3258
  function useAuthService() {
3228
3259
  const { env } = useEnv();
3260
+ const supabase = useSupabaseOptional();
3229
3261
  const login = useCallback2(
3230
3262
  async (body) => {
3231
3263
  const payload = Object.fromEntries(
@@ -3251,6 +3283,22 @@ function useAuthService() {
3251
3283
  },
3252
3284
  [env]
3253
3285
  );
3286
+ const loginSupabase = useCallback2(
3287
+ async (body) => {
3288
+ if (!supabase) {
3289
+ return {
3290
+ data: null,
3291
+ error: { message: "Supabase client is not initialized" }
3292
+ };
3293
+ }
3294
+ const { data, error } = await supabase.auth.signInWithPassword({
3295
+ email: body.email,
3296
+ password: body.password
3297
+ });
3298
+ return { data, error };
3299
+ },
3300
+ [supabase]
3301
+ );
3254
3302
  const forgotPassword = useCallback2(
3255
3303
  async (email) => {
3256
3304
  const bodyData = {
@@ -3473,6 +3521,7 @@ function useAuthService() {
3473
3521
  );
3474
3522
  return {
3475
3523
  login,
3524
+ loginSupabase,
3476
3525
  forgotPassword,
3477
3526
  forgotPasswordSSO,
3478
3527
  resetPassword,
@@ -5932,37 +5981,6 @@ var handleClosingSessionService = (env) => {
5932
5981
 
5933
5982
  // src/services/pos-service/load-data-pos-session.ts
5934
5983
  import { useCallback as useCallback31 } from "react";
5935
-
5936
- // src/provider/supabase-provider.tsx
5937
- import { createContext, useContext, useMemo } from "react";
5938
- import { createClient } from "@supabase/supabase-js";
5939
- import { jsx as jsx4 } from "react/jsx-runtime";
5940
- var SupabaseContext = createContext(null);
5941
- var SupabaseProvider = ({
5942
- supabaseUrl,
5943
- supabaseKey,
5944
- children
5945
- }) => {
5946
- const supabase = useMemo(() => {
5947
- if (!supabaseUrl || !supabaseKey) return null;
5948
- return createClient(supabaseUrl, supabaseKey);
5949
- }, [supabaseUrl, supabaseKey]);
5950
- return /* @__PURE__ */ jsx4(SupabaseContext.Provider, { value: supabase, children });
5951
- };
5952
- var useSupabase = () => {
5953
- const context = useContext(SupabaseContext);
5954
- if (!context) {
5955
- throw new Error(
5956
- "useSupabase must be used within a SupabaseProvider or check your env config"
5957
- );
5958
- }
5959
- return context;
5960
- };
5961
- var useSupabaseOptional = () => {
5962
- return useContext(SupabaseContext);
5963
- };
5964
-
5965
- // src/services/pos-service/load-data-pos-session.ts
5966
5984
  var MODEL_TO_TABLE = {
5967
5985
  ["account.tax" /* ACCOUNT_TAX */]: "account_taxes",
5968
5986
  ["res.company" /* RES_COMPANY */]: "companies",
@@ -7023,11 +7041,14 @@ var useLoginSocial = () => {
7023
7041
  };
7024
7042
  var use_login_socical_default = useLoginSocial;
7025
7043
 
7026
- // src/hooks/auth/use-reset-password.ts
7044
+ // src/hooks/auth/use-login-supa.tsx
7027
7045
  import { useMutation as useMutation7 } from "@tanstack/react-query";
7046
+
7047
+ // src/hooks/auth/use-reset-password.ts
7048
+ import { useMutation as useMutation8 } from "@tanstack/react-query";
7028
7049
  var useResetPassword = () => {
7029
7050
  const { resetPassword } = useAuthService();
7030
- return useMutation7({
7051
+ return useMutation8({
7031
7052
  mutationFn: (request) => {
7032
7053
  return resetPassword(request.data, request.token);
7033
7054
  }
@@ -7036,10 +7057,10 @@ var useResetPassword = () => {
7036
7057
  var use_reset_password_default = useResetPassword;
7037
7058
 
7038
7059
  // src/hooks/auth/use-reset-password-sso.ts
7039
- import { useMutation as useMutation8 } from "@tanstack/react-query";
7060
+ import { useMutation as useMutation9 } from "@tanstack/react-query";
7040
7061
  var useResetPasswordSSO = () => {
7041
7062
  const { resetPasswordSSO } = useAuthService();
7042
- return useMutation8({
7063
+ return useMutation9({
7043
7064
  mutationFn: ({
7044
7065
  method,
7045
7066
  password,
@@ -7056,10 +7077,10 @@ var useResetPasswordSSO = () => {
7056
7077
  var use_reset_password_sso_default = useResetPasswordSSO;
7057
7078
 
7058
7079
  // src/hooks/auth/use-update-password.ts
7059
- import { useMutation as useMutation9 } from "@tanstack/react-query";
7080
+ import { useMutation as useMutation10 } from "@tanstack/react-query";
7060
7081
  var useUpdatePassword = () => {
7061
7082
  const { updatePassword } = useAuthService();
7062
- return useMutation9({
7083
+ return useMutation10({
7063
7084
  mutationFn: (request) => {
7064
7085
  return updatePassword(request.data, request.token);
7065
7086
  }
@@ -7068,10 +7089,10 @@ var useUpdatePassword = () => {
7068
7089
  var use_update_password_default = useUpdatePassword;
7069
7090
 
7070
7091
  // src/hooks/auth/use-logout.ts
7071
- import { useMutation as useMutation10 } from "@tanstack/react-query";
7092
+ import { useMutation as useMutation11 } from "@tanstack/react-query";
7072
7093
  var useLogout = () => {
7073
7094
  const { logout } = useAuthService();
7074
- return useMutation10({
7095
+ return useMutation11({
7075
7096
  mutationFn: (service) => {
7076
7097
  return logout(service);
7077
7098
  }
@@ -7080,10 +7101,10 @@ var useLogout = () => {
7080
7101
  var use_logout_default = useLogout;
7081
7102
 
7082
7103
  // src/hooks/auth/use-get-access-by-code.ts
7083
- import { useMutation as useMutation11 } from "@tanstack/react-query";
7104
+ import { useMutation as useMutation12 } from "@tanstack/react-query";
7084
7105
  var useGetAccessByCode = () => {
7085
7106
  const { getAccessByCode } = useAuthService();
7086
- return useMutation11({
7107
+ return useMutation12({
7087
7108
  mutationFn: ({ code }) => {
7088
7109
  return getAccessByCode(code);
7089
7110
  }
@@ -7092,10 +7113,10 @@ var useGetAccessByCode = () => {
7092
7113
  var use_get_access_by_code_default = useGetAccessByCode;
7093
7114
 
7094
7115
  // src/hooks/auth/use-validate-action-token.ts
7095
- import { useMutation as useMutation12 } from "@tanstack/react-query";
7116
+ import { useMutation as useMutation13 } from "@tanstack/react-query";
7096
7117
  var useValidateActionToken = () => {
7097
7118
  const { isValidActionToken } = useAuthService();
7098
- return useMutation12({
7119
+ return useMutation13({
7099
7120
  mutationFn: ({ actionToken }) => {
7100
7121
  return isValidActionToken(actionToken);
7101
7122
  }
@@ -7104,10 +7125,10 @@ var useValidateActionToken = () => {
7104
7125
  var use_validate_action_token_default = useValidateActionToken;
7105
7126
 
7106
7127
  // src/hooks/auth/use-get-tenant-mapping.ts
7107
- import { useMutation as useMutation13 } from "@tanstack/react-query";
7128
+ import { useMutation as useMutation14 } from "@tanstack/react-query";
7108
7129
  var useGetTenantMapping = () => {
7109
7130
  const { getTenantMapping } = useAuthService();
7110
- return useMutation13({
7131
+ return useMutation14({
7111
7132
  mutationFn: ({
7112
7133
  shortName,
7113
7134
  service
@@ -7119,10 +7140,10 @@ var useGetTenantMapping = () => {
7119
7140
  var use_get_tenant_mapping_default = useGetTenantMapping;
7120
7141
 
7121
7142
  // src/hooks/auth/use-get-token.ts
7122
- import { useMutation as useMutation14 } from "@tanstack/react-query";
7143
+ import { useMutation as useMutation15 } from "@tanstack/react-query";
7123
7144
  var useGetToken = () => {
7124
7145
  const { getToken } = useAuthService();
7125
- return useMutation14({
7146
+ return useMutation15({
7126
7147
  mutationFn: ({
7127
7148
  phone,
7128
7149
  name,
@@ -7136,20 +7157,20 @@ var useGetToken = () => {
7136
7157
  var use_get_token_default = useGetToken;
7137
7158
 
7138
7159
  // src/hooks/company/use-get-company-info.ts
7139
- import { useMutation as useMutation15 } from "@tanstack/react-query";
7160
+ import { useMutation as useMutation16 } from "@tanstack/react-query";
7140
7161
  var useGetCompanyInfo = () => {
7141
7162
  const { getInfoCompany } = useCompanyService();
7142
- return useMutation15({
7163
+ return useMutation16({
7143
7164
  mutationFn: ({ service, id }) => getInfoCompany(id, service)
7144
7165
  });
7145
7166
  };
7146
7167
  var use_get_company_info_default = useGetCompanyInfo;
7147
7168
 
7148
7169
  // src/hooks/company/use-get-current-company.ts
7149
- import { useMutation as useMutation16 } from "@tanstack/react-query";
7170
+ import { useMutation as useMutation17 } from "@tanstack/react-query";
7150
7171
  var useGetCurrentCompany = () => {
7151
7172
  const { getCurrentCompany } = useCompanyService();
7152
- return useMutation16({
7173
+ return useMutation17({
7153
7174
  mutationFn: ({
7154
7175
  service,
7155
7176
  extraHeaders
@@ -7180,10 +7201,10 @@ var useGetListCompany = (companyIDs = []) => {
7180
7201
  var use_get_list_company_default = useGetListCompany;
7181
7202
 
7182
7203
  // src/hooks/excel/use-export-excel.ts
7183
- import { useMutation as useMutation17 } from "@tanstack/react-query";
7204
+ import { useMutation as useMutation18 } from "@tanstack/react-query";
7184
7205
  var useExportExcel = () => {
7185
7206
  const { exportExcel } = useExcelService();
7186
- return useMutation17({
7207
+ return useMutation18({
7187
7208
  mutationFn: ({
7188
7209
  model,
7189
7210
  domain,
@@ -7212,10 +7233,10 @@ var useExportExcel = () => {
7212
7233
  var use_export_excel_default = useExportExcel;
7213
7234
 
7214
7235
  // src/hooks/excel/use-get-field-export.ts
7215
- import { useMutation as useMutation18 } from "@tanstack/react-query";
7236
+ import { useMutation as useMutation19 } from "@tanstack/react-query";
7216
7237
  var useGetFieldExport = () => {
7217
7238
  const { getFieldExport } = useExcelService();
7218
- return useMutation18({
7239
+ return useMutation19({
7219
7240
  mutationFn: ({
7220
7241
  ids,
7221
7242
  model,
@@ -7275,10 +7296,10 @@ var useGetFileExcel = ({
7275
7296
  var use_get_file_excel_default = useGetFileExcel;
7276
7297
 
7277
7298
  // src/hooks/excel/use-parse-preview.ts
7278
- import { useMutation as useMutation19 } from "@tanstack/react-query";
7299
+ import { useMutation as useMutation20 } from "@tanstack/react-query";
7279
7300
  var useParsePreview = () => {
7280
7301
  const { parsePreview } = useExcelService();
7281
- return useMutation19({
7302
+ return useMutation20({
7282
7303
  mutationFn: ({
7283
7304
  id,
7284
7305
  selectedSheet,
@@ -7299,10 +7320,10 @@ var useParsePreview = () => {
7299
7320
  var use_parse_preview_default = useParsePreview;
7300
7321
 
7301
7322
  // src/hooks/excel/use-upload-file-excel.ts
7302
- import { useMutation as useMutation20 } from "@tanstack/react-query";
7323
+ import { useMutation as useMutation21 } from "@tanstack/react-query";
7303
7324
  var useUploadFileExcel = () => {
7304
7325
  const { uploadFileExcel } = useExcelService();
7305
- return useMutation20({
7326
+ return useMutation21({
7306
7327
  mutationFn: ({
7307
7328
  formData,
7308
7329
  service,
@@ -7317,10 +7338,10 @@ var useUploadFileExcel = () => {
7317
7338
  var use_upload_file_excel_default = useUploadFileExcel;
7318
7339
 
7319
7340
  // src/hooks/excel/use-upload-id-file.ts
7320
- import { useMutation as useMutation21 } from "@tanstack/react-query";
7341
+ import { useMutation as useMutation22 } from "@tanstack/react-query";
7321
7342
  var useUploadIdFile = () => {
7322
7343
  const { uploadIdFile } = useExcelService();
7323
- return useMutation21({
7344
+ return useMutation22({
7324
7345
  mutationFn: ({
7325
7346
  formData,
7326
7347
  service,
@@ -7335,10 +7356,10 @@ var useUploadIdFile = () => {
7335
7356
  var use_upload_id_file_default = useUploadIdFile;
7336
7357
 
7337
7358
  // src/hooks/excel/uss-execute-import.ts
7338
- import { useMutation as useMutation22 } from "@tanstack/react-query";
7359
+ import { useMutation as useMutation23 } from "@tanstack/react-query";
7339
7360
  var useExecuteImport = () => {
7340
7361
  const { executeImport } = useExcelService();
7341
- return useMutation22({
7362
+ return useMutation23({
7342
7363
  mutationFn: ({
7343
7364
  fields,
7344
7365
  columns,
@@ -7363,10 +7384,10 @@ var useExecuteImport = () => {
7363
7384
  var uss_execute_import_default = useExecuteImport;
7364
7385
 
7365
7386
  // src/hooks/form/use-change-status.ts
7366
- import { useMutation as useMutation23 } from "@tanstack/react-query";
7387
+ import { useMutation as useMutation24 } from "@tanstack/react-query";
7367
7388
  var useChangeStatus = () => {
7368
7389
  const { changeStatus } = useFormService();
7369
- return useMutation23({
7390
+ return useMutation24({
7370
7391
  mutationFn: ({ data }) => {
7371
7392
  return changeStatus({
7372
7393
  data
@@ -7377,10 +7398,10 @@ var useChangeStatus = () => {
7377
7398
  var use_change_status_default = useChangeStatus;
7378
7399
 
7379
7400
  // src/hooks/form/use-delete-comment.ts
7380
- import { useMutation as useMutation24 } from "@tanstack/react-query";
7401
+ import { useMutation as useMutation25 } from "@tanstack/react-query";
7381
7402
  var useDeleteComment = () => {
7382
7403
  const { deleteComment } = useFormService();
7383
- return useMutation24({
7404
+ return useMutation25({
7384
7405
  mutationFn: ({ data }) => deleteComment({
7385
7406
  data
7386
7407
  })
@@ -7448,10 +7469,10 @@ var useGetImage = ({
7448
7469
  var use_get_image_default = useGetImage;
7449
7470
 
7450
7471
  // src/hooks/form/use-send-comment.ts
7451
- import { useMutation as useMutation25 } from "@tanstack/react-query";
7472
+ import { useMutation as useMutation26 } from "@tanstack/react-query";
7452
7473
  var useSendComment = () => {
7453
7474
  const { sentComment } = useFormService();
7454
- return useMutation25({
7475
+ return useMutation26({
7455
7476
  mutationFn: ({ data }) => sentComment({
7456
7477
  data
7457
7478
  })
@@ -7460,10 +7481,10 @@ var useSendComment = () => {
7460
7481
  var use_send_comment_default = useSendComment;
7461
7482
 
7462
7483
  // src/hooks/form/use-upload-image.ts
7463
- import { useMutation as useMutation26 } from "@tanstack/react-query";
7484
+ import { useMutation as useMutation27 } from "@tanstack/react-query";
7464
7485
  var useUploadImage = () => {
7465
7486
  const { uploadImage } = useFormService();
7466
- return useMutation26({
7487
+ return useMutation27({
7467
7488
  mutationFn: ({
7468
7489
  formData,
7469
7490
  service,
@@ -7478,10 +7499,10 @@ var useUploadImage = () => {
7478
7499
  var use_upload_image_default = useUploadImage;
7479
7500
 
7480
7501
  // src/hooks/form/use-upload-file.ts
7481
- import { useMutation as useMutation27 } from "@tanstack/react-query";
7502
+ import { useMutation as useMutation28 } from "@tanstack/react-query";
7482
7503
  var useUploadFile = () => {
7483
7504
  const { uploadFile } = useFormService();
7484
- return useMutation27({
7505
+ return useMutation28({
7485
7506
  mutationFn: ({
7486
7507
  formData,
7487
7508
  service,
@@ -7572,10 +7593,10 @@ var useGetExternalTabs = ({
7572
7593
  var use_get_external_tabs_default = useGetExternalTabs;
7573
7594
 
7574
7595
  // src/hooks/model/use-delete.ts
7575
- import { useMutation as useMutation28 } from "@tanstack/react-query";
7596
+ import { useMutation as useMutation29 } from "@tanstack/react-query";
7576
7597
  var useDelete = () => {
7577
7598
  const { deleteApi } = useModelService();
7578
- return useMutation28({
7599
+ return useMutation29({
7579
7600
  mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
7580
7601
  });
7581
7602
  };
@@ -7631,10 +7652,10 @@ var useGetCurrency = () => {
7631
7652
  var use_get_currency_default = useGetCurrency;
7632
7653
 
7633
7654
  // src/hooks/model/use-get-detail.ts
7634
- import { useMutation as useMutation29 } from "@tanstack/react-query";
7655
+ import { useMutation as useMutation30 } from "@tanstack/react-query";
7635
7656
  var useGetDetail = () => {
7636
7657
  const { getDetail } = useModelService();
7637
- return useMutation29({
7658
+ return useMutation30({
7638
7659
  mutationFn: ({
7639
7660
  model,
7640
7661
  ids,
@@ -7842,10 +7863,10 @@ var useOdooDataTransform = () => {
7842
7863
  var use_odoo_data_transform_default = useOdooDataTransform;
7843
7864
 
7844
7865
  // src/hooks/model/use-onchange-form.ts
7845
- import { useMutation as useMutation30 } from "@tanstack/react-query";
7866
+ import { useMutation as useMutation31 } from "@tanstack/react-query";
7846
7867
  var useOnChangeForm = () => {
7847
7868
  const { onChange } = useModelService();
7848
- return useMutation30({
7869
+ return useMutation31({
7849
7870
  mutationFn: ({
7850
7871
  ids,
7851
7872
  model,
@@ -7870,10 +7891,10 @@ var useOnChangeForm = () => {
7870
7891
  var use_onchange_form_default = useOnChangeForm;
7871
7892
 
7872
7893
  // src/hooks/model/use-save.ts
7873
- import { useMutation as useMutation31 } from "@tanstack/react-query";
7894
+ import { useMutation as useMutation32 } from "@tanstack/react-query";
7874
7895
  var useSave = () => {
7875
7896
  const { save } = useModelService();
7876
- return useMutation31({
7897
+ return useMutation32({
7877
7898
  mutationFn: ({
7878
7899
  ids,
7879
7900
  model,
@@ -7889,20 +7910,20 @@ var useSave = () => {
7889
7910
  var use_save_default = useSave;
7890
7911
 
7891
7912
  // src/hooks/user/use-get-profile.ts
7892
- import { useMutation as useMutation32 } from "@tanstack/react-query";
7913
+ import { useMutation as useMutation33 } from "@tanstack/react-query";
7893
7914
  var useGetProfile = (service, path, extraHeaders) => {
7894
7915
  const { getProfile } = useUserService();
7895
- return useMutation32({
7916
+ return useMutation33({
7896
7917
  mutationFn: () => getProfile(service, path, extraHeaders)
7897
7918
  });
7898
7919
  };
7899
7920
  var use_get_profile_default = useGetProfile;
7900
7921
 
7901
7922
  // src/hooks/user/use-get-user.ts
7902
- import { useMutation as useMutation33 } from "@tanstack/react-query";
7923
+ import { useMutation as useMutation34 } from "@tanstack/react-query";
7903
7924
  var useGetUser = () => {
7904
7925
  const { getUser } = useUserService();
7905
- return useMutation33({
7926
+ return useMutation34({
7906
7927
  mutationFn: ({ id, context }) => getUser({
7907
7928
  id,
7908
7929
  context
@@ -7912,10 +7933,10 @@ var useGetUser = () => {
7912
7933
  var use_get_user_default = useGetUser;
7913
7934
 
7914
7935
  // src/hooks/user/use-switch-locale.ts
7915
- import { useMutation as useMutation34 } from "@tanstack/react-query";
7936
+ import { useMutation as useMutation35 } from "@tanstack/react-query";
7916
7937
  var useSwitchLocale = () => {
7917
7938
  const { switchUserLocale } = useUserService();
7918
- return useMutation34({
7939
+ return useMutation35({
7919
7940
  mutationFn: ({
7920
7941
  data,
7921
7942
  service
@@ -7931,10 +7952,10 @@ var useSwitchLocale = () => {
7931
7952
  var use_switch_locale_default = useSwitchLocale;
7932
7953
 
7933
7954
  // src/hooks/view/use-button.ts
7934
- import { useMutation as useMutation35 } from "@tanstack/react-query";
7955
+ import { useMutation as useMutation36 } from "@tanstack/react-query";
7935
7956
  var useButton = () => {
7936
7957
  const { callButton } = useActionService();
7937
- return useMutation35({
7958
+ return useMutation36({
7938
7959
  mutationFn: ({
7939
7960
  model,
7940
7961
  ids,
@@ -7958,10 +7979,10 @@ var useButton = () => {
7958
7979
  var use_button_default = useButton;
7959
7980
 
7960
7981
  // src/hooks/view/use-duplicate-record.ts
7961
- import { useMutation as useMutation36 } from "@tanstack/react-query";
7982
+ import { useMutation as useMutation37 } from "@tanstack/react-query";
7962
7983
  var useDuplicateRecord = () => {
7963
7984
  const { duplicateRecord } = useActionService();
7964
- return useMutation36({
7985
+ return useMutation37({
7965
7986
  mutationFn: ({
7966
7987
  id,
7967
7988
  model,
@@ -8098,10 +8119,10 @@ var useGetMenu = (context, specification, enabled, domain, service) => {
8098
8119
  var use_get_menu_default = useGetMenu;
8099
8120
 
8100
8121
  // src/hooks/view/use-get-print-report.ts
8101
- import { useMutation as useMutation37 } from "@tanstack/react-query";
8122
+ import { useMutation as useMutation38 } from "@tanstack/react-query";
8102
8123
  var useGetPrintReport = () => {
8103
8124
  const { getPrintReportName } = useActionService();
8104
- return useMutation37({
8125
+ return useMutation38({
8105
8126
  mutationFn: ({ id }) => getPrintReportName({
8106
8127
  id
8107
8128
  })
@@ -8176,10 +8197,10 @@ var useGetView = ({ viewParams, enabled }) => {
8176
8197
  var use_get_view_default = useGetView;
8177
8198
 
8178
8199
  // src/hooks/view/use-load-action.ts
8179
- import { useMutation as useMutation38 } from "@tanstack/react-query";
8200
+ import { useMutation as useMutation39 } from "@tanstack/react-query";
8180
8201
  var useLoadAction = () => {
8181
8202
  const { loadAction } = useActionService();
8182
- return useMutation38({
8203
+ return useMutation39({
8183
8204
  mutationFn: ({
8184
8205
  idAction,
8185
8206
  context,
@@ -8212,10 +8233,10 @@ var useLoadMessage = () => {
8212
8233
  var use_load_message_default = useLoadMessage;
8213
8234
 
8214
8235
  // src/hooks/view/use-print.ts
8215
- import { useMutation as useMutation39 } from "@tanstack/react-query";
8236
+ import { useMutation as useMutation40 } from "@tanstack/react-query";
8216
8237
  var usePrint = () => {
8217
8238
  const { print } = useActionService();
8218
- return useMutation39({
8239
+ return useMutation40({
8219
8240
  mutationFn: ({ id, report, db }) => print({
8220
8241
  id,
8221
8242
  report,
@@ -8226,10 +8247,10 @@ var usePrint = () => {
8226
8247
  var use_print_default = usePrint;
8227
8248
 
8228
8249
  // src/hooks/view/use-remove-row.ts
8229
- import { useMutation as useMutation40 } from "@tanstack/react-query";
8250
+ import { useMutation as useMutation41 } from "@tanstack/react-query";
8230
8251
  var useRemoveRow = () => {
8231
8252
  const { removeRows } = useActionService();
8232
- return useMutation40({
8253
+ return useMutation41({
8233
8254
  mutationFn: ({
8234
8255
  model,
8235
8256
  ids,
@@ -8248,10 +8269,10 @@ var useRemoveRow = () => {
8248
8269
  var use_remove_row_default = useRemoveRow;
8249
8270
 
8250
8271
  // src/hooks/view/use-resequence.ts
8251
- import { useMutation as useMutation41 } from "@tanstack/react-query";
8272
+ import { useMutation as useMutation42 } from "@tanstack/react-query";
8252
8273
  var useGetResequence = () => {
8253
8274
  const { getResequence } = useViewService();
8254
- return useMutation41({
8275
+ return useMutation42({
8255
8276
  mutationFn: ({
8256
8277
  model,
8257
8278
  resIds,
@@ -8272,10 +8293,10 @@ var useGetResequence = () => {
8272
8293
  var use_resequence_default = useGetResequence;
8273
8294
 
8274
8295
  // src/hooks/view/use-run-action.ts
8275
- import { useMutation as useMutation42 } from "@tanstack/react-query";
8296
+ import { useMutation as useMutation43 } from "@tanstack/react-query";
8276
8297
  var useRunAction = () => {
8277
8298
  const { runAction } = useActionService();
8278
- return useMutation42({
8299
+ return useMutation43({
8279
8300
  mutationFn: ({
8280
8301
  idAction,
8281
8302
  context,
@@ -8294,10 +8315,10 @@ var useRunAction = () => {
8294
8315
  var use_run_action_default = useRunAction;
8295
8316
 
8296
8317
  // src/hooks/view/use-signin-sso.ts
8297
- import { useMutation as useMutation43 } from "@tanstack/react-query";
8318
+ import { useMutation as useMutation44 } from "@tanstack/react-query";
8298
8319
  var useSignInSSO = () => {
8299
8320
  const { signInSSO } = useViewService();
8300
- return useMutation43({
8321
+ return useMutation44({
8301
8322
  mutationFn: ({
8302
8323
  redirect_uri,
8303
8324
  state,
@@ -8320,10 +8341,10 @@ var useSignInSSO = () => {
8320
8341
  var use_signin_sso_default = useSignInSSO;
8321
8342
 
8322
8343
  // src/hooks/view/use-verify-2FA.ts
8323
- import { useMutation as useMutation44 } from "@tanstack/react-query";
8344
+ import { useMutation as useMutation45 } from "@tanstack/react-query";
8324
8345
  var useVerify2FA = () => {
8325
8346
  const { verify2FA } = useViewService();
8326
- return useMutation44({
8347
+ return useMutation45({
8327
8348
  mutationFn: ({
8328
8349
  method,
8329
8350
  with_context,
@@ -8344,10 +8365,10 @@ var useVerify2FA = () => {
8344
8365
  var use_verify_2FA_default = useVerify2FA;
8345
8366
 
8346
8367
  // src/hooks/view/uset-get-2FA-method.ts
8347
- import { useMutation as useMutation45 } from "@tanstack/react-query";
8368
+ import { useMutation as useMutation46 } from "@tanstack/react-query";
8348
8369
  var useGet2FAMethods = () => {
8349
8370
  const { get2FAMethods } = useViewService();
8350
- return useMutation45({
8371
+ return useMutation46({
8351
8372
  mutationFn: ({
8352
8373
  method,
8353
8374
  with_context
@@ -8362,10 +8383,10 @@ var useGet2FAMethods = () => {
8362
8383
  var uset_get_2FA_method_default = useGet2FAMethods;
8363
8384
 
8364
8385
  // src/hooks/view/use-grant-access.ts
8365
- import { useMutation as useMutation46 } from "@tanstack/react-query";
8386
+ import { useMutation as useMutation47 } from "@tanstack/react-query";
8366
8387
  var useGrantAccess = () => {
8367
8388
  const { grantAccess } = useViewService();
8368
- return useMutation46({
8389
+ return useMutation47({
8369
8390
  mutationFn: ({
8370
8391
  redirect_uri,
8371
8392
  state,
@@ -8384,10 +8405,10 @@ var useGrantAccess = () => {
8384
8405
  var use_grant_access_default = useGrantAccess;
8385
8406
 
8386
8407
  // src/hooks/view/use-remove-totp-setup.ts
8387
- import { useMutation as useMutation47 } from "@tanstack/react-query";
8408
+ import { useMutation as useMutation48 } from "@tanstack/react-query";
8388
8409
  var useRemoveTotpSetup = () => {
8389
8410
  const { removeTotpSetUp } = useViewService();
8390
- return useMutation47({
8411
+ return useMutation48({
8391
8412
  mutationFn: ({ method, token }) => {
8392
8413
  return removeTotpSetUp({
8393
8414
  method,
@@ -8399,10 +8420,10 @@ var useRemoveTotpSetup = () => {
8399
8420
  var use_remove_totp_setup_default = useRemoveTotpSetup;
8400
8421
 
8401
8422
  // src/hooks/view/use-request-setup-totp.ts
8402
- import { useMutation as useMutation48 } from "@tanstack/react-query";
8423
+ import { useMutation as useMutation49 } from "@tanstack/react-query";
8403
8424
  var useRequestSetupTotp = () => {
8404
8425
  const { requestSetupTotp } = useViewService();
8405
- return useMutation48({
8426
+ return useMutation49({
8406
8427
  mutationFn: ({ method, token }) => {
8407
8428
  return requestSetupTotp({
8408
8429
  method,
@@ -8414,10 +8435,10 @@ var useRequestSetupTotp = () => {
8414
8435
  var use_request_setup_totp_default = useRequestSetupTotp;
8415
8436
 
8416
8437
  // src/hooks/view/use-settings-web-read-2fa.ts
8417
- import { useMutation as useMutation49 } from "@tanstack/react-query";
8438
+ import { useMutation as useMutation50 } from "@tanstack/react-query";
8418
8439
  var useSettingsWebRead2fa = () => {
8419
8440
  const { settingsWebRead2fa } = useViewService();
8420
- return useMutation49({
8441
+ return useMutation50({
8421
8442
  mutationFn: ({
8422
8443
  method,
8423
8444
  token,
@@ -8436,10 +8457,10 @@ var useSettingsWebRead2fa = () => {
8436
8457
  var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
8437
8458
 
8438
8459
  // src/hooks/view/use-verify-totp.ts
8439
- import { useMutation as useMutation50 } from "@tanstack/react-query";
8460
+ import { useMutation as useMutation51 } from "@tanstack/react-query";
8440
8461
  var useVerifyTotp = () => {
8441
8462
  const { verifyTotp } = useViewService();
8442
- return useMutation50({
8463
+ return useMutation51({
8443
8464
  mutationFn: ({
8444
8465
  method,
8445
8466
  action_token,
@@ -8456,10 +8477,10 @@ var useVerifyTotp = () => {
8456
8477
  var use_verify_totp_default = useVerifyTotp;
8457
8478
 
8458
8479
  // src/hooks/view/use-gen-serial-number.ts
8459
- import { useMutation as useMutation51 } from "@tanstack/react-query";
8480
+ import { useMutation as useMutation52 } from "@tanstack/react-query";
8460
8481
  var useGenSerialNumber = () => {
8461
8482
  const { generateSerialNumber } = useActionService();
8462
- return useMutation51({
8483
+ return useMutation52({
8463
8484
  mutationFn: ({
8464
8485
  kwargs,
8465
8486
  context,
@@ -8499,10 +8520,10 @@ var useGetNotifications = ({
8499
8520
  var use_get_notifications_default = useGetNotifications;
8500
8521
 
8501
8522
  // src/hooks/view/use-get-version.ts
8502
- import { useMutation as useMutation52 } from "@tanstack/react-query";
8523
+ import { useMutation as useMutation53 } from "@tanstack/react-query";
8503
8524
  var useGetVersion = () => {
8504
8525
  const { getVersion } = useViewService();
8505
- return useMutation52({
8526
+ return useMutation53({
8506
8527
  mutationFn: () => {
8507
8528
  return getVersion();
8508
8529
  }
@@ -8511,10 +8532,10 @@ var useGetVersion = () => {
8511
8532
  var use_get_version_default = useGetVersion;
8512
8533
 
8513
8534
  // src/hooks/view/use-get-ward.ts
8514
- import { useMutation as useMutation53 } from "@tanstack/react-query";
8535
+ import { useMutation as useMutation54 } from "@tanstack/react-query";
8515
8536
  var useGetWard = () => {
8516
8537
  const { getWard } = useViewService();
8517
- return useMutation53({
8538
+ return useMutation54({
8518
8539
  mutationFn: ({
8519
8540
  service,
8520
8541
  xNode,
@@ -8531,10 +8552,10 @@ var useGetWard = () => {
8531
8552
  var use_get_ward_default = useGetWard;
8532
8553
 
8533
8554
  // src/hooks/view/use-get-city.ts
8534
- import { useMutation as useMutation54 } from "@tanstack/react-query";
8555
+ import { useMutation as useMutation55 } from "@tanstack/react-query";
8535
8556
  var useGetCity = () => {
8536
8557
  const { getCity } = useViewService();
8537
- return useMutation54({
8558
+ return useMutation55({
8538
8559
  mutationFn: ({
8539
8560
  service,
8540
8561
  xNode,
@@ -8553,10 +8574,10 @@ var useGetCity = () => {
8553
8574
  var use_get_city_default = useGetCity;
8554
8575
 
8555
8576
  // src/hooks/view/use-get-country.ts
8556
- import { useMutation as useMutation55 } from "@tanstack/react-query";
8577
+ import { useMutation as useMutation56 } from "@tanstack/react-query";
8557
8578
  var useGetCountry = () => {
8558
8579
  const { getCountry } = useViewService();
8559
- return useMutation55({
8580
+ return useMutation56({
8560
8581
  mutationFn: ({
8561
8582
  service,
8562
8583
  xNode,
@@ -8575,10 +8596,10 @@ var useGetCountry = () => {
8575
8596
  var use_get_country_default = useGetCountry;
8576
8597
 
8577
8598
  // src/hooks/view/use-get-partner-title.ts
8578
- import { useMutation as useMutation56 } from "@tanstack/react-query";
8599
+ import { useMutation as useMutation57 } from "@tanstack/react-query";
8579
8600
  var useGetPartnerTitle = () => {
8580
8601
  const { getPartnerTitle } = useViewService();
8581
- return useMutation56({
8602
+ return useMutation57({
8582
8603
  mutationFn: ({
8583
8604
  service,
8584
8605
  xNode,
@@ -8633,301 +8654,301 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
8633
8654
  var use_get_data_chart_default = useGetDataChart;
8634
8655
 
8635
8656
  // src/hooks/pos/use-add-entity.ts
8636
- import { useMutation as useMutation57 } from "@tanstack/react-query";
8657
+ import { useMutation as useMutation58 } from "@tanstack/react-query";
8637
8658
  var useAddEntity = () => {
8638
8659
  const { addEntity } = usePosService();
8639
- return useMutation57({
8660
+ return useMutation58({
8640
8661
  mutationFn: addEntity
8641
8662
  });
8642
8663
  };
8643
8664
  var use_add_entity_default = useAddEntity;
8644
8665
 
8645
8666
  // src/hooks/pos/use-get-a-session.ts
8646
- import { useMutation as useMutation58 } from "@tanstack/react-query";
8667
+ import { useMutation as useMutation59 } from "@tanstack/react-query";
8647
8668
  var useGetASession = () => {
8648
8669
  const pos = usePosService();
8649
- return useMutation58({
8670
+ return useMutation59({
8650
8671
  mutationFn: pos.getASession
8651
8672
  });
8652
8673
  };
8653
8674
  var use_get_a_session_default = useGetASession;
8654
8675
 
8655
8676
  // src/hooks/pos/use-change-order-preparation-state.ts
8656
- import { useMutation as useMutation59 } from "@tanstack/react-query";
8677
+ import { useMutation as useMutation60 } from "@tanstack/react-query";
8657
8678
  var useChangeOrderPreparationState = () => {
8658
8679
  const pos = usePosService();
8659
- return useMutation59({
8680
+ return useMutation60({
8660
8681
  mutationFn: pos.changeOrderPreparationState
8661
8682
  });
8662
8683
  };
8663
8684
  var use_change_order_preparation_state_default = useChangeOrderPreparationState;
8664
8685
 
8665
8686
  // src/hooks/pos/use-check-payment.ts
8666
- import { useMutation as useMutation60 } from "@tanstack/react-query";
8687
+ import { useMutation as useMutation61 } from "@tanstack/react-query";
8667
8688
  var useCheckPayment = () => {
8668
8689
  const pos = usePosService();
8669
- return useMutation60({
8690
+ return useMutation61({
8670
8691
  mutationFn: pos.checkPayment
8671
8692
  });
8672
8693
  };
8673
8694
  var use_check_payment_default = useCheckPayment;
8674
8695
 
8675
8696
  // src/hooks/pos/use-create-e-invoice.ts
8676
- import { useMutation as useMutation61 } from "@tanstack/react-query";
8697
+ import { useMutation as useMutation62 } from "@tanstack/react-query";
8677
8698
  var useCreateEInvoice = () => {
8678
8699
  const pos = usePosService();
8679
- return useMutation61({
8700
+ return useMutation62({
8680
8701
  mutationFn: pos.createEInvoice
8681
8702
  });
8682
8703
  };
8683
8704
  var use_create_e_invoice_default = useCreateEInvoice;
8684
8705
 
8685
8706
  // src/hooks/pos/use-create-entity.ts
8686
- import { useMutation as useMutation62 } from "@tanstack/react-query";
8707
+ import { useMutation as useMutation63 } from "@tanstack/react-query";
8687
8708
  var useCreateEntity = () => {
8688
8709
  const pos = usePosService();
8689
- return useMutation62({
8710
+ return useMutation63({
8690
8711
  mutationFn: pos.createEntity
8691
8712
  });
8692
8713
  };
8693
8714
  var use_create_entity_default = useCreateEntity;
8694
8715
 
8695
8716
  // src/hooks/pos/use-create-pos-config.ts
8696
- import { useMutation as useMutation63 } from "@tanstack/react-query";
8717
+ import { useMutation as useMutation64 } from "@tanstack/react-query";
8697
8718
  var useCreatePosConfig = () => {
8698
8719
  const pos = usePosService();
8699
- return useMutation63({
8720
+ return useMutation64({
8700
8721
  mutationFn: pos.createPosConfig
8701
8722
  });
8702
8723
  };
8703
8724
  var use_create_pos_config_default = useCreatePosConfig;
8704
8725
 
8705
8726
  // src/hooks/pos/use-create-session.ts
8706
- import { useMutation as useMutation64 } from "@tanstack/react-query";
8727
+ import { useMutation as useMutation65 } from "@tanstack/react-query";
8707
8728
  var useCreateSession = () => {
8708
8729
  const pos = usePosService();
8709
- return useMutation64({
8730
+ return useMutation65({
8710
8731
  mutationFn: pos.createSession
8711
8732
  });
8712
8733
  };
8713
8734
  var use_create_session_default = useCreateSession;
8714
8735
 
8715
8736
  // src/hooks/pos/use-delete-entity.ts
8716
- import { useMutation as useMutation65 } from "@tanstack/react-query";
8737
+ import { useMutation as useMutation66 } from "@tanstack/react-query";
8717
8738
  var useDeleteEntity = () => {
8718
8739
  const pos = usePosService();
8719
- return useMutation65({
8740
+ return useMutation66({
8720
8741
  mutationFn: pos.deleteEntity
8721
8742
  });
8722
8743
  };
8723
8744
  var use_delete_entity_default = useDeleteEntity;
8724
8745
 
8725
8746
  // src/hooks/pos/use-generate-payment-qr-info.ts
8726
- import { useMutation as useMutation66 } from "@tanstack/react-query";
8747
+ import { useMutation as useMutation67 } from "@tanstack/react-query";
8727
8748
  var useGeneratePaymentQrInfo = () => {
8728
8749
  const pos = usePosService();
8729
- return useMutation66({
8750
+ return useMutation67({
8730
8751
  mutationFn: pos.generatePaymentQRInfo
8731
8752
  });
8732
8753
  };
8733
8754
  var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
8734
8755
 
8735
8756
  // src/hooks/pos/use-get-current-user.ts
8736
- import { useMutation as useMutation67 } from "@tanstack/react-query";
8757
+ import { useMutation as useMutation68 } from "@tanstack/react-query";
8737
8758
  var useGetCurrentUser = () => {
8738
8759
  const pos = usePosService();
8739
- return useMutation67({
8760
+ return useMutation68({
8740
8761
  mutationFn: pos.getCurrentUser
8741
8762
  });
8742
8763
  };
8743
8764
  var use_get_current_user_default = useGetCurrentUser;
8744
8765
 
8745
8766
  // src/hooks/pos/use-get-list.ts
8746
- import { useMutation as useMutation68 } from "@tanstack/react-query";
8767
+ import { useMutation as useMutation69 } from "@tanstack/react-query";
8747
8768
  var useGetList = () => {
8748
8769
  const pos = usePosService();
8749
- return useMutation68({
8770
+ return useMutation69({
8750
8771
  mutationFn: pos.getList
8751
8772
  });
8752
8773
  };
8753
8774
  var use_get_list_default = useGetList;
8754
8775
 
8755
8776
  // src/hooks/pos/use-get-order-line.ts
8756
- import { useMutation as useMutation69 } from "@tanstack/react-query";
8777
+ import { useMutation as useMutation70 } from "@tanstack/react-query";
8757
8778
  var useGetOrderLine = () => {
8758
8779
  const pos = usePosService();
8759
- return useMutation69({
8780
+ return useMutation70({
8760
8781
  mutationFn: pos.getOrderLine
8761
8782
  });
8762
8783
  };
8763
8784
  var use_get_order_line_default = useGetOrderLine;
8764
8785
 
8765
8786
  // src/hooks/pos/use-get-pin-code.ts
8766
- import { useMutation as useMutation70 } from "@tanstack/react-query";
8787
+ import { useMutation as useMutation71 } from "@tanstack/react-query";
8767
8788
  var useGetPinCode = () => {
8768
8789
  const pos = usePosService();
8769
- return useMutation70({
8790
+ return useMutation71({
8770
8791
  mutationFn: pos.getPinCode
8771
8792
  });
8772
8793
  };
8773
8794
  var use_get_pin_code_default = useGetPinCode;
8774
8795
 
8775
8796
  // src/hooks/pos/use-get-pos.ts
8776
- import { useMutation as useMutation71 } from "@tanstack/react-query";
8797
+ import { useMutation as useMutation72 } from "@tanstack/react-query";
8777
8798
  var useGetPos = () => {
8778
8799
  const pos = usePosService();
8779
- return useMutation71({
8800
+ return useMutation72({
8780
8801
  mutationFn: pos.getPOS
8781
8802
  });
8782
8803
  };
8783
8804
  var use_get_pos_default = useGetPos;
8784
8805
 
8785
8806
  // src/hooks/pos/use-get-preparation-display-data.ts
8786
- import { useMutation as useMutation72 } from "@tanstack/react-query";
8807
+ import { useMutation as useMutation73 } from "@tanstack/react-query";
8787
8808
  var useGetPreparationDisplayData = () => {
8788
8809
  const pos = usePosService();
8789
- return useMutation72({
8810
+ return useMutation73({
8790
8811
  mutationFn: pos.getPreparationDisplayData
8791
8812
  });
8792
8813
  };
8793
8814
  var use_get_preparation_display_data_default = useGetPreparationDisplayData;
8794
8815
 
8795
8816
  // src/hooks/pos/use-get-product-image.ts
8796
- import { useMutation as useMutation73 } from "@tanstack/react-query";
8817
+ import { useMutation as useMutation74 } from "@tanstack/react-query";
8797
8818
  var useGetProductImage = () => {
8798
8819
  const pos = usePosService();
8799
- return useMutation73({
8820
+ return useMutation74({
8800
8821
  mutationFn: pos.getProductImage
8801
8822
  });
8802
8823
  };
8803
8824
  var use_get_product_image_default = useGetProductImage;
8804
8825
 
8805
8826
  // src/hooks/pos/use-handle-close-session.ts
8806
- import { useMutation as useMutation74 } from "@tanstack/react-query";
8827
+ import { useMutation as useMutation75 } from "@tanstack/react-query";
8807
8828
  var useHandleCloseSession = () => {
8808
8829
  const pos = usePosService();
8809
- return useMutation74({
8830
+ return useMutation75({
8810
8831
  mutationFn: pos.handleCloseSession
8811
8832
  });
8812
8833
  };
8813
8834
  var use_handle_close_session_default = useHandleCloseSession;
8814
8835
 
8815
8836
  // src/hooks/pos/use-handle-closing-detail-session.ts
8816
- import { useMutation as useMutation75 } from "@tanstack/react-query";
8837
+ import { useMutation as useMutation76 } from "@tanstack/react-query";
8817
8838
  var useHandleClosingDetailSession = () => {
8818
8839
  const pos = usePosService();
8819
- return useMutation75({
8840
+ return useMutation76({
8820
8841
  mutationFn: pos.handleClosingDetailSession
8821
8842
  });
8822
8843
  };
8823
8844
  var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
8824
8845
 
8825
8846
  // src/hooks/pos/use-handle-closing-session.ts
8826
- import { useMutation as useMutation76 } from "@tanstack/react-query";
8847
+ import { useMutation as useMutation77 } from "@tanstack/react-query";
8827
8848
  var useHandleClosingSession = () => {
8828
8849
  const pos = usePosService();
8829
- return useMutation76({
8850
+ return useMutation77({
8830
8851
  mutationFn: pos.handleClosingSession
8831
8852
  });
8832
8853
  };
8833
8854
  var use_handle_closing_session_default = useHandleClosingSession;
8834
8855
 
8835
8856
  // src/hooks/pos/use-load-data-pos-session.ts
8836
- import { useMutation as useMutation77 } from "@tanstack/react-query";
8857
+ import { useMutation as useMutation78 } from "@tanstack/react-query";
8837
8858
  var useLoadDataPosSession = () => {
8838
8859
  const pos = usePosService();
8839
8860
  const { env } = useEnv();
8840
- return useMutation77({
8861
+ return useMutation78({
8841
8862
  mutationFn: env.isSupaMode ? pos.loadDataPosSessionSupabase : pos.loadDataPosSession
8842
8863
  });
8843
8864
  };
8844
8865
  var use_load_data_pos_session_default = useLoadDataPosSession;
8845
8866
 
8846
8867
  // src/hooks/pos/use-manage-onchange.ts
8847
- import { useMutation as useMutation78 } from "@tanstack/react-query";
8868
+ import { useMutation as useMutation79 } from "@tanstack/react-query";
8848
8869
  var useManageOnChange = () => {
8849
8870
  const pos = usePosService();
8850
- return useMutation78({
8871
+ return useMutation79({
8851
8872
  mutationFn: pos.manageOnChange
8852
8873
  });
8853
8874
  };
8854
8875
  var use_manage_onchange_default = useManageOnChange;
8855
8876
 
8856
8877
  // src/hooks/pos/use-manage-session.ts
8857
- import { useMutation as useMutation79 } from "@tanstack/react-query";
8878
+ import { useMutation as useMutation80 } from "@tanstack/react-query";
8858
8879
  var useManageSession = () => {
8859
8880
  const pos = usePosService();
8860
- return useMutation79({
8881
+ return useMutation80({
8861
8882
  mutationFn: pos.manageSession
8862
8883
  });
8863
8884
  };
8864
8885
  var use_manage_session_default = useManageSession;
8865
8886
 
8866
8887
  // src/hooks/pos/use-process-order.ts
8867
- import { useMutation as useMutation80 } from "@tanstack/react-query";
8888
+ import { useMutation as useMutation81 } from "@tanstack/react-query";
8868
8889
  var useProcessOrder = () => {
8869
8890
  const pos = usePosService();
8870
- return useMutation80({
8891
+ return useMutation81({
8871
8892
  mutationFn: pos.processOrder
8872
8893
  });
8873
8894
  };
8874
8895
  var use_process_order_default = useProcessOrder;
8875
8896
 
8876
8897
  // src/hooks/pos/use-save-pin-code.ts
8877
- import { useMutation as useMutation81 } from "@tanstack/react-query";
8898
+ import { useMutation as useMutation82 } from "@tanstack/react-query";
8878
8899
  var useSavePinCode = () => {
8879
8900
  const pos = usePosService();
8880
- return useMutation81({
8901
+ return useMutation82({
8881
8902
  mutationFn: pos.savePinCode
8882
8903
  });
8883
8904
  };
8884
8905
  var use_save_pin_code_default = useSavePinCode;
8885
8906
 
8886
8907
  // src/hooks/pos/use-search-journal.ts
8887
- import { useMutation as useMutation82 } from "@tanstack/react-query";
8908
+ import { useMutation as useMutation83 } from "@tanstack/react-query";
8888
8909
  var useSearchJournal = () => {
8889
8910
  const pos = usePosService();
8890
- return useMutation82({
8911
+ return useMutation83({
8891
8912
  mutationFn: pos.searchJournal
8892
8913
  });
8893
8914
  };
8894
8915
  var use_search_journal_default = useSearchJournal;
8895
8916
 
8896
8917
  // src/hooks/pos/use-update-closed-session.ts
8897
- import { useMutation as useMutation83 } from "@tanstack/react-query";
8918
+ import { useMutation as useMutation84 } from "@tanstack/react-query";
8898
8919
  var useUpdateClosedSession = () => {
8899
8920
  const pos = usePosService();
8900
- return useMutation83({
8921
+ return useMutation84({
8901
8922
  mutationFn: pos.updateClosedSession
8902
8923
  });
8903
8924
  };
8904
8925
  var use_update_closed_session_default = useUpdateClosedSession;
8905
8926
 
8906
8927
  // src/hooks/pos/use-update-entity.ts
8907
- import { useMutation as useMutation84 } from "@tanstack/react-query";
8928
+ import { useMutation as useMutation85 } from "@tanstack/react-query";
8908
8929
  var useUpdateEntity = () => {
8909
8930
  const pos = usePosService();
8910
- return useMutation84({
8931
+ return useMutation85({
8911
8932
  mutationFn: pos.updateEntity
8912
8933
  });
8913
8934
  };
8914
8935
  var use_update_entity_default = useUpdateEntity;
8915
8936
 
8916
8937
  // src/hooks/pos/use-update-order-status.ts
8917
- import { useMutation as useMutation85 } from "@tanstack/react-query";
8938
+ import { useMutation as useMutation86 } from "@tanstack/react-query";
8918
8939
  var useUpdateOrderStatus = () => {
8919
8940
  const pos = usePosService();
8920
- return useMutation85({
8941
+ return useMutation86({
8921
8942
  mutationFn: pos.updateOrderStatus
8922
8943
  });
8923
8944
  };
8924
8945
  var use_update_order_status_default = useUpdateOrderStatus;
8925
8946
 
8926
8947
  // src/hooks/pos/use-complete-current-stage.ts
8927
- import { useMutation as useMutation86 } from "@tanstack/react-query";
8948
+ import { useMutation as useMutation87 } from "@tanstack/react-query";
8928
8949
  var useCompleteCurrentStage = () => {
8929
8950
  const pos = usePosService();
8930
- return useMutation86({
8951
+ return useMutation87({
8931
8952
  mutationFn: pos.completeCurrentStage
8932
8953
  });
8933
8954
  };