var Accordion = Namespace.declare("com.twitter.Bootstrap",
    class Accordion extends UcpComponent {
        static get implements() { return []; };
        static start() {}
        static get dependencies() {
            return [
                "/EAMD.ucp/Components/com/twitter/Bootstrap/3.3.7/Bootstrap.component.xml",
                "/EAMD.ucp/Components/com/twitter/Bootstrap/Accordion/CollapsiblePanel/3.3.7/CollapsiblePanel.component.xml"
            ];
        }


        constructor() {
            super();
            this.cssClasses = "col-sm-12";
        }

        init() {
            super.init();
            return this;
        }

        /* createDefaultView() {
            return new AccordionDefaultView();
        }
        */
        get container() {
            return this.documentElement;
        }

        updateView(view) {
            if (view instanceof DefaultView) {
                if (view.children.length > 0)
                    view.documentElement.children[0].classList.add("hidden");
                else
                    view.documentElement.children[0].classList.remove("hidden");

            }
        }

    }
);

/* var AccordionDefaultView = Namespace.declare("com.twitter.Bootstrap.Accordion",
    class AccordionDefaultView extends UcpView {

        append(element) {
            super.append(element);
            this.ucpComponent.add(CollapsiblePanel.getInstance());
        }

    }
); */