@wix/form-public 0.184.0 → 0.186.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/dist/index.js CHANGED
@@ -22211,6 +22211,7 @@ var require_messages_en = __commonJS({
22211
22211
  "payment-input.input.error.message.max-value-error": "Enter a payment amount less than {currency}{limit}.",
22212
22212
  "ecom-phone.input.error.message.required-error": "Enter a phone number.",
22213
22213
  "payment-input.input.error.message.value-range-error": "Enter a payment amount between {currency}{minLimit} and {currency}{maxLimit}.",
22214
+ "settings.appointment.sync-external-calendars.hosts-title": "Sync calendar for hosts",
22214
22215
  "input.error.message.incomplete-date-error.year-day": "Enter a day and year.",
22215
22216
  "submission-table.signature.not-signed": "Not signed",
22216
22217
  "dext-url-input.input.error.message.format-error": "Enter a web URL like https://www.example.com.",
@@ -22416,6 +22417,218 @@ var require_messages_en = __commonJS({
22416
22417
  }
22417
22418
  });
22418
22419
 
22420
+ // ../../node_modules/@wix/sdk-runtime/build/constants.js
22421
+ var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap;
22422
+ var init_constants3 = __esm({
22423
+ "../../node_modules/@wix/sdk-runtime/build/constants.js"() {
22424
+ SDKRequestToRESTRequestRenameMap = {
22425
+ _id: "id",
22426
+ _createdDate: "createdDate",
22427
+ _updatedDate: "updatedDate"
22428
+ };
22429
+ RESTResponseToSDKResponseRenameMap = {
22430
+ id: "_id",
22431
+ createdDate: "_createdDate",
22432
+ updatedDate: "_updatedDate"
22433
+ };
22434
+ }
22435
+ });
22436
+
22437
+ // ../../node_modules/@wix/sdk-runtime/build/utils.js
22438
+ function removeUndefinedKeys(obj) {
22439
+ return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
22440
+ }
22441
+ function constantCase(input) {
22442
+ return split(input).map((part) => part.toLocaleUpperCase()).join("_");
22443
+ }
22444
+ function split(value) {
22445
+ let result2 = value.trim();
22446
+ result2 = result2.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
22447
+ result2 = result2.replace(DEFAULT_STRIP_REGEXP, "\0");
22448
+ let start = 0;
22449
+ let end = result2.length;
22450
+ while (result2.charAt(start) === "\0") {
22451
+ start++;
22452
+ }
22453
+ if (start === end) {
22454
+ return [];
22455
+ }
22456
+ while (result2.charAt(end - 1) === "\0") {
22457
+ end--;
22458
+ }
22459
+ return result2.slice(start, end).split(/\0/g);
22460
+ }
22461
+ var SPLIT_LOWER_UPPER_RE, SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE, DEFAULT_STRIP_REGEXP;
22462
+ var init_utils2 = __esm({
22463
+ "../../node_modules/@wix/sdk-runtime/build/utils.js"() {
22464
+ SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
22465
+ SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
22466
+ SPLIT_REPLACE_VALUE = "$1\0$2";
22467
+ DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
22468
+ }
22469
+ });
22470
+
22471
+ // ../../node_modules/@wix/sdk-runtime/build/transform-error.js
22472
+ function transformError(httpClientError, pathsToArguments = {
22473
+ explicitPathsToArguments: {},
22474
+ spreadPathsToArguments: {},
22475
+ singleArgumentUnchanged: false
22476
+ }, argumentNames = []) {
22477
+ if (typeof httpClientError !== "object" || httpClientError === null) {
22478
+ throw httpClientError;
22479
+ }
22480
+ if (isValidationError(httpClientError)) {
22481
+ return buildValidationError(httpClientError, pathsToArguments, argumentNames);
22482
+ }
22483
+ if (isApplicationError(httpClientError)) {
22484
+ return buildApplicationError(httpClientError);
22485
+ }
22486
+ if (isClientError(httpClientError)) {
22487
+ const status = httpClientError.response?.status;
22488
+ const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
22489
+ const message = httpClientError.response?.data?.message ?? statusText;
22490
+ const details = {
22491
+ applicationError: {
22492
+ description: statusText,
22493
+ code: constantCase(statusText),
22494
+ data: {}
22495
+ },
22496
+ requestId: httpClientError.requestId
22497
+ };
22498
+ return wrapError(httpClientError, {
22499
+ message: JSON.stringify({
22500
+ message,
22501
+ details
22502
+ }, null, 2),
22503
+ extraProperties: {
22504
+ details,
22505
+ status
22506
+ }
22507
+ });
22508
+ }
22509
+ return buildSystemError(httpClientError);
22510
+ }
22511
+ var isValidationError, isApplicationError, isClientError, buildValidationError, wrapError, buildApplicationError, buildSystemError, violationsWithRenamedFields, withRenamedArgument, getArgumentIndex;
22512
+ var init_transform_error = __esm({
22513
+ "../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
22514
+ init_utils2();
22515
+ isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
22516
+ isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
22517
+ isClientError = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
22518
+ buildValidationError = (httpClientError, pathsToArguments, argumentNames) => {
22519
+ const validationErrorResponse = httpClientError.response?.data;
22520
+ const requestId = httpClientError.requestId;
22521
+ const { fieldViolations } = validationErrorResponse.details.validationError;
22522
+ const transformedFieldViolations = violationsWithRenamedFields(pathsToArguments, fieldViolations, argumentNames)?.sort((a, b) => a.field < b.field ? -1 : 1);
22523
+ const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
22524
+ const details = {
22525
+ validationError: { fieldViolations: transformedFieldViolations },
22526
+ requestId
22527
+ };
22528
+ return wrapError(httpClientError, {
22529
+ message: JSON.stringify({ message, details }, null, 2),
22530
+ extraProperties: {
22531
+ details,
22532
+ status: httpClientError.response?.status,
22533
+ requestId
22534
+ }
22535
+ });
22536
+ };
22537
+ wrapError = (baseError, { message, extraProperties }) => {
22538
+ return Object.assign(baseError, {
22539
+ ...extraProperties,
22540
+ message
22541
+ });
22542
+ };
22543
+ buildApplicationError = (httpClientError) => {
22544
+ const status = httpClientError.response?.status;
22545
+ const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
22546
+ const message = httpClientError.response?.data?.message ?? statusText;
22547
+ const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
22548
+ const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase(statusText);
22549
+ const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
22550
+ const combinedMessage = message === description ? message : `${message}: ${description}`;
22551
+ const details = {
22552
+ applicationError: {
22553
+ description,
22554
+ code,
22555
+ data
22556
+ },
22557
+ requestId: httpClientError.requestId
22558
+ };
22559
+ return wrapError(httpClientError, {
22560
+ message: JSON.stringify({ message: combinedMessage, details }, null, 2),
22561
+ extraProperties: {
22562
+ details,
22563
+ status,
22564
+ requestId: httpClientError.requestId
22565
+ }
22566
+ });
22567
+ };
22568
+ buildSystemError = (httpClientError) => {
22569
+ const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
22570
+ return wrapError(httpClientError, {
22571
+ message,
22572
+ extraProperties: {
22573
+ requestId: httpClientError.requestId,
22574
+ status: httpClientError.response?.status,
22575
+ code: constantCase(httpClientError.response?.statusText ?? "UNKNOWN"),
22576
+ ...!httpClientError.response && {
22577
+ runtimeError: httpClientError
22578
+ }
22579
+ }
22580
+ });
22581
+ };
22582
+ violationsWithRenamedFields = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
22583
+ const allPathsToArguments = {
22584
+ ...spreadPathsToArguments,
22585
+ ...explicitPathsToArguments
22586
+ };
22587
+ const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
22588
+ return fieldViolations?.filter((fieldViolation) => {
22589
+ const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
22590
+ return !containedInAMoreSpecificViolationField;
22591
+ }).map((fieldViolation) => {
22592
+ const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
22593
+ if (exactMatchArgumentExpression) {
22594
+ return {
22595
+ ...fieldViolation,
22596
+ field: withRenamedArgument(exactMatchArgumentExpression, argumentNames)
22597
+ };
22598
+ }
22599
+ const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a, b) => b.length - a.length)?.find((path) => fieldViolation.field.startsWith(path));
22600
+ if (longestPartialPathMatch) {
22601
+ const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
22602
+ if (partialMatchArgumentExpression) {
22603
+ return {
22604
+ ...fieldViolation,
22605
+ field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument(partialMatchArgumentExpression, argumentNames))
22606
+ };
22607
+ }
22608
+ }
22609
+ if (singleArgumentUnchanged) {
22610
+ return {
22611
+ ...fieldViolation,
22612
+ field: `${argumentNames[0]}.${fieldViolation.field}`
22613
+ };
22614
+ }
22615
+ return fieldViolation;
22616
+ });
22617
+ };
22618
+ withRenamedArgument = (fieldValue, argumentNames) => {
22619
+ const argIndex = getArgumentIndex(fieldValue);
22620
+ if (argIndex !== null && typeof argIndex !== "undefined") {
22621
+ return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
22622
+ }
22623
+ return fieldValue;
22624
+ };
22625
+ getArgumentIndex = (s) => {
22626
+ const match = s.match(/\$\[(?<argIndex>\d+)\]/);
22627
+ return match && match.groups && Number(match.groups.argIndex);
22628
+ };
22629
+ }
22630
+ });
22631
+
22419
22632
  // ../../node_modules/@wix/sdk-context/build/browser/index.mjs
