{"ast":null,"code":"function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar sanityClient = require('@sanity/client');\n\nvar sanityImage = require('@sanity/image-url');\n\nconst options = {\n  // Find your project ID and dataset in `sanity.json` in your studio project\n  dataset: 'production',\n  projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,\n  useCdn: false // useCdn == true gives fast, cheap responses using a globally distributed cache.\n  // Set this to false if your application require the freshest possible\n  // data always (potentially slightly slower and a bit more expensive).\n\n};\nconst client = sanityClient(options);\nmodule.exports.imageBuilder = sanityImage(client);\nmodule.exports.previewClient = sanityClient(_objectSpread(_objectSpread({}, options), {}, {\n  useCdn: false,\n  token: process.env.SANITY_API_TOKEN\n}));\nmodule.exports.client = client; // import sanityClient from '@sanity/client'\n// import sanityImage from '@sanity/image-url'\n// const options = {\n//   // Find your project ID and dataset in `sanity.json` in your studio project\n//   dataset: 'production',\n//   projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,\n//   useCdn: process.env.NODE_ENV === 'production',\n//   // useCdn == true gives fast, cheap responses using a globally distributed cache.\n//   // Set this to false if your application require the freshest possible\n//   // data always (potentially slightly slower and a bit more expensive).\n// }\n// const client = sanityClient(options)\n// export const imageBuilder = sanityImage(client)\n// export const previewClient = sanityClient({\n//   ...options,\n//   useCdn: false,\n//   token: process.env.SANITY_API_TOKEN,\n// })\n// export default client","map":{"version":3,"sources":["/home/gkkdzdg/www/src/lib/sanity.js"],"names":["sanityClient","require","sanityImage","options","dataset","projectId","process","env","NEXT_PUBLIC_SANITY_PROJECT_ID","useCdn","client","module","exports","imageBuilder","previewClient","token","SANITY_API_TOKEN"],"mappings":";;;;;;AACA,IAAIA,YAAY,GAAGC,OAAO,CAAC,gBAAD,CAA1B;;AACA,IAAIC,WAAW,GAAGD,OAAO,CAAC,mBAAD,CAAzB;;AAEA,MAAME,OAAO,GAAG;AACd;AACAC,EAAAA,OAAO,EAAE,YAFK;AAGdC,EAAAA,SAAS,EAAEC,OAAO,CAACC,GAAR,CAAYC,6BAHT;AAIdC,EAAAA,MAAM,OAJQ,CAKd;AACA;AACA;;AAPc,CAAhB;AAUA,MAAMC,MAAM,GAAGV,YAAY,CAACG,OAAD,CAA3B;AAEAQ,MAAM,CAACC,OAAP,CAAeC,YAAf,GAA8BX,WAAW,CAACQ,MAAD,CAAzC;AAEAC,MAAM,CAACC,OAAP,CAAeE,aAAf,GAA+Bd,YAAY,iCACtCG,OADsC;AAEzCM,EAAAA,MAAM,EAAE,KAFiC;AAGzCM,EAAAA,KAAK,EAAET,OAAO,CAACC,GAAR,CAAYS;AAHsB,GAA3C;AAMAL,MAAM,CAACC,OAAP,CAAeF,MAAf,GAAwBA,MAAxB,C,CAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA","sourcesContent":["\nvar sanityClient = require('@sanity/client')\nvar sanityImage = require('@sanity/image-url')\n\nconst options = {\n  // Find your project ID and dataset in `sanity.json` in your studio project\n  dataset: 'production',\n  projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,\n  useCdn: process.env.NODE_ENV === 'production',\n  // useCdn == true gives fast, cheap responses using a globally distributed cache.\n  // Set this to false if your application require the freshest possible\n  // data always (potentially slightly slower and a bit more expensive).\n}\n\nconst client = sanityClient(options)\n\nmodule.exports.imageBuilder = sanityImage(client)\n\nmodule.exports.previewClient = sanityClient({\n  ...options,\n  useCdn: false,\n  token: process.env.SANITY_API_TOKEN,\n})\n\nmodule.exports.client = client\n\n// import sanityClient from '@sanity/client'\n// import sanityImage from '@sanity/image-url'\n\n// const options = {\n//   // Find your project ID and dataset in `sanity.json` in your studio project\n//   dataset: 'production',\n//   projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,\n//   useCdn: process.env.NODE_ENV === 'production',\n//   // useCdn == true gives fast, cheap responses using a globally distributed cache.\n//   // Set this to false if your application require the freshest possible\n//   // data always (potentially slightly slower and a bit more expensive).\n// }\n\n// const client = sanityClient(options)\n\n// export const imageBuilder = sanityImage(client)\n\n// export const previewClient = sanityClient({\n//   ...options,\n//   useCdn: false,\n//   token: process.env.SANITY_API_TOKEN,\n// })\n\n// export default client\n"]},"metadata":{},"sourceType":"script"}