@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.cjs CHANGED
@@ -22237,6 +22237,7 @@ var require_messages_en = __commonJS({
22237
22237
  "payment-input.input.error.message.max-value-error": "Enter a payment amount less than {currency}{limit}.",
22238
22238
  "ecom-phone.input.error.message.required-error": "Enter a phone number.",
22239
22239
  "payment-input.input.error.message.value-range-error": "Enter a payment amount between {currency}{minLimit} and {currency}{maxLimit}.",
22240
+ "settings.appointment.sync-external-calendars.hosts-title": "Sync calendar for hosts",
22240
22241
  "input.error.message.incomplete-date-error.year-day": "Enter a day and year.",
22241
22242
  "submission-table.signature.not-signed": "Not signed",
22242
22243
  "dext-url-input.input.error.message.format-error": "Enter a web URL like https://www.example.com.",
@@ -22442,6 +22443,218 @@ var require_messages_en = __commonJS({
22442
22443
  }
22443
22444
  });
22444
22445
 
22446
+ // ../../node_modules/@wix/sdk-runtime/build/constants.js
22447
+ var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap;
22448
+ var init_constants3 = __esm({
22449
+ "../../node_modules/@wix/sdk-runtime/build/constants.js"() {
22450
+ SDKRequestToRESTRequestRenameMap = {
22451
+ _id: "id",
22452
+ _createdDate: "createdDate",
22453
+ _updatedDate: "updatedDate"
22454
+ };
22455
+ RESTResponseToSDKResponseRenameMap = {
22456
+ id: "_id",
22457
+ createdDate: "_createdDate",
22458
+ updatedDate: "_updatedDate"
22459
+ };
22460
+ }
22461
+ });
22462
+
22463
+ // ../../node_modules/@wix/sdk-runtime/build/utils.js
22464
+ function removeUndefinedKeys(obj) {
22465
+ return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
22466
+ }
22467
+ function constantCase(input) {
22468
+ return split(input).map((part) => part.toLocaleUpperCase()).join("_");
22469
+ }
22470
+ function split(value) {
22471
+ let result2 = value.trim();
22472
+ result2 = result2.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
22473
+ result2 = result2.replace(DEFAULT_STRIP_REGEXP, "\0");
22474
+ let start = 0;
22475
+ let end = result2.length;
22476
+ while (result2.charAt(start) === "\0") {
22477
+ start++;
22478
+ }
22479
+ if (start === end) {
22480
+ return [];
22481
+ }
22482
+ while (result2.charAt(end - 1) === "\0") {
22483
+ end--;
22484
+ }
22485
+ return result2.slice(start, end).split(/\0/g);
22486
+ }
22487
+ var SPLIT_LOWER_UPPER_RE, SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE, DEFAULT_STRIP_REGEXP;
22488
+ var init_utils2 = __esm({
22489
+ "../../node_modules/@wix/sdk-runtime/build/utils.js"() {
22490
+ SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
22491
+ SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
22492
+ SPLIT_REPLACE_VALUE = "$1\0$2";
22493
+ DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
22494
+ }
22495
+ });
22496
+
22497
+ // ../../node_modules/@wix/sdk-runtime/build/transform-error.js
22498
+ function transformError(httpClientError, pathsToArguments = {
22499
+ explicitPathsToArguments: {},
22500
+ spreadPathsToArguments: {},
22501
+ singleArgumentUnchanged: false
22502
+ }, argumentNames = []) {
22503
+ if (typeof httpClientError !== "object" || httpClientError === null) {
22504
+ throw httpClientError;
22505
+ }
22506
+ if (isValidationError(httpClientError)) {
22507
+ return buildValidationError(httpClientError, pathsToArguments, argumentNames);
22508
+ }
22509
+ if (isApplicationError(httpClientError)) {
22510
+ return buildApplicationError(httpClientError);
22511
+ }
22512
+ if (isClientError(httpClientError)) {
22513
+ const status = httpClientError.response?.status;
22514
+ const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
22515
+ const message = httpClientError.response?.data?.message ?? statusText;
22516
+ const details = {
22517
+ applicationError: {
22518
+ description: statusText,
22519
+ code: constantCase(statusText),
22520
+ data: {}
22521
+ },
22522
+ requestId: httpClientError.requestId
22523
+ };
22524
+ return wrapError(httpClientError, {
22525
+ message: JSON.stringify({
22526
+ message,
22527
+ details
22528
+ }, null, 2),
22529
+ extraProperties: {
22530
+ details,
22531
+ status
22532
+ }
22533
+ });
22534
+ }
22535
+ return buildSystemError(httpClientError);
22536
+ }
22537
+ var isValidationError, isApplicationError, isClientError, buildValidationError, wrapError, buildApplicationError, buildSystemError, violationsWithRenamedFields, withRenamedArgument, getArgumentIndex;
22538
+ var init_transform_error = __esm({
22539
+ "../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
22540
+ init_utils2();
22541
+ isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
22542
+ isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
22543
+ isClientError = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
22544
+ buildValidationError = (httpClientError, pathsToArguments, argumentNames) => {
22545
+ const validationErrorResponse = httpClientError.response?.data;
22546
+ const requestId = httpClientError.requestId;
22547
+ const { fieldViolations } = validationErrorResponse.details.validationError;
22548
+ const transformedFieldViolations = violationsWithRenamedFields(pathsToArguments, fieldViolations, argumentNames)?.sort((a, b) => a.field < b.field ? -1 : 1);
22549
+ const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
22550
+ const details = {
22551
+ validationError: { fieldViolations: transformedFieldViolations },
22552
+ requestId
22553
+ };
22554
+ return wrapError(httpClientError, {
22555
+ message: JSON.stringify({ message, details }, null, 2),
22556
+ extraProperties: {
22557
+ details,
22558
+ status: httpClientError.response?.status,
22559
+ requestId
22560
+ }
22561
+ });
22562
+ };
22563
+ wrapError = (baseError, { message, extraProperties }) => {
22564
+ return Object.assign(baseError, {
22565
+ ...extraProperties,
22566
+ message
22567
+ });
22568
+ };
22569
+ buildApplicationError = (httpClientError) => {
22570
+ const status = httpClientError.response?.status;
22571
+ const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
22572
+ const message = httpClientError.response?.data?.message ?? statusText;
22573
+ const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
22574
+ const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase(statusText);
22575
+ const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
22576
+ const combinedMessage = message === description ? message : `${message}: ${description}`;
22577
+ const details = {
22578
+ applicationError: {
22579
+ description,
22580
+ code,
22581
+ data
22582
+ },
22583
+ requestId: httpClientError.requestId
22584
+ };
22585
+ return wrapError(httpClientError, {
22586
+ message: JSON.stringify({ message: combinedMessage, details }, null, 2),
22587
+ extraProperties: {
22588
+ details,
22589
+ status,
22590
+ requestId: httpClientError.requestId
22591
+ }
22592
+ });
22593
+ };
22594
+ buildSystemError = (httpClientError) => {
22595
+ const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
22596
+ return wrapError(httpClientError, {
22597
+ message,
22598
+ extraProperties: {
22599
+ requestId: httpClientError.requestId,
22600
+ status: httpClientError.response?.status,
22601
+ code: constantCase(httpClientError.response?.statusText ?? "UNKNOWN"),
22602
+ ...!httpClientError.response && {
22603
+ runtimeError: httpClientError
22604
+ }
22605
+ }
22606
+ });
22607
+ };
22608
+ violationsWithRenamedFields = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
22609
+ const allPathsToArguments = {
22610
+ ...spreadPathsToArguments,
22611
+ ...explicitPathsToArguments
22612
+ };
22613
+ const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
22614
+ return fieldViolations?.filter((fieldViolation) => {
22615
+ const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
22616
+ return !containedInAMoreSpecificViolationField;
22617
+ }).map((fieldViolation) => {
22618
+ const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
22619
+ if (exactMatchArgumentExpression) {
22620
+ return {
22621
+ ...fieldViolation,
22622
+ field: withRenamedArgument(exactMatchArgumentExpression, argumentNames)
22623
+ };
22624
+ }
22625
+ const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a, b) => b.length - a.length)?.find((path) => fieldViolation.field.startsWith(path));
22626
+ if (longestPartialPathMatch) {
22627
+ const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
22628
+ if (partialMatchArgumentExpression) {
22629
+ return {
22630
+ ...fieldViolation,
22631
+ field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument(partialMatchArgumentExpression, argumentNames))
22632
+ };
22633
+ }
22634
+ }
22635
+ if (singleArgumentUnchanged) {
22636
+ return {
22637
+ ...fieldViolation,
22638
+ field: `${argumentNames[0]}.${fieldViolation.field}`
22639
+ };
22640
+ }
22641
+ return fieldViolation;
22642
+ });
22643
+ };
22644
+ withRenamedArgument = (fieldValue, argumentNames) => {
22645
+ const argIndex = getArgumentIndex(fieldValue);
22646
+ if (argIndex !== null && typeof argIndex !== "undefined") {
22647
+ return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
22648
+ }
22649
+ return fieldValue;
22650
+ };
22651
+ getArgumentIndex = (s) => {
22652
+ const match = s.match(/\$\[(?<argIndex>\d+)\]/);
22653
+ return match && match.groups && Number(match.groups.argIndex);
22654
+ };
22655
+ }
22656
+ });
22657
+
22445
22658
  // ../../node_modules/@wix/sdk-context/build/browser/index.mjs
