/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@wix/auto_sdk_ecom_catalog@1.0.58/build/cjs/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of __getOwnPropNames(t))__hasOwnProp.call(e,s)||s===r||__defProp(e,s,{get:()=>t[s],enumerable:!(i=__getOwnPropDesc(t,s))||i.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),index_exports={};__export(index_exports,{ChargeType:()=>ChargeType,DescriptionLineType:()=>DescriptionLineType,DimensionsUnit:()=>DimensionsUnit,FileType:()=>FileType,IdentityType:()=>IdentityType,ItemTypePreset:()=>ItemTypePreset,PaymentOptionType:()=>PaymentOptionType,SubscriptionFrequency:()=>SubscriptionFrequency,TaxableAddressType:()=>TaxableAddressType,WeightUnit:()=>WeightUnit,provideHandlers:()=>provideHandlers2,publicProvideHandlers:()=>provideHandlers}),module.exports=__toCommonJS(index_exports);var WeightUnit=(e=>(e.UNSPECIFIED_WEIGHT_UNIT="UNSPECIFIED_WEIGHT_UNIT",e.KG="KG",e.LB="LB",e))(WeightUnit||{}),ItemTypePreset=(e=>(e.UNRECOGNISED="UNRECOGNISED",e.PHYSICAL="PHYSICAL",e.DIGITAL="DIGITAL",e.GIFT_CARD="GIFT_CARD",e.SERVICE="SERVICE",e))(ItemTypePreset||{}),DescriptionLineType=(e=>(e.UNRECOGNISED="UNRECOGNISED",e.PLAIN_TEXT="PLAIN_TEXT",e.COLOR="COLOR",e))(DescriptionLineType||{}),DimensionsUnit=(e=>(e.UNKNOWN_DIMENSIONS_UNIT="UNKNOWN_DIMENSIONS_UNIT",e.MM="MM",e.CM="CM",e.M="M",e.IN="IN",e.FT="FT",e.YD="YD",e))(DimensionsUnit||{}),SubscriptionFrequency=(e=>(e.UNDEFINED="UNDEFINED",e.DAY="DAY",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR",e))(SubscriptionFrequency||{}),FileType=(e=>(e.UNSPECIFIED="UNSPECIFIED",e.SECURE_PICTURE="SECURE_PICTURE",e.SECURE_VIDEO="SECURE_VIDEO",e.SECURE_DOCUMENT="SECURE_DOCUMENT",e.SECURE_MUSIC="SECURE_MUSIC",e.SECURE_ARCHIVE="SECURE_ARCHIVE",e.SECURE_RAW="SECURE_RAW",e))(FileType||{}),PaymentOptionType=(e=>(e.FULL_PAYMENT_ONLINE="FULL_PAYMENT_ONLINE",e.FULL_PAYMENT_OFFLINE="FULL_PAYMENT_OFFLINE",e.MEMBERSHIP="MEMBERSHIP",e.DEPOSIT_ONLINE="DEPOSIT_ONLINE",e.MEMBERSHIP_OFFLINE="MEMBERSHIP_OFFLINE",e.MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER="MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER",e))(PaymentOptionType||{}),TaxableAddressType=(e=>(e.BUSINESS="BUSINESS",e.BILLING="BILLING",e.SHIPPING="SHIPPING",e))(TaxableAddressType||{}),ChargeType=(e=>(e.PASS_ON="PASS_ON",e.ABSORBED="ABSORBED",e))(ChargeType||{}),IdentityType=(e=>(e.UNKNOWN="UNKNOWN",e.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",e.MEMBER="MEMBER",e.WIX_USER="WIX_USER",e.APP="APP",e))(IdentityType||{}),import_sdk_types=require("@wix/sdk-types"),import_image=require("@wix/sdk-runtime/transformations/image"),import_page_url_v2=require("@wix/sdk-runtime/transformations/page-url-v2"),import_float=require("@wix/sdk-runtime/transformations/float"),import_timestamp=require("@wix/sdk-runtime/transformations/timestamp"),import_transform_paths=require("@wix/sdk-runtime/transformations/transform-paths"),import_rename_all_nested_keys=require("@wix/sdk-runtime/rename-all-nested-keys"),provideHandlers=(0,import_sdk_types.ServicePluginDefinition)("ECOM_CATALOG",[{name:"getCatalogItems",primaryHttpMappingPath:"/get-catalog-items",transformations:{toREST:e=>{const t=(0,import_transform_paths.transformPaths)(e,[{transformFn:import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,paths:[{path:"catalogItems.data.url"}]},{transformFn:import_image.transformSDKImageToRESTImage,paths:[{path:"catalogItems.data.media"}]},{transformFn:import_float.transformSDKFloatToRESTFloat,paths:[{path:"catalogItems.data.physicalProperties.weight"}]},{transformFn:import_timestamp.transformSDKTimestampToRESTTimestamp,paths:[{path:"catalogItems.data.subscriptionOptionInfo.subscriptionSettings.startDate"},{path:"catalogItems.data.serviceProperties.scheduledDate"},{path:"catalogItems.data.serviceProperties.endDate"}]}]);return(0,import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(t)},fromREST:e=>{const t=e;return(0,import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(t)}}}]),import_service_plugin_modules=require("@wix/sdk-runtime/service-plugin-modules"),provideHandlers2=(0,import_service_plugin_modules.createServicePluginModule)(provideHandlers);
//# sourceMappingURL=/sm/f1ada7fd7e853bbad2234b2a37c6e56560c2d79e29f9b7407d61da5ce969ad1b.map