text: import { Validate } from '@microsoft/sp-core-library';
  /**
   * Exposes information that is associated with the SharePoint web page that is currently being displayed.
   *
   * @remarks
   * The Page object provides access to information that is scoped to the current SharePoint web page, but not
   * stored with the underlying SPListItem. Note that the {@link PageContext.listItem} may be undefined for
   * pages that are not based on a SharePoint list, whereas the PageContext.page will never be undefined.
   *
   * The concept of a "page" is subjective and defined by the router for a particular client-side application.
   *
   * @alpha
   */
  var Page = /** @class */ (function () {
      /**
       * @internal
       */
      function Page(data) {
          this._validate(data);
          this._socialBarEnabled = data.socialBarEnabled || false;
      }
      Object.defineProperty(Page.prototype, "socialBarEnabled", {
          /**
           * Returns true if the Social Bar is enabled.
           *
           * @remarks
           * The Social Bar will appear on all modern SharePoint pages with the exception of the home page of a site.
           * It will give users the ability to like a page, see the number of views, likes, and comments on a page,
           * and see the people who have liked a page.
           */
          get: function () {
              return this._socialBarEnabled;
          },
          enumerable: true,
          configurable: true
      });
      /**
       * Function that throws an exception if an IPageData object or its required
       * parameters are null or undefined.
       *
       * @param data - Data used to construct a IPageData object
       */
      Page.prototype._validate = function (data) {
          Validate.isNotNullOrUndefined(data, 'IPage object');
      };
      return Page;
  }());
  export default Page;
  //# sourceMappingURL=Page.js.map