22446
22659
  var wixContext;
22447
22660
  var init_browser = __esm({
@@ -22450,6 +22663,231 @@ var init_browser = __esm({
22450
22663
  }
22451
22664
  });
22452
22665
 
22666
+ // ../../node_modules/@wix/sdk-runtime/build/context.js
22667
+ function resolveContext() {
22668
+ const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
22669
+ if (oldContext) {
22670
+ return {
22671
+ // @ts-expect-error
22672
+ initWixModules(modules, elevated) {
22673
+ return runWithoutContext(() => oldContext(modules, elevated));
22674
+ },
22675
+ fetchWithAuth() {
22676
+ throw new Error("fetchWithAuth is not available in this context");
22677
+ },
22678
+ graphql() {
22679
+ throw new Error("graphql is not available in this context");
22680
+ }
22681
+ };
22682
+ }
22683
+ const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
22684
+ const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
22685
+ if (!contextualClient && !elevatedClient) {
22686
+ return;
22687
+ }
22688
+ return {
22689
+ initWixModules(wixModules, elevated) {
22690
+ if (elevated) {
22691
+ if (!elevatedClient) {
22692
+ 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");
22693
+ }
22694
+ return runWithoutContext(() => elevatedClient.use(wixModules));
22695
+ }
22696
+ if (!contextualClient) {
22697
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22698
+ }
22699
+ return runWithoutContext(() => contextualClient.use(wixModules));
22700
+ },
22701
+ fetchWithAuth: (urlOrRequest, requestInit) => {
22702
+ if (!contextualClient) {
22703
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22704
+ }
22705
+ return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
22706
+ },
22707
+ getAuth() {
22708
+ if (!contextualClient) {
22709
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22710
+ }
22711
+ return contextualClient.auth;
22712
+ },
22713
+ async graphql(query, variables, opts) {
22714
+ if (!contextualClient) {
22715
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22716
+ }
22717
+ return contextualClient.graphql(query, variables, opts);
22718
+ }
22719
+ };
22720
+ }
22721
+ function runWithoutContext(fn) {
22722
+ const globalContext = globalThis.__wix_context__;
22723
+ const moduleContext = {
22724
+ client: wixContext.client,
22725
+ elevatedClient: wixContext.elevatedClient
22726
+ };
22727
+ let closureContext;
22728
+ globalThis.__wix_context__ = void 0;
22729
+ wixContext.client = void 0;
22730
+ wixContext.elevatedClient = void 0;
22731
+ if (typeof $wixContext !== "undefined") {
22732
+ closureContext = {
22733
+ client: $wixContext?.client,
22734
+ elevatedClient: $wixContext?.elevatedClient
22735
+ };
22736
+ delete $wixContext.client;
22737
+ delete $wixContext.elevatedClient;
22738
+ }
22739
+ try {
22740
+ return fn();
22741
+ } finally {
22742
+ globalThis.__wix_context__ = globalContext;
22743
+ wixContext.client = moduleContext.client;
22744
+ wixContext.elevatedClient = moduleContext.elevatedClient;
22745
+ if (typeof $wixContext !== "undefined") {
22746
+ $wixContext.client = closureContext.client;
22747
+ $wixContext.elevatedClient = closureContext.elevatedClient;
22748
+ }
22749
+ }
22750
+ }
22751
+ var init_context = __esm({
22752
+ "../../node_modules/@wix/sdk-runtime/build/context.js"() {
22753
+ init_browser();
22754
+ init_context_v2();
22755
+ }
22756
+ });
22757
+
22758
+ // ../../node_modules/@wix/sdk-runtime/build/context-v2.js
22759
+ function contextualizeRESTModuleV2(restModule, elevated) {
22760
+ return ((...args) => {
22761
+ const context = resolveContext();
22762
+ if (!context) {
22763
+ return restModule.apply(void 0, args);
22764
+ }
22765
+ return context.initWixModules(restModule, elevated).apply(void 0, args);
22766
+ });
22767
+ }
22768
+ var init_context_v2 = __esm({
22769
+ "../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
22770
+ init_context();
22771
+ }
22772
+ });
22773
+
22774
+ // ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
22775
+ function createRESTModule(descriptor, elevated = false) {
22776
+ return contextualizeRESTModuleV2(descriptor, elevated);
22777
+ }
22778
+ function toURLSearchParams(params, isComplexRequest) {
22779
+ const flatten = flattenParams(params);
22780
+ Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
22781
+ {
22782
+ return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
22783
+ const keyParams = Array.isArray(value) ? value : [value];
22784
+ keyParams.forEach((param) => {
22785
+ if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
22786
+ return;
22787
+ }
22788
+ urlSearchParams.append(key, param);
22789
+ });
22790
+ return urlSearchParams;
22791
+ }, new URLSearchParams());
22792
+ }
22793
+ }
22794
+ function resolveUrl(opts) {
22795
+ const domain = resolveDomain(opts.host);
22796
+ const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
22797
+ const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
22798
+ return resolvePathFromMappings(path, mappings);
22799
+ }
22800
+ function flattenParams(data, path = "") {
22801
+ const params = {};
22802
+ Object.entries(data).forEach(([key, value]) => {
22803
+ const isObject5 = value !== null && typeof value === "object" && !Array.isArray(value);
22804
+ const fieldPath = resolvePath(path, key);
22805
+ if (isObject5) {
22806
+ const serializedObject = flattenParams(value, fieldPath);
22807
+ Object.assign(params, serializedObject);
22808
+ } else {
22809
+ params[fieldPath] = value;
22810
+ }
22811
+ });
22812
+ return params;
22813
+ }
22814
+ function resolvePath(path, key) {
22815
+ return `${path}${path ? "." : ""}${key}`;
22816
+ }
22817
+ function resolveDomain(host) {
22818
+ const resolvedHost = fixHostExceptions(host);
22819
+ 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");
22820
+ }
22821
+ function fixHostExceptions(host) {
22822
+ return host.replace("create.editorx.com", "editor.editorx.com");
22823
+ }
22824
+ function resolveMappingsByDomain(domain, domainToMappings) {
22825
+ const mappings = domainToMappings[domain] || domainToMappings[USER_DOMAIN];
22826
+ if (mappings) {
22827
+ return mappings;
22828
+ }
22829
+ const rootDomainMappings = resolveRootDomain(domain, domainToMappings);
22830
+ if (!rootDomainMappings) {
22831
+ if (isBaseDomain(domain)) {
22832
+ return domainToMappings[wwwBaseDomain];
22833
+ }
22834
+ }
22835
+ return rootDomainMappings ?? [];
22836
+ }
22837
+ function resolveRootDomain(domain, domainToMappings) {
22838
+ return Object.entries(domainToMappings).find(([entryDomain]) => {
22839
+ const [, ...rooDomainSegments] = domain.split(".");
22840
+ return rooDomainSegments.join(".") === entryDomain;
22841
+ })?.[1];
22842
+ }
22843
+ function isBaseDomain(domain) {
22844
+ return !!domain.match(/\._base_domain_$/);
22845
+ }
22846
+ function injectDataIntoProtoPath(protoPath, data) {
22847
+ return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
22848
+ }
22849
+ function maybeProtoPathToData(protoPath, data) {
22850
+ const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
22851
+ const field = protoRegExpMatch[1];
22852
+ if (field) {
22853
+ const suffix = protoPath.replace(protoRegExpMatch[0], "");
22854
+ return findByPath(data, field, protoPath, suffix);
22855
+ }
22856
+ return protoPath;
22857
+ }
22858
+ function findByPath(obj, path, defaultValue, suffix) {
22859
+ let result2 = obj;
22860
+ for (const field of path.split(".")) {
22861
+ if (!result2) {
22862
+ return defaultValue;
22863
+ }
22864
+ result2 = result2[field];
22865
+ }
22866
+ return `${result2}${suffix}`;
22867
+ }
22868
+ function resolvePathFromMappings(protoPath, mappings) {
22869
+ const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
22870
+ if (!mapping) {
22871
+ return protoPath;
22872
+ }
22873
+ return mapping.srcPath + protoPath.slice(mapping.destPath.length);
22874
+ }
22875
+ 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;
22876
+ var init_rest_modules = __esm({
22877
+ "../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
22878
+ init_context_v2();
22879
+ DOMAINS = ["wix.com", "editorx.com"];
22880
+ USER_DOMAIN = "_";
22881
+ REGEX_CAPTURE_DOMAINS = new RegExp(`\\.(${DOMAINS.join("|")})$`);
22882
+ WIX_API_DOMAINS = ["42.wixprod.net", "uw2-edt-1.wixprod.net"];
22883
+ DEV_WIX_CODE_DOMAIN = "dev.wix-code.com";
22884
+ REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
22885
+ REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
22886
+ REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN}$`);
22887
+ wwwBaseDomain = "www._base_domain_";
22888
+ }
22889
+ });
22890
+
22453
22891
  // ../../node_modules/@wix/json-proto-serializer/node_modules/long/src/long.js
22454
22892
  var require_long = __commonJS({
22455
22893
  "../../node_modules/@wix/json-proto-serializer/node_modules/long/src/long.js"(exports, module) {
@@ -24230,7 +24668,7 @@ function isCI() {
24230
24668
  function isNode() {
24231
24669
  return typeof process !== "undefined" && process.versions?.node != null;
24232
24670
  }
24233
- var init_utils2 = __esm({
24671
+ var init_utils3 = __esm({
24234
24672
  "../../node_modules/@wix/headers/dist/esm/utils.js"() {
24235
24673
  }
24236
24674
  });
@@ -24244,7 +24682,7 @@ function artifactId(override) {
24244
24682
  }
24245
24683
  var init_artifact_id = __esm({
24246
24684
  "../../node_modules/@wix/headers/dist/esm/headers/artifact-id.js"() {
24247
- init_utils2();
24685
+ init_utils3();
24248
24686
  }
24249
24687
  });
24250
24688
 
@@ -36905,248 +37343,54 @@ var City = (_ref) => {
36905
37343
  }),
36906
37344
  renderInput: () => /* @__PURE__ */ React42__namespace.default.createElement(reactAriaComponents.TextField, {
36907
37345
  value: value ?? "",
36908
- onChange,
36909
- isDisabled: disabled,
36910
- isRequired: required,
36911
- isInvalid: hasError,
36912
- onBlur,
36913
- onFocus
36914
- }, inputElement),
36915
- renderDescription: () => /* @__PURE__ */ React42__namespace.default.createElement(React42__namespace.default.Fragment, null, descriptionElement, errorElement)
36916
- });
36917
- };
36918
- var Input4 = (_ref2) => {
36919
- let {
36920
- className
36921
- } = _ref2;
36922
- const {
36923
- id
36924
- } = useFieldPropsV2();
36925
- const {
36926
- inputId,
36927
- ariaDescribedBy
36928
- } = useFieldAttributes2();
36929
- const inputRef = React42.useRef(null);
36930
- useFocusFieldEvent(() => {
36931
- var _inputRef$current;
36932
- (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
36933
- }, id);
36934
- return /* @__PURE__ */ React42__namespace.default.createElement(reactAriaComponents.Input, {
36935
- ref: inputRef,
36936
- id: inputId,
36937
- "aria-describedby": ariaDescribedBy,
36938
- className
36939
- });
36940
- };
36941
- City.Label = Label;
36942
- City.Input = Input4;
36943
- City.Description = Description;
36944
- City.Error = Error2;
36945
-
36946
- // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
36947
- var es_exports = {};
36948
- __export(es_exports, {
36949
- SubdivisionType: () => SubdivisionType,
36950
- getPlace: () => getPlace4
36951
- });
36952
-
36953
- // ../../node_modules/@wix/sdk-runtime/build/constants.js
36954
- var SDKRequestToRESTRequestRenameMap = {
36955
- _id: "id",
36956
- _createdDate: "createdDate",
36957
- _updatedDate: "updatedDate"
36958
- };
36959
- var RESTResponseToSDKResponseRenameMap = {
36960
- id: "_id",
36961
- createdDate: "_createdDate",
36962
- updatedDate: "_updatedDate"
36963
- };
36964
-
36965
- // ../../node_modules/@wix/sdk-runtime/build/utils.js
36966
- function removeUndefinedKeys(obj) {
36967
- return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
36968
- }
36969
- function constantCase(input) {
36970
- return split(input).map((part) => part.toLocaleUpperCase()).join("_");
36971
- }
36972
- var SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
36973
- var SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
36974
- var SPLIT_REPLACE_VALUE = "$1\0$2";
36975
- var DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
36976
- function split(value) {
36977
- let result2 = value.trim();
36978
- result2 = result2.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
36979
- result2 = result2.replace(DEFAULT_STRIP_REGEXP, "\0");
36980
- let start = 0;
36981
- let end = result2.length;
36982
- while (result2.charAt(start) === "\0") {
36983
- start++;
36984
- }
36985
- if (start === end) {
36986
- return [];
36987
- }
36988
- while (result2.charAt(end - 1) === "\0") {
36989
- end--;
36990
- }
36991
- return result2.slice(start, end).split(/\0/g);
36992
- }
36993
-
36994
- // ../../node_modules/@wix/sdk-runtime/build/transform-error.js
36995
- var isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
36996
- var isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
36997
- var isClientError = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
36998
- function transformError(httpClientError, pathsToArguments = {
36999
- explicitPathsToArguments: {},
37000
- spreadPathsToArguments: {},
37001
- singleArgumentUnchanged: false
37002
- }, argumentNames = []) {
37003
- if (typeof httpClientError !== "object" || httpClientError === null) {
37004
- throw httpClientError;
37005
- }
37006
- if (isValidationError(httpClientError)) {
37007
- return buildValidationError(httpClientError, pathsToArguments, argumentNames);
37008
- }
37009
- if (isApplicationError(httpClientError)) {
37010
- return buildApplicationError(httpClientError);
37011
- }
37012
- if (isClientError(httpClientError)) {
37013
- const status = httpClientError.response?.status;
37014
- const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
37015
- const message = httpClientError.response?.data?.message ?? statusText;
37016
- const details = {
37017
- applicationError: {
37018
- description: statusText,
37019
- code: constantCase(statusText),
37020
- data: {}
37021
- },
37022
- requestId: httpClientError.requestId
37023
- };
37024
- return wrapError(httpClientError, {
37025
- message: JSON.stringify({
37026
- message,
37027
- details
37028
- }, null, 2),
37029
- extraProperties: {
37030
- details,
37031
- status
37032
- }
37033
- });
37034
- }
37035
- return buildSystemError(httpClientError);
37036
- }
37037
- var buildValidationError = (httpClientError, pathsToArguments, argumentNames) => {
37038
- const validationErrorResponse = httpClientError.response?.data;
37039
- const requestId = httpClientError.requestId;
37040
- const { fieldViolations } = validationErrorResponse.details.validationError;
37041
- const transformedFieldViolations = violationsWithRenamedFields(pathsToArguments, fieldViolations, argumentNames)?.sort((a, b) => a.field < b.field ? -1 : 1);
37042
- const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
37043
- const details = {
37044
- validationError: { fieldViolations: transformedFieldViolations },
37045
- requestId
37046
- };
37047
- return wrapError(httpClientError, {
37048
- message: JSON.stringify({ message, details }, null, 2),
37049
- extraProperties: {
37050
- details,
37051
- status: httpClientError.response?.status,
37052
- requestId
37053
- }
37054
- });
37055
- };
37056
- var wrapError = (baseError, { message, extraProperties }) => {
37057
- return Object.assign(baseError, {
37058
- ...extraProperties,
37059
- message
37060
- });
37061
- };
37062
- var buildApplicationError = (httpClientError) => {
37063
- const status = httpClientError.response?.status;
37064
- const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
37065
- const message = httpClientError.response?.data?.message ?? statusText;
37066
- const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
37067
- const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase(statusText);
37068
- const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
37069
- const combinedMessage = message === description ? message : `${message}: ${description}`;
37070
- const details = {
37071
- applicationError: {
37072
- description,
37073
- code,
37074
- data
37075
- },
37076
- requestId: httpClientError.requestId
37077
- };
37078
- return wrapError(httpClientError, {
37079
- message: JSON.stringify({ message: combinedMessage, details }, null, 2),
37080
- extraProperties: {
37081
- details,
37082
- status,
37083
- requestId: httpClientError.requestId
37084
- }
37085
- });
37086
- };
37087
- var buildSystemError = (httpClientError) => {
37088
- const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
37089
- return wrapError(httpClientError, {
37090
- message,
37091
- extraProperties: {
37092
- requestId: httpClientError.requestId,
37093
- status: httpClientError.response?.status,
37094
- code: constantCase(httpClientError.response?.statusText ?? "UNKNOWN"),
37095
- ...!httpClientError.response && {
37096
- runtimeError: httpClientError
37097
- }
37098
- }
37346
+ onChange,
37347
+ isDisabled: disabled,
37348
+ isRequired: required,
37349
+ isInvalid: hasError,
37350
+ onBlur,
37351
+ onFocus
37352
+ }, inputElement),
37353
+ renderDescription: () => /* @__PURE__ */ React42__namespace.default.createElement(React42__namespace.default.Fragment, null, descriptionElement, errorElement)
37099
37354
  });
37100
37355
  };
37101
- var violationsWithRenamedFields = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
37102
- const allPathsToArguments = {
37103
- ...spreadPathsToArguments,
37104
- ...explicitPathsToArguments
37105
- };
37106
- const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
37107
- return fieldViolations?.filter((fieldViolation) => {
37108
- const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
37109
- return !containedInAMoreSpecificViolationField;
37110
- }).map((fieldViolation) => {
37111
- const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
37112
- if (exactMatchArgumentExpression) {
37113
- return {
37114
- ...fieldViolation,
37115
- field: withRenamedArgument(exactMatchArgumentExpression, argumentNames)
37116
- };
37117
- }
37118
- const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a, b) => b.length - a.length)?.find((path) => fieldViolation.field.startsWith(path));
37119
- if (longestPartialPathMatch) {
37120
- const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
37121
- if (partialMatchArgumentExpression) {
37122
- return {
37123
- ...fieldViolation,
37124
- field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument(partialMatchArgumentExpression, argumentNames))
37125
- };
37126
- }
37127
- }
37128
- if (singleArgumentUnchanged) {
37129
- return {
37130
- ...fieldViolation,
37131
- field: `${argumentNames[0]}.${fieldViolation.field}`
37132
- };
37133
- }
37134
- return fieldViolation;
37356
+ var Input4 = (_ref2) => {
37357
+ let {
37358
+ className
37359
+ } = _ref2;
37360
+ const {
37361
+ id
37362
+ } = useFieldPropsV2();
37363
+ const {
37364
+ inputId,
37365
+ ariaDescribedBy
37366
+ } = useFieldAttributes2();
37367
+ const inputRef = React42.useRef(null);
37368
+ useFocusFieldEvent(() => {
37369
+ var _inputRef$current;
37370
+ (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
37371
+ }, id);
37372
+ return /* @__PURE__ */ React42__namespace.default.createElement(reactAriaComponents.Input, {
37373
+ ref: inputRef,
37374
+ id: inputId,
37375
+ "aria-describedby": ariaDescribedBy,
37376
+ className
37135
37377
  });
37136
37378
  };
37137
- var withRenamedArgument = (fieldValue, argumentNames) => {
37138
- const argIndex = getArgumentIndex(fieldValue);
37139
- if (argIndex !== null && typeof argIndex !== "undefined") {
37140
- return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
37141
- }
37142
- return fieldValue;
37143
- };
37144
- var getArgumentIndex = (s) => {
37145
- const match = s.match(/\$\[(?<argIndex>\d+)\]/);
37146
- return match && match.groups && Number(match.groups.argIndex);
37147
- };
37379
+ City.Label = Label;
37380
+ City.Input = Input4;
37381
+ City.Description = Description;
37382
+ City.Error = Error2;
37383
+
37384
+ // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37385
+ var es_exports = {};
37386
+ __export(es_exports, {
37387
+ SubdivisionType: () => SubdivisionType,
37388
+ getPlace: () => getPlace4
37389
+ });
37390
+ init_transform_error();
37148
37391
 
37149
37392
  // ../../node_modules/@wix/sdk-runtime/build/rename-all-nested-keys.js
37393
+ init_constants3();
37150
37394
  function renameAllNestedKeys(payload, renameMap, ignorePaths) {
37151
37395
  const isIgnored = (path) => ignorePaths.includes(path);
37152
37396
  const traverse = (obj, path) => {
@@ -37191,214 +37435,8 @@ function renameKeysFromRESTResponseToSDKResponse(payload, ignorePaths = []) {
37191
37435
  return renameAllNestedKeys(payload, RESTResponseToSDKResponseRenameMap, ignorePaths);
37192
37436
  }
37193
37437
 
37194
- // ../../node_modules/@wix/sdk-runtime/build/context.js
37195
- init_browser();
37196
- function resolveContext() {
37197
- const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
37198
- if (oldContext) {
37199
- return {
37200
- // @ts-expect-error
37201
- initWixModules(modules, elevated) {
37202
- return runWithoutContext(() => oldContext(modules, elevated));
37203
- },
37204
- fetchWithAuth() {
37205
- throw new Error("fetchWithAuth is not available in this context");
37206
- },
37207
- graphql() {
37208
- throw new Error("graphql is not available in this context");
37209
- }
37210
- };
37211
- }
37212
- const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
37213
- const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
37214
- if (!contextualClient && !elevatedClient) {
37215
- return;
37216
- }
37217
- return {
37218
- initWixModules(wixModules, elevated) {
37219
- if (elevated) {
37220
- if (!elevatedClient) {
37221
- 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");
37222
- }
37223
- return runWithoutContext(() => elevatedClient.use(wixModules));
37224
- }
37225
- if (!contextualClient) {
37226
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37227
- }
37228
- return runWithoutContext(() => contextualClient.use(wixModules));
37229
- },
37230
- fetchWithAuth: (urlOrRequest, requestInit) => {
37231
- if (!contextualClient) {
37232
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37233
- }
37234
- return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
37235
- },
37236
- getAuth() {
37237
- if (!contextualClient) {
37238
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37239
- }
37240
- return contextualClient.auth;
37241
- },
37242
- async graphql(query, variables, opts) {
37243
- if (!contextualClient) {
37244
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
37245
- }
37246
- return contextualClient.graphql(query, variables, opts);
37247
- }
37248
- };
37249
- }
37250
- function runWithoutContext(fn) {
37251
- const globalContext = globalThis.__wix_context__;
37252
- const moduleContext = {
37253
- client: wixContext.client,
37254
- elevatedClient: wixContext.elevatedClient
37255
- };
37256
- let closureContext;
37257
- globalThis.__wix_context__ = void 0;
37258
- wixContext.client = void 0;
37259
- wixContext.elevatedClient = void 0;
37260
- if (typeof $wixContext !== "undefined") {
37261
- closureContext = {
37262
- client: $wixContext?.client,
37263
- elevatedClient: $wixContext?.elevatedClient
37264
- };
37265
- delete $wixContext.client;
37266
- delete $wixContext.elevatedClient;
37267
- }
37268
- try {
37269
- return fn();
37270
- } finally {
37271
- globalThis.__wix_context__ = globalContext;
37272
- wixContext.client = moduleContext.client;
37273
- wixContext.elevatedClient = moduleContext.elevatedClient;
37274
- if (typeof $wixContext !== "undefined") {
37275
- $wixContext.client = closureContext.client;
37276
- $wixContext.elevatedClient = closureContext.elevatedClient;
37277
- }
37278
- }
37279
- }
37280
-
37281
- // ../../node_modules/@wix/sdk-runtime/build/context-v2.js
37282
- function contextualizeRESTModuleV2(restModule, elevated) {
37283
- return ((...args) => {
37284
- const context = resolveContext();
37285
- if (!context) {
37286
- return restModule.apply(void 0, args);
37287
- }
37288
- return context.initWixModules(restModule, elevated).apply(void 0, args);
37289
- });
37290
- }
37291
-
37292
- // ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
37293
- function createRESTModule(descriptor, elevated = false) {
37294
- return contextualizeRESTModuleV2(descriptor, elevated);
37295
- }
37296
- function toURLSearchParams(params, isComplexRequest) {
37297
- const flatten = flattenParams(params);
37298
- Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
37299
- {
37300
- return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
37301
- const keyParams = Array.isArray(value) ? value : [value];
37302
- keyParams.forEach((param) => {
37303
- if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
37304
- return;
37305
- }
37306
- urlSearchParams.append(key, param);
37307
- });
37308
- return urlSearchParams;
37309
- }, new URLSearchParams());
37310
- }
37311
- }
37312
- function resolveUrl(opts) {
37313
- const domain = resolveDomain(opts.host);
37314
- const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
37315
- const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
37316
- return resolvePathFromMappings(path, mappings);
37317
- }
37318
- function flattenParams(data, path = "") {
37319
- const params = {};
37320
- Object.entries(data).forEach(([key, value]) => {
37321
- const isObject5 = value !== null && typeof value === "object" && !Array.isArray(value);
37322
- const fieldPath = resolvePath(path, key);
37323
- if (isObject5) {
37324
- const serializedObject = flattenParams(value, fieldPath);
37325
- Object.assign(params, serializedObject);
37326
- } else {
37327
- params[fieldPath] = value;
37328
- }
37329
- });
37330
- return params;
37331
- }
37332
- function resolvePath(path, key) {
37333
- return `${path}${path ? "." : ""}${key}`;
37334
- }
37335
- var DOMAINS = ["wix.com", "editorx.com"];
37336
- var USER_DOMAIN = "_";
37337
- var REGEX_CAPTURE_DOMAINS = new RegExp(`\\.(${DOMAINS.join("|")})$`);
37338
- var WIX_API_DOMAINS = ["42.wixprod.net", "uw2-edt-1.wixprod.net"];
37339
- var DEV_WIX_CODE_DOMAIN = "dev.wix-code.com";
37340
- var REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
37341
- var REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
37342
- var REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN}$`);
37343
- function resolveDomain(host) {
37344
- const resolvedHost = fixHostExceptions(host);
37345
- 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");
37346
- }
37347
- function fixHostExceptions(host) {
37348
- return host.replace("create.editorx.com", "editor.editorx.com");
37349
- }
37350
- function resolveMappingsByDomain(domain, domainToMappings) {
37351
- const mappings = domainToMappings[domain] || domainToMappings[USER_DOMAIN];
37352
- if (mappings) {
37353
- return mappings;
37354
- }
37355
- const rootDomainMappings = resolveRootDomain(domain, domainToMappings);
37356
- if (!rootDomainMappings) {
37357
- if (isBaseDomain(domain)) {
37358
- return domainToMappings[wwwBaseDomain];
37359
- }
37360
- }
37361
- return rootDomainMappings ?? [];
37362
- }
37363
- function resolveRootDomain(domain, domainToMappings) {
37364
- return Object.entries(domainToMappings).find(([entryDomain]) => {
37365
- const [, ...rooDomainSegments] = domain.split(".");
37366
- return rooDomainSegments.join(".") === entryDomain;
37367
- })?.[1];
37368
- }
37369
- function isBaseDomain(domain) {
37370
- return !!domain.match(/\._base_domain_$/);
37371
- }
37372
- var wwwBaseDomain = "www._base_domain_";
37373
- function injectDataIntoProtoPath(protoPath, data) {
37374
- return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
37375
- }
37376
- function maybeProtoPathToData(protoPath, data) {
37377
- const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
37378
- const field = protoRegExpMatch[1];
37379
- if (field) {
37380
- const suffix = protoPath.replace(protoRegExpMatch[0], "");
37381
- return findByPath(data, field, protoPath, suffix);
37382
- }
37383
- return protoPath;
37384
- }
37385
- function findByPath(obj, path, defaultValue, suffix) {
37386
- let result2 = obj;
37387
- for (const field of path.split(".")) {
37388
- if (!result2) {
37389
- return defaultValue;
37390
- }
37391
- result2 = result2[field];
37392
- }
37393
- return `${result2}${suffix}`;
37394
- }
37395
- function resolvePathFromMappings(protoPath, mappings) {
37396
- const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
37397
- if (!mapping) {
37398
- return protoPath;
37399
- }
37400
- return mapping.srcPath + protoPath.slice(mapping.destPath.length);
37401
- }
37438
+ // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37439
+ init_rest_modules();
37402
37440
 
