{"version":3,"sources":["../../src/app-settings-v1-settings-app-settings.universal.ts","../../src/app-settings-v1-settings-app-settings.http.ts","../../src/app-settings-v1-settings-app-settings.public.ts","../../src/app-settings-v1-settings-app-settings.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixAppSettingsV1Settings from './app-settings-v1-settings-app-settings.http.js';\n\nexport interface AppSettings {\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The app global settings */\n  settings?: Record<string, any> | null;\n  /** Translatable textual assets - not using a collection because this type only the get flow (which should return a single value) */\n  translations?: Record<string, string>;\n}\n\n/** The state of the settings (Saved or Published) */\nexport enum State {\n  /** Not relevant */\n  NR = 'NR',\n  SAVED = 'SAVED',\n  PUBLISHED = 'PUBLISHED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'NR' | 'SAVED' | 'PUBLISHED';\n\n/** The host in which the settings are displayed */\nexport enum Host {\n  NA = 'NA',\n  VIEWER = 'VIEWER',\n  BUSINESS_MANAGER = 'BUSINESS_MANAGER',\n  ONE_APP = 'ONE_APP',\n}\n\n/** @enumType */\nexport type HostWithLiterals =\n  | Host\n  | 'NA'\n  | 'VIEWER'\n  | 'BUSINESS_MANAGER'\n  | 'ONE_APP';\n\nexport interface SetComponentSettingsRequest {\n  /**\n   * The component Id\n   * @maxLength 36\n   */\n  componentId: string | null;\n  /** The data we'd like to store for this component */\n  settings?: Record<string, any> | null;\n  /** The state to set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states to set in */\n  states?: StateWithLiterals[];\n}\n\n/** The translated language that contains the key and its translations */\nexport interface TranslatedLanguage {\n  /** The key of the translations' language */\n  languageKey?: LanguageKey;\n  /** Key-value pair mapping of textual assets */\n  translations?: Record<string, string>;\n}\n\n/** The language key of the saved multilingual data */\nexport interface LanguageKey {\n  /** e.g. en */\n  languageCode?: string;\n  /** e.g. us */\n  regionCode?: string;\n  /** default: '' */\n  scriptVariant?: string;\n}\n\nexport interface SetComponentSettingsResponse {\n  /** Echo of the component settings */\n  settings?: Record<string, any> | null;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface SetComponentSettingsForMigrationRequest {\n  /**\n   * The component Id\n   * @maxLength 36\n   */\n  componentId?: string | null;\n  /** The data we'd like to store for this component */\n  settings?: Record<string, any> | null;\n  /** The state to set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states to set in */\n  states?: StateWithLiterals[];\n  /**\n   * The appDefId for migration\n   * @format GUID\n   */\n  appDefId?: string;\n  /**\n   * The instanceId for migration (msid)\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface SetComponentSettingsForMigrationResponse {\n  /** Echo of the component settings */\n  settings?: Record<string, any> | null;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface GetComponentSettingsRequest {\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId: string | null;\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n  /** Whether it is critical to get Global Settings as well */\n  includeGlobalSettings?: boolean;\n}\n\nexport interface GetComponentSettingsResponse {\n  /** Component settings for the requested component id */\n  settings?: Record<string, any> | null;\n  /** The data state of the response */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** based on x-wix-language or fallback */\n  translations?: Record<string, string>;\n  /** Optional. The global app settings */\n  globalSettings?: AppSettings;\n}\n\nexport interface BulkGetComponentSettingsRequest {\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   * @minSize 1\n   * @maxSize 100\n   */\n  componentIds?: string[];\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n}\n\nexport interface BulkGetComponentSettingsResponse {\n  componentSettings?: ComponentSettings[];\n}\n\nexport interface ComponentSettings {\n  /**\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId?: string;\n  /** Component settings for the requested component id */\n  settings?: Record<string, any> | null;\n  /** The data state of the response */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** based on x-wix-language or fallback */\n  translations?: Record<string, string>;\n}\n\nexport interface SetGlobalSettingsRequest {\n  /** The global settings for the app */\n  settings?: Record<string, any> | null;\n  /** Any components we would like to set */\n  componentSettings?: SetComponentSettingsItem[];\n  /** The state this is set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface SetComponentSettingsItem {\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId?: string | null;\n  /** The component settings */\n  settings?: Record<string, any> | null;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n}\n\nexport interface SetGlobalSettingsResponse {\n  /** The data we have not for the App */\n  settings?: Record<string, any> | null;\n  /** The data we have for the components */\n  componentSettings?: SetComponentSettingsItem[];\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface GetGlobalSettingsRequest {\n  /** The requested state, default is published */\n  state?: StateWithLiterals;\n  /** Allow to filter by host to get only components for that host */\n  host?: HostWithLiterals;\n  /** If component settings data should also be returned */\n  includeComponentSettings?: boolean;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n}\n\nexport interface GetGlobalSettingsResponse {\n  /** The state of the app */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The global app settings */\n  settings?: Record<string, any> | null;\n  /** Optional. All components listed. may include components from the site or oneApp */\n  componentSettings?: GetComponentSettingsItem[];\n  /** based on x-wix-language or fallback */\n  translations?: Record<string, string>;\n}\n\nexport interface GetComponentSettingsItem {\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId?: string | null;\n  /** The component settings */\n  settings?: Record<string, any> | null;\n  /** Translatable textual assets - not using a collection because this type only the get flow (which should return a single value) */\n  translations?: Record<string, string>;\n}\n\nexport interface SetGlobalSettingsForMigrationRequest {\n  /** The global settings for the app */\n  settings?: Record<string, any> | null;\n  /** Any components we would like to set */\n  componentSettings?: SetComponentSettingsItem[];\n  /** The state this is set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n  /**\n   * The appDefId for migration\n   * @format GUID\n   */\n  appDefId?: string;\n  /**\n   * The instanceId for migration (msid)\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface SetGlobalSettingsForMigrationResponse {\n  /** The data we have not for the App */\n  settings?: Record<string, any> | null;\n  /** The data we have for the components */\n  componentSettings?: SetComponentSettingsItem[];\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface GetGlobalSettingsForMigrationRequest {\n  /** The requested state, default is published */\n  state?: StateWithLiterals;\n  /** Allow to filter by host to get only components for that host */\n  host?: HostWithLiterals;\n  /** If component settings data should also be returned */\n  includeComponentSettings?: boolean;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n  /**\n   * The appDefId for migration\n   * @format GUID\n   */\n  appDefId?: string;\n  /**\n   * The instanceId for migration (msid)\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface GetGlobalSettingsForMigrationResponse {\n  /** The state of the app */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The global app settings */\n  settings?: Record<string, any> | null;\n  /** Optional. All components listed. may include components from the site or oneApp */\n  componentSettings?: GetComponentSettingsItem[];\n  /** Translatable textual assets (returns unfiltered global translations when languageKey is omitted) */\n  translations?: TranslatedLanguage[];\n}\n\nexport interface GetRequest {\n  /**\n   * id of app-scoped settings\n   * @format GUID\n   */\n  externalAppId?: string | null;\n  /**\n   * id of component-scoped settings\n   * @format GUID\n   */\n  externalComponentId?: string | null;\n  /** desired fields to retrieve on either GetResponse.app_settings or GetResponse.component_settings */\n  fields?: string[];\n}\n\nexport interface GetResponse {\n  /** app-scoped settings; */\n  appSettings?: Record<string, any> | null;\n  /** component-scoped settings; */\n  componentSettings?: Record<string, any> | null;\n}\n\nexport interface SetRequest {\n  /**\n   * id of settings snapshot\n   * @format GUID\n   */\n  externalId?: string | null;\n  /** scope of settings to store */\n  scope?: ScopeWithLiterals;\n  /** settings themselves; */\n  data?: Record<string, any> | null;\n}\n\n/** scope of settings when creating/updating; */\nexport enum Scope {\n  /** multiple instances of a tpa can share same settings; */\n  APP = 'APP',\n  /** scoped to a single component of an app; */\n  COMPONENT = 'COMPONENT',\n}\n\n/** @enumType */\nexport type ScopeWithLiterals = Scope | 'APP' | 'COMPONENT';\n\nexport interface SetResponse {}\n\nexport interface UpdateRequest {\n  /**\n   * id of settings snapshot\n   * @format GUID\n   */\n  externalId?: string | null;\n  /** scope of settings to update */\n  scope?: ScopeWithLiterals;\n  /** changed fields in provided data */\n  fields?: string[];\n  /** data itself */\n  data?: Record<string, any> | null;\n}\n\nexport interface UpdateResponse {\n  /** new if of stored settings snapshot */\n  newExternalId?: string | null;\n}\n\n/**\n * Set component settings by componentId\n * @param componentId - The component Id\n * @public\n * @documentationMaturity preview\n * @requiredField componentId\n * @fqn com.wix.fed.settings.AppSettingsService.SetComponentSettings\n */\nexport async function setComponentSettings(\n  componentId: string,\n  options?: SetComponentSettingsOptions\n): Promise<\n  NonNullablePaths<\n    SetComponentSettingsResponse,\n    | `host`\n    | `translations`\n    | `translations.${number}.languageKey.languageCode`\n    | `translations.${number}.languageKey.regionCode`\n    | `translations.${number}.languageKey.scriptVariant`\n    | `states`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    componentId: componentId,\n    settings: options?.settings,\n    state: options?.state,\n    host: options?.host,\n    translations: options?.translations,\n    states: options?.states,\n  });\n\n  const reqOpts =\n    ambassadorWixAppSettingsV1Settings.setComponentSettings(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          componentId: '$[0]',\n          settings: '$[1].settings',\n          state: '$[1].state',\n          host: '$[1].host',\n          translations: '$[1].translations',\n          states: '$[1].states',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['componentId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface SetComponentSettingsOptions {\n  /** The data we'd like to store for this component */\n  settings?: Record<string, any> | null;\n  /** The state to set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states to set in */\n  states?: StateWithLiterals[];\n}\n\n/**\n * Get component settings by componentId\n * @param componentId - The component we want data for. Component ids can be from the site or oneApp\n * @public\n * @documentationMaturity preview\n * @requiredField componentId\n * @fqn com.wix.fed.settings.AppSettingsService.GetComponentSettings\n */\nexport async function getComponentSettings(\n  componentId: string,\n  options?: GetComponentSettingsOptions\n): Promise<\n  NonNullablePaths<\n    GetComponentSettingsResponse,\n    `state` | `host` | `globalSettings.state` | `globalSettings.host`,\n    3\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    componentId: componentId,\n    state: options?.state,\n    host: options?.host,\n    languageKey: options?.languageKey,\n    includeGlobalSettings: options?.includeGlobalSettings,\n  });\n\n  const reqOpts =\n    ambassadorWixAppSettingsV1Settings.getComponentSettings(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          componentId: '$[0]',\n          state: '$[1].state',\n          host: '$[1].host',\n          languageKey: '$[1].languageKey',\n          includeGlobalSettings: '$[1].includeGlobalSettings',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['componentId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetComponentSettingsOptions {\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n  /** Whether it is critical to get Global Settings as well */\n  includeGlobalSettings?: boolean;\n}\n\n/**\n * Set global settings by instanceId (extracted from Authorization)\n * @public\n * @documentationMaturity preview\n * @fqn com.wix.fed.settings.AppSettingsService.SetGlobalSettings\n */\nexport async function setGlobalSettings(\n  options?: SetGlobalSettingsOptions\n): Promise<\n  NonNullablePaths<\n    SetGlobalSettingsResponse,\n    | `componentSettings`\n    | `componentSettings.${number}.state`\n    | `componentSettings.${number}.host`\n    | `host`\n    | `translations`\n    | `translations.${number}.languageKey.languageCode`\n    | `translations.${number}.languageKey.regionCode`\n    | `translations.${number}.languageKey.scriptVariant`\n    | `states`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    settings: options?.settings,\n    componentSettings: options?.componentSettings,\n    state: options?.state,\n    host: options?.host,\n    translations: options?.translations,\n    states: options?.states,\n  });\n\n  const reqOpts = ambassadorWixAppSettingsV1Settings.setGlobalSettings(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          settings: '$[0].settings',\n          componentSettings: '$[0].componentSettings',\n          state: '$[0].state',\n          host: '$[0].host',\n          translations: '$[0].translations',\n          states: '$[0].states',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface SetGlobalSettingsOptions {\n  /** The global settings for the app */\n  settings?: Record<string, any> | null;\n  /** Any components we would like to set */\n  componentSettings?: SetComponentSettingsItem[];\n  /** The state this is set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\n/**\n * Get global settings by instanceId (extracted from Authorization)\n * @public\n * @documentationMaturity preview\n * @fqn com.wix.fed.settings.AppSettingsService.GetGlobalSettings\n */\nexport async function getGlobalSettings(\n  options?: GetGlobalSettingsOptions\n): Promise<\n  NonNullablePaths<\n    GetGlobalSettingsResponse,\n    | `state`\n    | `host`\n    | `componentSettings`\n    | `componentSettings.${number}.state`\n    | `componentSettings.${number}.host`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    state: options?.state,\n    host: options?.host,\n    includeComponentSettings: options?.includeComponentSettings,\n    languageKey: options?.languageKey,\n  });\n\n  const reqOpts = ambassadorWixAppSettingsV1Settings.getGlobalSettings(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          state: '$[0].state',\n          host: '$[0].host',\n          includeComponentSettings: '$[0].includeComponentSettings',\n          languageKey: '$[0].languageKey',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetGlobalSettingsOptions {\n  /** The requested state, default is published */\n  state?: StateWithLiterals;\n  /** Allow to filter by host to get only components for that host */\n  host?: HostWithLiterals;\n  /** If component settings data should also be returned */\n  includeComponentSettings?: boolean;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixFedSettingsAppSettingsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service/v1/settings/components',\n        destPath: '/api/v1/settings/components',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '/private/api',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/dev/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '/private/api',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/dev/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '/private/api',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/dev/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service/v1/settings/components',\n        destPath: '/api/v1/settings/components',\n      },\n      {\n        srcPath: '/_api/app-settings-service/v1/settings/instances',\n        destPath: '/api/v1/settings/instances',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'progallery._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'ecom._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'bookings.wixapps.net': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'scheduler._base_domain_': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'progallery.wixapps.net': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'support._base_domain_': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'social-blog._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/settings',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/user-preferences',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'addresses.wixapps.net': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'vibe._base_domain_': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'manage.base44.com': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'payments.base44.com': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'platform.rise.ai': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-settings_app-settings';\n\n/** Set component settings by componentId */\nexport function setComponentSettings(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __setComponentSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.SetComponentSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/components/{componentId}',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __setComponentSettings;\n}\n\n/** Get component settings by componentId */\nexport function getComponentSettings(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getComponentSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'GET' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.GetComponentSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/components/{componentId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getComponentSettings;\n}\n\n/** Set global settings by instanceId (extracted from Authorization) */\nexport function setGlobalSettings(payload: object): RequestOptionsFactory<any> {\n  function __setGlobalSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.SetGlobalSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/instances',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __setGlobalSettings;\n}\n\n/** Get global settings by instanceId (extracted from Authorization) */\nexport function getGlobalSettings(payload: object): RequestOptionsFactory<any> {\n  function __getGlobalSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'GET' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.GetGlobalSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/instances',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getGlobalSettings;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  GetComponentSettingsOptions,\n  GetComponentSettingsResponse,\n  GetGlobalSettingsOptions,\n  GetGlobalSettingsResponse,\n  SetComponentSettingsOptions,\n  SetComponentSettingsResponse,\n  SetGlobalSettingsOptions,\n  SetGlobalSettingsResponse,\n  getComponentSettings as universalGetComponentSettings,\n  getGlobalSettings as universalGetGlobalSettings,\n  setComponentSettings as universalSetComponentSettings,\n  setGlobalSettings as universalSetGlobalSettings,\n} from './app-settings-v1-settings-app-settings.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/app-settings' };\n\nexport function setComponentSettings(\n  httpClient: HttpClient\n): SetComponentSettingsSignature {\n  return (componentId: string, options?: SetComponentSettingsOptions) =>\n    universalSetComponentSettings(\n      componentId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetComponentSettingsSignature {\n  /**\n   * Set component settings by componentId\n   * @param - The component Id\n   */\n  (componentId: string, options?: SetComponentSettingsOptions): Promise<\n    NonNullablePaths<\n      SetComponentSettingsResponse,\n      | `host`\n      | `translations`\n      | `translations.${number}.languageKey.languageCode`\n      | `translations.${number}.languageKey.regionCode`\n      | `translations.${number}.languageKey.scriptVariant`\n      | `states`,\n      5\n    >\n  >;\n}\n\nexport function getComponentSettings(\n  httpClient: HttpClient\n): GetComponentSettingsSignature {\n  return (componentId: string, options?: GetComponentSettingsOptions) =>\n    universalGetComponentSettings(\n      componentId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetComponentSettingsSignature {\n  /**\n   * Get component settings by componentId\n   * @param - The component we want data for. Component ids can be from the site or oneApp\n   */\n  (componentId: string, options?: GetComponentSettingsOptions): Promise<\n    NonNullablePaths<\n      GetComponentSettingsResponse,\n      `state` | `host` | `globalSettings.state` | `globalSettings.host`,\n      3\n    >\n  >;\n}\n\nexport function setGlobalSettings(\n  httpClient: HttpClient\n): SetGlobalSettingsSignature {\n  return (options?: SetGlobalSettingsOptions) =>\n    universalSetGlobalSettings(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetGlobalSettingsSignature {\n  /**\n   * Set global settings by instanceId (extracted from Authorization)\n   */\n  (options?: SetGlobalSettingsOptions): Promise<\n    NonNullablePaths<\n      SetGlobalSettingsResponse,\n      | `componentSettings`\n      | `componentSettings.${number}.state`\n      | `componentSettings.${number}.host`\n      | `host`\n      | `translations`\n      | `translations.${number}.languageKey.languageCode`\n      | `translations.${number}.languageKey.regionCode`\n      | `translations.${number}.languageKey.scriptVariant`\n      | `states`,\n      5\n    >\n  >;\n}\n\nexport function getGlobalSettings(\n  httpClient: HttpClient\n): GetGlobalSettingsSignature {\n  return (options?: GetGlobalSettingsOptions) =>\n    universalGetGlobalSettings(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetGlobalSettingsSignature {\n  /**\n   * Get global settings by instanceId (extracted from Authorization)\n   */\n  (options?: GetGlobalSettingsOptions): Promise<\n    NonNullablePaths<\n      GetGlobalSettingsResponse,\n      | `state`\n      | `host`\n      | `componentSettings`\n      | `componentSettings.${number}.state`\n      | `componentSettings.${number}.host`,\n      4\n    >\n  >;\n}\n\nexport {\n  AppSettings,\n  BulkGetComponentSettingsRequest,\n  BulkGetComponentSettingsResponse,\n  ComponentSettings,\n  GetComponentSettingsItem,\n  GetComponentSettingsOptions,\n  GetComponentSettingsRequest,\n  GetComponentSettingsResponse,\n  GetGlobalSettingsForMigrationRequest,\n  GetGlobalSettingsForMigrationResponse,\n  GetGlobalSettingsOptions,\n  GetGlobalSettingsRequest,\n  GetGlobalSettingsResponse,\n  GetRequest,\n  GetResponse,\n  Host,\n  LanguageKey,\n  Scope,\n  SetComponentSettingsForMigrationRequest,\n  SetComponentSettingsForMigrationResponse,\n  SetComponentSettingsItem,\n  SetComponentSettingsOptions,\n  SetComponentSettingsRequest,\n  SetComponentSettingsResponse,\n  SetGlobalSettingsForMigrationRequest,\n  SetGlobalSettingsForMigrationResponse,\n  SetGlobalSettingsOptions,\n  SetGlobalSettingsRequest,\n  SetGlobalSettingsResponse,\n  SetRequest,\n  SetResponse,\n  State,\n  TranslatedLanguage,\n  UpdateRequest,\n  UpdateResponse,\n} from './app-settings-v1-settings-app-settings.universal.js';\n","import {\n  setComponentSettings as publicSetComponentSettings,\n  getComponentSettings as publicGetComponentSettings,\n  setGlobalSettings as publicSetGlobalSettings,\n  getGlobalSettings as publicGetGlobalSettings,\n} from './app-settings-v1-settings-app-settings.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const setComponentSettings: MaybeContext<\n  BuildRESTFunction<typeof publicSetComponentSettings> &\n    typeof publicSetComponentSettings\n> = /*#__PURE__*/ createRESTModule(publicSetComponentSettings);\nexport const getComponentSettings: MaybeContext<\n  BuildRESTFunction<typeof publicGetComponentSettings> &\n    typeof publicGetComponentSettings\n> = /*#__PURE__*/ createRESTModule(publicGetComponentSettings);\nexport const setGlobalSettings: MaybeContext<\n  BuildRESTFunction<typeof publicSetGlobalSettings> &\n    typeof publicSetGlobalSettings\n> = /*#__PURE__*/ createRESTModule(publicSetGlobalSettings);\nexport const getGlobalSettings: MaybeContext<\n  BuildRESTFunction<typeof publicGetGlobalSettings> &\n    typeof publicGetGlobalSettings\n> = /*#__PURE__*/ createRESTModule(publicGetGlobalSettings);\n\nexport {\n  State,\n  Host,\n  Scope,\n} from './app-settings-v1-settings-app-settings.universal.js';\nexport {\n  AppSettings,\n  SetComponentSettingsRequest,\n  TranslatedLanguage,\n  LanguageKey,\n  SetComponentSettingsResponse,\n  SetComponentSettingsForMigrationRequest,\n  SetComponentSettingsForMigrationResponse,\n  GetComponentSettingsRequest,\n  GetComponentSettingsResponse,\n  BulkGetComponentSettingsRequest,\n  BulkGetComponentSettingsResponse,\n  ComponentSettings,\n  SetGlobalSettingsRequest,\n  SetComponentSettingsItem,\n  SetGlobalSettingsResponse,\n  GetGlobalSettingsRequest,\n  GetGlobalSettingsResponse,\n  GetComponentSettingsItem,\n  SetGlobalSettingsForMigrationRequest,\n  SetGlobalSettingsForMigrationResponse,\n  GetGlobalSettingsForMigrationRequest,\n  GetGlobalSettingsForMigrationResponse,\n  GetRequest,\n  GetResponse,\n  SetRequest,\n  SetResponse,\n  UpdateRequest,\n  UpdateResponse,\n  SetComponentSettingsOptions,\n  GetComponentSettingsOptions,\n  SetGlobalSettingsOptions,\n  GetGlobalSettingsOptions,\n} from './app-settings-v1-settings-app-settings.universal.js';\nexport {\n  StateWithLiterals,\n  HostWithLiterals,\n  ScopeWithLiterals,\n} from './app-settings-v1-settings-app-settings.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ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B,YAC3BA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAqBO,SAASC,sBACd,YAC+B;AAC/B,SAAO,CAAC,aAAqB,YAC3BA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,mBACd,YAC4B;AAC5B,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAuBO,SAASC,mBACd,YAC4B;AAC5B,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC9GA,SAAS,wBAAwB;AAG1B,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,qBAGK,iCAAiBA,kBAAuB;","names":["State","Host","Scope","setComponentSettings","getComponentSettings","setGlobalSettings","getGlobalSettings","setComponentSettings","getComponentSettings","setGlobalSettings","getGlobalSettings","setComponentSettings","getComponentSettings","setGlobalSettings","getGlobalSettings"]}