@flipdish/portal-library 7.12.1 → 8.0.0
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/README.md +22 -4
- package/dist/components/atoms/Tag/index.cjs.js +1 -1
- package/dist/components/atoms/Tag/index.cjs.js.map +1 -1
- package/dist/components/atoms/Tag/index.d.ts +3 -7
- package/dist/components/atoms/Tag/index.js +1 -1
- package/dist/components/atoms/Tag/index.js.map +1 -1
- package/dist/components/atoms/TextArea/index.cjs.js.map +1 -1
- package/dist/components/atoms/TextArea/index.d.ts +1 -1
- package/dist/components/atoms/TextArea/index.js.map +1 -1
- package/dist/components/atoms/TextField/index.cjs.js +1 -1
- package/dist/components/atoms/TextField/index.cjs.js.map +1 -1
- package/dist/components/atoms/TextField/index.d.ts +5 -22
- package/dist/components/atoms/TextField/index.js +1 -1
- package/dist/components/atoms/TextField/index.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/index.cjs.js +1 -1
- package/dist/components/molecules/AlertGlobal/index.cjs.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/index.d.ts +1 -8
- package/dist/components/molecules/AlertGlobal/index.js +1 -1
- package/dist/components/molecules/AlertGlobal/index.js.map +1 -1
- package/dist/components/molecules/Autocomplete/index.cjs.js +1 -1
- package/dist/components/molecules/Autocomplete/index.cjs.js.map +1 -1
- package/dist/components/molecules/Autocomplete/index.d.ts +1 -16
- package/dist/components/molecules/Autocomplete/index.js +1 -1
- package/dist/components/molecules/Autocomplete/index.js.map +1 -1
- package/dist/components/molecules/Pagination/index.cjs.js +1 -1
- package/dist/components/molecules/Pagination/index.cjs.js.map +1 -1
- package/dist/components/molecules/Pagination/index.d.ts +1 -12
- package/dist/components/molecules/Pagination/index.js +1 -1
- package/dist/components/molecules/Pagination/index.js.map +1 -1
- package/dist/components/molecules/QuantitySelector/index.cjs.js +1 -1
- package/dist/components/molecules/QuantitySelector/index.cjs.js.map +1 -1
- package/dist/components/molecules/QuantitySelector/index.d.ts +1 -7
- package/dist/components/molecules/QuantitySelector/index.js +1 -1
- package/dist/components/molecules/QuantitySelector/index.js.map +1 -1
- package/dist/components/molecules/Rating/index.cjs.js +1 -1
- package/dist/components/molecules/Rating/index.cjs.js.map +1 -1
- package/dist/components/molecules/Rating/index.d.ts +0 -15
- package/dist/components/molecules/Rating/index.js +1 -1
- package/dist/components/molecules/Rating/index.js.map +1 -1
- package/dist/components/molecules/SearchInput/index.cjs.js +1 -1
- package/dist/components/molecules/SearchInput/index.cjs.js.map +1 -1
- package/dist/components/molecules/SearchInput/index.d.ts +1 -5
- package/dist/components/molecules/SearchInput/index.js +1 -1
- package/dist/components/molecules/SearchInput/index.js.map +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js.map +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.js.map +1 -1
- package/dist/components/organisms/Heading/Heading.cjs.js +1 -1
- package/dist/components/organisms/Heading/Heading.cjs.js.map +1 -1
- package/dist/components/organisms/Heading/Heading.d.ts +0 -1
- package/dist/components/organisms/Heading/Heading.js +1 -1
- package/dist/components/organisms/Heading/Heading.js.map +1 -1
- package/dist/localization/de.json.cjs.js +1 -1
- package/dist/localization/de.json.js +1 -1
- package/dist/localization/en-US.json.cjs.js +1 -1
- package/dist/localization/en-US.json.js +1 -1
- package/dist/localization/en.json.cjs.js +1 -1
- package/dist/localization/en.json.d.ts +116 -1
- package/dist/localization/en.json.js +1 -1
- package/dist/localization/es-MX.json.cjs.js +1 -1
- package/dist/localization/es-MX.json.js +1 -1
- package/dist/localization/es.json.cjs.js +1 -1
- package/dist/localization/es.json.js +1 -1
- package/dist/localization/fr.json.cjs.js +1 -1
- package/dist/localization/fr.json.js +1 -1
- package/dist/localization/it.json.cjs.js +1 -1
- package/dist/localization/it.json.js +1 -1
- package/dist/localization/nl.json.cjs.js +1 -1
- package/dist/localization/nl.json.js +1 -1
- package/dist/localization/pt.json.cjs.js +1 -1
- package/dist/localization/pt.json.js +1 -1
- package/dist/providers/TranslationProvider.cjs.js.map +1 -1
- package/dist/providers/TranslationProvider.d.ts +6 -2
- package/dist/providers/TranslationProvider.js +1 -1
- package/dist/providers/TranslationProvider.js.map +1 -1
- package/dist/utilities/renderUtilities.cjs.js +1 -1
- package/dist/utilities/renderUtilities.cjs.js.map +1 -1
- package/dist/utilities/renderUtilities.d.ts +14 -1
- package/dist/utilities/renderUtilities.js +1 -1
- package/dist/utilities/renderUtilities.js.map +1 -1
- package/package.json +1 -1
|
@@ -61,6 +61,98 @@ declare namespace Remove_file {
|
|
|
61
61
|
let value_15: string;
|
|
62
62
|
export { value_15 as value };
|
|
63
63
|
}
|
|
64
|
+
declare namespace Clear_selection {
|
|
65
|
+
let value_16: string;
|
|
66
|
+
export { value_16 as value };
|
|
67
|
+
}
|
|
68
|
+
declare namespace Loading {
|
|
69
|
+
let value_17: string;
|
|
70
|
+
export { value_17 as value };
|
|
71
|
+
}
|
|
72
|
+
declare namespace No_options {
|
|
73
|
+
let value_18: string;
|
|
74
|
+
export { value_18 as value };
|
|
75
|
+
}
|
|
76
|
+
declare namespace Open_popup {
|
|
77
|
+
let value_19: string;
|
|
78
|
+
export { value_19 as value };
|
|
79
|
+
}
|
|
80
|
+
declare namespace Press_hotkey_to_focus_search {
|
|
81
|
+
let value_20: string;
|
|
82
|
+
export { value_20 as value };
|
|
83
|
+
}
|
|
84
|
+
declare namespace Next {
|
|
85
|
+
let value_21: string;
|
|
86
|
+
export { value_21 as value };
|
|
87
|
+
}
|
|
88
|
+
declare namespace page_of_count {
|
|
89
|
+
let value_22: string;
|
|
90
|
+
export { value_22 as value };
|
|
91
|
+
}
|
|
92
|
+
declare namespace Previous {
|
|
93
|
+
let value_23: string;
|
|
94
|
+
export { value_23 as value };
|
|
95
|
+
}
|
|
96
|
+
declare namespace Showing_start_end_of_total {
|
|
97
|
+
let value_24: string;
|
|
98
|
+
export { value_24 as value };
|
|
99
|
+
}
|
|
100
|
+
declare namespace Previous_page {
|
|
101
|
+
let value_25: string;
|
|
102
|
+
export { value_25 as value };
|
|
103
|
+
}
|
|
104
|
+
declare namespace Next_page {
|
|
105
|
+
let value_26: string;
|
|
106
|
+
export { value_26 as value };
|
|
107
|
+
}
|
|
108
|
+
declare namespace Page_number {
|
|
109
|
+
let value_27: string;
|
|
110
|
+
export { value_27 as value };
|
|
111
|
+
}
|
|
112
|
+
declare namespace Selected_page_number {
|
|
113
|
+
let value_28: string;
|
|
114
|
+
export { value_28 as value };
|
|
115
|
+
}
|
|
116
|
+
declare namespace number_out_of_total_hearts {
|
|
117
|
+
let value_29: string;
|
|
118
|
+
export { value_29 as value };
|
|
119
|
+
}
|
|
120
|
+
declare namespace number_out_of_total_stars {
|
|
121
|
+
let value_30: string;
|
|
122
|
+
export { value_30 as value };
|
|
123
|
+
}
|
|
124
|
+
declare namespace From {
|
|
125
|
+
let value_31: string;
|
|
126
|
+
export { value_31 as value };
|
|
127
|
+
}
|
|
128
|
+
declare namespace total_reviews {
|
|
129
|
+
let value_32: string;
|
|
130
|
+
export { value_32 as value };
|
|
131
|
+
}
|
|
132
|
+
declare namespace Close {
|
|
133
|
+
let value_33: string;
|
|
134
|
+
export { value_33 as value };
|
|
135
|
+
}
|
|
136
|
+
declare namespace Decrease_quantity {
|
|
137
|
+
let value_34: string;
|
|
138
|
+
export { value_34 as value };
|
|
139
|
+
}
|
|
140
|
+
declare namespace Increase_quantity {
|
|
141
|
+
let value_35: string;
|
|
142
|
+
export { value_35 as value };
|
|
143
|
+
}
|
|
144
|
+
declare namespace Quantity {
|
|
145
|
+
let value_36: string;
|
|
146
|
+
export { value_36 as value };
|
|
147
|
+
}
|
|
148
|
+
declare namespace Dismiss_dismissible {
|
|
149
|
+
let value_37: string;
|
|
150
|
+
export { value_37 as value };
|
|
151
|
+
}
|
|
152
|
+
declare namespace one_review {
|
|
153
|
+
let value_38: string;
|
|
154
|
+
export { value_38 as value };
|
|
155
|
+
}
|
|
64
156
|
|
|
65
157
|
|
|
66
158
|
declare const export_default: {
|
|
@@ -80,6 +172,29 @@ declare const export_default: {
|
|
|
80
172
|
File_size_is_too_large: typeof File_size_is_too_large;
|
|
81
173
|
Too_many_files_selected: typeof Too_many_files_selected;
|
|
82
174
|
Remove_file: typeof Remove_file;
|
|
175
|
+
Clear_selection: typeof Clear_selection;
|
|
176
|
+
Loading: typeof Loading;
|
|
177
|
+
No_options: typeof No_options;
|
|
178
|
+
Open_popup: typeof Open_popup;
|
|
179
|
+
Press_hotkey_to_focus_search: typeof Press_hotkey_to_focus_search;
|
|
180
|
+
Next: typeof Next;
|
|
181
|
+
page_of_count: typeof page_of_count;
|
|
182
|
+
Previous: typeof Previous;
|
|
183
|
+
Showing_start_end_of_total: typeof Showing_start_end_of_total;
|
|
184
|
+
Previous_page: typeof Previous_page;
|
|
185
|
+
Next_page: typeof Next_page;
|
|
186
|
+
Page_number: typeof Page_number;
|
|
187
|
+
Selected_page_number: typeof Selected_page_number;
|
|
188
|
+
number_out_of_total_hearts: typeof number_out_of_total_hearts;
|
|
189
|
+
number_out_of_total_stars: typeof number_out_of_total_stars;
|
|
190
|
+
From: typeof From;
|
|
191
|
+
total_reviews: typeof total_reviews;
|
|
192
|
+
Close: typeof Close;
|
|
193
|
+
Decrease_quantity: typeof Decrease_quantity;
|
|
194
|
+
Increase_quantity: typeof Increase_quantity;
|
|
195
|
+
Quantity: typeof Quantity;
|
|
196
|
+
Dismiss_dismissible: typeof Dismiss_dismissible;
|
|
197
|
+
one_review: typeof one_review;
|
|
83
198
|
};
|
|
84
199
|
|
|
85
|
-
export { Browse_files, Cancel, Drag_and_drop_files_here, Drop_files_here, File_size_is_too_large, File_type_is_not_allowed, Hide_password, Library, Remove_file, Save, Select, Select_Images, Show_password, Too_many_files_selected, Upload, Upload_Images, export_default as default };
|
|
200
|
+
export { Browse_files, Cancel, Clear_selection, Close, Decrease_quantity, Dismiss_dismissible, Drag_and_drop_files_here, Drop_files_here, File_size_is_too_large, File_type_is_not_allowed, From, Hide_password, Increase_quantity, Library, Loading, Next, Next_page, No_options, Open_popup, Page_number, Press_hotkey_to_focus_search, Previous, Previous_page, Quantity, Remove_file, Save, Select, Select_Images, Selected_page_number, Show_password, Showing_start_end_of_total, Too_many_files_selected, Upload, Upload_Images, export_default as default, number_out_of_total_hearts, number_out_of_total_stars, one_review, page_of_count, total_reviews };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={value:"Show password"},
|
|
1
|
+
var e={value:"Show password"},a={value:"Hide password"},l={value:"Select Images"},o={value:"Upload Images"},s={value:"Upload"},t={value:"Library"},u={value:"Cancel"},i={value:"Save"},r={value:"Select"},_={value:"Drop files here"},v={value:"Drag and drop files here"},n={value:"Browse files"},p={value:"File type is not allowed. Allowed types: {allowedFileTypes}"},d={value:"File size is too large. Maximum size: {maxFileSize}"},m={value:"Too many files selected. Maximum allowed: {maxFiles}"},c={value:"Remove file"},g={value:"Clear selection"},f={value:"Loading"},w={value:"No options"},y={value:"Open popup"},h={value:"Press {hotkey} to focus search"},S={value:"Next"},b={value:"{page} of {count}"},x={value:"Previous"},F={value:"Showing {start} - {end} of {total}"},D={value:"Previous page"},P={value:"Next page"},C={value:"Page {number}"},I={value:"Selected page {number}"},N={value:"{number} out of {total} hearts"},q={value:"{number} out of {total} stars"},z={value:"From"},L={value:"{total} reviews"},U={value:"Close"},T={value:"Decrease quantity"},k={value:"Increase quantity"},B={value:"Quantity"},H={value:"Dismiss {dismissible}"},M={value:"1 review"},O={Show_password:e,Hide_password:a,Select_Images:l,Upload_Images:o,Upload:s,Library:t,Cancel:u,Save:i,Select:r,Drop_files_here:_,Drag_and_drop_files_here:v,Browse_files:n,File_type_is_not_allowed:p,File_size_is_too_large:d,Too_many_files_selected:m,Remove_file:c,Clear_selection:g,Loading:f,No_options:w,Open_popup:y,Press_hotkey_to_focus_search:h,Next:S,page_of_count:b,Previous:x,Showing_start_end_of_total:F,Previous_page:D,Next_page:P,Page_number:C,Selected_page_number:I,number_out_of_total_hearts:N,number_out_of_total_stars:q,From:z,total_reviews:L,Close:U,Decrease_quantity:T,Increase_quantity:k,Quantity:B,Dismiss_dismissible:H,one_review:M};export{n as Browse_files,u as Cancel,g as Clear_selection,U as Close,T as Decrease_quantity,H as Dismiss_dismissible,v as Drag_and_drop_files_here,_ as Drop_files_here,d as File_size_is_too_large,p as File_type_is_not_allowed,z as From,a as Hide_password,k as Increase_quantity,t as Library,f as Loading,S as Next,P as Next_page,w as No_options,y as Open_popup,C as Page_number,h as Press_hotkey_to_focus_search,x as Previous,D as Previous_page,B as Quantity,c as Remove_file,i as Save,r as Select,l as Select_Images,I as Selected_page_number,e as Show_password,F as Showing_start_end_of_total,m as Too_many_files_selected,s as Upload,o as Upload_Images,O as default,N as number_out_of_total_hearts,q as number_out_of_total_stars,M as one_review,b as page_of_count,L as total_reviews};
|
|
2
2
|
//# sourceMappingURL=en.json.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostrar contraseña"},a={value:"Ocultar contraseña"},o={value:"Seleccionar imágenes"},r={value:"Cargar imágenes"},s={value:"Cargar"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostrar contraseña"},a={value:"Ocultar contraseña"},o={value:"Seleccionar imágenes"},r={value:"Cargar imágenes"},s={value:"Cargar"},t={value:"Galería"},l={value:"Cancelar"},i={value:"Guardar"},_={value:"Seleccionar"},u={value:"Suelta tus archivos aquí"},p={value:"Arrastra tus archivos aquí"},n={value:"Explorar archivos"},v={value:"Tipo de archivo no permitido. Tipos permitidos: {allowedFileTypes}"},d={value:"Tamaño de archivo demasiado grande. Tamaño máximo: {maxFileSize}"},c={value:"Demasiados archivos seleccionados. Máximo permitido: {maxFiles}"},x={value:"Eliminar archivo"},m={value:"Borrar selección"},g={value:"Cargando"},f={value:"Sin opciones"},h={value:"Abrir ventana emergente"},b={value:"Presiona {hotkey} para enfocar la búsqueda"},S={value:"Siguiente"},w={value:"{page} de {count}"},y={value:"Anterior"},P={value:"Mostrando {start} - {end} de {total}"},C={value:"Página anterior"},D={value:"Página siguiente"},F={value:"Página {número}"},q={value:"Página seleccionada {number}"},T={value:"{number} de {total} corazones"},I={value:"{number} de {total} estrellas"},N={value:"Desde"},z={value:"{total} reseñas"},A={value:"Cerrar"},L={value:"Disminuir cantidad"},M={value:"Aumentar cantidad"},O={value:"Cantidad"},U={value:"Descartar {dismissible}"},k={value:"1 reseña"},B={Show_password:e,Hide_password:a,Select_Images:o,Upload_Images:r,Upload:s,Library:t,Cancel:l,Save:i,Select:_,Drop_files_here:u,Drag_and_drop_files_here:p,Browse_files:n,File_type_is_not_allowed:v,File_size_is_too_large:d,Too_many_files_selected:c,Remove_file:x,Clear_selection:m,Loading:g,No_options:f,Open_popup:h,Press_hotkey_to_focus_search:b,Next:S,page_of_count:w,Previous:y,Showing_start_end_of_total:P,Previous_page:C,Next_page:D,Page_number:F,Selected_page_number:q,number_out_of_total_hearts:T,number_out_of_total_stars:I,From:N,total_reviews:z,Close:A,Decrease_quantity:L,Increase_quantity:M,Quantity:O,Dismiss_dismissible:U,one_review:k};exports.Browse_files=n,exports.Cancel=l,exports.Clear_selection=m,exports.Close=A,exports.Decrease_quantity=L,exports.Dismiss_dismissible=U,exports.Drag_and_drop_files_here=p,exports.Drop_files_here=u,exports.File_size_is_too_large=d,exports.File_type_is_not_allowed=v,exports.From=N,exports.Hide_password=a,exports.Increase_quantity=M,exports.Library=t,exports.Loading=g,exports.Next=S,exports.Next_page=D,exports.No_options=f,exports.Open_popup=h,exports.Page_number=F,exports.Press_hotkey_to_focus_search=b,exports.Previous=y,exports.Previous_page=C,exports.Quantity=O,exports.Remove_file=x,exports.Save=i,exports.Select=_,exports.Select_Images=o,exports.Selected_page_number=q,exports.Show_password=e,exports.Showing_start_end_of_total=P,exports.Too_many_files_selected=c,exports.Upload=s,exports.Upload_Images=r,exports.default=B,exports.number_out_of_total_hearts=T,exports.number_out_of_total_stars=I,exports.one_review=k,exports.page_of_count=w,exports.total_reviews=z;
|
|
2
2
|
//# sourceMappingURL=es-MX.json.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e={value:"Mostrar contraseña"},a={value:"Ocultar contraseña"},r={value:"Seleccionar imágenes"},o={value:"Cargar imágenes"},l={value:"Cargar"},i={value:"Galería"},s={value:"Cancelar"},t={value:"Guardar"},u={value:"Seleccionar"},n={value:"Suelta tus archivos aquí"},v={value:"Arrastra tus archivos aquí"},_={value:"Explorar archivos"},d={value:"Tipo de archivo no permitido. Tipos permitidos: {allowedFileTypes}"},c={value:"Tamaño de archivo demasiado grande. Tamaño máximo: {maxFileSize}"},m={value:"Demasiados archivos seleccionados. Máximo permitido: {maxFiles}"},p={value:"Eliminar archivo"},g={value:"Borrar selección"},h={value:"Cargando"},b={value:"Sin opciones"},f={value:"Abrir ventana emergente"},S={value:"Presiona {hotkey} para enfocar la búsqueda"},w={value:"Siguiente"},y={value:"{page} de {count}"},C={value:"Anterior"},P={value:"Mostrando {start} - {end} de {total}"},x={value:"Página anterior"},D={value:"Página siguiente"},F={value:"Página {número}"},T={value:"Página seleccionada {number}"},q={value:"{number} de {total} corazones"},A={value:"{number} de {total} estrellas"},z={value:"Desde"},I={value:"{total} reseñas"},M={value:"Cerrar"},N={value:"Disminuir cantidad"},k={value:"Aumentar cantidad"},B={value:"Cantidad"},E={value:"Descartar {dismissible}"},G={value:"1 reseña"},L={Show_password:e,Hide_password:a,Select_Images:r,Upload_Images:o,Upload:l,Library:i,Cancel:s,Save:t,Select:u,Drop_files_here:n,Drag_and_drop_files_here:v,Browse_files:_,File_type_is_not_allowed:d,File_size_is_too_large:c,Too_many_files_selected:m,Remove_file:p,Clear_selection:g,Loading:h,No_options:b,Open_popup:f,Press_hotkey_to_focus_search:S,Next:w,page_of_count:y,Previous:C,Showing_start_end_of_total:P,Previous_page:x,Next_page:D,Page_number:F,Selected_page_number:T,number_out_of_total_hearts:q,number_out_of_total_stars:A,From:z,total_reviews:I,Close:M,Decrease_quantity:N,Increase_quantity:k,Quantity:B,Dismiss_dismissible:E,one_review:G};export{_ as Browse_files,s as Cancel,g as Clear_selection,M as Close,N as Decrease_quantity,E as Dismiss_dismissible,v as Drag_and_drop_files_here,n as Drop_files_here,c as File_size_is_too_large,d as File_type_is_not_allowed,z as From,a as Hide_password,k as Increase_quantity,i as Library,h as Loading,w as Next,D as Next_page,b as No_options,f as Open_popup,F as Page_number,S as Press_hotkey_to_focus_search,C as Previous,x as Previous_page,B as Quantity,p as Remove_file,t as Save,u as Select,r as Select_Images,T as Selected_page_number,e as Show_password,P as Showing_start_end_of_total,m as Too_many_files_selected,l as Upload,o as Upload_Images,L as default,q as number_out_of_total_hearts,A as number_out_of_total_stars,G as one_review,y as page_of_count,I as total_reviews};
|
|
2
2
|
//# sourceMappingURL=es-MX.json.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostrar contraseña"},a={value:"Ocultar contraseña"},o={value:"Seleccionar imágenes"},r={value:"Cargar imágenes"},s={value:"Cargar"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostrar contraseña"},a={value:"Ocultar contraseña"},o={value:"Seleccionar imágenes"},r={value:"Cargar imágenes"},s={value:"Cargar"},t={value:"Galería"},l={value:"Cancelar"},i={value:"Guardar"},_={value:"Seleccionar"},u={value:"Suelta tus archivos aquí"},p={value:"Arrastra tus archivos aquí"},n={value:"Explorar archivos"},v={value:"Tipo de archivo no permitido. Tipos permitidos: {allowedFileTypes}"},d={value:"Tamaño de archivo demasiado grande. Tamaño máximo: {maxFileSize}"},c={value:"Demasiados archivos seleccionados. Máximo permitido: {maxFiles}"},x={value:"Eliminar archivo"},m={value:"Borrar selección"},g={value:"Cargando"},f={value:"Sin opciones"},h={value:"Abrir ventana emergente"},b={value:"Presiona {hotkey} para enfocar la búsqueda"},S={value:"Siguiente"},w={value:"{page} de {count}"},y={value:"Anterior"},P={value:"Mostrando {start} - {end} de {total}"},C={value:"Página anterior"},D={value:"Página siguiente"},F={value:"Página {número}"},q={value:"Página seleccionada {number}"},T={value:"{number} de {total} corazones"},I={value:"{number} de {total} estrellas"},N={value:"Desde"},z={value:"{total} reseñas"},A={value:"Cerrar"},L={value:"Disminuir cantidad"},M={value:"Aumentar cantidad"},O={value:"Cantidad"},U={value:"Descartar {dismissible}"},k={value:"1 reseña"},B={Show_password:e,Hide_password:a,Select_Images:o,Upload_Images:r,Upload:s,Library:t,Cancel:l,Save:i,Select:_,Drop_files_here:u,Drag_and_drop_files_here:p,Browse_files:n,File_type_is_not_allowed:v,File_size_is_too_large:d,Too_many_files_selected:c,Remove_file:x,Clear_selection:m,Loading:g,No_options:f,Open_popup:h,Press_hotkey_to_focus_search:b,Next:S,page_of_count:w,Previous:y,Showing_start_end_of_total:P,Previous_page:C,Next_page:D,Page_number:F,Selected_page_number:q,number_out_of_total_hearts:T,number_out_of_total_stars:I,From:N,total_reviews:z,Close:A,Decrease_quantity:L,Increase_quantity:M,Quantity:O,Dismiss_dismissible:U,one_review:k};exports.Browse_files=n,exports.Cancel=l,exports.Clear_selection=m,exports.Close=A,exports.Decrease_quantity=L,exports.Dismiss_dismissible=U,exports.Drag_and_drop_files_here=p,exports.Drop_files_here=u,exports.File_size_is_too_large=d,exports.File_type_is_not_allowed=v,exports.From=N,exports.Hide_password=a,exports.Increase_quantity=M,exports.Library=t,exports.Loading=g,exports.Next=S,exports.Next_page=D,exports.No_options=f,exports.Open_popup=h,exports.Page_number=F,exports.Press_hotkey_to_focus_search=b,exports.Previous=y,exports.Previous_page=C,exports.Quantity=O,exports.Remove_file=x,exports.Save=i,exports.Select=_,exports.Select_Images=o,exports.Selected_page_number=q,exports.Show_password=e,exports.Showing_start_end_of_total=P,exports.Too_many_files_selected=c,exports.Upload=s,exports.Upload_Images=r,exports.default=B,exports.number_out_of_total_hearts=T,exports.number_out_of_total_stars=I,exports.one_review=k,exports.page_of_count=w,exports.total_reviews=z;
|
|
2
2
|
//# sourceMappingURL=es.json.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e={value:"Mostrar contraseña"},a={value:"Ocultar contraseña"},r={value:"Seleccionar imágenes"},o={value:"Cargar imágenes"},l={value:"Cargar"},i={value:"Galería"},s={value:"Cancelar"},t={value:"Guardar"},u={value:"Seleccionar"},n={value:"Suelta tus archivos aquí"},v={value:"Arrastra tus archivos aquí"},_={value:"Explorar archivos"},d={value:"Tipo de archivo no permitido. Tipos permitidos: {allowedFileTypes}"},c={value:"Tamaño de archivo demasiado grande. Tamaño máximo: {maxFileSize}"},m={value:"Demasiados archivos seleccionados. Máximo permitido: {maxFiles}"},p={value:"Eliminar archivo"},g={value:"Borrar selección"},h={value:"Cargando"},b={value:"Sin opciones"},f={value:"Abrir ventana emergente"},S={value:"Presiona {hotkey} para enfocar la búsqueda"},w={value:"Siguiente"},y={value:"{page} de {count}"},C={value:"Anterior"},P={value:"Mostrando {start} - {end} de {total}"},x={value:"Página anterior"},D={value:"Página siguiente"},F={value:"Página {número}"},T={value:"Página seleccionada {number}"},q={value:"{number} de {total} corazones"},A={value:"{number} de {total} estrellas"},z={value:"Desde"},I={value:"{total} reseñas"},M={value:"Cerrar"},N={value:"Disminuir cantidad"},k={value:"Aumentar cantidad"},B={value:"Cantidad"},E={value:"Descartar {dismissible}"},G={value:"1 reseña"},L={Show_password:e,Hide_password:a,Select_Images:r,Upload_Images:o,Upload:l,Library:i,Cancel:s,Save:t,Select:u,Drop_files_here:n,Drag_and_drop_files_here:v,Browse_files:_,File_type_is_not_allowed:d,File_size_is_too_large:c,Too_many_files_selected:m,Remove_file:p,Clear_selection:g,Loading:h,No_options:b,Open_popup:f,Press_hotkey_to_focus_search:S,Next:w,page_of_count:y,Previous:C,Showing_start_end_of_total:P,Previous_page:x,Next_page:D,Page_number:F,Selected_page_number:T,number_out_of_total_hearts:q,number_out_of_total_stars:A,From:z,total_reviews:I,Close:M,Decrease_quantity:N,Increase_quantity:k,Quantity:B,Dismiss_dismissible:E,one_review:G};export{_ as Browse_files,s as Cancel,g as Clear_selection,M as Close,N as Decrease_quantity,E as Dismiss_dismissible,v as Drag_and_drop_files_here,n as Drop_files_here,c as File_size_is_too_large,d as File_type_is_not_allowed,z as From,a as Hide_password,k as Increase_quantity,i as Library,h as Loading,w as Next,D as Next_page,b as No_options,f as Open_popup,F as Page_number,S as Press_hotkey_to_focus_search,C as Previous,x as Previous_page,B as Quantity,p as Remove_file,t as Save,u as Select,r as Select_Images,T as Selected_page_number,e as Show_password,P as Showing_start_end_of_total,m as Too_many_files_selected,l as Upload,o as Upload_Images,L as default,q as number_out_of_total_hearts,A as number_out_of_total_stars,G as one_review,y as page_of_count,I as total_reviews};
|
|
2
2
|
//# sourceMappingURL=es.json.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Afficher le mot de passe"},s={value:"Masquer le mot de passe"},r={value:"Sélectionner les images"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Afficher le mot de passe"},s={value:"Masquer le mot de passe"},r={value:"Sélectionner les images"},o={value:"Télécharger les images"},t={value:"Télécharger"},a={value:"Galerie"},l={value:"Annuler"},i={value:"Enregistrer"},_={value:"Sélectionner"},u={value:"Déposez vos fichiers ici"},p={value:"Glissez-déposez vos fichiers ici"},n={value:"Parcourir les fichiers"},v={value:"Type de fichier non autorisé. Types autorisés: {allowedFileTypes}"},c={value:"Taille de fichier trop grande. Taille maximale: {maxFileSize}"},x={value:"Trop de fichiers sélectionnés. Nombre maximum autorisé: {maxFiles}"},m={value:"Supprimer le fichier"},d={value:"Effacer la sélection"},f={value:"Chargement"},g={value:"Aucune option"},h={value:"Ouvrir la fenêtre contextuelle"},y={value:"Appuyez sur {hotkey} pour mettre le focus sur la recherche"},b={value:"Suivant"},w={value:"{page} sur {count}"},S={value:"Précédent"},P={value:"Affichage de {start} à {end} sur {total}"},D={value:"Page précédente"},F={value:"Page suivante"},T={value:"Page {number}"},q={value:"Page sélectionnée {number}"},z={value:"{number} sur {total} cœurs"},C={value:"{number} sur {total} étoiles"},N={value:"De"},A={value:"{total} avis"},I={value:"Fermer"},L={value:"Diminuer la quantité"},O={value:"Augmenter la quantité"},U={value:"Quantité"},k={value:"Fermer {dismissible}"},Q={value:"1 avis"},B={Show_password:e,Hide_password:s,Select_Images:r,Upload_Images:o,Upload:t,Library:a,Cancel:l,Save:i,Select:_,Drop_files_here:u,Drag_and_drop_files_here:p,Browse_files:n,File_type_is_not_allowed:v,File_size_is_too_large:c,Too_many_files_selected:x,Remove_file:m,Clear_selection:d,Loading:f,No_options:g,Open_popup:h,Press_hotkey_to_focus_search:y,Next:b,page_of_count:w,Previous:S,Showing_start_end_of_total:P,Previous_page:D,Next_page:F,Page_number:T,Selected_page_number:q,number_out_of_total_hearts:z,number_out_of_total_stars:C,From:N,total_reviews:A,Close:I,Decrease_quantity:L,Increase_quantity:O,Quantity:U,Dismiss_dismissible:k,one_review:Q};exports.Browse_files=n,exports.Cancel=l,exports.Clear_selection=d,exports.Close=I,exports.Decrease_quantity=L,exports.Dismiss_dismissible=k,exports.Drag_and_drop_files_here=p,exports.Drop_files_here=u,exports.File_size_is_too_large=c,exports.File_type_is_not_allowed=v,exports.From=N,exports.Hide_password=s,exports.Increase_quantity=O,exports.Library=a,exports.Loading=f,exports.Next=b,exports.Next_page=F,exports.No_options=g,exports.Open_popup=h,exports.Page_number=T,exports.Press_hotkey_to_focus_search=y,exports.Previous=S,exports.Previous_page=D,exports.Quantity=U,exports.Remove_file=m,exports.Save=i,exports.Select=_,exports.Select_Images=r,exports.Selected_page_number=q,exports.Show_password=e,exports.Showing_start_end_of_total=P,exports.Too_many_files_selected=x,exports.Upload=t,exports.Upload_Images=o,exports.default=B,exports.number_out_of_total_hearts=z,exports.number_out_of_total_stars=C,exports.one_review=Q,exports.page_of_count=w,exports.total_reviews=A;
|
|
2
2
|
//# sourceMappingURL=fr.json.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={value:"Afficher le mot de passe"},
|
|
1
|
+
var e={value:"Afficher le mot de passe"},a={value:"Masquer le mot de passe"},l={value:"Sélectionner les images"},r={value:"Télécharger les images"},u={value:"Télécharger"},i={value:"Galerie"},s={value:"Annuler"},t={value:"Enregistrer"},o={value:"Sélectionner"},n={value:"Déposez vos fichiers ici"},_={value:"Glissez-déposez vos fichiers ici"},v={value:"Parcourir les fichiers"},c={value:"Type de fichier non autorisé. Types autorisés: {allowedFileTypes}"},m={value:"Taille de fichier trop grande. Taille maximale: {maxFileSize}"},p={value:"Trop de fichiers sélectionnés. Nombre maximum autorisé: {maxFiles}"},d={value:"Supprimer le fichier"},f={value:"Effacer la sélection"},g={value:"Chargement"},h={value:"Aucune option"},b={value:"Ouvrir la fenêtre contextuelle"},y={value:"Appuyez sur {hotkey} pour mettre le focus sur la recherche"},S={value:"Suivant"},P={value:"{page} sur {count}"},w={value:"Précédent"},T={value:"Affichage de {start} à {end} sur {total}"},x={value:"Page précédente"},F={value:"Page suivante"},D={value:"Page {number}"},z={value:"Page sélectionnée {number}"},A={value:"{number} sur {total} cœurs"},q={value:"{number} sur {total} étoiles"},C={value:"De"},N={value:"{total} avis"},I={value:"Fermer"},k={value:"Diminuer la quantité"},E={value:"Augmenter la quantité"},G={value:"Quantité"},L={value:"Fermer {dismissible}"},O={value:"1 avis"},Q={Show_password:e,Hide_password:a,Select_Images:l,Upload_Images:r,Upload:u,Library:i,Cancel:s,Save:t,Select:o,Drop_files_here:n,Drag_and_drop_files_here:_,Browse_files:v,File_type_is_not_allowed:c,File_size_is_too_large:m,Too_many_files_selected:p,Remove_file:d,Clear_selection:f,Loading:g,No_options:h,Open_popup:b,Press_hotkey_to_focus_search:y,Next:S,page_of_count:P,Previous:w,Showing_start_end_of_total:T,Previous_page:x,Next_page:F,Page_number:D,Selected_page_number:z,number_out_of_total_hearts:A,number_out_of_total_stars:q,From:C,total_reviews:N,Close:I,Decrease_quantity:k,Increase_quantity:E,Quantity:G,Dismiss_dismissible:L,one_review:O};export{v as Browse_files,s as Cancel,f as Clear_selection,I as Close,k as Decrease_quantity,L as Dismiss_dismissible,_ as Drag_and_drop_files_here,n as Drop_files_here,m as File_size_is_too_large,c as File_type_is_not_allowed,C as From,a as Hide_password,E as Increase_quantity,i as Library,g as Loading,S as Next,F as Next_page,h as No_options,b as Open_popup,D as Page_number,y as Press_hotkey_to_focus_search,w as Previous,x as Previous_page,G as Quantity,d as Remove_file,t as Save,o as Select,l as Select_Images,z as Selected_page_number,e as Show_password,T as Showing_start_end_of_total,p as Too_many_files_selected,u as Upload,r as Upload_Images,Q as default,A as number_out_of_total_hearts,q as number_out_of_total_stars,O as one_review,P as page_of_count,N as total_reviews};
|
|
2
2
|
//# sourceMappingURL=fr.json.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostra password"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostra password"},a={value:"Nascondi password"},o={value:"Seleziona immagini"},s={value:"Carica immagini"},t={value:"Carica"},i={value:"Galleria"},r={value:"Annulla"},l={value:"Salva"},_={value:"Seleziona"},u={value:"Rilascia i tuoi file qui"},n={value:"Trascina i tuoi file qui"},p={value:"Sfoglia file"},v={value:"Tipo di file non consentito. Tipi consentiti: {allowedFileTypes}"},x={value:"Dimensione del file troppo grande. Dimensione massima: {maxFileSize}"},c={value:"Troppi file selezionati. Numero massimo consentito: {maxFiles}"},d={value:"Rimuovi file"},m={value:"Cancella selezione"},g={value:"Caricamento"},f={value:"Nessuna opzione"},w={value:"Apri popup"},b={value:" Premi {hotkey} per mettere a fuoco la ricerca"},y={value:"Avanti"},S={value:"{pagina} di {conteggio}"},h={value:"Precedente"},P={value:"Mostrando {start} - {end} di {total}"},C={value:"Pagina precedente"},D={value:"Pagina successiva"},z={value:"Pagina {number}"},F={value:"Pagina selezionata {number}"},N={value:"{number} su {total} cuori"},q={value:"{number} su {total} stelle"},I={value:"Da"},T={value:"{total} recensioni"},R={value:"Chiudi"},A={value:"Riduci la quantità"},L={value:"Aumenta quantità"},U={value:"Quantità"},k={value:"Ignora {dismissible}"},M={value:"1 recensione"},O={Show_password:e,Hide_password:a,Select_Images:o,Upload_Images:s,Upload:t,Library:i,Cancel:r,Save:l,Select:_,Drop_files_here:u,Drag_and_drop_files_here:n,Browse_files:p,File_type_is_not_allowed:v,File_size_is_too_large:x,Too_many_files_selected:c,Remove_file:d,Clear_selection:m,Loading:g,No_options:f,Open_popup:w,Press_hotkey_to_focus_search:b,Next:y,page_of_count:S,Previous:h,Showing_start_end_of_total:P,Previous_page:C,Next_page:D,Page_number:z,Selected_page_number:F,number_out_of_total_hearts:N,number_out_of_total_stars:q,From:I,total_reviews:T,Close:R,Decrease_quantity:A,Increase_quantity:L,Quantity:U,Dismiss_dismissible:k,one_review:M};exports.Browse_files=p,exports.Cancel=r,exports.Clear_selection=m,exports.Close=R,exports.Decrease_quantity=A,exports.Dismiss_dismissible=k,exports.Drag_and_drop_files_here=n,exports.Drop_files_here=u,exports.File_size_is_too_large=x,exports.File_type_is_not_allowed=v,exports.From=I,exports.Hide_password=a,exports.Increase_quantity=L,exports.Library=i,exports.Loading=g,exports.Next=y,exports.Next_page=D,exports.No_options=f,exports.Open_popup=w,exports.Page_number=z,exports.Press_hotkey_to_focus_search=b,exports.Previous=h,exports.Previous_page=C,exports.Quantity=U,exports.Remove_file=d,exports.Save=l,exports.Select=_,exports.Select_Images=o,exports.Selected_page_number=F,exports.Show_password=e,exports.Showing_start_end_of_total=P,exports.Too_many_files_selected=c,exports.Upload=t,exports.Upload_Images=s,exports.default=O,exports.number_out_of_total_hearts=N,exports.number_out_of_total_stars=q,exports.one_review=M,exports.page_of_count=S,exports.total_reviews=T;
|
|
2
2
|
//# sourceMappingURL=it.json.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={value:"Mostra password"},
|
|
1
|
+
var e={value:"Mostra password"},a={value:"Nascondi password"},i={value:"Seleziona immagini"},l={value:"Carica immagini"},o={value:"Carica"},u={value:"Galleria"},s={value:"Annulla"},t={value:"Salva"},n={value:"Seleziona"},r={value:"Rilascia i tuoi file qui"},_={value:"Trascina i tuoi file qui"},v={value:"Sfoglia file"},m={value:"Tipo di file non consentito. Tipi consentiti: {allowedFileTypes}"},p={value:"Dimensione del file troppo grande. Dimensione massima: {maxFileSize}"},c={value:"Troppi file selezionati. Numero massimo consentito: {maxFiles}"},d={value:"Rimuovi file"},g={value:"Cancella selezione"},f={value:"Caricamento"},b={value:"Nessuna opzione"},w={value:"Apri popup"},S={value:" Premi {hotkey} per mettere a fuoco la ricerca"},P={value:"Avanti"},h={value:"{pagina} di {conteggio}"},y={value:"Precedente"},z={value:"Mostrando {start} - {end} di {total}"},C={value:"Pagina precedente"},D={value:"Pagina successiva"},q={value:"Pagina {number}"},F={value:"Pagina selezionata {number}"},N={value:"{number} su {total} cuori"},T={value:"{number} su {total} stelle"},x={value:"Da"},A={value:"{total} recensioni"},I={value:"Chiudi"},R={value:"Riduci la quantità"},k={value:"Aumenta quantità"},L={value:"Quantità"},M={value:"Ignora {dismissible}"},Q={value:"1 recensione"},U={Show_password:e,Hide_password:a,Select_Images:i,Upload_Images:l,Upload:o,Library:u,Cancel:s,Save:t,Select:n,Drop_files_here:r,Drag_and_drop_files_here:_,Browse_files:v,File_type_is_not_allowed:m,File_size_is_too_large:p,Too_many_files_selected:c,Remove_file:d,Clear_selection:g,Loading:f,No_options:b,Open_popup:w,Press_hotkey_to_focus_search:S,Next:P,page_of_count:h,Previous:y,Showing_start_end_of_total:z,Previous_page:C,Next_page:D,Page_number:q,Selected_page_number:F,number_out_of_total_hearts:N,number_out_of_total_stars:T,From:x,total_reviews:A,Close:I,Decrease_quantity:R,Increase_quantity:k,Quantity:L,Dismiss_dismissible:M,one_review:Q};export{v as Browse_files,s as Cancel,g as Clear_selection,I as Close,R as Decrease_quantity,M as Dismiss_dismissible,_ as Drag_and_drop_files_here,r as Drop_files_here,p as File_size_is_too_large,m as File_type_is_not_allowed,x as From,a as Hide_password,k as Increase_quantity,u as Library,f as Loading,P as Next,D as Next_page,b as No_options,w as Open_popup,q as Page_number,S as Press_hotkey_to_focus_search,y as Previous,C as Previous_page,L as Quantity,d as Remove_file,t as Save,n as Select,i as Select_Images,F as Selected_page_number,e as Show_password,z as Showing_start_end_of_total,c as Too_many_files_selected,o as Upload,l as Upload_Images,U as default,N as number_out_of_total_hearts,T as number_out_of_total_stars,Q as one_review,h as page_of_count,A as total_reviews};
|
|
2
2
|
//# sourceMappingURL=it.json.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Wachtwoord tonen"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Wachtwoord tonen"},o={value:"Wachtwoord verbergen"},a={value:"Afbeeldingen selecteren"},t={value:"Afbeeldingen uploaden"},s={value:"Uploaden"},r={value:"Galerij"},l={value:"Annuleren"},_={value:"Opslaan"},n={value:"Selecteren"},i={value:"Drop je bestanden hier"},p={value:"Drag je bestanden hier"},u={value:"Blader door bestanden"},v={value:"Bestandstype niet toegestaan. Toegestane typen: {allowedFileTypes}"},d={value:"Bestandsgrootte te groot. Maximale grootte: {maxFileSize}"},g={value:"Te veel bestanden geselecteerd. Maximum toegestaan: {maxFiles}"},x={value:"Verwijder bestand"},m={value:"Selectie wissen"},c={value:"Laden"},b={value:"Geen opties"},h={value:"Open pop-up"},f={value:"Druk op {hotkey} om de zoekfunctie te activeren"},w={value:"Volgende"},y={value:"{pagina} van {aantal}"},S={value:"Vorige"},D={value:"Weergegeven {start} - {end} van {total}"},P={value:"Vorige pagina"},F={value:"Volgende pagina"},V={value:"Pagina {nummer}"},N={value:"Geselecteerde pagina {number}"},C={value:"{number} van de {total} harten"},I={value:"{number} van de {total} sterren"},j={value:"Van"},k={value:"{total} beoordelingen"},B={value:"Sluiten"},L={value:"Verlaag hoeveelheid"},O={value:"Verhoog de hoeveelheid"},T={value:"Hoeveelheid"},U={value:"Negeer {dismissible}"},q={value:"1 beoordeling"},z={Show_password:e,Hide_password:o,Select_Images:a,Upload_Images:t,Upload:s,Library:r,Cancel:l,Save:_,Select:n,Drop_files_here:i,Drag_and_drop_files_here:p,Browse_files:u,File_type_is_not_allowed:v,File_size_is_too_large:d,Too_many_files_selected:g,Remove_file:x,Clear_selection:m,Loading:c,No_options:b,Open_popup:h,Press_hotkey_to_focus_search:f,Next:w,page_of_count:y,Previous:S,Showing_start_end_of_total:D,Previous_page:P,Next_page:F,Page_number:V,Selected_page_number:N,number_out_of_total_hearts:C,number_out_of_total_stars:I,From:j,total_reviews:k,Close:B,Decrease_quantity:L,Increase_quantity:O,Quantity:T,Dismiss_dismissible:U,one_review:q};exports.Browse_files=u,exports.Cancel=l,exports.Clear_selection=m,exports.Close=B,exports.Decrease_quantity=L,exports.Dismiss_dismissible=U,exports.Drag_and_drop_files_here=p,exports.Drop_files_here=i,exports.File_size_is_too_large=d,exports.File_type_is_not_allowed=v,exports.From=j,exports.Hide_password=o,exports.Increase_quantity=O,exports.Library=r,exports.Loading=c,exports.Next=w,exports.Next_page=F,exports.No_options=b,exports.Open_popup=h,exports.Page_number=V,exports.Press_hotkey_to_focus_search=f,exports.Previous=S,exports.Previous_page=P,exports.Quantity=T,exports.Remove_file=x,exports.Save=_,exports.Select=n,exports.Select_Images=a,exports.Selected_page_number=N,exports.Show_password=e,exports.Showing_start_end_of_total=D,exports.Too_many_files_selected=g,exports.Upload=s,exports.Upload_Images=t,exports.default=z,exports.number_out_of_total_hearts=C,exports.number_out_of_total_stars=I,exports.one_review=q,exports.page_of_count=y,exports.total_reviews=k;
|
|
2
2
|
//# sourceMappingURL=nl.json.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={value:"Wachtwoord tonen"},a={value:"Wachtwoord verbergen"},l={value:"Afbeeldingen selecteren"},o={value:"Afbeeldingen uploaden"},
|
|
1
|
+
var e={value:"Wachtwoord tonen"},a={value:"Wachtwoord verbergen"},l={value:"Afbeeldingen selecteren"},o={value:"Afbeeldingen uploaden"},t={value:"Uploaden"},n={value:"Galerij"},r={value:"Annuleren"},u={value:"Opslaan"},s={value:"Selecteren"},i={value:"Drop je bestanden hier"},v={value:"Drag je bestanden hier"},_={value:"Blader door bestanden"},d={value:"Bestandstype niet toegestaan. Toegestane typen: {allowedFileTypes}"},g={value:"Bestandsgrootte te groot. Maximale grootte: {maxFileSize}"},p={value:"Te veel bestanden geselecteerd. Maximum toegestaan: {maxFiles}"},m={value:"Verwijder bestand"},b={value:"Selectie wissen"},c={value:"Laden"},h={value:"Geen opties"},f={value:"Open pop-up"},w={value:"Druk op {hotkey} om de zoekfunctie te activeren"},y={value:"Volgende"},S={value:"{pagina} van {aantal}"},V={value:"Vorige"},x={value:"Weergegeven {start} - {end} van {total}"},D={value:"Vorige pagina"},F={value:"Volgende pagina"},P={value:"Pagina {nummer}"},j={value:"Geselecteerde pagina {number}"},k={value:"{number} van de {total} harten"},B={value:"{number} van de {total} sterren"},N={value:"Van"},T={value:"{total} beoordelingen"},z={value:"Sluiten"},A={value:"Verlaag hoeveelheid"},C={value:"Verhoog de hoeveelheid"},G={value:"Hoeveelheid"},I={value:"Negeer {dismissible}"},L={value:"1 beoordeling"},O={Show_password:e,Hide_password:a,Select_Images:l,Upload_Images:o,Upload:t,Library:n,Cancel:r,Save:u,Select:s,Drop_files_here:i,Drag_and_drop_files_here:v,Browse_files:_,File_type_is_not_allowed:d,File_size_is_too_large:g,Too_many_files_selected:p,Remove_file:m,Clear_selection:b,Loading:c,No_options:h,Open_popup:f,Press_hotkey_to_focus_search:w,Next:y,page_of_count:S,Previous:V,Showing_start_end_of_total:x,Previous_page:D,Next_page:F,Page_number:P,Selected_page_number:j,number_out_of_total_hearts:k,number_out_of_total_stars:B,From:N,total_reviews:T,Close:z,Decrease_quantity:A,Increase_quantity:C,Quantity:G,Dismiss_dismissible:I,one_review:L};export{_ as Browse_files,r as Cancel,b as Clear_selection,z as Close,A as Decrease_quantity,I as Dismiss_dismissible,v as Drag_and_drop_files_here,i as Drop_files_here,g as File_size_is_too_large,d as File_type_is_not_allowed,N as From,a as Hide_password,C as Increase_quantity,n as Library,c as Loading,y as Next,F as Next_page,h as No_options,f as Open_popup,P as Page_number,w as Press_hotkey_to_focus_search,V as Previous,D as Previous_page,G as Quantity,m as Remove_file,u as Save,s as Select,l as Select_Images,j as Selected_page_number,e as Show_password,x as Showing_start_end_of_total,p as Too_many_files_selected,t as Upload,o as Upload_Images,O as default,k as number_out_of_total_hearts,B as number_out_of_total_stars,L as one_review,S as page_of_count,T as total_reviews};
|
|
2
2
|
//# sourceMappingURL=nl.json.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostrar palavra-passe"},a={value:"Ocultar palavra-passe"},o={value:"Selecionar imagens"},r={value:"Carregar imagens"},s={value:"Carregar"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={value:"Mostrar palavra-passe"},a={value:"Ocultar palavra-passe"},o={value:"Selecionar imagens"},r={value:"Carregar imagens"},s={value:"Carregar"},t={value:"Galeria"},l={value:"Cancelar"},i={value:"Salvar"},_={value:"Selecionar"},u={value:"Solte seus arquivos aqui"},p={value:"Arraste seus arquivos aqui"},n={value:"Navegar por arquivos"},v={value:"Tipo de arquivo não permitido. Tipos permitidos: {allowedFileTypes}"},d={value:"Tamanho do arquivo muito grande. Tamanho máximo: {maxFileSize}"},x={value:"Muitos arquivos selecionados. Máximo permitido: {maxFiles}"},m={value:"Remover arquivo"},c={value:"Limpar seleção"},g={value:"Carregando"},f={value:"Sem opções"},b={value:"Abrir popup"},h={value:"Pressione {hotkey} para focar na busca"},S={value:"Próximo"},w={value:"{page} de {count}"},y={value:"Anterior"},q={value:"Mostrando {start} - {end} de {total}"},P={value:"Página anterior"},F={value:"Próxima página"},C={value:"Página {número}"},D={value:"Página selecionada {number}"},N={value:"{number} de {total} corações"},T={value:"{number} de {total} estrelas"},I={value:"De"},L={value:"{total} avaliações"},M={value:"Fechar"},A={value:"Diminuir quantidade"},O={value:"Aumentar quantidade"},U={value:"Quantidade"},k={value:"Fechar {dismissible}"},z={value:"1 avaliação"},Q={Show_password:e,Hide_password:a,Select_Images:o,Upload_Images:r,Upload:s,Library:t,Cancel:l,Save:i,Select:_,Drop_files_here:u,Drag_and_drop_files_here:p,Browse_files:n,File_type_is_not_allowed:v,File_size_is_too_large:d,Too_many_files_selected:x,Remove_file:m,Clear_selection:c,Loading:g,No_options:f,Open_popup:b,Press_hotkey_to_focus_search:h,Next:S,page_of_count:w,Previous:y,Showing_start_end_of_total:q,Previous_page:P,Next_page:F,Page_number:C,Selected_page_number:D,number_out_of_total_hearts:N,number_out_of_total_stars:T,From:I,total_reviews:L,Close:M,Decrease_quantity:A,Increase_quantity:O,Quantity:U,Dismiss_dismissible:k,one_review:z};exports.Browse_files=n,exports.Cancel=l,exports.Clear_selection=c,exports.Close=M,exports.Decrease_quantity=A,exports.Dismiss_dismissible=k,exports.Drag_and_drop_files_here=p,exports.Drop_files_here=u,exports.File_size_is_too_large=d,exports.File_type_is_not_allowed=v,exports.From=I,exports.Hide_password=a,exports.Increase_quantity=O,exports.Library=t,exports.Loading=g,exports.Next=S,exports.Next_page=F,exports.No_options=f,exports.Open_popup=b,exports.Page_number=C,exports.Press_hotkey_to_focus_search=h,exports.Previous=y,exports.Previous_page=P,exports.Quantity=U,exports.Remove_file=m,exports.Save=i,exports.Select=_,exports.Select_Images=o,exports.Selected_page_number=D,exports.Show_password=e,exports.Showing_start_end_of_total=q,exports.Too_many_files_selected=x,exports.Upload=s,exports.Upload_Images=r,exports.default=Q,exports.number_out_of_total_hearts=N,exports.number_out_of_total_stars=T,exports.one_review=z,exports.page_of_count=w,exports.total_reviews=L;
|
|
2
2
|
//# sourceMappingURL=pt.json.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={value:"Mostrar palavra-passe"},a={value:"Ocultar palavra-passe"},
|
|
1
|
+
var e={value:"Mostrar palavra-passe"},a={value:"Ocultar palavra-passe"},o={value:"Selecionar imagens"},l={value:"Carregar imagens"},r={value:"Carregar"},i={value:"Galeria"},u={value:"Cancelar"},s={value:"Salvar"},t={value:"Selecionar"},v={value:"Solte seus arquivos aqui"},_={value:"Arraste seus arquivos aqui"},n={value:"Navegar por arquivos"},d={value:"Tipo de arquivo não permitido. Tipos permitidos: {allowedFileTypes}"},m={value:"Tamanho do arquivo muito grande. Tamanho máximo: {maxFileSize}"},p={value:"Muitos arquivos selecionados. Máximo permitido: {maxFiles}"},c={value:"Remover arquivo"},g={value:"Limpar seleção"},q={value:"Carregando"},b={value:"Sem opções"},f={value:"Abrir popup"},h={value:"Pressione {hotkey} para focar na busca"},S={value:"Próximo"},P={value:"{page} de {count}"},w={value:"Anterior"},x={value:"Mostrando {start} - {end} de {total}"},y={value:"Página anterior"},F={value:"Próxima página"},C={value:"Página {número}"},D={value:"Página selecionada {number}"},T={value:"{number} de {total} corações"},A={value:"{number} de {total} estrelas"},M={value:"De"},N={value:"{total} avaliações"},I={value:"Fechar"},L={value:"Diminuir quantidade"},k={value:"Aumentar quantidade"},z={value:"Quantidade"},O={value:"Fechar {dismissible}"},Q={value:"1 avaliação"},R={Show_password:e,Hide_password:a,Select_Images:o,Upload_Images:l,Upload:r,Library:i,Cancel:u,Save:s,Select:t,Drop_files_here:v,Drag_and_drop_files_here:_,Browse_files:n,File_type_is_not_allowed:d,File_size_is_too_large:m,Too_many_files_selected:p,Remove_file:c,Clear_selection:g,Loading:q,No_options:b,Open_popup:f,Press_hotkey_to_focus_search:h,Next:S,page_of_count:P,Previous:w,Showing_start_end_of_total:x,Previous_page:y,Next_page:F,Page_number:C,Selected_page_number:D,number_out_of_total_hearts:T,number_out_of_total_stars:A,From:M,total_reviews:N,Close:I,Decrease_quantity:L,Increase_quantity:k,Quantity:z,Dismiss_dismissible:O,one_review:Q};export{n as Browse_files,u as Cancel,g as Clear_selection,I as Close,L as Decrease_quantity,O as Dismiss_dismissible,_ as Drag_and_drop_files_here,v as Drop_files_here,m as File_size_is_too_large,d as File_type_is_not_allowed,M as From,a as Hide_password,k as Increase_quantity,i as Library,q as Loading,S as Next,F as Next_page,b as No_options,f as Open_popup,C as Page_number,h as Press_hotkey_to_focus_search,w as Previous,y as Previous_page,z as Quantity,c as Remove_file,s as Save,t as Select,o as Select_Images,D as Selected_page_number,e as Show_password,x as Showing_start_end_of_total,p as Too_many_files_selected,r as Upload,l as Upload_Images,R as default,T as number_out_of_total_hearts,A as number_out_of_total_stars,Q as one_review,P as page_of_count,N as total_reviews};
|
|
2
2
|
//# sourceMappingURL=pt.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationProvider.cjs.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate:
|
|
1
|
+
{"version":3,"file":"TranslationProvider.cjs.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\n/**\n * The translation function type.\n */\nexport type TranslateFunction = (key: TranslationId, data?: Record<string, number | string>) => string;\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate: TranslateFunction;\n translations: Translations;\n} => {\n const context = useContext(TranslationContext);\n if (!context) {\n throw new Error(\n 'FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider',\n );\n }\n const { translations } = context;\n\n const translate = useCallback(\n (key: TranslationId, data?: Record<string, number | string>): string => {\n let translation = translations?.[key]?.value || en[key]?.value || (key as string);\n if (data && translation) {\n // Single pass supports both named and numbered placeholders ({0}, {1}, {name})\n for (const k of Object.keys(data)) {\n const pattern = new RegExp(`\\\\{${escapeRegExp(k)}}`, 'g');\n const replacement = String(data[k]);\n translation = translation.replace(pattern, () => replacement);\n }\n }\n return translation;\n },\n [translations],\n );\n\n return { translate, translations };\n};\n\n/**\n * The supported languages.\n */\nexport const supportedLanguages = [\n 'de',\n 'dev-lang',\n 'en-US',\n 'en',\n 'es-MX',\n 'es',\n 'fr',\n 'it',\n 'nl',\n 'pt',\n] as const;\n/**\n * The supported languages.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Loads the translations for the given language.\n *\n * @param languageOverride Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * @returns The translations and loading state.\n */\nexport const useLoadTranslations = (\n /**\n * Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * If omitted, the provider will fall back to reading the micro-frontend attribute `data-language`.\n */\n languageOverride?: SupportedLanguage,\n): {\n translations: Translations;\n loading: boolean;\n} => {\n const [state, setState] = useState<{\n loading: boolean;\n translations?: Translations;\n }>({ loading: true, translations: {} });\n\n const languageFromParentDiv = useMemo(() => getMicroFrontendAttribute('data-language') || '', []);\n const effectiveLanguage = languageOverride ?? languageFromParentDiv;\n\n useEffect(() => {\n const fetchJSONData = async (): Promise<void> => {\n // en is statically bundled as the default fallback; skip dynamic load for it\n const shouldLoadLanguage =\n effectiveLanguage !== 'en' && (supportedLanguages as readonly string[]).includes(effectiveLanguage);\n if (shouldLoadLanguage) {\n await import(`../localization/${effectiveLanguage}.json`)\n .then((response: { default: Translations }) => response.default)\n .then((text) => {\n setState({ loading: false, translations: text });\n })\n .catch((error: unknown) => {\n const message = (error as Error)?.message ?? 'unknown error';\n // Fallback to en if the supported language fails to load\n setState({ loading: false, translations: en });\n const errorMessage = `FlipdishUI: Error while fetching ${effectiveLanguage || 'en'} language JSON data: ${message}`;\n // Log the error to the console and the logger\n console.error(errorMessage);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n window.fdlogger?.error(errorMessage);\n });\n } else {\n // 'en' or unsupported language - use statically bundled English translations\n setState({ loading: false, translations: en });\n }\n };\n\n void fetchJSONData();\n }, [effectiveLanguage]);\n\n return {\n translations: state.translations || {},\n loading: state.loading,\n };\n};\n"],"names":["TranslationContext","createContext","supportedLanguages","children","translations","value","useMemo","_jsx","Provider","languageOverride","state","setState","useState","loading","languageFromParentDiv","getMicroFrontendAttribute","effectiveLanguage","useEffect","async","includes","__variableDynamicImportRuntime0__","then","response","default","text","catch","error","message","en","errorMessage","console","window","fdlogger","fetchJSONData","context","useContext","Error","translate","useCallback","key","data","translation","k","Object","keys","pattern","RegExp","replace","replacement","String"],"mappings":"gKAaA,MAgCMA,EAAqBC,EAAAA,cAA+C,MAwD7DC,EAAqB,CAChC,KACA,WACA,QACA,KACA,QACA,KACA,KACA,KACA,KACA,kCAzDiC,EACjCC,WACAC,mBAEA,MAAMC,EAAQC,EAAAA,SAAQ,KAAA,CAASF,kBAAiB,CAACA,IACjD,OAAOG,EAAAA,IAACP,EAAmBQ,SAAQ,CAACH,MAAOA,EAAKF,SAAGA,8DAsEnDM,IAKA,MAAOC,EAAOC,GAAYC,EAAAA,SAGvB,CAAEC,SAAS,EAAMT,aAAc,CAAA,IAE5BU,EAAwBR,EAAAA,SAAQ,IAAMS,EAAAA,0BAA0B,kBAAoB,IAAI,IACxFC,EAAoBP,GAAoBK,EAgC9C,OA9BAG,EAAAA,WAAU,KACcC,WAGI,OAAtBF,GAA+Bd,EAAyCiB,SAASH,07CAE3EI,CAAO,mBAAmBJ,UAC7BK,MAAMC,GAAwCA,EAASC,UACvDF,MAAMG,IACLb,EAAS,CAAEE,SAAS,EAAOT,aAAcoB,OAE1CC,OAAOC,IACN,MAAMC,EAAWD,GAAiBC,SAAW,gBAE7ChB,EAAS,CAAEE,SAAS,EAAOT,aAAcwB,EAAAA,UACzC,MAAMC,EAAe,oCAAoCb,GAAqB,4BAA4BW,IAE1GG,QAAQJ,MAAMG,GAEdE,OAAOC,UAAUN,MAAMG,MAI3BlB,EAAS,CAAEE,SAAS,EAAOT,aAAcwB,EAAAA,WAIxCK,KACJ,CAACjB,IAEG,CACLZ,aAAcM,EAAMN,cAAgB,CAAA,EACpCS,QAASH,EAAMG,iCA3GW,KAI5B,MAAMqB,EAAUC,EAAAA,WAAWnC,GAC3B,IAAKkC,EACH,MAAM,IAAIE,MACR,4FAGJ,MAAMhC,aAAEA,GAAiB8B,EAkBzB,MAAO,CAAEG,UAhBSC,EAAAA,aAChB,CAACC,EAAoBC,KACnB,IAAIC,EAAcrC,IAAemC,IAAMlC,OAASuB,UAAGW,IAAMlC,OAAUkC,EACnE,GAAIC,GAAQC,EAEV,IAAK,MAAMC,KAAKC,OAAOC,KAAKJ,GAAO,CACjC,MAAMK,EAAU,IAAIC,OAAO,MAxEftB,EAwEkCkB,EAxETlB,EAAKuB,QAAQ,sBAAuB,WAwEpB,KAC/CC,EAAcC,OAAOT,EAAKE,IAChCD,EAAcA,EAAYM,QAAQF,GAAS,IAAMG,GACnD,CA3Ea,IAACxB,EA6EhB,OAAOiB,IAET,CAACrC,IAGiBA"}
|
|
@@ -20,6 +20,10 @@ type Translations = Record<string, Translation>;
|
|
|
20
20
|
interface TranslationProviderProps {
|
|
21
21
|
translations: Translations;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* The translation function type.
|
|
25
|
+
*/
|
|
26
|
+
type TranslateFunction = (key: TranslationId, data?: Record<string, number | string>) => string;
|
|
23
27
|
/**
|
|
24
28
|
* The provider for the TranslationProvider component.
|
|
25
29
|
*
|
|
@@ -34,7 +38,7 @@ declare const TranslationProvider: ({ children, translations, }: PropsWithChildr
|
|
|
34
38
|
* @returns The translation function and the translations.
|
|
35
39
|
*/
|
|
36
40
|
declare const useTranslation: () => {
|
|
37
|
-
translate:
|
|
41
|
+
translate: TranslateFunction;
|
|
38
42
|
translations: Translations;
|
|
39
43
|
};
|
|
40
44
|
/**
|
|
@@ -57,4 +61,4 @@ declare const useLoadTranslations: (languageOverride?: SupportedLanguage) => {
|
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
export { TranslationProvider, supportedLanguages, useLoadTranslations, useTranslation };
|
|
60
|
-
export type { SupportedLanguage, Translation, TranslationProviderProps, Translations };
|
|
64
|
+
export type { SupportedLanguage, TranslateFunction, Translation, TranslationProviderProps, Translations };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import{createContext as o,
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{createContext as o,useContext as t,useCallback as i,useMemo as a,useState as r,useEffect as e}from"react";import s from"../localization/en.json.js";import{getMicroFrontendAttribute as l}from"../utilities/renderUtilities.js";const c=o(null),u=({children:o,translations:t})=>{const i=a((()=>({translations:t})),[t]);return n(c.Provider,{value:i,children:o})},j=()=>{const n=t(c);if(!n)throw new Error("FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider");const{translations:o}=n;return{translate:i(((n,t)=>{let i=o?.[n]?.value||s[n]?.value||n;if(t&&i)for(const n of Object.keys(t)){const o=new RegExp(`\\{${a=n,a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}`,"g"),r=String(t[n]);i=i.replace(o,(()=>r))}var a;return i}),[o]),translations:o}},d=["de","dev-lang","en-US","en","es-MX","es","fr","it","nl","pt"],p=n=>{const[o,t]=r({loading:!0,translations:{}}),i=a((()=>l("data-language")||""),[]),c=n??i;return e((()=>{(async()=>{"en"!==c&&d.includes(c)?await function(n){switch(n){case"../localization/de.json":return import("../localization/de.json.js");case"../localization/dev-lang.json":return import("../localization/dev-lang.json.js");case"../localization/en-US.json":return import("../localization/en-US.json.js");case"../localization/en.json":return import("../localization/en.json.js");case"../localization/es-MX.json":return import("../localization/es-MX.json.js");case"../localization/es.json":return import("../localization/es.json.js");case"../localization/fr.json":return import("../localization/fr.json.js");case"../localization/it.json":return import("../localization/it.json.js");case"../localization/nl.json":return import("../localization/nl.json.js");case"../localization/pt.json":return import("../localization/pt.json.js");default:return new Promise((function(o,t){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+n)))}))}}(`../localization/${c}.json`).then((n=>n.default)).then((n=>{t({loading:!1,translations:n})})).catch((n=>{const o=n?.message??"unknown error";t({loading:!1,translations:s});const i=`FlipdishUI: Error while fetching ${c||"en"} language JSON data: ${o}`;console.error(i),window.fdlogger?.error(i)})):t({loading:!1,translations:s})})()}),[c]),{translations:o.translations||{},loading:o.loading}};export{u as TranslationProvider,d as supportedLanguages,p as useLoadTranslations,j as useTranslation};
|
|
2
2
|
//# sourceMappingURL=TranslationProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationProvider.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate:
|
|
1
|
+
{"version":3,"file":"TranslationProvider.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\n/**\n * The translation function type.\n */\nexport type TranslateFunction = (key: TranslationId, data?: Record<string, number | string>) => string;\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate: TranslateFunction;\n translations: Translations;\n} => {\n const context = useContext(TranslationContext);\n if (!context) {\n throw new Error(\n 'FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider',\n );\n }\n const { translations } = context;\n\n const translate = useCallback(\n (key: TranslationId, data?: Record<string, number | string>): string => {\n let translation = translations?.[key]?.value || en[key]?.value || (key as string);\n if (data && translation) {\n // Single pass supports both named and numbered placeholders ({0}, {1}, {name})\n for (const k of Object.keys(data)) {\n const pattern = new RegExp(`\\\\{${escapeRegExp(k)}}`, 'g');\n const replacement = String(data[k]);\n translation = translation.replace(pattern, () => replacement);\n }\n }\n return translation;\n },\n [translations],\n );\n\n return { translate, translations };\n};\n\n/**\n * The supported languages.\n */\nexport const supportedLanguages = [\n 'de',\n 'dev-lang',\n 'en-US',\n 'en',\n 'es-MX',\n 'es',\n 'fr',\n 'it',\n 'nl',\n 'pt',\n] as const;\n/**\n * The supported languages.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Loads the translations for the given language.\n *\n * @param languageOverride Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * @returns The translations and loading state.\n */\nexport const useLoadTranslations = (\n /**\n * Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * If omitted, the provider will fall back to reading the micro-frontend attribute `data-language`.\n */\n languageOverride?: SupportedLanguage,\n): {\n translations: Translations;\n loading: boolean;\n} => {\n const [state, setState] = useState<{\n loading: boolean;\n translations?: Translations;\n }>({ loading: true, translations: {} });\n\n const languageFromParentDiv = useMemo(() => getMicroFrontendAttribute('data-language') || '', []);\n const effectiveLanguage = languageOverride ?? languageFromParentDiv;\n\n useEffect(() => {\n const fetchJSONData = async (): Promise<void> => {\n // en is statically bundled as the default fallback; skip dynamic load for it\n const shouldLoadLanguage =\n effectiveLanguage !== 'en' && (supportedLanguages as readonly string[]).includes(effectiveLanguage);\n if (shouldLoadLanguage) {\n await import(`../localization/${effectiveLanguage}.json`)\n .then((response: { default: Translations }) => response.default)\n .then((text) => {\n setState({ loading: false, translations: text });\n })\n .catch((error: unknown) => {\n const message = (error as Error)?.message ?? 'unknown error';\n // Fallback to en if the supported language fails to load\n setState({ loading: false, translations: en });\n const errorMessage = `FlipdishUI: Error while fetching ${effectiveLanguage || 'en'} language JSON data: ${message}`;\n // Log the error to the console and the logger\n console.error(errorMessage);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n window.fdlogger?.error(errorMessage);\n });\n } else {\n // 'en' or unsupported language - use statically bundled English translations\n setState({ loading: false, translations: en });\n }\n };\n\n void fetchJSONData();\n }, [effectiveLanguage]);\n\n return {\n translations: state.translations || {},\n loading: state.loading,\n };\n};\n"],"names":["TranslationContext","createContext","TranslationProvider","children","translations","value","useMemo","_jsx","Provider","useTranslation","context","useContext","Error","translate","useCallback","key","data","translation","en","k","Object","keys","pattern","RegExp","text","replace","replacement","String","supportedLanguages","useLoadTranslations","languageOverride","state","setState","useState","loading","languageFromParentDiv","getMicroFrontendAttribute","effectiveLanguage","useEffect","async","includes","__variableDynamicImportRuntime0__","then","response","default","catch","error","message","errorMessage","console","window","fdlogger","fetchJSONData"],"mappings":"+QAaA,MAgCMA,EAAqBC,EAA+C,MAS7DC,EAAsB,EACjCC,WACAC,mBAEA,MAAMC,EAAQC,GAAQ,KAAA,CAASF,kBAAiB,CAACA,IACjD,OAAOG,EAACP,EAAmBQ,SAAQ,CAACH,MAAOA,EAAKF,SAAGA,KAQxCM,EAAiB,KAI5B,MAAMC,EAAUC,EAAWX,GAC3B,IAAKU,EACH,MAAM,IAAIE,MACR,4FAGJ,MAAMR,aAAEA,GAAiBM,EAkBzB,MAAO,CAAEG,UAhBSC,GAChB,CAACC,EAAoBC,KACnB,IAAIC,EAAcb,IAAeW,IAAMV,OAASa,EAAGH,IAAMV,OAAUU,EACnE,GAAIC,GAAQC,EAEV,IAAK,MAAME,KAAKC,OAAOC,KAAKL,GAAO,CACjC,MAAMM,EAAU,IAAIC,OAAO,MAxEfC,EAwEkCL,EAxETK,EAAKC,QAAQ,sBAAuB,WAwEpB,KAC/CC,EAAcC,OAAOX,EAAKG,IAChCF,EAAcA,EAAYQ,QAAQH,GAAS,IAAMI,GACnD,CA3Ea,IAACF,EA6EhB,OAAOP,IAET,CAACb,IAGiBA,iBAMTwB,EAAqB,CAChC,KACA,WACA,QACA,KACA,QACA,KACA,KACA,KACA,KACA,MAaWC,EAKXC,IAKA,MAAOC,EAAOC,GAAYC,EAGvB,CAAEC,SAAS,EAAM9B,aAAc,CAAA,IAE5B+B,EAAwB7B,GAAQ,IAAM8B,EAA0B,kBAAoB,IAAI,IACxFC,EAAoBP,GAAoBK,EAgC9C,OA9BAG,GAAU,KACcC,WAGI,OAAtBF,GAA+BT,EAAyCY,SAASH,s8BAE3EI,CAAO,mBAAmBJ,UAC7BK,MAAMC,GAAwCA,EAASC,UACvDF,MAAMlB,IACLQ,EAAS,CAAEE,SAAS,EAAO9B,aAAcoB,OAE1CqB,OAAOC,IACN,MAAMC,EAAWD,GAAiBC,SAAW,gBAE7Cf,EAAS,CAAEE,SAAS,EAAO9B,aAAcc,IACzC,MAAM8B,EAAe,oCAAoCX,GAAqB,4BAA4BU,IAE1GE,QAAQH,MAAME,GAEdE,OAAOC,UAAUL,MAAME,MAI3BhB,EAAS,CAAEE,SAAS,EAAO9B,aAAcc,KAIxCkC,KACJ,CAACf,IAEG,CACLjC,aAAc2B,EAAM3B,cAAgB,CAAA,EACpC8B,QAASH,EAAMG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var React=require("react");const getEnvironmentVariable=key=>{if("undefined"!=typeof process&&process.env&&"string"==typeof process.env[key])return process.env[key];try{const viteEnv=eval("import.meta")?.env;return viteEnv?.[key]??""}catch{return""}},getMicroFrontendAttribute=t=>{if("undefined"==typeof document)return"";const e=document.getElementById("flipdish-micro-frontend");return e?.getAttribute(t)||""},getAppId=()=>getEnvironmentVariable("VITE_APPID_OVERRIDE")||getMicroFrontendAttribute("data-app-id")||getMicroFrontendAttribute("data-appid"),getOrgId=()=>getEnvironmentVariable("VITE_ORGID_OVERRIDE")||getMicroFrontendAttribute("data-org-id")||getMicroFrontendAttribute("data-orgid"),getBrandId=()=>getEnvironmentVariable("VITE_BRANDID_OVERRIDE")||getMicroFrontendAttribute("data-brand-id")||getMicroFrontendAttribute("data-brandid"),getIsFlipdishStaff=()=>{const t=getEnvironmentVariable("VITE_ISFLIPDISHSTAFFOVERRIDE")||getMicroFrontendAttribute("data-is-flipdish-staff")||getMicroFrontendAttribute("data-isflipdishstaff");return"true"===t?.toString()},lazyWithRetry=t=>React.lazy((async()=>{const e=JSON.parse(window.sessionStorage.getItem("page-has-been-force-refreshed")||"false");try{const e=await t();return window.sessionStorage.setItem("page-has-been-force-refreshed","false"),e}catch(t){if(!e)return window.sessionStorage.setItem("page-has-been-force-refreshed","true"),window.location.reload();throw t}}));exports.getAppId=getAppId,exports.getBrandId=getBrandId,exports.getEnvironmentVariable=getEnvironmentVariable,exports.getIsFlipdishStaff=getIsFlipdishStaff,exports.getMicroFrontendAttribute=getMicroFrontendAttribute,exports.getOrgId=getOrgId,exports.lazyWithRetry=lazyWithRetry;
|
|
2
2
|
//# sourceMappingURL=renderUtilities.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderUtilities.cjs.js","sources":["../../src/utilities/renderUtilities.ts"],"sourcesContent":["import { lazy } from 'react';\n\nexport const getMicroFrontendAttribute = (key: string): string => {\n const microFrontendDiv = document.getElementById('flipdish-micro-frontend');\n return microFrontendDiv?.getAttribute(key) || '';\n};\n\n/**\n * Retrieves the AppId.\n *\n * Attempts to get the value from the environment variable `VITE_APPID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-app-id`.\n * Fallbacks to `data-appid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getAppId = (): string => {\n
|
|
1
|
+
{"version":3,"file":"renderUtilities.cjs.js","sources":["../../src/utilities/renderUtilities.ts"],"sourcesContent":["import { lazy } from 'react';\n\n/**\n * Retrieves an environment variable.\n *\n * @param key The key of the environment variable to retrieve.\n * @returns The value of the environment variable.\n */\nexport const getEnvironmentVariable = (key: string): string => {\n // Prefer Node env in tests/SSR\n if (typeof process !== 'undefined' && process.env && typeof process.env[key] === 'string') {\n return process.env[key] as string;\n }\n // Fallback to Vite env when available; use eval to avoid parse errors in non‑Vite/CJS\n try {\n // @typescript-eslint/no-unsafe-member-access\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const viteEnv = eval('import.meta')?.env as Record<string, string | undefined> | undefined;\n return viteEnv?.[key] ?? '';\n } catch {\n return '';\n }\n};\n\n/**\n * Retrieves a micro-frontend attribute.\n *\n * @param key The key of the attribute to retrieve.\n * @returns The value of the attribute.\n */\nexport const getMicroFrontendAttribute = (key: string): string => {\n if (typeof document === 'undefined') {\n return '';\n }\n const microFrontendDiv = document.getElementById('flipdish-micro-frontend');\n return microFrontendDiv?.getAttribute(key) || '';\n};\n\n/**\n * Retrieves the AppId.\n *\n * Attempts to get the value from the environment variable `VITE_APPID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-app-id`.\n * Fallbacks to `data-appid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getAppId = (): string => {\n return (\n getEnvironmentVariable('VITE_APPID_OVERRIDE') ||\n getMicroFrontendAttribute('data-app-id') ||\n getMicroFrontendAttribute('data-appid')\n );\n};\n\n/**\n * Retrieves the OrgId.\n *\n * Attempts to get the value from the environment variable `VITE_ORGID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-org-id`.\n * Fallbacks to `data-orgid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getOrgId = (): string => {\n return (\n getEnvironmentVariable('VITE_ORGID_OVERRIDE') ||\n getMicroFrontendAttribute('data-org-id') ||\n getMicroFrontendAttribute('data-orgid')\n );\n};\n\n/**\n * Retrieves the BrandId.\n *\n * Attempts to get the value from the environment variable `VITE_BRANDID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-brand-id`.\n * Fallbacks to `data-brandid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getBrandId = (): string => {\n return (\n getEnvironmentVariable('VITE_BRANDID_OVERRIDE') ||\n getMicroFrontendAttribute('data-brand-id') ||\n getMicroFrontendAttribute('data-brandid')\n );\n};\n\n/**\n * Retrieves the isFlipdishStaff attribute.\n *\n * Attempts to get the value from the environment variable `VITE_ISFLIPDISHSTAFFOVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-is-flipdish-staff`.\n * Fallbacks to `data-isflipdishstaff` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getIsFlipdishStaff = (): boolean => {\n const stringValue =\n getEnvironmentVariable('VITE_ISFLIPDISHSTAFFOVERRIDE') ||\n getMicroFrontendAttribute('data-is-flipdish-staff') ||\n getMicroFrontendAttribute('data-isflipdishstaff');\n return stringValue?.toString() === 'true';\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const lazyWithRetry = (componentImport: () => any) =>\n lazy(async () => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const pageHasAlreadyBeenForceRefreshed = JSON.parse(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n window.sessionStorage.getItem('page-has-been-force-refreshed') || 'false',\n );\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const component = await componentImport();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'false');\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return component;\n } catch (error) {\n if (!pageHasAlreadyBeenForceRefreshed) {\n // Assuming that the user is not on the latest version of the application.\n // Let's refresh the page immediately.\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'true');\n return window.location.reload();\n }\n\n // The page has already been reloaded\n // Assuming that user is already using the latest version of the application.\n // Let's let the application crash and raise the error.\n throw error;\n }\n });\n"],"names":["getEnvironmentVariable","key","process","env","viteEnv","eval","getMicroFrontendAttribute","document","microFrontendDiv","getElementById","getAttribute","getAppId","getOrgId","getBrandId","getIsFlipdishStaff","stringValue","toString","lazyWithRetry","componentImport","lazy","async","pageHasAlreadyBeenForceRefreshed","JSON","parse","window","sessionStorage","getItem","component","setItem","error","location","reload"],"mappings":"wCAQO,MAAMA,uBAA0BC,MAErC,GAAuB,oBAAZC,SAA2BA,QAAQC,KAAmC,iBAArBD,QAAQC,IAAIF,KACtE,OAAOC,QAAQC,IAAIF,KAGrB,IAGE,MAAMG,QAAUC,KAAK,gBAAgBF,IACrC,OAAOC,UAAUH,MAAQ,EAC3B,CAAE,MACA,MAAO,EACT,GASWK,0BAA6BL,IACxC,GAAwB,oBAAbM,SACT,MAAO,GAET,MAAMC,EAAmBD,SAASE,eAAe,2BACjD,OAAOD,GAAkBE,aAAaT,IAAQ,IAYnCU,SAAW,IAEpBX,uBAAuB,wBACvBM,0BAA0B,gBAC1BA,0BAA0B,cAajBM,SAAW,IAEpBZ,uBAAuB,wBACvBM,0BAA0B,gBAC1BA,0BAA0B,cAajBO,WAAa,IAEtBb,uBAAuB,0BACvBM,0BAA0B,kBAC1BA,0BAA0B,gBAajBQ,mBAAqB,KAChC,MAAMC,EACJf,uBAAuB,iCACvBM,0BAA0B,2BAC1BA,0BAA0B,wBAC5B,MAAmC,SAA5BS,GAAaC,YAITC,cAAiBC,GAC5BC,MAAAA,MAAKC,UAEH,MAAMC,EAAmCC,KAAKC,MAE5CC,OAAOC,eAAeC,QAAQ,kCAAoC,SAGpE,IAEE,MAAMC,QAAkBT,IAKxB,OAHAM,OAAOC,eAAeG,QAAQ,gCAAiC,SAGxDD,CACT,CAAE,MAAOE,GACP,IAAKR,EAIH,OADAG,OAAOC,eAAeG,QAAQ,gCAAiC,QACxDJ,OAAOM,SAASC,SAMzB,MAAMF,CACR"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves an environment variable.
|
|
5
|
+
*
|
|
6
|
+
* @param key The key of the environment variable to retrieve.
|
|
7
|
+
* @returns The value of the environment variable.
|
|
8
|
+
*/
|
|
9
|
+
declare const getEnvironmentVariable: (key: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves a micro-frontend attribute.
|
|
12
|
+
*
|
|
13
|
+
* @param key The key of the attribute to retrieve.
|
|
14
|
+
* @returns The value of the attribute.
|
|
15
|
+
*/
|
|
3
16
|
declare const getMicroFrontendAttribute: (key: string) => string;
|
|
4
17
|
/**
|
|
5
18
|
* Retrieves the AppId.
|
|
@@ -43,4 +56,4 @@ declare const getBrandId: () => string;
|
|
|
43
56
|
declare const getIsFlipdishStaff: () => boolean;
|
|
44
57
|
declare const lazyWithRetry: (componentImport: () => any) => react.LazyExoticComponent<react.ComponentType<any>>;
|
|
45
58
|
|
|
46
|
-
export { getAppId, getBrandId, getIsFlipdishStaff, getMicroFrontendAttribute, getOrgId, lazyWithRetry };
|
|
59
|
+
export { getAppId, getBrandId, getEnvironmentVariable, getIsFlipdishStaff, getMicroFrontendAttribute, getOrgId, lazyWithRetry };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{lazy
|
|
1
|
+
import{lazy}from"react";const getEnvironmentVariable=key=>{if("undefined"!=typeof process&&process.env&&"string"==typeof process.env[key])return process.env[key];try{const viteEnv=eval("import.meta")?.env;return viteEnv?.[key]??""}catch{return""}},getMicroFrontendAttribute=t=>{if("undefined"==typeof document)return"";const e=document.getElementById("flipdish-micro-frontend");return e?.getAttribute(t)||""},getAppId=()=>getEnvironmentVariable("VITE_APPID_OVERRIDE")||getMicroFrontendAttribute("data-app-id")||getMicroFrontendAttribute("data-appid"),getOrgId=()=>getEnvironmentVariable("VITE_ORGID_OVERRIDE")||getMicroFrontendAttribute("data-org-id")||getMicroFrontendAttribute("data-orgid"),getBrandId=()=>getEnvironmentVariable("VITE_BRANDID_OVERRIDE")||getMicroFrontendAttribute("data-brand-id")||getMicroFrontendAttribute("data-brandid"),getIsFlipdishStaff=()=>{const t=getEnvironmentVariable("VITE_ISFLIPDISHSTAFFOVERRIDE")||getMicroFrontendAttribute("data-is-flipdish-staff")||getMicroFrontendAttribute("data-isflipdishstaff");return"true"===t?.toString()},lazyWithRetry=t=>lazy((async()=>{const e=JSON.parse(window.sessionStorage.getItem("page-has-been-force-refreshed")||"false");try{const e=await t();return window.sessionStorage.setItem("page-has-been-force-refreshed","false"),e}catch(t){if(!e)return window.sessionStorage.setItem("page-has-been-force-refreshed","true"),window.location.reload();throw t}}));export{getAppId,getBrandId,getEnvironmentVariable,getIsFlipdishStaff,getMicroFrontendAttribute,getOrgId,lazyWithRetry};
|
|
2
2
|
//# sourceMappingURL=renderUtilities.js.map
|