import {
  __esm,
  __export,
  __toCommonJS
} from "./chunk-NFEGQTCC.mjs";

// __generated__/ContentPostsPaginationQuery.graphql.ts
var node, ContentPostsPaginationQuery_graphql_default;
var init_ContentPostsPaginationQuery_graphql = __esm({
  "__generated__/ContentPostsPaginationQuery.graphql.ts"() {
    "use strict";
    node = /* @__PURE__ */ function() {
      var v0 = [
        {
          "defaultValue": 5,
          "kind": "LocalArgument",
          "name": "count"
        },
        {
          "defaultValue": null,
          "kind": "LocalArgument",
          "name": "cursor"
        },
        {
          "defaultValue": "-created",
          "kind": "LocalArgument",
          "name": "orderBy"
        }
      ], v1 = {
        "kind": "Variable",
        "name": "orderBy",
        "variableName": "orderBy"
      }, v2 = [
        {
          "kind": "Variable",
          "name": "after",
          "variableName": "cursor"
        },
        {
          "kind": "Variable",
          "name": "first",
          "variableName": "count"
        },
        v1
      ], v3 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "id",
        "storageKey": null
      }, v4 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "pk",
        "storageKey": null
      }, v5 = [
        {
          "alias": null,
          "args": null,
          "kind": "ScalarField",
          "name": "url",
          "storageKey": null
        }
      ];
      return {
        "fragment": {
          "argumentDefinitions": v0,
          "kind": "Fragment",
          "metadata": null,
          "name": "ContentPostsPaginationQuery",
          "selections": [
            {
              "args": [
                {
                  "kind": "Variable",
                  "name": "count",
                  "variableName": "count"
                },
                {
                  "kind": "Variable",
                  "name": "cursor",
                  "variableName": "cursor"
                },
                v1
              ],
              "kind": "FragmentSpread",
              "name": "ContentPostsFragment"
            }
          ],
          "type": "Query",
          "abstractKey": null
        },
        "kind": "Request",
        "operation": {
          "argumentDefinitions": v0,
          "kind": "Operation",
          "name": "ContentPostsPaginationQuery",
          "selections": [
            {
              "alias": null,
              "args": v2,
              "concreteType": "ContentPostConnection",
              "kind": "LinkedField",
              "name": "contentPosts",
              "plural": false,
              "selections": [
                {
                  "alias": null,
                  "args": null,
                  "kind": "ScalarField",
                  "name": "totalCount",
                  "storageKey": null
                },
                {
                  "alias": null,
                  "args": null,
                  "concreteType": "ContentPostEdge",
                  "kind": "LinkedField",
                  "name": "edges",
                  "plural": true,
                  "selections": [
                    {
                      "alias": null,
                      "args": null,
                      "concreteType": "ContentPost",
                      "kind": "LinkedField",
                      "name": "node",
                      "plural": false,
                      "selections": [
                        v3,
                        v4,
                        {
                          "alias": null,
                          "args": null,
                          "kind": "ScalarField",
                          "name": "content",
                          "storageKey": null
                        },
                        {
                          "alias": null,
                          "args": null,
                          "concreteType": "ContentPostImageConnection",
                          "kind": "LinkedField",
                          "name": "images",
                          "plural": false,
                          "selections": [
                            {
                              "alias": null,
                              "args": null,
                              "concreteType": "ContentPostImageEdge",
                              "kind": "LinkedField",
                              "name": "edges",
                              "plural": true,
                              "selections": [
                                {
                                  "alias": null,
                                  "args": null,
                                  "concreteType": "ContentPostImage",
                                  "kind": "LinkedField",
                                  "name": "node",
                                  "plural": false,
                                  "selections": [
                                    v3,
                                    v4,
                                    {
                                      "alias": null,
                                      "args": [
                                        {
                                          "kind": "Literal",
                                          "name": "height",
                                          "value": 0
                                        },
                                        {
                                          "kind": "Literal",
                                          "name": "width",
                                          "value": 600
                                        }
                                      ],
                                      "concreteType": "File",
                                      "kind": "LinkedField",
                                      "name": "image",
                                      "plural": false,
                                      "selections": v5,
                                      "storageKey": "image(height:0,width:600)"
                                    }
                                  ],
                                  "storageKey": null
                                }
                              ],
                              "storageKey": null
                            }
                          ],
                          "storageKey": null
                        },
                        {
                          "alias": null,
                          "args": null,
                          "kind": "ScalarField",
                          "name": "created",
                          "storageKey": null
                        },
                        {
                          "alias": null,
                          "args": null,
                          "kind": "ScalarField",
                          "name": "modified",
                          "storageKey": null
                        },
                        {
                          "alias": null,
                          "args": null,
                          "concreteType": "Profile",
                          "kind": "LinkedField",
                          "name": "profile",
                          "plural": false,
                          "selections": [
                            v3,
                            {
                              "alias": null,
                              "args": null,
                              "kind": "ScalarField",
                              "name": "name",
                              "storageKey": null
                            },
                            {
                              "alias": null,
                              "args": [
                                {
                                  "kind": "Literal",
                                  "name": "height",
                                  "value": 100
                                },
                                {
                                  "kind": "Literal",
                                  "name": "width",
                                  "value": 100
                                }
                              ],
                              "concreteType": "File",
                              "kind": "LinkedField",
                              "name": "image",
                              "plural": false,
                              "selections": v5,
                              "storageKey": "image(height:100,width:100)"
                            },
                            {
                              "alias": null,
                              "args": null,
                              "concreteType": "URLPath",
                              "kind": "LinkedField",
                              "name": "urlPath",
                              "plural": false,
                              "selections": [
                                {
                                  "alias": null,
                                  "args": null,
                                  "kind": "ScalarField",
                                  "name": "path",
                                  "storageKey": null
                                },
                                v3
                              ],
                              "storageKey": null
                            }
                          ],
                          "storageKey": null
                        },
                        {
                          "alias": null,
                          "args": null,
                          "kind": "ScalarField",
                          "name": "isReactionsEnabled",
                          "storageKey": null
                        },
                        {
                          "alias": null,
                          "args": null,
                          "kind": "ScalarField",
                          "name": "__typename",
                          "storageKey": null
                        },
                        {
                          "kind": "InlineFragment",
                          "selections": [
                            {
                              "alias": null,
                              "args": null,
                              "concreteType": "ReactionsCount",
                              "kind": "LinkedField",
                              "name": "reactionsCount",
                              "plural": false,
                              "selections": [
                                {
                                  "alias": null,
                                  "args": null,
                                  "kind": "ScalarField",
                                  "name": "total",
                                  "storageKey": null
                                }
                              ],
                              "storageKey": null
                            },
                            {
                              "alias": null,
                              "args": null,
                              "concreteType": "Reaction",
                              "kind": "LinkedField",
                              "name": "myReaction",
                              "plural": false,
                              "selections": [
                                v3,
                                {
                                  "alias": null,
                                  "args": null,
                                  "kind": "ScalarField",
                                  "name": "reactionType",
                                  "storageKey": null
                                }
                              ],
                              "storageKey": null
                            }
                          ],
                          "type": "ReactionsInterface",
                          "abstractKey": "__isReactionsInterface"
                        }
                      ],
                      "storageKey": null
                    },
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "cursor",
                      "storageKey": null
                    }
                  ],
                  "storageKey": null
                },
                {
                  "alias": null,
                  "args": null,
                  "concreteType": "PageInfo",
                  "kind": "LinkedField",
                  "name": "pageInfo",
                  "plural": false,
                  "selections": [
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "hasNextPage",
                      "storageKey": null
                    },
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "hasPreviousPage",
                      "storageKey": null
                    },
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "endCursor",
                      "storageKey": null
                    },
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "startCursor",
                      "storageKey": null
                    }
                  ],
                  "storageKey": null
                }
              ],
              "storageKey": null
            },
            {
              "alias": null,
              "args": v2,
              "filters": [
                "orderBy"
              ],
              "handle": "connection",
              "key": "ContentPostsFragment_contentPosts",
              "kind": "LinkedHandle",
              "name": "contentPosts"
            }
          ]
        },
        "params": {
          "cacheID": "8a0148241960fa132e70ac7947e06b6e",
          "id": null,
          "metadata": {},
          "name": "ContentPostsPaginationQuery",
          "operationKind": "query",
          "text": 'query ContentPostsPaginationQuery(\n  $count: Int = 5\n  $cursor: String\n  $orderBy: String = "-created"\n) {\n  ...ContentPostsFragment_32czeo\n}\n\nfragment ContentPostImageFragment_2rSAEw on ContentPostImage {\n  pk\n  image(width: 600, height: 0) {\n    url\n  }\n}\n\nfragment ContentPost_post on ContentPost {\n  id\n  pk\n  content\n  images {\n    edges {\n      node {\n        id\n        ...ContentPostImageFragment_2rSAEw\n      }\n    }\n  }\n  created\n  modified\n  profile {\n    ...ProfileItemFragment\n    id\n  }\n  isReactionsEnabled\n  ...ReactionButton_target\n}\n\nfragment ContentPostsFragment_32czeo on Query {\n  contentPosts(first: $count, after: $cursor, orderBy: $orderBy) {\n    totalCount\n    edges {\n      node {\n        ...ContentPost_post\n        id\n        __typename\n      }\n      cursor\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      endCursor\n      startCursor\n    }\n  }\n}\n\nfragment ProfileItemFragment on Profile {\n  id\n  name\n  image(width: 100, height: 100) {\n    url\n  }\n  urlPath {\n    path\n    id\n  }\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n  __isReactionsInterface: __typename\n  id\n  reactionsCount {\n    total\n  }\n  myReaction {\n    id\n    reactionType\n  }\n}\n'
        }
      };
    }();
    node.hash = "a89294e2780c6901e768a63896cf3926";
    ContentPostsPaginationQuery_graphql_default = node;
  }
});

