@bagelink/vue 0.0.681 → 0.0.687
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/components/ComboBox.vue.d.ts +3 -3
- package/dist/components/Comments.vue.d.ts +2 -2
- package/dist/components/ContactSubmissions.vue.d.ts +2 -2
- package/dist/components/DropDown.vue.d.ts +3 -3
- package/dist/components/FormSchema.vue.d.ts +4 -5
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ModalBglForm.vue.d.ts +20 -21
- package/dist/components/PersonPreview.vue.d.ts +4 -5
- package/dist/components/PersonPreviewFormkit.vue.d.ts +3 -4
- package/dist/components/Popover.vue.d.ts +10 -0
- package/dist/components/Popover.vue.d.ts.map +1 -0
- package/dist/components/RTXEditor.vue.d.ts +3 -3
- package/dist/components/TabbedLayout.vue.d.ts +4 -5
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/form/ItemRef.vue.d.ts +3 -5
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +3 -4
- package/dist/components/form/PlainInputField.vue.d.ts +3 -3
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
- package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
- package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
- package/dist/components/formkit/Toggle.vue.d.ts +2 -2
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
- package/dist/index.cjs +104 -149
- package/dist/index.mjs +104 -149
- package/dist/style.css +108 -40
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/dist/utils/lang.d.ts +1 -1
- package/dist/utils/lang.d.ts.map +1 -1
- package/dist/utils/objects.d.ts +0 -1
- package/package.json +11 -11
- package/src/components/form/inputs/DatePicker.vue +1 -1
- package/src/components/form/inputs/TelInput.vue +74 -53
- package/src/styles/layout.css +50 -17
- package/src/styles/mobilLayout.css +47 -16
- package/src/styles/text.css +8 -0
- package/src/utils/lang.ts +6 -2
- package/dist/components/Accordion.d.ts +0 -12
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/AccordionItem.d.ts +0 -34
- package/dist/components/AccordionItem.d.ts.map +0 -1
- package/dist/components/Alert.d.ts +0 -34
- package/dist/components/Alert.d.ts.map +0 -1
- package/dist/components/Avatar.d.ts +0 -36
- package/dist/components/Avatar.d.ts.map +0 -1
- package/dist/components/Badge.d.ts +0 -22
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/BglVideo.d.ts +0 -20
- package/dist/components/BglVideo.d.ts.map +0 -1
- package/dist/components/Btn.d.ts +0 -99
- package/dist/components/Btn.d.ts.map +0 -1
- package/dist/components/Card.d.ts +0 -39
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Carousel.d.ts +0 -74
- package/dist/components/Carousel.d.ts.map +0 -1
- package/dist/components/DataPreview.d.ts +0 -42
- package/dist/components/DataPreview.d.ts.map +0 -1
- package/dist/components/Drop.vue.d.ts +0 -34
- package/dist/components/Drop.vue.d.ts.map +0 -1
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
- package/dist/components/Flag.d.ts +0 -20
- package/dist/components/Flag.d.ts.map +0 -1
- package/dist/components/ListItem.d.ts +0 -34
- package/dist/components/ListItem.d.ts.map +0 -1
- package/dist/components/ListView.d.ts +0 -13
- package/dist/components/ListView.d.ts.map +0 -1
- package/dist/components/MapEmbed.d.ts +0 -3
- package/dist/components/MapEmbed.d.ts.map +0 -1
- package/dist/components/MaterialIcon.d.ts +0 -26
- package/dist/components/MaterialIcon.d.ts.map +0 -1
- package/dist/components/Modal.d.ts +0 -46
- package/dist/components/Modal.d.ts.map +0 -1
- package/dist/components/ModalConfirm.d.ts +0 -24
- package/dist/components/ModalConfirm.d.ts.map +0 -1
- package/dist/components/ModalForm.d.ts +0 -78
- package/dist/components/ModalForm.d.ts.map +0 -1
- package/dist/components/NavBar.d.ts +0 -64
- package/dist/components/NavBar.d.ts.map +0 -1
- package/dist/components/PageTitle.d.ts +0 -24
- package/dist/components/PageTitle.d.ts.map +0 -1
- package/dist/components/RouterWrapper.d.ts +0 -3
- package/dist/components/RouterWrapper.d.ts.map +0 -1
- package/dist/components/TableSchema.d.ts +0 -35
- package/dist/components/TableSchema.d.ts.map +0 -1
- package/dist/components/Title.d.ts +0 -42
- package/dist/components/Title.d.ts.map +0 -1
- package/dist/components/TopBar.d.ts +0 -12
- package/dist/components/TopBar.d.ts.map +0 -1
- package/dist/components/dashboard/Lineart.d.ts +0 -20
- package/dist/components/dashboard/Lineart.d.ts.map +0 -1
- package/dist/components/form/BglField.d.ts +0 -25
- package/dist/components/form/BglField.d.ts.map +0 -1
- package/dist/components/form/BglForm.d.ts +0 -75
- package/dist/components/form/BglForm.d.ts.map +0 -1
- package/dist/components/form/inputs/CheckInput.d.ts +0 -56
- package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
- package/dist/components/form/inputs/Checkbox.d.ts +0 -16
- package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
- package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
- package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
- package/dist/components/form/inputs/DateInput.d.ts +0 -64
- package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
- package/dist/components/form/inputs/DatePicker.d.ts +0 -33
- package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
- package/dist/components/form/inputs/FileUpload.d.ts +0 -108
- package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
- package/dist/components/form/inputs/JSONInput.d.ts +0 -53
- package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
- package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText.d.ts +0 -20
- package/dist/components/form/inputs/RichText.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
- package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
- package/dist/components/form/inputs/SelectInput.d.ts +0 -55
- package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
- package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
- package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
- package/dist/components/form/inputs/TableField.d.ts +0 -45
- package/dist/components/form/inputs/TableField.d.ts.map +0 -1
- package/dist/components/form/inputs/TelInput.d.ts +0 -241
- package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
- package/dist/components/form/inputs/TextInput.d.ts +0 -90
- package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
- package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
- package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
- package/dist/components/layout/BottomMenu.d.ts +0 -27
- package/dist/components/layout/BottomMenu.d.ts.map +0 -1
- package/dist/components/layout/Layout.d.ts +0 -58
- package/dist/components/layout/Layout.d.ts.map +0 -1
- package/dist/components/layout/SidebarMenu.d.ts +0 -38
- package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
- package/dist/components/layout/TabbedLayout.d.ts +0 -42
- package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
- package/dist/components/layout/Tabs.d.ts +0 -31
- package/dist/components/layout/Tabs.d.ts.map +0 -1
- package/dist/components/layout/TabsBody.d.ts +0 -23
- package/dist/components/layout/TabsBody.d.ts.map +0 -1
- package/dist/components/layout/TabsNav.d.ts +0 -35
- package/dist/components/layout/TabsNav.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2845,26 +2845,6 @@ const toJSONObject = (obj) => {
|
|
|
2845
2845
|
};
|
|
2846
2846
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
2847
2847
|
const isThenable = (thing) => thing && (isObject$1(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
2848
|
-
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
2849
|
-
if (setImmediateSupported) {
|
|
2850
|
-
return setImmediate;
|
|
2851
|
-
}
|
|
2852
|
-
return postMessageSupported ? ((token, callbacks) => {
|
|
2853
|
-
_global.addEventListener("message", ({ source, data: data2 }) => {
|
|
2854
|
-
if (source === _global && data2 === token) {
|
|
2855
|
-
callbacks.length && callbacks.shift()();
|
|
2856
|
-
}
|
|
2857
|
-
}, false);
|
|
2858
|
-
return (cb) => {
|
|
2859
|
-
callbacks.push(cb);
|
|
2860
|
-
_global.postMessage(token, "*");
|
|
2861
|
-
};
|
|
2862
|
-
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
2863
|
-
})(
|
|
2864
|
-
typeof setImmediate === "function",
|
|
2865
|
-
isFunction$1(_global.postMessage)
|
|
2866
|
-
);
|
|
2867
|
-
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
2868
2848
|
const utils$1 = {
|
|
2869
2849
|
isArray,
|
|
2870
2850
|
isArrayBuffer,
|
|
@@ -2921,9 +2901,7 @@ const utils$1 = {
|
|
|
2921
2901
|
isSpecCompliantForm,
|
|
2922
2902
|
toJSONObject,
|
|
2923
2903
|
isAsyncFn,
|
|
2924
|
-
isThenable
|
|
2925
|
-
setImmediate: _setImmediate,
|
|
2926
|
-
asap
|
|
2904
|
+
isThenable
|
|
2927
2905
|
};
|
|
2928
2906
|
function AxiosError(message2, code2, config, request, response) {
|
|
2929
2907
|
Error.call(this);
|
|
@@ -3758,35 +3736,27 @@ function speedometer(samplesCount, min2) {
|
|
|
3758
3736
|
}
|
|
3759
3737
|
function throttle$2(fn3, freq) {
|
|
3760
3738
|
let timestamp = 0;
|
|
3761
|
-
|
|
3762
|
-
let
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
timestamp = now;
|
|
3766
|
-
lastArgs = null;
|
|
3767
|
-
if (timer) {
|
|
3768
|
-
clearTimeout(timer);
|
|
3769
|
-
timer = null;
|
|
3770
|
-
}
|
|
3771
|
-
fn3.apply(null, args);
|
|
3772
|
-
};
|
|
3773
|
-
const throttled = (...args) => {
|
|
3739
|
+
const threshold = 1e3 / freq;
|
|
3740
|
+
let timer = null;
|
|
3741
|
+
return function throttled() {
|
|
3742
|
+
const force = this === true;
|
|
3774
3743
|
const now = Date.now();
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
lastArgs = args;
|
|
3780
|
-
if (!timer) {
|
|
3781
|
-
timer = setTimeout(() => {
|
|
3782
|
-
timer = null;
|
|
3783
|
-
invoke(lastArgs);
|
|
3784
|
-
}, threshold - passed);
|
|
3744
|
+
if (force || now - timestamp > threshold) {
|
|
3745
|
+
if (timer) {
|
|
3746
|
+
clearTimeout(timer);
|
|
3747
|
+
timer = null;
|
|
3785
3748
|
}
|
|
3749
|
+
timestamp = now;
|
|
3750
|
+
return fn3.apply(null, arguments);
|
|
3751
|
+
}
|
|
3752
|
+
if (!timer) {
|
|
3753
|
+
timer = setTimeout(() => {
|
|
3754
|
+
timer = null;
|
|
3755
|
+
timestamp = Date.now();
|
|
3756
|
+
return fn3.apply(null, arguments);
|
|
3757
|
+
}, threshold - (now - timestamp));
|
|
3786
3758
|
}
|
|
3787
3759
|
};
|
|
3788
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
3789
|
-
return [throttled, flush];
|
|
3790
3760
|
}
|
|
3791
3761
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3792
3762
|
let bytesNotified = 0;
|
|
@@ -3806,21 +3776,12 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
3806
3776
|
rate: rate ? rate : void 0,
|
|
3807
3777
|
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
3808
3778
|
event: e,
|
|
3809
|
-
lengthComputable: total != null
|
|
3810
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
3779
|
+
lengthComputable: total != null
|
|
3811
3780
|
};
|
|
3781
|
+
data2[isDownloadStream ? "download" : "upload"] = true;
|
|
3812
3782
|
listener(data2);
|
|
3813
3783
|
}, freq);
|
|
3814
3784
|
};
|
|
3815
|
-
const progressEventDecorator = (total, throttled) => {
|
|
3816
|
-
const lengthComputable = total != null;
|
|
3817
|
-
return [(loaded) => throttled[0]({
|
|
3818
|
-
lengthComputable,
|
|
3819
|
-
total,
|
|
3820
|
-
loaded
|
|
3821
|
-
}), throttled[1]];
|
|
3822
|
-
};
|
|
3823
|
-
const asyncDecorator = (fn3) => (...args) => utils$1.asap(() => fn3(...args));
|
|
3824
3785
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
3825
3786
|
// Standard browser envs have full support of the APIs needed to test
|
|
3826
3787
|
// whether the request URL is of the same origin as current location.
|
|
@@ -4018,15 +3979,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4018
3979
|
const _config = resolveConfig(config);
|
|
4019
3980
|
let requestData = _config.data;
|
|
4020
3981
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
4021
|
-
let { responseType
|
|
3982
|
+
let { responseType } = _config;
|
|
4022
3983
|
let onCanceled;
|
|
4023
|
-
let uploadThrottled, downloadThrottled;
|
|
4024
|
-
let flushUpload, flushDownload;
|
|
4025
3984
|
function done() {
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
3985
|
+
if (_config.cancelToken) {
|
|
3986
|
+
_config.cancelToken.unsubscribe(onCanceled);
|
|
3987
|
+
}
|
|
3988
|
+
if (_config.signal) {
|
|
3989
|
+
_config.signal.removeEventListener("abort", onCanceled);
|
|
3990
|
+
}
|
|
4030
3991
|
}
|
|
4031
3992
|
let request = new XMLHttpRequest();
|
|
4032
3993
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
@@ -4073,11 +4034,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4073
4034
|
if (!request) {
|
|
4074
4035
|
return;
|
|
4075
4036
|
}
|
|
4076
|
-
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED,
|
|
4037
|
+
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED, _config, request));
|
|
4077
4038
|
request = null;
|
|
4078
4039
|
};
|
|
4079
4040
|
request.onerror = function handleError() {
|
|
4080
|
-
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK,
|
|
4041
|
+
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK, _config, request));
|
|
4081
4042
|
request = null;
|
|
4082
4043
|
};
|
|
4083
4044
|
request.ontimeout = function handleTimeout() {
|
|
@@ -4089,7 +4050,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4089
4050
|
reject3(new AxiosError(
|
|
4090
4051
|
timeoutErrorMessage,
|
|
4091
4052
|
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
4092
|
-
|
|
4053
|
+
_config,
|
|
4093
4054
|
request
|
|
4094
4055
|
));
|
|
4095
4056
|
request = null;
|
|
@@ -4106,14 +4067,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4106
4067
|
if (responseType && responseType !== "json") {
|
|
4107
4068
|
request.responseType = _config.responseType;
|
|
4108
4069
|
}
|
|
4109
|
-
if (onDownloadProgress) {
|
|
4110
|
-
|
|
4111
|
-
request.addEventListener("progress", downloadThrottled);
|
|
4070
|
+
if (typeof _config.onDownloadProgress === "function") {
|
|
4071
|
+
request.addEventListener("progress", progressEventReducer(_config.onDownloadProgress, true));
|
|
4112
4072
|
}
|
|
4113
|
-
if (onUploadProgress && request.upload) {
|
|
4114
|
-
|
|
4115
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
4116
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
4073
|
+
if (typeof _config.onUploadProgress === "function" && request.upload) {
|
|
4074
|
+
request.upload.addEventListener("progress", progressEventReducer(_config.onUploadProgress));
|
|
4117
4075
|
}
|
|
4118
4076
|
if (_config.cancelToken || _config.signal) {
|
|
4119
4077
|
onCanceled = (cancel) => {
|
|
@@ -4191,52 +4149,39 @@ const readBytes = async function* (iterable, chunkSize, encode2) {
|
|
|
4191
4149
|
const trackStream = (stream, chunkSize, onProgress, onFinish, encode2) => {
|
|
4192
4150
|
const iterator = readBytes(stream, chunkSize, encode2);
|
|
4193
4151
|
let bytes = 0;
|
|
4194
|
-
let done;
|
|
4195
|
-
let _onFinish = (e) => {
|
|
4196
|
-
if (!done) {
|
|
4197
|
-
done = true;
|
|
4198
|
-
onFinish && onFinish(e);
|
|
4199
|
-
}
|
|
4200
|
-
};
|
|
4201
4152
|
return new ReadableStream({
|
|
4153
|
+
type: "bytes",
|
|
4202
4154
|
async pull(controller) {
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
return;
|
|
4209
|
-
}
|
|
4210
|
-
let len = value.byteLength;
|
|
4211
|
-
if (onProgress) {
|
|
4212
|
-
let loadedBytes = bytes += len;
|
|
4213
|
-
onProgress(loadedBytes);
|
|
4214
|
-
}
|
|
4215
|
-
controller.enqueue(new Uint8Array(value));
|
|
4216
|
-
} catch (err) {
|
|
4217
|
-
_onFinish(err);
|
|
4218
|
-
throw err;
|
|
4155
|
+
const { done, value } = await iterator.next();
|
|
4156
|
+
if (done) {
|
|
4157
|
+
controller.close();
|
|
4158
|
+
onFinish();
|
|
4159
|
+
return;
|
|
4219
4160
|
}
|
|
4161
|
+
let len = value.byteLength;
|
|
4162
|
+
onProgress && onProgress(bytes += len);
|
|
4163
|
+
controller.enqueue(new Uint8Array(value));
|
|
4220
4164
|
},
|
|
4221
4165
|
cancel(reason) {
|
|
4222
|
-
|
|
4166
|
+
onFinish(reason);
|
|
4223
4167
|
return iterator.return();
|
|
4224
4168
|
}
|
|
4225
4169
|
}, {
|
|
4226
4170
|
highWaterMark: 2
|
|
4227
4171
|
});
|
|
4228
4172
|
};
|
|
4173
|
+
const fetchProgressDecorator = (total, fn3) => {
|
|
4174
|
+
const lengthComputable = total != null;
|
|
4175
|
+
return (loaded) => setTimeout(() => fn3({
|
|
4176
|
+
lengthComputable,
|
|
4177
|
+
total,
|
|
4178
|
+
loaded
|
|
4179
|
+
}));
|
|
4180
|
+
};
|
|
4229
4181
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
4230
4182
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
4231
4183
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
4232
|
-
const
|
|
4233
|
-
try {
|
|
4234
|
-
return !!fn3(...args);
|
|
4235
|
-
} catch (e) {
|
|
4236
|
-
return false;
|
|
4237
|
-
}
|
|
4238
|
-
};
|
|
4239
|
-
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
4184
|
+
const supportsRequestStream = isReadableStreamSupported && (() => {
|
|
4240
4185
|
let duplexAccessed = false;
|
|
4241
4186
|
const hasContentType = new Request(platform.origin, {
|
|
4242
4187
|
body: new ReadableStream(),
|
|
@@ -4247,9 +4192,14 @@ const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
|
4247
4192
|
}
|
|
4248
4193
|
}).headers.has("Content-Type");
|
|
4249
4194
|
return duplexAccessed && !hasContentType;
|
|
4250
|
-
});
|
|
4195
|
+
})();
|
|
4251
4196
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4252
|
-
const supportsResponseStream = isReadableStreamSupported &&
|
|
4197
|
+
const supportsResponseStream = isReadableStreamSupported && !!(() => {
|
|
4198
|
+
try {
|
|
4199
|
+
return utils$1.isReadableStream(new Response("").body);
|
|
4200
|
+
} catch (err) {
|
|
4201
|
+
}
|
|
4202
|
+
})();
|
|
4253
4203
|
const resolvers = {
|
|
4254
4204
|
stream: supportsResponseStream && ((res) => res.body)
|
|
4255
4205
|
};
|
|
@@ -4270,7 +4220,7 @@ const getBodyLength = async (body) => {
|
|
|
4270
4220
|
if (utils$1.isSpecCompliantForm(body)) {
|
|
4271
4221
|
return (await new Request(body).arrayBuffer()).byteLength;
|
|
4272
4222
|
}
|
|
4273
|
-
if (utils$1.isArrayBufferView(body)
|
|
4223
|
+
if (utils$1.isArrayBufferView(body)) {
|
|
4274
4224
|
return body.byteLength;
|
|
4275
4225
|
}
|
|
4276
4226
|
if (utils$1.isURLSearchParams(body)) {
|
|
@@ -4321,15 +4271,14 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4321
4271
|
headers.setContentType(contentTypeHeader);
|
|
4322
4272
|
}
|
|
4323
4273
|
if (_request.body) {
|
|
4324
|
-
|
|
4274
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
|
|
4325
4275
|
requestContentLength,
|
|
4326
|
-
progressEventReducer(
|
|
4327
|
-
);
|
|
4328
|
-
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
|
|
4276
|
+
progressEventReducer(onUploadProgress)
|
|
4277
|
+
), null, encodeText);
|
|
4329
4278
|
}
|
|
4330
4279
|
}
|
|
4331
4280
|
if (!utils$1.isString(withCredentials)) {
|
|
4332
|
-
withCredentials = withCredentials ? "
|
|
4281
|
+
withCredentials = withCredentials ? "cors" : "omit";
|
|
4333
4282
|
}
|
|
4334
4283
|
request = new Request(url, {
|
|
4335
4284
|
...fetchOptions,
|
|
@@ -4338,7 +4287,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4338
4287
|
headers: headers.normalize().toJSON(),
|
|
4339
4288
|
body: data2,
|
|
4340
4289
|
duplex: "half",
|
|
4341
|
-
|
|
4290
|
+
withCredentials
|
|
4342
4291
|
});
|
|
4343
4292
|
let response = await fetch(request);
|
|
4344
4293
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4348,15 +4297,11 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4348
4297
|
options[prop3] = response[prop3];
|
|
4349
4298
|
});
|
|
4350
4299
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
4351
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
4352
|
-
responseContentLength,
|
|
4353
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
4354
|
-
) || [];
|
|
4355
4300
|
response = new Response(
|
|
4356
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4301
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(
|
|
4302
|
+
responseContentLength,
|
|
4303
|
+
progressEventReducer(onDownloadProgress, true)
|
|
4304
|
+
), isStreamResponse && onFinish, encodeText),
|
|
4360
4305
|
options
|
|
4361
4306
|
);
|
|
4362
4307
|
}
|
|
@@ -4482,7 +4427,7 @@ function dispatchRequest(config) {
|
|
|
4482
4427
|
return Promise.reject(reason);
|
|
4483
4428
|
});
|
|
4484
4429
|
}
|
|
4485
|
-
const VERSION = "1.7.
|
|
4430
|
+
const VERSION = "1.7.2";
|
|
4486
4431
|
const validators$1 = {};
|
|
4487
4432
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4488
4433
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5134,7 +5079,6 @@ class Bagel {
|
|
|
5134
5079
|
const formData = new FormData();
|
|
5135
5080
|
formData.append("file", file);
|
|
5136
5081
|
let url = "/static_files/upload";
|
|
5137
|
-
console.log(options == null ? void 0 : options.topic);
|
|
5138
5082
|
if (options == null ? void 0 : options.topic)
|
|
5139
5083
|
url = `/static_files/upload?topic=${options.topic}`;
|
|
5140
5084
|
const { data: data2 } = await axios.post(url, formData, {
|
|
@@ -5296,6 +5240,10 @@ const state$1 = reactive({
|
|
|
5296
5240
|
lang: "en"
|
|
5297
5241
|
});
|
|
5298
5242
|
function $tdb(langEl) {
|
|
5243
|
+
if (!langEl) {
|
|
5244
|
+
console.warn("No language element provided for $tdb function");
|
|
5245
|
+
return "";
|
|
5246
|
+
}
|
|
5299
5247
|
return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5300
5248
|
}
|
|
5301
5249
|
function useLang() {
|
|
@@ -45850,18 +45798,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45850
45798
|
searchable: true
|
|
45851
45799
|
};
|
|
45852
45800
|
const defaultInputOptions = {
|
|
45853
|
-
|
|
45854
|
-
|
|
45801
|
+
showDialCode: true,
|
|
45802
|
+
autofocus: false,
|
|
45855
45803
|
"aria-describedby": "",
|
|
45856
|
-
|
|
45857
|
-
|
|
45858
|
-
|
|
45859
|
-
|
|
45860
|
-
|
|
45861
|
-
|
|
45862
|
-
|
|
45863
|
-
|
|
45864
|
-
|
|
45804
|
+
id: "",
|
|
45805
|
+
maxlength: 25,
|
|
45806
|
+
minlength: 9,
|
|
45807
|
+
pattern: void 0,
|
|
45808
|
+
name: "",
|
|
45809
|
+
readonly: false,
|
|
45810
|
+
tabindex: 0,
|
|
45811
|
+
style: "",
|
|
45812
|
+
placeholder: "Enter a phone number"
|
|
45865
45813
|
};
|
|
45866
45814
|
const computedDropDownOptions = computed(() => ({
|
|
45867
45815
|
...defaultDropdownOptions,
|
|
@@ -45954,6 +45902,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45954
45902
|
}
|
|
45955
45903
|
);
|
|
45956
45904
|
async function initializeCountry() {
|
|
45905
|
+
if (props2.modelValue.includes("+")) {
|
|
45906
|
+
const sanitized = `${props2.modelValue}`.replace(/[\+\-\s]/gi, "");
|
|
45907
|
+
const twoDigits = sanitized.slice(0, 2);
|
|
45908
|
+
const threeDigits = sanitized.slice(0, 3);
|
|
45909
|
+
const country = findCountryByDialCode(+threeDigits) || findCountryByDialCode(+twoDigits);
|
|
45910
|
+
if (country) {
|
|
45911
|
+
chooseCountry(country.iso2);
|
|
45912
|
+
return;
|
|
45913
|
+
}
|
|
45914
|
+
}
|
|
45957
45915
|
if (props2.defaultCountry) {
|
|
45958
45916
|
if (typeof props2.defaultCountry === "string") {
|
|
45959
45917
|
chooseCountry(props2.defaultCountry);
|
|
@@ -45991,7 +45949,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45991
45949
|
return countryList;
|
|
45992
45950
|
}
|
|
45993
45951
|
function findCountryByDialCode(dialCode) {
|
|
45994
|
-
return filteredCountries.value.find(
|
|
45952
|
+
return filteredCountries.value.find(
|
|
45953
|
+
(country) => Number(country.dialCode) === dialCode
|
|
45954
|
+
);
|
|
45995
45955
|
}
|
|
45996
45956
|
function chooseCountry(country) {
|
|
45997
45957
|
var _a2;
|
|
@@ -46019,9 +45979,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46019
45979
|
emit2("space");
|
|
46020
45980
|
}
|
|
46021
45981
|
function reset() {
|
|
46022
|
-
selectedIndex.value = sortedCountries.value.findIndex(
|
|
46023
|
-
(c2) => c2.iso2 === activeCountryCode.value
|
|
46024
|
-
);
|
|
45982
|
+
selectedIndex.value = sortedCountries.value.findIndex((c2) => c2.iso2 === activeCountryCode.value);
|
|
46025
45983
|
open.value = false;
|
|
46026
45984
|
}
|
|
46027
45985
|
function handleInput(e) {
|
|
@@ -46077,10 +46035,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46077
46035
|
class: "flex gap-075",
|
|
46078
46036
|
tabindex: "-1",
|
|
46079
46037
|
"aria-selected": unref(activeCountryCode) === pb.iso2 && !isPreferred(pb),
|
|
46080
|
-
onClick: ($event) =>
|
|
46081
|
-
chooseCountry(pb.iso2);
|
|
46082
|
-
hide2();
|
|
46083
|
-
},
|
|
46038
|
+
onClick: ($event) => hide2() && chooseCountry(pb.iso2),
|
|
46084
46039
|
onMousemove: ($event) => isRef(selectedIndex) ? selectedIndex.value = index2 : selectedIndex = index2
|
|
46085
46040
|
}, [
|
|
46086
46041
|
computedDropDownOptions.value.showFlags ? (openBlock(), createBlock(unref(Flag), {
|
|
@@ -46143,7 +46098,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46143
46098
|
};
|
|
46144
46099
|
}
|
|
46145
46100
|
});
|
|
46146
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
46101
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-27c14f9f"]]);
|
|
46147
46102
|
/*!
|
|
46148
46103
|
* Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
|
|
46149
46104
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -48170,10 +48125,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48170
48125
|
return result2;
|
|
48171
48126
|
});
|
|
48172
48127
|
var omit$1 = omit;
|
|
48173
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48128
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test, obj) {
|
|
48174
48129
|
var result2 = {};
|
|
48175
48130
|
for (var prop3 in obj) {
|
|
48176
|
-
if (
|
|
48131
|
+
if (test(obj[prop3], prop3, obj)) {
|
|
48177
48132
|
result2[prop3] = obj[prop3];
|
|
48178
48133
|
}
|
|
48179
48134
|
}
|