var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
import { PropertyPaneTextField } from '@microsoft/sp-property-pane';
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
import * as strings from 'PnPspSendEmailUtilityWebPartStrings';
import PnPspSendEmailUtility from './components/PnPspSendEmailUtility';
var PnPspSendEmailUtilityWebPart = /** @class */ (function (_super) {
    __extends(PnPspSendEmailUtilityWebPart, _super);
    function PnPspSendEmailUtilityWebPart() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PnPspSendEmailUtilityWebPart.prototype.render = function () {
        var element = React.createElement(PnPspSendEmailUtility, {
            description: this.properties.description,
            context: this.context,
            spconect: this.context,
        });
        ReactDom.render(element, this.domElement);
    };
    PnPspSendEmailUtilityWebPart.prototype.onDispose = function () {
        ReactDom.unmountComponentAtNode(this.domElement);
    };
    Object.defineProperty(PnPspSendEmailUtilityWebPart.prototype, "dataVersion", {
        get: function () {
            return Version.parse('1.0');
        },
        enumerable: true,
        configurable: true
    });
    PnPspSendEmailUtilityWebPart.prototype.getPropertyPaneConfiguration = function () {
        return {
            pages: [
                {
                    header: {
                        description: strings.PropertyPaneDescription
                    },
                    groups: [
                        {
                            groupName: strings.BasicGroupName,
                            groupFields: [
                                PropertyPaneTextField('description', {
                                    label: strings.DescriptionFieldLabel
                                })
                            ]
                        }
                    ]
                }
            ]
        };
    };
    return PnPspSendEmailUtilityWebPart;
}(BaseClientSideWebPart));
export default PnPspSendEmailUtilityWebPart;
//# sourceMappingURL=PnPspSendEmailUtilityWebPart.js.map