@bagelink/vue 0.0.587 → 0.0.596
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/ModalForm.vue.d.ts.map +1 -1
- package/dist/index.cjs +95 -181
- package/dist/index.mjs +95 -181
- package/dist/style.css +16 -2
- package/dist/types/BagelForm.d.ts +1 -0
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/components/ModalForm.vue +5 -0
- package/src/styles/appearance.css +17 -0
- package/src/types/BagelForm.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -112,12 +112,21 @@ function getPaddingObject(padding) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
function rectToClientRect$1(rect) {
|
|
115
|
+
const {
|
|
116
|
+
x: x2,
|
|
117
|
+
y: y2,
|
|
118
|
+
width,
|
|
119
|
+
height
|
|
120
|
+
} = rect;
|
|
115
121
|
return {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
width,
|
|
123
|
+
height,
|
|
124
|
+
top: y2,
|
|
125
|
+
left: x2,
|
|
126
|
+
right: x2 + width,
|
|
127
|
+
bottom: y2 + height,
|
|
128
|
+
x: x2,
|
|
129
|
+
y: y2
|
|
121
130
|
};
|
|
122
131
|
}
|
|
123
132
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
@@ -288,9 +297,10 @@ async function detectOverflow$1(state2, options) {
|
|
|
288
297
|
strategy
|
|
289
298
|
}));
|
|
290
299
|
const rect = elementContext === "floating" ? {
|
|
291
|
-
...rects.floating,
|
|
292
300
|
x: x2,
|
|
293
|
-
y: y2
|
|
301
|
+
y: y2,
|
|
302
|
+
width: rects.floating.width,
|
|
303
|
+
height: rects.floating.height
|
|
294
304
|
} : rects.reference;
|
|
295
305
|
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
296
306
|
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
@@ -501,10 +511,12 @@ const flip$2 = function(options) {
|
|
|
501
511
|
return {};
|
|
502
512
|
}
|
|
503
513
|
const side = getSide$1(placement);
|
|
514
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
504
515
|
const isBasePlacement = getSide$1(initialPlacement) === initialPlacement;
|
|
505
516
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
506
517
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement$1(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
507
|
-
|
|
518
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
519
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
508
520
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
509
521
|
}
|
|
510
522
|
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
@@ -541,8 +553,16 @@ const flip$2 = function(options) {
|
|
|
541
553
|
if (!resetPlacement) {
|
|
542
554
|
switch (fallbackStrategy) {
|
|
543
555
|
case "bestFit": {
|
|
544
|
-
var _overflowsData$
|
|
545
|
-
const placement2 = (_overflowsData$
|
|
556
|
+
var _overflowsData$filter2;
|
|
557
|
+
const placement2 = (_overflowsData$filter2 = overflowsData.filter((d2) => {
|
|
558
|
+
if (hasFallbackAxisSideDirection) {
|
|
559
|
+
const currentSideAxis = getSideAxis(d2.placement);
|
|
560
|
+
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
561
|
+
// reading directions favoring greater width.
|
|
562
|
+
currentSideAxis === "y";
|
|
563
|
+
}
|
|
564
|
+
return true;
|
|
565
|
+
}).map((d2) => [d2.placement, d2.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
546
566
|
if (placement2) {
|
|
547
567
|
resetPlacement = placement2;
|
|
548
568
|
}
|
|
@@ -737,16 +757,16 @@ const size = function(options) {
|
|
|
737
757
|
widthSide = side;
|
|
738
758
|
heightSide = alignment === "end" ? "top" : "bottom";
|
|
739
759
|
}
|
|
740
|
-
const
|
|
741
|
-
const
|
|
760
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
761
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
762
|
+
const overflowAvailableHeight = min$3(height - overflow[heightSide], maximumClippingHeight);
|
|
763
|
+
const overflowAvailableWidth = min$3(width - overflow[widthSide], maximumClippingWidth);
|
|
742
764
|
const noShift = !state2.middlewareData.shift;
|
|
743
765
|
let availableHeight = overflowAvailableHeight;
|
|
744
766
|
let availableWidth = overflowAvailableWidth;
|
|
745
767
|
if (isYAxis) {
|
|
746
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
747
768
|
availableWidth = alignment || noShift ? min$3(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
748
769
|
} else {
|
|
749
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
750
770
|
availableHeight = alignment || noShift ? min$3(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
751
771
|
}
|
|
752
772
|
if (noShift && !alignment) {
|
|
@@ -3383,7 +3403,6 @@ const defaults$1 = {
|
|
|
3383
3403
|
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
3384
3404
|
defaults$1.headers[method] = {};
|
|
3385
3405
|
});
|
|
3386
|
-
const defaults$2 = defaults$1;
|
|
3387
3406
|
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
3388
3407
|
"age",
|
|
3389
3408
|
"authorization",
|
|
@@ -3645,11 +3664,10 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
3645
3664
|
};
|
|
3646
3665
|
});
|
|
3647
3666
|
utils$1.freezeMethods(AxiosHeaders);
|
|
3648
|
-
const AxiosHeaders$1 = AxiosHeaders;
|
|
3649
3667
|
function transformData(fns, response) {
|
|
3650
|
-
const config = this || defaults$
|
|
3668
|
+
const config = this || defaults$1;
|
|
3651
3669
|
const context = response || config;
|
|
3652
|
-
const headers = AxiosHeaders
|
|
3670
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
3653
3671
|
let data2 = context.data;
|
|
3654
3672
|
utils$1.forEach(fns, function transform(fn3) {
|
|
3655
3673
|
data2 = fn3.call(config, data2, headers.normalize(), response ? response.status : void 0);
|
|
@@ -3848,7 +3866,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
3848
3866
|
}
|
|
3849
3867
|
return requestedURL;
|
|
3850
3868
|
}
|
|
3851
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders
|
|
3869
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
3852
3870
|
function mergeConfig(config1, config2) {
|
|
3853
3871
|
config2 = config2 || {};
|
|
3854
3872
|
const config = {};
|
|
@@ -3929,7 +3947,7 @@ function mergeConfig(config1, config2) {
|
|
|
3929
3947
|
const resolveConfig = (config) => {
|
|
3930
3948
|
const newConfig = mergeConfig({}, config);
|
|
3931
3949
|
let { data: data2, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
3932
|
-
newConfig.headers = headers = AxiosHeaders
|
|
3950
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
3933
3951
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
3934
3952
|
if (auth) {
|
|
3935
3953
|
headers.set(
|
|
@@ -3962,7 +3980,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3962
3980
|
return new Promise(function dispatchXhrRequest(resolve, reject3) {
|
|
3963
3981
|
const _config = resolveConfig(config);
|
|
3964
3982
|
let requestData = _config.data;
|
|
3965
|
-
const requestHeaders = AxiosHeaders
|
|
3983
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
3966
3984
|
let { responseType } = _config;
|
|
3967
3985
|
let onCanceled;
|
|
3968
3986
|
function done() {
|
|
@@ -3980,7 +3998,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3980
3998
|
if (!request) {
|
|
3981
3999
|
return;
|
|
3982
4000
|
}
|
|
3983
|
-
const responseHeaders = AxiosHeaders
|
|
4001
|
+
const responseHeaders = AxiosHeaders.from(
|
|
3984
4002
|
"getAllResponseHeaders" in request && request.getAllResponseHeaders()
|
|
3985
4003
|
);
|
|
3986
4004
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
@@ -4296,7 +4314,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4296
4314
|
return await new Promise((resolve, reject3) => {
|
|
4297
4315
|
settle(resolve, reject3, {
|
|
4298
4316
|
data: responseData,
|
|
4299
|
-
headers: AxiosHeaders
|
|
4317
|
+
headers: AxiosHeaders.from(response.headers),
|
|
4300
4318
|
status: response.status,
|
|
4301
4319
|
statusText: response.statusText,
|
|
4302
4320
|
config,
|
|
@@ -4378,7 +4396,7 @@ function throwIfCancellationRequested(config) {
|
|
|
4378
4396
|
}
|
|
4379
4397
|
function dispatchRequest(config) {
|
|
4380
4398
|
throwIfCancellationRequested(config);
|
|
4381
|
-
config.headers = AxiosHeaders
|
|
4399
|
+
config.headers = AxiosHeaders.from(config.headers);
|
|
4382
4400
|
config.data = transformData.call(
|
|
4383
4401
|
config,
|
|
4384
4402
|
config.transformRequest
|
|
@@ -4386,7 +4404,7 @@ function dispatchRequest(config) {
|
|
|
4386
4404
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
4387
4405
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
4388
4406
|
}
|
|
4389
|
-
const adapter = adapters.getAdapter(config.adapter || defaults$
|
|
4407
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
4390
4408
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
4391
4409
|
throwIfCancellationRequested(config);
|
|
4392
4410
|
response.data = transformData.call(
|
|
@@ -4394,7 +4412,7 @@ function dispatchRequest(config) {
|
|
|
4394
4412
|
config.transformResponse,
|
|
4395
4413
|
response
|
|
4396
4414
|
);
|
|
4397
|
-
response.headers = AxiosHeaders
|
|
4415
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
4398
4416
|
return response;
|
|
4399
4417
|
}, function onAdapterRejection(reason) {
|
|
4400
4418
|
if (!isCancel(reason)) {
|
|
@@ -4405,7 +4423,7 @@ function dispatchRequest(config) {
|
|
|
4405
4423
|
config.transformResponse,
|
|
4406
4424
|
reason.response
|
|
4407
4425
|
);
|
|
4408
|
-
reason.response.headers = AxiosHeaders
|
|
4426
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
4409
4427
|
}
|
|
4410
4428
|
}
|
|
4411
4429
|
return Promise.reject(reason);
|
|
@@ -4544,7 +4562,7 @@ class Axios {
|
|
|
4544
4562
|
delete headers[method];
|
|
4545
4563
|
}
|
|
4546
4564
|
);
|
|
4547
|
-
config.headers = AxiosHeaders
|
|
4565
|
+
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
4548
4566
|
const requestInterceptorChain = [];
|
|
4549
4567
|
let synchronousRequestInterceptors = true;
|
|
4550
4568
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -4628,7 +4646,6 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
4628
4646
|
Axios.prototype[method] = generateHTTPMethod();
|
|
4629
4647
|
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
4630
4648
|
});
|
|
4631
|
-
const Axios$1 = Axios;
|
|
4632
4649
|
class CancelToken {
|
|
4633
4650
|
constructor(executor) {
|
|
4634
4651
|
if (typeof executor !== "function") {
|
|
@@ -4715,7 +4732,6 @@ class CancelToken {
|
|
|
4715
4732
|
};
|
|
4716
4733
|
}
|
|
4717
4734
|
}
|
|
4718
|
-
const CancelToken$1 = CancelToken;
|
|
4719
4735
|
function spread(callback) {
|
|
4720
4736
|
return function wrap2(arr) {
|
|
4721
4737
|
return callback.apply(null, arr);
|
|
@@ -4792,21 +4808,20 @@ const HttpStatusCode = {
|
|
|
4792
4808
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
4793
4809
|
HttpStatusCode[value] = key;
|
|
4794
4810
|
});
|
|
4795
|
-
const HttpStatusCode$1 = HttpStatusCode;
|
|
4796
4811
|
function createInstance(defaultConfig2) {
|
|
4797
|
-
const context = new Axios
|
|
4798
|
-
const instance = bind$2(Axios
|
|
4799
|
-
utils$1.extend(instance, Axios
|
|
4812
|
+
const context = new Axios(defaultConfig2);
|
|
4813
|
+
const instance = bind$2(Axios.prototype.request, context);
|
|
4814
|
+
utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
4800
4815
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
4801
4816
|
instance.create = function create(instanceConfig) {
|
|
4802
4817
|
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
4803
4818
|
};
|
|
4804
4819
|
return instance;
|
|
4805
4820
|
}
|
|
4806
|
-
const axios$1 = createInstance(defaults$
|
|
4807
|
-
axios$1.Axios = Axios
|
|
4821
|
+
const axios$1 = createInstance(defaults$1);
|
|
4822
|
+
axios$1.Axios = Axios;
|
|
4808
4823
|
axios$1.CanceledError = CanceledError;
|
|
4809
|
-
axios$1.CancelToken = CancelToken
|
|
4824
|
+
axios$1.CancelToken = CancelToken;
|
|
4810
4825
|
axios$1.isCancel = isCancel;
|
|
4811
4826
|
axios$1.VERSION = VERSION;
|
|
4812
4827
|
axios$1.toFormData = toFormData;
|
|
@@ -4818,10 +4833,10 @@ axios$1.all = function all(promises) {
|
|
|
4818
4833
|
axios$1.spread = spread;
|
|
4819
4834
|
axios$1.isAxiosError = isAxiosError;
|
|
4820
4835
|
axios$1.mergeConfig = mergeConfig;
|
|
4821
|
-
axios$1.AxiosHeaders = AxiosHeaders
|
|
4836
|
+
axios$1.AxiosHeaders = AxiosHeaders;
|
|
4822
4837
|
axios$1.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
4823
4838
|
axios$1.getAdapter = adapters.getAdapter;
|
|
4824
|
-
axios$1.HttpStatusCode = HttpStatusCode
|
|
4839
|
+
axios$1.HttpStatusCode = HttpStatusCode;
|
|
4825
4840
|
axios$1.default = axios$1;
|
|
4826
4841
|
var __defProp = Object.defineProperty;
|
|
4827
4842
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -5065,7 +5080,10 @@ class Bagel {
|
|
|
5065
5080
|
this._setAuthorization();
|
|
5066
5081
|
const formData = new FormData();
|
|
5067
5082
|
formData.append("file", file);
|
|
5068
|
-
|
|
5083
|
+
let url = "/static_files/upload";
|
|
5084
|
+
if (options == null ? void 0 : options.topic)
|
|
5085
|
+
url = `/static_files/upload?topic=${options.topic}`;
|
|
5086
|
+
const { data: data2 } = await axios.post(url, formData, {
|
|
5069
5087
|
headers: {
|
|
5070
5088
|
"Content-Type": "multipart/form-data"
|
|
5071
5089
|
},
|
|
@@ -5790,13 +5808,17 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
5790
5808
|
var _a2;
|
|
5791
5809
|
return (_a2 = modal.value) == null ? void 0 : _a2.closeModal();
|
|
5792
5810
|
};
|
|
5811
|
+
let submitting = vue.ref(false);
|
|
5793
5812
|
async function runSubmit() {
|
|
5794
5813
|
var _a2, _b, _c, _d;
|
|
5814
|
+
if (submitting.value) return;
|
|
5815
|
+
submitting.value = true;
|
|
5795
5816
|
if (((_b = (_a2 = form.value) == null ? void 0 : _a2.validateForm) == null ? void 0 : _b.call(_a2)) === false) return;
|
|
5796
5817
|
try {
|
|
5797
5818
|
await ((_c = props2.onSubmit) == null ? void 0 : _c.call(props2, formData.value));
|
|
5798
5819
|
closeModal();
|
|
5799
5820
|
} catch (err) {
|
|
5821
|
+
submitting.value = false;
|
|
5800
5822
|
if (props2.onError) props2.onError(err);
|
|
5801
5823
|
else (_d = bagel.onError) == null ? void 0 : _d.call(bagel, err);
|
|
5802
5824
|
}
|
|
@@ -5864,7 +5886,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
5864
5886
|
};
|
|
5865
5887
|
}
|
|
5866
5888
|
});
|
|
5867
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-
|
|
5889
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-b0a25141"]]);
|
|
5868
5890
|
const _hoisted_1$G = { class: "accordion-item" };
|
|
5869
5891
|
const _hoisted_2$x = ["aria-expanded", "aria-controls"];
|
|
5870
5892
|
const _hoisted_3$l = { class: "accordion-label" };
|
|
@@ -6030,7 +6052,7 @@ function toValue(r2) {
|
|
|
6030
6052
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
6031
6053
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
6032
6054
|
function getLifeCycleTarget(target) {
|
|
6033
|
-
return
|
|
6055
|
+
return vue.getCurrentInstance();
|
|
6034
6056
|
}
|
|
6035
6057
|
function tryOnMounted(fn3, sync = true, target) {
|
|
6036
6058
|
const instance = getLifeCycleTarget();
|
|
@@ -17266,12 +17288,7 @@ function eachDayOfInterval(interval, options) {
|
|
|
17266
17288
|
const endTime = reversed ? +startDate : +endDate;
|
|
17267
17289
|
const currentDate = reversed ? endDate : startDate;
|
|
17268
17290
|
currentDate.setHours(0, 0, 0, 0);
|
|
17269
|
-
let step =
|
|
17270
|
-
if (!step) return [];
|
|
17271
|
-
if (step < 0) {
|
|
17272
|
-
step = -step;
|
|
17273
|
-
reversed = !reversed;
|
|
17274
|
-
}
|
|
17291
|
+
let step = 1;
|
|
17275
17292
|
const dates = [];
|
|
17276
17293
|
while (+currentDate <= endTime) {
|
|
17277
17294
|
dates.push(toDate(currentDate));
|
|
@@ -17294,12 +17311,7 @@ function eachQuarterOfInterval(interval, options) {
|
|
|
17294
17311
|
let reversed = +startDate > +endDate;
|
|
17295
17312
|
const endTime = reversed ? +startOfQuarter(startDate) : +startOfQuarter(endDate);
|
|
17296
17313
|
let currentDate = reversed ? startOfQuarter(endDate) : startOfQuarter(startDate);
|
|
17297
|
-
let step =
|
|
17298
|
-
if (!step) return [];
|
|
17299
|
-
if (step < 0) {
|
|
17300
|
-
step = -step;
|
|
17301
|
-
reversed = !reversed;
|
|
17302
|
-
}
|
|
17314
|
+
let step = 1;
|
|
17303
17315
|
const dates = [];
|
|
17304
17316
|
while (+currentDate <= endTime) {
|
|
17305
17317
|
dates.push(toDate(currentDate));
|
|
@@ -26145,10 +26157,8 @@ function isScrolledPast(el, elSide, parentSide) {
|
|
|
26145
26157
|
var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
|
|
26146
26158
|
while (parent) {
|
|
26147
26159
|
var parentSideVal = getRect(parent)[parentSide], visible = void 0;
|
|
26148
|
-
|
|
26160
|
+
{
|
|
26149
26161
|
visible = elSideVal >= parentSideVal;
|
|
26150
|
-
} else {
|
|
26151
|
-
visible = elSideVal <= parentSideVal;
|
|
26152
26162
|
}
|
|
26153
26163
|
if (!visible) return parent;
|
|
26154
26164
|
if (parent === getWindowScrollingElement()) break;
|
|
@@ -29865,8 +29875,6 @@ function removeRange(content, from2, to2) {
|
|
|
29865
29875
|
function insertInto(content, dist, insert, parent) {
|
|
29866
29876
|
let { index: index2, offset: offset2 } = content.findIndex(dist), child = content.maybeChild(index2);
|
|
29867
29877
|
if (offset2 == dist || child.isText) {
|
|
29868
|
-
if (parent && !parent.canReplace(index2, index2, insert))
|
|
29869
|
-
return null;
|
|
29870
29878
|
return content.cut(0, dist).append(insert).append(content.cut(dist));
|
|
29871
29879
|
}
|
|
29872
29880
|
let inner = insertInto(child.content, dist - offset2 - 1, insert);
|
|
@@ -37977,8 +37985,7 @@ function updateSelection(view, selection, origin2) {
|
|
|
37977
37985
|
if (!view.focused)
|
|
37978
37986
|
view.focus();
|
|
37979
37987
|
let tr2 = view.state.tr.setSelection(selection);
|
|
37980
|
-
|
|
37981
|
-
tr2.setMeta("pointer", true);
|
|
37988
|
+
tr2.setMeta("pointer", true);
|
|
37982
37989
|
view.dispatch(tr2);
|
|
37983
37990
|
}
|
|
37984
37991
|
function selectClickedLeaf(view, inside) {
|
|
@@ -37986,7 +37993,7 @@ function selectClickedLeaf(view, inside) {
|
|
|
37986
37993
|
return false;
|
|
37987
37994
|
let $pos = view.state.doc.resolve(inside), node = $pos.nodeAfter;
|
|
37988
37995
|
if (node && node.isAtom && NodeSelection.isSelectable(node)) {
|
|
37989
|
-
updateSelection(view, new NodeSelection($pos)
|
|
37996
|
+
updateSelection(view, new NodeSelection($pos));
|
|
37990
37997
|
return true;
|
|
37991
37998
|
}
|
|
37992
37999
|
return false;
|
|
@@ -38009,7 +38016,7 @@ function selectClickedNode(view, inside) {
|
|
|
38009
38016
|
}
|
|
38010
38017
|
}
|
|
38011
38018
|
if (selectAt != null) {
|
|
38012
|
-
updateSelection(view, NodeSelection.create(view.state.doc, selectAt)
|
|
38019
|
+
updateSelection(view, NodeSelection.create(view.state.doc, selectAt));
|
|
38013
38020
|
return true;
|
|
38014
38021
|
} else {
|
|
38015
38022
|
return false;
|
|
@@ -38030,7 +38037,7 @@ function defaultTripleClick(view, inside, event) {
|
|
|
38030
38037
|
let doc2 = view.state.doc;
|
|
38031
38038
|
if (inside == -1) {
|
|
38032
38039
|
if (doc2.inlineContent) {
|
|
38033
|
-
updateSelection(view, TextSelection.create(doc2, 0, doc2.content.size)
|
|
38040
|
+
updateSelection(view, TextSelection.create(doc2, 0, doc2.content.size));
|
|
38034
38041
|
return true;
|
|
38035
38042
|
}
|
|
38036
38043
|
return false;
|
|
@@ -38040,9 +38047,9 @@ function defaultTripleClick(view, inside, event) {
|
|
|
38040
38047
|
let node = i2 > $pos.depth ? $pos.nodeAfter : $pos.node(i2);
|
|
38041
38048
|
let nodePos = $pos.before(i2);
|
|
38042
38049
|
if (node.inlineContent)
|
|
38043
|
-
updateSelection(view, TextSelection.create(doc2, nodePos + 1, nodePos + 1 + node.content.size)
|
|
38050
|
+
updateSelection(view, TextSelection.create(doc2, nodePos + 1, nodePos + 1 + node.content.size));
|
|
38044
38051
|
else if (NodeSelection.isSelectable(node))
|
|
38045
|
-
updateSelection(view, NodeSelection.create(doc2, nodePos)
|
|
38052
|
+
updateSelection(view, NodeSelection.create(doc2, nodePos));
|
|
38046
38053
|
else
|
|
38047
38054
|
continue;
|
|
38048
38055
|
return true;
|
|
@@ -38159,7 +38166,7 @@ class MouseDown {
|
|
|
38159
38166
|
// thus doesn't get a reaction from ProseMirror. This
|
|
38160
38167
|
// works around that.
|
|
38161
38168
|
chrome && !this.view.state.selection.visible && Math.min(Math.abs(pos.pos - this.view.state.selection.from), Math.abs(pos.pos - this.view.state.selection.to)) <= 2)) {
|
|
38162
|
-
updateSelection(this.view, Selection$1.near(this.view.state.doc.resolve(pos.pos))
|
|
38169
|
+
updateSelection(this.view, Selection$1.near(this.view.state.doc.resolve(pos.pos)));
|
|
38163
38170
|
event.preventDefault();
|
|
38164
38171
|
} else {
|
|
38165
38172
|
setSelectionOrigin(this.view, "pointer");
|
|
@@ -42092,9 +42099,8 @@ class Extension {
|
|
|
42092
42099
|
configure(options = {}) {
|
|
42093
42100
|
const extension = this.extend({
|
|
42094
42101
|
...this.config,
|
|
42095
|
-
addOptions() {
|
|
42096
|
-
|
|
42097
|
-
return mergeDeep(((_a2 = this.parent) === null || _a2 === void 0 ? void 0 : _a2.call(this)) || {}, options);
|
|
42102
|
+
addOptions: () => {
|
|
42103
|
+
return mergeDeep(this.options, options);
|
|
42098
42104
|
}
|
|
42099
42105
|
});
|
|
42100
42106
|
extension.name = this.name;
|
|
@@ -44061,7 +44067,7 @@ img.ProseMirror-separator {
|
|
|
44061
44067
|
opacity: 0
|
|
44062
44068
|
}`;
|
|
44063
44069
|
function createStyleTag(style2, nonce, suffix) {
|
|
44064
|
-
const tiptapStyleTag = document.querySelector(`style[data-tiptap-style${
|
|
44070
|
+
const tiptapStyleTag = document.querySelector(`style[data-tiptap-style${""}]`);
|
|
44065
44071
|
if (tiptapStyleTag !== null) {
|
|
44066
44072
|
return tiptapStyleTag;
|
|
44067
44073
|
}
|
|
@@ -44069,7 +44075,7 @@ function createStyleTag(style2, nonce, suffix) {
|
|
|
44069
44075
|
if (nonce) {
|
|
44070
44076
|
styleNode.setAttribute("nonce", nonce);
|
|
44071
44077
|
}
|
|
44072
|
-
styleNode.setAttribute(`data-tiptap-style${
|
|
44078
|
+
styleNode.setAttribute(`data-tiptap-style${""}`, "");
|
|
44073
44079
|
styleNode.innerHTML = style2;
|
|
44074
44080
|
document.getElementsByTagName("head")[0].appendChild(styleNode);
|
|
44075
44081
|
return styleNode;
|
|
@@ -44610,9 +44616,8 @@ class Mark {
|
|
|
44610
44616
|
configure(options = {}) {
|
|
44611
44617
|
const extension = this.extend({
|
|
44612
44618
|
...this.config,
|
|
44613
|
-
addOptions() {
|
|
44614
|
-
|
|
44615
|
-
return mergeDeep(((_a2 = this.parent) === null || _a2 === void 0 ? void 0 : _a2.call(this)) || {}, options);
|
|
44619
|
+
addOptions: () => {
|
|
44620
|
+
return mergeDeep(this.options, options);
|
|
44616
44621
|
}
|
|
44617
44622
|
});
|
|
44618
44623
|
extension.name = this.name;
|
|
@@ -44692,9 +44697,8 @@ let Node$2 = class Node3 {
|
|
|
44692
44697
|
configure(options = {}) {
|
|
44693
44698
|
const extension = this.extend({
|
|
44694
44699
|
...this.config,
|
|
44695
|
-
addOptions() {
|
|
44696
|
-
|
|
44697
|
-
return mergeDeep(((_a2 = this.parent) === null || _a2 === void 0 ? void 0 : _a2.call(this)) || {}, options);
|
|
44700
|
+
addOptions: () => {
|
|
44701
|
+
return mergeDeep(this.options, options);
|
|
44698
44702
|
}
|
|
44699
44703
|
});
|
|
44700
44704
|
extension.name = this.name;
|
|
@@ -52584,9 +52588,6 @@ function createColGroup(node, cellMinWidth, overrideCol, overrideValue) {
|
|
|
52584
52588
|
return { colgroup, tableWidth, tableMinWidth };
|
|
52585
52589
|
}
|
|
52586
52590
|
function createCell(cellType, cellContent) {
|
|
52587
|
-
if (cellContent) {
|
|
52588
|
-
return cellType.createChecked(null, cellContent);
|
|
52589
|
-
}
|
|
52590
52591
|
return cellType.createAndFill();
|
|
52591
52592
|
}
|
|
52592
52593
|
function getTableNodeTypes(schema) {
|
|
@@ -52608,12 +52609,12 @@ function createTable$1(schema, rowsCount, colsCount, withHeaderRow, cellContent)
|
|
|
52608
52609
|
const headerCells = [];
|
|
52609
52610
|
const cells = [];
|
|
52610
52611
|
for (let index2 = 0; index2 < colsCount; index2 += 1) {
|
|
52611
|
-
const cell = createCell(types.cell
|
|
52612
|
+
const cell = createCell(types.cell);
|
|
52612
52613
|
if (cell) {
|
|
52613
52614
|
cells.push(cell);
|
|
52614
52615
|
}
|
|
52615
52616
|
if (withHeaderRow) {
|
|
52616
|
-
const headerCell = createCell(types.header_cell
|
|
52617
|
+
const headerCell = createCell(types.header_cell);
|
|
52617
52618
|
if (headerCell) {
|
|
52618
52619
|
headerCells.push(headerCell);
|
|
52619
52620
|
}
|
|
@@ -53168,18 +53169,7 @@ function _typeof$1(obj) {
|
|
|
53168
53169
|
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
53169
53170
|
}, _typeof$1(obj);
|
|
53170
53171
|
}
|
|
53171
|
-
function _defineProperties$2(target, props2) {
|
|
53172
|
-
for (var i2 = 0; i2 < props2.length; i2++) {
|
|
53173
|
-
var descriptor = props2[i2];
|
|
53174
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
53175
|
-
descriptor.configurable = true;
|
|
53176
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
53177
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
53178
|
-
}
|
|
53179
|
-
}
|
|
53180
53172
|
function _createClass$2(Constructor, protoProps, staticProps) {
|
|
53181
|
-
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
53182
|
-
if (staticProps) _defineProperties$2(Constructor, staticProps);
|
|
53183
53173
|
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
53184
53174
|
return Constructor;
|
|
53185
53175
|
}
|
|
@@ -53356,7 +53346,6 @@ function _defineProperties$1(target, props2) {
|
|
|
53356
53346
|
}
|
|
53357
53347
|
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
53358
53348
|
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
53359
|
-
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
53360
53349
|
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
53361
53350
|
return Constructor;
|
|
53362
53351
|
}
|
|
@@ -53998,10 +53987,10 @@ var DIGITS = {
|
|
|
53998
53987
|
function parseDigit(character) {
|
|
53999
53988
|
return DIGITS[character];
|
|
54000
53989
|
}
|
|
54001
|
-
function _createForOfIteratorHelperLoose$
|
|
53990
|
+
function _createForOfIteratorHelperLoose$3(o2, allowArrayLike) {
|
|
54002
53991
|
var it2 = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
54003
53992
|
if (it2) return (it2 = it2.call(o2)).next.bind(it2);
|
|
54004
|
-
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$
|
|
53993
|
+
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$4(o2)) || allowArrayLike) {
|
|
54005
53994
|
if (it2) o2 = it2;
|
|
54006
53995
|
var i2 = 0;
|
|
54007
53996
|
return function() {
|
|
@@ -54011,15 +54000,15 @@ function _createForOfIteratorHelperLoose$4(o2, allowArrayLike) {
|
|
|
54011
54000
|
}
|
|
54012
54001
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
54013
54002
|
}
|
|
54014
|
-
function _unsupportedIterableToArray$
|
|
54003
|
+
function _unsupportedIterableToArray$4(o2, minLen) {
|
|
54015
54004
|
if (!o2) return;
|
|
54016
|
-
if (typeof o2 === "string") return _arrayLikeToArray$
|
|
54005
|
+
if (typeof o2 === "string") return _arrayLikeToArray$4(o2, minLen);
|
|
54017
54006
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
54018
54007
|
if (n2 === "Object" && o2.constructor) n2 = o2.constructor.name;
|
|
54019
54008
|
if (n2 === "Map" || n2 === "Set") return Array.from(o2);
|
|
54020
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray$
|
|
54009
|
+
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray$4(o2, minLen);
|
|
54021
54010
|
}
|
|
54022
|
-
function _arrayLikeToArray$
|
|
54011
|
+
function _arrayLikeToArray$4(arr, len) {
|
|
54023
54012
|
if (len == null || len > arr.length) len = arr.length;
|
|
54024
54013
|
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++) {
|
|
54025
54014
|
arr2[i2] = arr[i2];
|
|
@@ -54028,7 +54017,7 @@ function _arrayLikeToArray$5(arr, len) {
|
|
|
54028
54017
|
}
|
|
54029
54018
|
function parseIncompletePhoneNumber(string2) {
|
|
54030
54019
|
var result2 = "";
|
|
54031
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
54020
|
+
for (var _iterator = _createForOfIteratorHelperLoose$3(string2.split("")), _step; !(_step = _iterator()).done; ) {
|
|
54032
54021
|
var character = _step.value;
|
|
54033
54022
|
result2 += parsePhoneNumberCharacter(character, result2) || "";
|
|
54034
54023
|
}
|
|
@@ -54037,55 +54026,12 @@ function parseIncompletePhoneNumber(string2) {
|
|
|
54037
54026
|
function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent) {
|
|
54038
54027
|
if (character === "+") {
|
|
54039
54028
|
if (prevParsedCharacters) {
|
|
54040
|
-
if (typeof emitEvent === "function") {
|
|
54041
|
-
emitEvent("end");
|
|
54042
|
-
}
|
|
54043
54029
|
return;
|
|
54044
54030
|
}
|
|
54045
54031
|
return "+";
|
|
54046
54032
|
}
|
|
54047
54033
|
return parseDigit(character);
|
|
54048
54034
|
}
|
|
54049
|
-
function _createForOfIteratorHelperLoose$3(o2, allowArrayLike) {
|
|
54050
|
-
var it2 = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
54051
|
-
if (it2) return (it2 = it2.call(o2)).next.bind(it2);
|
|
54052
|
-
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$4(o2)) || allowArrayLike && o2 && typeof o2.length === "number") {
|
|
54053
|
-
if (it2) o2 = it2;
|
|
54054
|
-
var i2 = 0;
|
|
54055
|
-
return function() {
|
|
54056
|
-
if (i2 >= o2.length) return { done: true };
|
|
54057
|
-
return { done: false, value: o2[i2++] };
|
|
54058
|
-
};
|
|
54059
|
-
}
|
|
54060
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
54061
|
-
}
|
|
54062
|
-
function _unsupportedIterableToArray$4(o2, minLen) {
|
|
54063
|
-
if (!o2) return;
|
|
54064
|
-
if (typeof o2 === "string") return _arrayLikeToArray$4(o2, minLen);
|
|
54065
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
54066
|
-
if (n2 === "Object" && o2.constructor) n2 = o2.constructor.name;
|
|
54067
|
-
if (n2 === "Map" || n2 === "Set") return Array.from(o2);
|
|
54068
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray$4(o2, minLen);
|
|
54069
|
-
}
|
|
54070
|
-
function _arrayLikeToArray$4(arr, len) {
|
|
54071
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
54072
|
-
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++) {
|
|
54073
|
-
arr2[i2] = arr[i2];
|
|
54074
|
-
}
|
|
54075
|
-
return arr2;
|
|
54076
|
-
}
|
|
54077
|
-
function mergeArrays(a2, b2) {
|
|
54078
|
-
var merged = a2.slice();
|
|
54079
|
-
for (var _iterator = _createForOfIteratorHelperLoose$3(b2), _step; !(_step = _iterator()).done; ) {
|
|
54080
|
-
var element = _step.value;
|
|
54081
|
-
if (a2.indexOf(element) < 0) {
|
|
54082
|
-
merged.push(element);
|
|
54083
|
-
}
|
|
54084
|
-
}
|
|
54085
|
-
return merged.sort(function(a3, b3) {
|
|
54086
|
-
return a3 - b3;
|
|
54087
|
-
});
|
|
54088
|
-
}
|
|
54089
54035
|
function checkNumberLength(nationalNumber, metadata2) {
|
|
54090
54036
|
return checkNumberLengthForType(nationalNumber, void 0, metadata2);
|
|
54091
54037
|
}
|
|
@@ -54095,17 +54041,6 @@ function checkNumberLengthForType(nationalNumber, type3, metadata2) {
|
|
|
54095
54041
|
if (!possible_lengths) {
|
|
54096
54042
|
return "IS_POSSIBLE";
|
|
54097
54043
|
}
|
|
54098
|
-
if (type3 === "FIXED_LINE_OR_MOBILE") {
|
|
54099
|
-
if (!metadata2.type("FIXED_LINE")) {
|
|
54100
|
-
return checkNumberLengthForType(nationalNumber, "MOBILE", metadata2);
|
|
54101
|
-
}
|
|
54102
|
-
var mobile_type = metadata2.type("MOBILE");
|
|
54103
|
-
if (mobile_type) {
|
|
54104
|
-
possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());
|
|
54105
|
-
}
|
|
54106
|
-
} else if (type3 && !type_info) {
|
|
54107
|
-
return "INVALID_LENGTH";
|
|
54108
|
-
}
|
|
54109
54044
|
var actual_length = nationalNumber.length;
|
|
54110
54045
|
var minimum_length = possible_lengths[0];
|
|
54111
54046
|
if (minimum_length === actual_length) {
|
|
@@ -54170,7 +54105,7 @@ function matchesEntirely(text, regular_expression) {
|
|
|
54170
54105
|
function _createForOfIteratorHelperLoose$2(o2, allowArrayLike) {
|
|
54171
54106
|
var it2 = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
54172
54107
|
if (it2) return (it2 = it2.call(o2)).next.bind(it2);
|
|
54173
|
-
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$3(o2)) || allowArrayLike
|
|
54108
|
+
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$3(o2)) || allowArrayLike) {
|
|
54174
54109
|
if (it2) o2 = it2;
|
|
54175
54110
|
var i2 = 0;
|
|
54176
54111
|
return function() {
|
|
@@ -54270,8 +54205,6 @@ function applyInternationalSeparatorStyle(formattedNumber) {
|
|
|
54270
54205
|
var FIRST_GROUP_PATTERN = /(\$\d)/;
|
|
54271
54206
|
function formatNationalNumberUsingFormat(number2, format2, _ref) {
|
|
54272
54207
|
var useInternationalFormat = _ref.useInternationalFormat, withNationalPrefix = _ref.withNationalPrefix;
|
|
54273
|
-
_ref.carrierCode;
|
|
54274
|
-
_ref.metadata;
|
|
54275
54208
|
var formattedNumber = number2.replace(new RegExp(format2.pattern()), useInternationalFormat ? format2.internationalFormat() : (
|
|
54276
54209
|
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
54277
54210
|
// because that one is only used when formatting phone numbers
|
|
@@ -54317,7 +54250,7 @@ function formatRFC3966(_ref) {
|
|
|
54317
54250
|
function _createForOfIteratorHelperLoose$1(o2, allowArrayLike) {
|
|
54318
54251
|
var it2 = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
54319
54252
|
if (it2) return (it2 = it2.call(o2)).next.bind(it2);
|
|
54320
|
-
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$2(o2)) || allowArrayLike
|
|
54253
|
+
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$2(o2)) || allowArrayLike) {
|
|
54321
54254
|
if (it2) o2 = it2;
|
|
54322
54255
|
var i2 = 0;
|
|
54323
54256
|
return function() {
|
|
@@ -54513,7 +54446,6 @@ function _defineProperties(target, props2) {
|
|
|
54513
54446
|
}
|
|
54514
54447
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
54515
54448
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
54516
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
54517
54449
|
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
54518
54450
|
return Constructor;
|
|
54519
54451
|
}
|
|
@@ -54810,7 +54742,7 @@ function extractCountryCallingCode(number2, country, callingCode, metadata2) {
|
|
|
54810
54742
|
function _createForOfIteratorHelperLoose(o2, allowArrayLike) {
|
|
54811
54743
|
var it2 = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
54812
54744
|
if (it2) return (it2 = it2.call(o2)).next.bind(it2);
|
|
54813
|
-
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$1(o2)) || allowArrayLike
|
|
54745
|
+
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$1(o2)) || allowArrayLike) {
|
|
54814
54746
|
if (it2) o2 = it2;
|
|
54815
54747
|
var i2 = 0;
|
|
54816
54748
|
return function() {
|
|
@@ -54864,14 +54796,8 @@ function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
|
|
|
54864
54796
|
return matchingCountries[0];
|
|
54865
54797
|
}
|
|
54866
54798
|
}
|
|
54867
|
-
var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
|
|
54868
54799
|
function getCountryByCallingCode(callingCode, _ref) {
|
|
54869
54800
|
var nationalPhoneNumber = _ref.nationalNumber, defaultCountry = _ref.defaultCountry, metadata2 = _ref.metadata;
|
|
54870
|
-
if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
|
|
54871
|
-
if (metadata2.isNonGeographicCallingCode(callingCode)) {
|
|
54872
|
-
return "001";
|
|
54873
|
-
}
|
|
54874
|
-
}
|
|
54875
54801
|
var possibleCountries = metadata2.getCountryCodesForCallingCode(callingCode);
|
|
54876
54802
|
if (!possibleCountries) {
|
|
54877
54803
|
return;
|
|
@@ -57705,7 +57631,7 @@ const bisectCenter = bisector(number$2).center;
|
|
|
57705
57631
|
function extent(values3, valueof) {
|
|
57706
57632
|
let min2;
|
|
57707
57633
|
let max2;
|
|
57708
|
-
|
|
57634
|
+
{
|
|
57709
57635
|
for (const value of values3) {
|
|
57710
57636
|
if (value != null) {
|
|
57711
57637
|
if (min2 === void 0) {
|
|
@@ -57716,18 +57642,6 @@ function extent(values3, valueof) {
|
|
|
57716
57642
|
}
|
|
57717
57643
|
}
|
|
57718
57644
|
}
|
|
57719
|
-
} else {
|
|
57720
|
-
let index2 = -1;
|
|
57721
|
-
for (let value of values3) {
|
|
57722
|
-
if ((value = valueof(value, ++index2, values3)) != null) {
|
|
57723
|
-
if (min2 === void 0) {
|
|
57724
|
-
if (value >= value) min2 = max2 = value;
|
|
57725
|
-
} else {
|
|
57726
|
-
if (min2 > value) min2 = value;
|
|
57727
|
-
if (max2 < value) max2 = value;
|
|
57728
|
-
}
|
|
57729
|
-
}
|
|
57730
|
-
}
|
|
57731
57645
|
}
|
|
57732
57646
|
return [min2, max2];
|
|
57733
57647
|
}
|