22420
22633
  var wixContext;
22421
22634
  var init_browser = __esm({
@@ -22424,6 +22637,231 @@ var init_browser = __esm({
22424
22637
  }
22425
22638
  });
22426
22639
 
22640
+ // ../../node_modules/@wix/sdk-runtime/build/context.js
22641
+ function resolveContext() {
22642
+ const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
22643
+ if (oldContext) {
22644
+ return {
22645
+ // @ts-expect-error
22646
+ initWixModules(modules, elevated) {
22647
+ return runWithoutContext(() => oldContext(modules, elevated));
22648
+ },
22649
+ fetchWithAuth() {
22650
+ throw new Error("fetchWithAuth is not available in this context");
22651
+ },
22652
+ graphql() {
22653
+ throw new Error("graphql is not available in this context");
22654
+ }
22655
+ };
22656
+ }
22657
+ const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
22658
+ const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
22659
+ if (!contextualClient && !elevatedClient) {
22660
+ return;
22661
+ }
22662
+ return {
22663
+ initWixModules(wixModules, elevated) {
22664
+ if (elevated) {
22665
+ if (!elevatedClient) {
22666
+ throw new Error("An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules");
22667
+ }
22668
+ return runWithoutContext(() => elevatedClient.use(wixModules));
22669
+ }
22670
+ if (!contextualClient) {
22671
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22672
+ }
22673
+ return runWithoutContext(() => contextualClient.use(wixModules));
22674
+ },
22675
+ fetchWithAuth: (urlOrRequest, requestInit) => {
22676
+ if (!contextualClient) {
22677
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22678
+ }
22679
+ return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
22680
+ },
22681
+ getAuth() {
22682
+ if (!contextualClient) {
22683
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22684
+ }
22685
+ return contextualClient.auth;
22686
+ },
22687
+ async graphql(query, variables, opts) {
22688
+ if (!contextualClient) {
22689
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22690
+ }
22691
+ return contextualClient.graphql(query, variables, opts);
22692
+ }
22693
+ };
22694
+ }
22695
+ function runWithoutContext(fn) {
22696
+ const globalContext = globalThis.__wix_context__;
22697
+ const moduleContext = {
22698
+ client: wixContext.client,
22699
+ elevatedClient: wixContext.elevatedClient
22700
+ };
22701
+ let closureContext;
22702
+ globalThis.__wix_context__ = void 0;
22703
+ wixContext.client = void 0;
22704
+ wixContext.elevatedClient = void 0;
22705
+ if (typeof $wixContext !== "undefined") {
22706
+ closureContext = {
22707
+ client: $wixContext?.client,
22708
+ elevatedClient: $wixContext?.elevatedClient
22709
+ };
22710
+ delete $wixContext.client;
22711
+ delete $wixContext.elevatedClient;
22712
+ }
22713
+ try {
22714
+ return fn();
22715
+ } finally {
22716
+ globalThis.__wix_context__ = globalContext;
22717
+ wixContext.client = moduleContext.client;
22718
+ wixContext.elevatedClient = moduleContext.elevatedClient;
22719
+ if (typeof $wixContext !== "undefined") {
22720
+ $wixContext.client = closureContext.client;
22721
+ $wixContext.elevatedClient = closureContext.elevatedClient;
22722
+ }
22723
+ }
22724
+ }
22725
+ var init_context = __esm({
22726
+ "../../node_modules/@wix/sdk-runtime/build/context.js"() {
22727
+ init_browser();
22728
+ init_context_v2();
22729
+ }
22730
+ });
22731
+
22732
+ // ../../node_modules/@wix/sdk-runtime/build/context-v2.js
22733
+ function contextualizeRESTModuleV2(restModule, elevated) {
22734
+ return ((...args) => {
22735
+ const context = resolveContext();
22736
+ if (!context) {
22737
+ return restModule.apply(void 0, args);
22738
+ }
22739
+ return context.initWixModules(restModule, elevated).apply(void 0, args);
22740
+ });
22741
+ }
22742
+ var init_context_v2 = __esm({
22743
+ "../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
22744
+ init_context();
22745
+ }
22746
+ });
22747
+
22748
+ // ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
22749
+ function createRESTModule(descriptor, elevated = false) {
22750
+ return contextualizeRESTModuleV2(descriptor, elevated);
22751
+ }
22752
+ function toURLSearchParams(params, isComplexRequest) {
22753
+ const flatten = flattenParams(params);
22754
+ Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
22755
+ {
22756
+ return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
22757
+ const keyParams = Array.isArray(value) ? value : [value];
22758
+ keyParams.forEach((param) => {
22759
+ if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
22760
+ return;
22761
+ }
22762
+ urlSearchParams.append(key, param);
22763
+ });
22764
+ return urlSearchParams;
22765
+ }, new URLSearchParams());
22766
+ }
22767
+ }
22768
+ function resolveUrl(opts) {
22769
+ const domain = resolveDomain(opts.host);
22770
+ const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
22771
+ const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
22772
+ return resolvePathFromMappings(path, mappings);
22773
+ }
22774
+ function flattenParams(data, path = "") {
22775
+ const params = {};
22776
+ Object.entries(data).forEach(([key, value]) => {
22777
+ const isObject5 = value !== null && typeof value === "object" && !Array.isArray(value);
22778
+ const fieldPath = resolvePath(path, key);
22779
+ if (isObject5) {
22780
+ const serializedObject = flattenParams(value, fieldPath);
22781
+ Object.assign(params, serializedObject);
22782
+ } else {
22783
+ params[fieldPath] = value;
22784
+ }
22785
+ });
22786
+ return params;
22787
+ }
22788
+ function resolvePath(path, key) {
22789
+ return `${path}${path ? "." : ""}${key}`;
22790
+ }
22791
+ function resolveDomain(host) {
22792
+ const resolvedHost = fixHostExceptions(host);
22793
+ return resolvedHost.replace(REGEX_CAPTURE_DOMAINS, "._base_domain_").replace(REGEX_CAPTURE_API_DOMAINS, "._api_base_domain_").replace(REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN, "*.dev.wix-code.com");
22794
+ }
22795
+ function fixHostExceptions(host) {
22796
+ return host.replace("create.editorx.com", "editor.editorx.com");
22797
+ }
22798
+ function resolveMappingsByDomain(domain, domainToMappings) {
22799
+ const mappings = domainToMappings[domain] || domainToMappings[USER_DOMAIN];
22800
+ if (mappings) {
22801
+ return mappings;
22802
+ }
22803
+ const rootDomainMappings = resolveRootDomain(domain, domainToMappings);
22804
+ if (!rootDomainMappings) {
22805
+ if (isBaseDomain(domain)) {
22806
+ return domainToMappings[wwwBaseDomain];
22807
+ }
22808
+ }
22809
+ return rootDomainMappings ?? [];
22810
+ }
22811
+ function resolveRootDomain(domain, domainToMappings) {
22812
+ return Object.entries(domainToMappings).find(([entryDomain]) => {
22813
+ const [, ...rooDomainSegments] = domain.split(".");
22814
+ return rooDomainSegments.join(".") === entryDomain;
22815
+ })?.[1];
22816
+ }
22817
+ function isBaseDomain(domain) {
22818
+ return !!domain.match(/\._base_domain_$/);
22819
+ }
22820
+ function injectDataIntoProtoPath(protoPath, data) {
22821
+ return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
22822
+ }
22823
+ function maybeProtoPathToData(protoPath, data) {
22824
+ const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
22825
+ const field = protoRegExpMatch[1];
22826
+ if (field) {
22827
+ const suffix = protoPath.replace(protoRegExpMatch[0], "");
22828
+ return findByPath(data, field, protoPath, suffix);
22829
+ }
22830
+ return protoPath;
22831
+ }
22832
+ function findByPath(obj, path, defaultValue, suffix) {
22833
+ let result2 = obj;
22834
+ for (const field of path.split(".")) {
22835
+ if (!result2) {
22836
+ return defaultValue;
22837
+ }
22838
+ result2 = result2[field];
22839
+ }
22840
+ return `${result2}${suffix}`;
22841
+ }
22842
+ function resolvePathFromMappings(protoPath, mappings) {
22843
+ const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
22844
+ if (!mapping) {
22845
+ return protoPath;
22846
+ }
22847
+ return mapping.srcPath + protoPath.slice(mapping.destPath.length);
22848
+ }
22849
+ var DOMAINS, USER_DOMAIN, REGEX_CAPTURE_DOMAINS, WIX_API_DOMAINS, DEV_WIX_CODE_DOMAIN, REGEX_CAPTURE_PROTO_FIELD, REGEX_CAPTURE_API_DOMAINS, REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN, wwwBaseDomain;
22850
+ var init_rest_modules = __esm({
22851
+ "../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
22852
+ init_context_v2();
22853
+ DOMAINS = ["wix.com", "editorx.com"];
22854
+ USER_DOMAIN = "_";
22855
+ REGEX_CAPTURE_DOMAINS = new RegExp(`\\.(${DOMAINS.join("|")})$`);
22856
+ WIX_API_DOMAINS = ["42.wixprod.net", "uw2-edt-1.wixprod.net"];
22857
+ DEV_WIX_CODE_DOMAIN = "dev.wix-code.com";
22858
+ REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
22859
+ REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
22860
+ REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN}$`);
22861
+ wwwBaseDomain = "www._base_domain_";
22862
+ }
22863
+ });
22864
+
22427
22865
  // ../../node_modules/@wix/json-proto-serializer/node_modules/long/src/long.js
22428
22866
  var require_long = __commonJS({
22429
22867
  "../../node_modules/@wix/json-proto-serializer/node_modules/long/src/long.js"(exports, module) {
@@ -24204,7 +24642,7 @@ function isCI() {
24204
24642
  function isNode() {
24205
24643
  return typeof process !== "undefined" && process.versions?.node != null;
24206
24644
  }
24207
- var init_utils2 = __esm({
24645
+ var init_utils3 = __esm({
24208
24646
  "../../node_modules/@wix/headers/dist/esm/utils.js"() {
24209
24647
  }
24210
24648
  });
@@ -24218,7 +24656,7 @@ function artifactId(override) {
24218
24656
  }
24219
24657
  var init_artifact_id = __esm({
24220
24658
  "../../node_modules/@wix/headers/dist/esm/headers/artifact-id.js"() {
24221
- init_utils2();
24659
+ init_utils3();
24222
24660
  }
24223
24661
  });
24224
24662
 
@@ -36879,248 +37317,54 @@ var City = (_ref) => {
36879
37317
  }),
36880
37318
  renderInput: () => /* @__PURE__ */ React42__default.createElement(TextField, {
36881
37319
  value: value ?? "",
36882
- onChange,
36883
- isDisabled: disabled,
36884
- isRequired: required,
36885
- isInvalid: hasError,
36886
- onBlur,
36887
- onFocus
36888
- }, inputElement),
36889
- renderDescription: () => /* @__PURE__ */ React42__default.createElement(React42__default.Fragment, null, descriptionElement, errorElement)
36890
- });
36891
- };
36892
- var Input4 = (_ref2) => {
36893
- let {
36894
- className
36895
- } = _ref2;
36896
- const {
36897
- id
36898
- } = useFieldPropsV2();
36899
- const {
36900
- inputId,
36901
- ariaDescribedBy
36902
- } = useFieldAttributes2();
36903
- const inputRef = useRef(null);
36904
- useFocusFieldEvent(() => {
36905
- var _inputRef$current;
36906
- (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
36907
- }, id);
36908
- return /* @__PURE__ */ React42__default.createElement(Input$1, {
36909
- ref: inputRef,
36910
- id: inputId,
36911
- "aria-describedby": ariaDescribedBy,
36912
- className
36913
- });
36914
- };
36915
- City.Label = Label;
36916
- City.Input = Input4;
36917
- City.Description = Description;
36918
- City.Error = Error2;
36919
-
36920
- // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
36921
- var es_exports = {};
36922
- __export(es_exports, {
36923
- SubdivisionType: () => SubdivisionType,
36924
- getPlace: () => getPlace4
36925
- });
36926
-
36927
- // ../../node_modules/@wix/sdk-runtime/build/constants.js
36928
- var SDKRequestToRESTRequestRenameMap = {
36929
- _id: "id",
36930
- _createdDate: "createdDate",
36931
- _updatedDate: "updatedDate"
36932
- };
36933
- var RESTResponseToSDKResponseRenameMap = {
36934
- id: "_id",
36935
- createdDate: "_createdDate",
36936
- updatedDate: "_updatedDate"
36937
- };
36938
-
36939
- // ../../node_modules/@wix/sdk-runtime/build/utils.js
36940
- function removeUndefinedKeys(obj) {
36941
- return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
36942
- }
36943
- function constantCase(input) {
36944
- return split(input).map((part) => part.toLocaleUpperCase()).join("_");
36945
- }
36946
- var SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
36947
- var SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
36948
- var SPLIT_REPLACE_VALUE = "$1\0$2";
36949
- var DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
36950
- function split(value) {
36951
- let result2 = value.trim();
36952
- result2 = result2.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
36953
- result2 = result2.replace(DEFAULT_STRIP_REGEXP, "\0");
36954
- let start = 0;
36955
- let end = result2.length;
36956
- while (result2.charAt(start) === "\0") {
36957
- start++;
36958
- }
36959
- if (start === end) {
36960
- return [];
36961
- }
36962
- while (result2.charAt(end - 1) === "\0") {
36963
- end--;
36964
- }
36965
- return result2.slice(start, end).split(/\0/g);
36966
- }
36967
-
36968
- // ../../node_modules/@wix/sdk-runtime/build/transform-error.js
36969
- var isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
36970
- var isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
36971
- var isClientError = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
36972
- function transformError(httpClientError, pathsToArguments = {
36973
- explicitPathsToArguments: {},
36974
- spreadPathsToArguments: {},
36975
- singleArgumentUnchanged: false
36976
- }, argumentNames = []) {
36977
- if (typeof httpClientError !== "object" || httpClientError === null) {
36978
- throw httpClientError;
36979
- }
36980
- if (isValidationError(httpClientError)) {
36981
- return buildValidationError(httpClientError, pathsToArguments, argumentNames);
36982
- }
36983
- if (isApplicationError(httpClientError)) {
36984
- return buildApplicationError(httpClientError);
36985
- }
36986
- if (isClientError(httpClientError)) {
36987
- const status = httpClientError.response?.status;
36988
- const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
36989
- const message = httpClientError.response?.data?.message ?? statusText;
36990
- const details = {
36991
- applicationError: {
36992
- description: statusText,
36993
- code: constantCase(statusText),
36994
- data: {}
36995
- },
36996
- requestId: httpClientError.requestId
36997
- };
36998
- return wrapError(httpClientError, {
36999
- message: JSON.stringify({
37000
- message,
37001
- details
37002
- }, null, 2),
37003
- extraProperties: {
37004
- details,
37005
- status
37006
- }
37007
- });
37008
- }
37009
- return buildSystemError(httpClientError);
37010
- }
37011
- var buildValidationError = (httpClientError, pathsToArguments, argumentNames) => {
37012
- const validationErrorResponse = httpClientError.response?.data;
37013
- const requestId = httpClientError.requestId;
37014
- const { fieldViolations } = validationErrorResponse.details.validationError;
37015
- const transformedFieldViolations = violationsWithRenamedFields(pathsToArguments, fieldViolations, argumentNames)?.sort((a, b) => a.field < b.field ? -1 : 1);
37016
- const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
37017
- const details = {
37018
- validationError: { fieldViolations: transformedFieldViolations },
37019
- requestId
37020
- };
37021
- return wrapError(httpClientError, {
37022
- message: JSON.stringify({ message, details }, null, 2),
37023
- extraProperties: {
37024
- details,
37025
- status: httpClientError.response?.status,
37026
- requestId
37027
- }
37028
- });
37029
- };
37030
- var wrapError = (baseError, { message, extraProperties }) => {
37031
- return Object.assign(baseError, {
37032
- ...extraProperties,
37033
- message
37034
- });
37035
- };
37036
- var buildApplicationError = (httpClientError) => {
37037
- const status = httpClientError.response?.status;
37038
- const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
37039
- const message = httpClientError.response?.data?.message ?? statusText;
37040
- const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
37041
- const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase(statusText);
37042
- const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
37043
- const combinedMessage = message === description ? message : `${message}: ${description}`;
37044
- const details = {
37045
- applicationError: {
37046
- description,
37047
- code,
37048
- data
37049
- },
37050
- requestId: httpClientError.requestId
37051
- };
37052
- return wrapError(httpClientError, {
37053
- message: JSON.stringify({ message: combinedMessage, details }, null, 2),
37054
- extraProperties: {
37055
- details,
37056
- status,
37057
- requestId: httpClientError.requestId
37058
- }
37059
- });
37060
- };
37061
- var buildSystemError = (httpClientError) => {
37062
- const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
37063
- return wrapError(httpClientError, {
37064
- message,
37065
- extraProperties: {
37066
- requestId: httpClientError.requestId,
37067
- status: httpClientError.response?.status,
37068
- code: constantCase(httpClientError.response?.statusText ?? "UNKNOWN"),
37069
- ...!httpClientError.response && {
37070
- runtimeError: httpClientError
37071
- }
37072
- }
37320
+ onChange,
37321
+ isDisabled: disabled,
37322
+ isRequired: required,
37323
+ isInvalid: hasError,
37324
+ onBlur,
37325
+ onFocus
37326
+ }, inputElement),
37327
+ renderDescription: () => /* @__PURE__ */ React42__default.createElement(React42__default.Fragment, null, descriptionElement, errorElement)
37073
37328
  });
37074
37329
  };
37075
- var violationsWithRenamedFields = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
37076
- const allPathsToArguments = {
37077
- ...spreadPathsToArguments,
37078
- ...explicitPathsToArguments
37079
- };
37080
- const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
37081
- return fieldViolations?.filter((fieldViolation) => {
37082
- const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
37083
- return !containedInAMoreSpecificViolationField;
37084
- }).map((fieldViolation) => {
37085
- const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
37086
- if (exactMatchArgumentExpression) {
37087
- return {
37088
- ...fieldViolation,
37089
- field: withRenamedArgument(exactMatchArgumentExpression, argumentNames)
37090
- };
37091
- }
37092
- const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a, b) => b.length - a.length)?.find((path) => fieldViolation.field.startsWith(path));
37093
- if (longestPartialPathMatch) {
37094
- const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
37095
- if (partialMatchArgumentExpression) {
37096
- return {
37097
- ...fieldViolation,
37098
- field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument(partialMatchArgumentExpression, argumentNames))
37099
- };
37100
- }
37101
- }
37102
- if (singleArgumentUnchanged) {
37103
- return {
37104
- ...fieldViolation,
37105
- field: `${argumentNames[0]}.${fieldViolation.field}`
37106
- };
37107
- }
37108
- return fieldViolation;
37330
+ var Input4 = (_ref2) => {
37331
+ let {
37332
+ className
37333
+ } = _ref2;
37334
+ const {
37335
+ id
37336
+ } = useFieldPropsV2();
37337
+ const {
37338
+ inputId,
37339
+ ariaDescribedBy
37340
+ } = useFieldAttributes2();
37341
+ const inputRef = useRef(null);
37342
+ useFocusFieldEvent(() => {
37343
+ var _inputRef$current;
37344
+ (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
37345
+ }, id);
37346
+ return /* @__PURE__ */ React42__default.createElement(Input$1, {
37347
+ ref: inputRef,
37348
+ id: inputId,
37349
+ "aria-describedby": ariaDescribedBy,
37350
+ className
37109
37351
  });
37110
37352
  };
37111
- var withRenamedArgument = (fieldValue, argumentNames) => {
37112
- const argIndex = getArgumentIndex(fieldValue);
37113
- if (argIndex !== null && typeof argIndex !== "undefined") {
37114
- return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
37115
- }
37116
- return fieldValue;
37117
- };
37118
- var getArgumentIndex = (s) => {
37119
- const match = s.match(/\$\[(?<argIndex>\d+)\]/);
37120
- return match && match.groups && Number(match.groups.argIndex);
37121
- };
37353
+ City.Label = Label;
37354
+ City.Input = Input4;
37355
+ City.Description = Description;
37356
+ City.Error = Error2;
37357
+
37358
+ // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37359
+ var es_exports = {};
37360
+ __export(es_exports, {
37361
+ SubdivisionType: () => SubdivisionType,
37362
+ getPlace: () => getPlace4
37363
+ });
37364
+ init_transform_error();
37122
37365
 
37123
37366
  // ../../node_modules/@wix/sdk-runtime/build/rename-all-nested-keys.js
37367
+ init_constants3();
37124
37368
  function renameAllNestedKeys(payload, renameMap, ignorePaths) {
37125
37369
  const isIgnored = (path) => ignorePaths.includes(path);
37126
37370
  const traverse = (obj, path) => {
@@ -37165,214 +37409,8 @@ function renameKeysFromRESTResponseToSDKResponse(payload, ignorePaths = []) {
37165
37409
  return renameAllNestedKeys(payload, RESTResponseToSDKResponseRenameMap, ignorePaths);
37166
37410
  }
37167
37411
 
37168
- // ../../node_modules/@wix/sdk-runtime/build/context.js
37169
- init_browser();
37170
- function resolveContext() {
37171
- const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
37172
- if (oldContext) {
37173
- return {
37174
- // @ts-expect-error
37175
- initWixModules(modules, elevated) {
37176
- return runWithoutContext(() => oldContext(modules, elevated));
37177
- },
37178
- fetchWithAuth() {
37179
- throw new Error("fetchWithAuth is not available in this context");
37180
- },
37181
- graphql() {
37182
- throw new Error("graphql is not available in this context");
37183
- }
37184
- };
37185
- }
37186
- const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
37187
- const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
37188
- if (!contextualClient && !elevatedClient) {
37189
- return;
37190
- }
37191
- return {
37192
- initWixModules(wixModules, elevated) {
37193
- if (elevated) {
37194
- if (!elevatedClient) {
37195
- throw new Error("An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules");
37196
- }
37197
- return runWithoutContext(() => elevatedClient.use(wixModules));
37198
- }
37199
- if (!contextualClient) {
37200
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37201
- }
37202
- return runWithoutContext(() => contextualClient.use(wixModules));
37203
- },
37204
- fetchWithAuth: (urlOrRequest, requestInit) => {
37205
- if (!contextualClient) {
37206
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37207
- }
37208
- return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
37209
- },
37210
- getAuth() {
37211
- if (!contextualClient) {
37212
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37213
- }
37214
- return contextualClient.auth;
37215
- },
37216
- async graphql(query, variables, opts) {
37217
- if (!contextualClient) {
37218
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37219
- }
37220
- return contextualClient.graphql(query, variables, opts);
37221
- }
37222
- };
37223
- }
37224
- function runWithoutContext(fn) {
37225
- const globalContext = globalThis.__wix_context__;
37226
- const moduleContext = {
37227
- client: wixContext.client,
37228
- elevatedClient: wixContext.elevatedClient
37229
- };
37230
- let closureContext;
37231
- globalThis.__wix_context__ = void 0;
37232
- wixContext.client = void 0;
37233
- wixContext.elevatedClient = void 0;
37234
- if (typeof $wixContext !== "undefined") {
37235
- closureContext = {
37236
- client: $wixContext?.client,
37237
- elevatedClient: $wixContext?.elevatedClient
37238
- };
37239
- delete $wixContext.client;
37240
- delete $wixContext.elevatedClient;
37241
- }
37242
- try {
37243
- return fn();
37244
- } finally {
37245
- globalThis.__wix_context__ = globalContext;
37246
- wixContext.client = moduleContext.client;
37247
- wixContext.elevatedClient = moduleContext.elevatedClient;
37248
- if (typeof $wixContext !== "undefined") {
37249
- $wixContext.client = closureContext.client;
37250
- $wixContext.elevatedClient = closureContext.elevatedClient;
37251
- }
37252
- }
37253
- }
37254
-
37255
- // ../../node_modules/@wix/sdk-runtime/build/context-v2.js
37256
- function contextualizeRESTModuleV2(restModule, elevated) {
37257
- return ((...args) => {
37258
- const context = resolveContext();
37259
- if (!context) {
37260
- return restModule.apply(void 0, args);
37261
- }
37262
- return context.initWixModules(restModule, elevated).apply(void 0, args);
37263
- });
37264
- }
37265
-
37266
- // ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
37267
- function createRESTModule(descriptor, elevated = false) {
37268
- return contextualizeRESTModuleV2(descriptor, elevated);
37269
- }
37270
- function toURLSearchParams(params, isComplexRequest) {
37271
- const flatten = flattenParams(params);
37272
- Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
37273
- {
37274
- return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
37275
- const keyParams = Array.isArray(value) ? value : [value];
37276
- keyParams.forEach((param) => {
37277
- if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
37278
- return;
37279
- }
37280
- urlSearchParams.append(key, param);
37281
- });
37282
- return urlSearchParams;
37283
- }, new URLSearchParams());
37284
- }
37285
- }
37286
- function resolveUrl(opts) {
37287
- const domain = resolveDomain(opts.host);
37288
- const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
37289
- const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
37290
- return resolvePathFromMappings(path, mappings);
37291
- }
37292
- function flattenParams(data, path = "") {
37293
- const params = {};
37294
- Object.entries(data).forEach(([key, value]) => {
37295
- const isObject5 = value !== null && typeof value === "object" && !Array.isArray(value);
37296
- const fieldPath = resolvePath(path, key);
37297
- if (isObject5) {
37298
- const serializedObject = flattenParams(value, fieldPath);
37299
- Object.assign(params, serializedObject);
37300
- } else {
37301
- params[fieldPath] = value;
37302
- }
37303
- });
37304
- return params;
37305
- }
37306
- function resolvePath(path, key) {
37307
- return `${path}${path ? "." : ""}${key}`;
37308
- }
37309
- var DOMAINS = ["wix.com", "editorx.com"];
37310
- var USER_DOMAIN = "_";
37311
- var REGEX_CAPTURE_DOMAINS = new RegExp(`\\.(${DOMAINS.join("|")})$`);
37312
- var WIX_API_DOMAINS = ["42.wixprod.net", "uw2-edt-1.wixprod.net"];
37313
- var DEV_WIX_CODE_DOMAIN = "dev.wix-code.com";
37314
- var REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
37315
- var REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
37316
- var REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN}$`);
37317
- function resolveDomain(host) {
37318
- const resolvedHost = fixHostExceptions(host);
37319
- return resolvedHost.replace(REGEX_CAPTURE_DOMAINS, "._base_domain_").replace(REGEX_CAPTURE_API_DOMAINS, "._api_base_domain_").replace(REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN, "*.dev.wix-code.com");
37320
- }
37321
- function fixHostExceptions(host) {
37322
- return host.replace("create.editorx.com", "editor.editorx.com");
37323
- }
37324
- function resolveMappingsByDomain(domain, domainToMappings) {
37325
- const mappings = domainToMappings[domain] || domainToMappings[USER_DOMAIN];
37326
- if (mappings) {
37327
- return mappings;
37328
- }
37329
- const rootDomainMappings = resolveRootDomain(domain, domainToMappings);
37330
- if (!rootDomainMappings) {
37331
- if (isBaseDomain(domain)) {
37332
- return domainToMappings[wwwBaseDomain];
37333
- }
37334
- }
37335
- return rootDomainMappings ?? [];
37336
- }
37337
- function resolveRootDomain(domain, domainToMappings) {
37338
- return Object.entries(domainToMappings).find(([entryDomain]) => {
37339
- const [, ...rooDomainSegments] = domain.split(".");
37340
- return rooDomainSegments.join(".") === entryDomain;
37341
- })?.[1];
37342
- }
37343
- function isBaseDomain(domain) {
37344
- return !!domain.match(/\._base_domain_$/);
37345
- }
37346
- var wwwBaseDomain = "www._base_domain_";
37347
- function injectDataIntoProtoPath(protoPath, data) {
37348
- return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
37349
- }
37350
- function maybeProtoPathToData(protoPath, data) {
37351
- const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
37352
- const field = protoRegExpMatch[1];
37353
- if (field) {
37354
- const suffix = protoPath.replace(protoRegExpMatch[0], "");
37355
- return findByPath(data, field, protoPath, suffix);
37356
- }
37357
- return protoPath;
37358
- }
37359
- function findByPath(obj, path, defaultValue, suffix) {
37360
- let result2 = obj;
37361
- for (const field of path.split(".")) {
37362
- if (!result2) {
37363
- return defaultValue;
37364
- }
37365
- result2 = result2[field];
37366
- }
37367
- return `${result2}${suffix}`;
37368
- }
37369
- function resolvePathFromMappings(protoPath, mappings) {
37370
- const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
37371
- if (!mapping) {
37372
- return protoPath;
37373
- }
37374
- return mapping.srcPath + protoPath.slice(mapping.destPath.length);
37375
- }
37412
+ // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37413
+ init_rest_modules();
37376
37414
 