// __generated__/ContentPostsFragment.graphql.ts
var ContentPostsFragment_graphql_exports = {};
__export(ContentPostsFragment_graphql_exports, {
  default: () => ContentPostsFragment_graphql_default
});
var node2, ContentPostsFragment_graphql_default;
var init_ContentPostsFragment_graphql = __esm({
  "__generated__/ContentPostsFragment.graphql.ts"() {
    "use strict";
    init_ContentPostsPaginationQuery_graphql();
    node2 = /* @__PURE__ */ function() {
      var v0 = [
        "contentPosts"
      ];
      return {
        "argumentDefinitions": [
          {
            "defaultValue": 5,
            "kind": "LocalArgument",
            "name": "count"
          },
          {
            "defaultValue": null,
            "kind": "LocalArgument",
            "name": "cursor"
          },
          {
            "defaultValue": "-created",
            "kind": "LocalArgument",
            "name": "orderBy"
          }
        ],
        "kind": "Fragment",
        "metadata": {
          "connection": [
            {
              "count": "count",
              "cursor": "cursor",
              "direction": "forward",
              "path": v0
            }
          ],
          "refetch": {
            "connection": {
              "forward": {
                "count": "count",
                "cursor": "cursor"
              },
              "backward": null,
              "path": v0
            },
            "fragmentPathInResult": [],
            "operation": ContentPostsPaginationQuery_graphql_default
          }
        },
        "name": "ContentPostsFragment",
        "selections": [
          {
            "alias": "contentPosts",
            "args": [
              {
                "kind": "Variable",
                "name": "orderBy",
                "variableName": "orderBy"
              }
            ],
            "concreteType": "ContentPostConnection",
            "kind": "LinkedField",
            "name": "__ContentPostsFragment_contentPosts_connection",
            "plural": false,
            "selections": [
              {
                "alias": null,
                "args": null,
                "kind": "ScalarField",
                "name": "totalCount",
                "storageKey": null
              },
              {
                "alias": null,
                "args": null,
                "concreteType": "ContentPostEdge",
                "kind": "LinkedField",
                "name": "edges",
                "plural": true,
                "selections": [
                  {
                    "alias": null,
                    "args": null,
                    "concreteType": "ContentPost",
                    "kind": "LinkedField",
                    "name": "node",
                    "plural": false,
                    "selections": [
                      {
                        "args": null,
                        "kind": "FragmentSpread",
                        "name": "ContentPost_post"
                      },
                      {
                        "alias": null,
                        "args": null,
                        "kind": "ScalarField",
                        "name": "__typename",
                        "storageKey": null
                      }
                    ],
                    "storageKey": null
                  },
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "cursor",
                    "storageKey": null
                  }
                ],
                "storageKey": null
              },
              {
                "alias": null,
                "args": null,
                "concreteType": "PageInfo",
                "kind": "LinkedField",
                "name": "pageInfo",
                "plural": false,
                "selections": [
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "hasNextPage",
                    "storageKey": null
                  },
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "hasPreviousPage",
                    "storageKey": null
                  },
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "endCursor",
                    "storageKey": null
                  },
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "startCursor",
                    "storageKey": null
                  }
                ],
                "storageKey": null
              }
            ],
            "storageKey": null
          }
        ],
        "type": "Query",
        "abstractKey": null
      };
    }();
    node2.hash = "a89294e2780c6901e768a63896cf3926";
    ContentPostsFragment_graphql_default = node2;
  }
});

// tmp-babel/content-feed/common/graphql/fragments/ContentPosts.js
import { graphql, usePaginationFragment } from "react-relay";
var _ContentPostsFragment;
var ContentPostsFragmentQuery = _ContentPostsFragment !== void 0 ? _ContentPostsFragment : (_ContentPostsFragment = (init_ContentPostsFragment_graphql(), __toCommonJS(ContentPostsFragment_graphql_exports)), _ContentPostsFragment.hash && _ContentPostsFragment.hash !== "a89294e2780c6901e768a63896cf3926" && console.error("The definition of 'ContentPostsFragment' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ContentPostsFragment);
var useContentPosts = function useContentPosts2(targetRef) {
  return usePaginationFragment(ContentPostsFragmentQuery, targetRef);
};

export {
  ContentPostsFragmentQuery,
  useContentPosts
};
//# sourceMappingURL=chunk-4XBVIJ24.mjs.map