import { PieSliceOthersContext as PieSliceOthersContext_internal } from "./PieSliceOthersContext";
/**
 * Represents the selected data contained inside the Others slice.
*/
var IgrPieSliceOthersContext = /** @class */ /*@__PURE__*/ (function () {
    function IgrPieSliceOthersContext() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
        if (this._initializeAdapters) {
            this._initializeAdapters();
        }
    }
    IgrPieSliceOthersContext.prototype.createImplementation = function () {
        return new PieSliceOthersContext_internal();
    };
    Object.defineProperty(IgrPieSliceOthersContext.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    IgrPieSliceOthersContext.prototype.onImplementationCreated = function () {
    };
    IgrPieSliceOthersContext.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
        if (this._initializeAdapters) {
            this._initializeAdapters();
        }
    };
    /**
     * The underlying data contained by the Others pie slice.
    */
    IgrPieSliceOthersContext.prototype.findByName = function (name) {
        if (this.findEphemera) {
            if (name && name.indexOf("@@e:") == 0) {
                return this.findEphemera(name);
            }
        }
        return null;
    };
    return IgrPieSliceOthersContext;
}());
export { IgrPieSliceOthersContext };