37377
37415
  // ../../node_modules/@wix/sdk-runtime/build/transformations/float.js
37378
37416
  function transformSDKFloatToRESTFloat(val) {
@@ -37421,7 +37459,11 @@ function transformPaths(obj, transformations) {
37421
37459
  return transformations.reduce((acc, { paths, transformFn }) => paths.reduce((transformerAcc, path) => transformPath(transformerAcc, path, transformFn), acc), obj);
37422
37460
  }
37423
37461
 
37462
+ // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37463
+ init_rest_modules();
37464
+
37424
37465
  // ../../node_modules/@wix/sdk-runtime/build/transformations/address.js
37466
+ init_utils2();
37425
37467
  function transformRESTAddressToSDKAddress(payload) {
37426
37468
  return payload && removeUndefinedKeys({
37427
37469
  formatted: payload.formattedAddress,
@@ -37445,6 +37487,7 @@ function transformRESTAddressToSDKAddress(payload) {
37445
37487
  }
37446
37488
 
37447
37489
  // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37490
+ init_rest_modules();
37448
37491
  function resolveComWixpressViAtlasServiceV2PlacesServiceV2Url(opts) {
37449
37492
  const domainToMappings = {
37450
37493
  "api._api_base_domain_": [
@@ -37655,6 +37698,9 @@ __export(es_exports2, {
37655
37698
  FilterType: () => FilterType2,
37656
37699
  predict: () => predict4
37657
37700
  });
37701
+ init_transform_error();
37702
+ init_rest_modules();
37703
+ init_rest_modules();
37658
37704
  function resolveComWixpressViAtlasServiceV2AutocompleteServiceV2Url(opts) {
37659
37705
  const domainToMappings = {
37660
37706
  "api._api_base_domain_": [