37403
37441
  // ../../node_modules/@wix/sdk-runtime/build/transformations/float.js
37404
37442
  function transformSDKFloatToRESTFloat(val) {
@@ -37447,7 +37485,11 @@ function transformPaths(obj, transformations) {
37447
37485
  return transformations.reduce((acc, { paths, transformFn }) => paths.reduce((transformerAcc, path) => transformPath(transformerAcc, path, transformFn), acc), obj);
37448
37486
  }
37449
37487
 
37488
+ // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37489
+ init_rest_modules();
37490
+
37450
37491
  // ../../node_modules/@wix/sdk-runtime/build/transformations/address.js
37492
+ init_utils2();
37451
37493
  function transformRESTAddressToSDKAddress(payload) {
37452
37494
  return payload && removeUndefinedKeys({
37453
37495
  formatted: payload.formattedAddress,
@@ -37471,6 +37513,7 @@ function transformRESTAddressToSDKAddress(payload) {
37471
37513
  }
37472
37514
 
37473
37515
  // ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
37516
+ init_rest_modules();
37474
37517
  function resolveComWixpressViAtlasServiceV2PlacesServiceV2Url(opts) {
37475
37518
  const domainToMappings = {
37476
37519
  "api._api_base_domain_": [
@@ -37681,6 +37724,9 @@ __export(es_exports2, {
37681
37724
  FilterType: () => FilterType2,
37682
37725
  predict: () => predict4
37683
37726
  });
37727
+ init_transform_error();
37728
+ init_rest_modules();
37729
+ init_rest_modules();
37684
37730
  function resolveComWixpressViAtlasServiceV2AutocompleteServiceV2Url(opts) {
37685
37731
  const domainToMappings = {
37686
37732
  "api._api_base_domain_": [