import{b}from"./chunk-AEY3DO2Q.js";import{W as u,_ as h,ab as f,bb as g,qa as E,ra as S,ua as C}from"./chunk-RIXYHOD2.js";import{Hc as x,Lb as p,Mb as o,Yb as t,Zb as n,fc as l,kb as a,oa as s,vc as e}from"./chunk-7RF4FE4V.js";import"./chunk-WWX6BADO.js";var w=(()=>{class m{constructor(){this.collapses=[!1,!1,!1,!1]}toggleCollapse(c){this.collapses[c]=!this.collapses[c]}static{this.\u0275fac=function(d){return new(d||m)}}static{this.\u0275cmp=s({type:m,selectors:[["app-collapses"]],standalone:!0,features:[x],decls:143,vars:5,consts:[["xs","12"],[1,"mb-4"],[1,"text-body-secondary","small"],["href","components/collapse"],["cButton","","color","primary",1,"me-1",3,"click"],["cCollapse","",3,"visible"],[1,"shadow","mt-3"],["ngPreserveWhitespaces",""],["cButton","","color","primary",1,"me-1","mb-3",3,"click"],[2,"min-height","130px"],["cCollapse","","horizontal","",2,"max-width","260px",3,"visible"],[1,"shadow"],[2,"width","260px"],["href","components/collapse#multiple-targets"],["xs","6"],[1,"mt-3"]],template:function(d,i){d&1&&(t(0,"c-row"),e(1,`
  `),t(2,"c-col",0),e(3,`
    `),t(4,"c-card",1),e(5,`
      `),t(6,"c-card-header"),e(7,`
        `),t(8,"strong"),e(9,"Angular Collapse"),n(),e(10,`
      `),n(),e(11,`
      `),t(12,"c-card-body"),e(13,`
        `),t(14,"p",2),e(15,"You can use a link or a button component."),n(),e(16,`
        `),t(17,"app-docs-example",3),e(18,`
          `),t(19,"a",4),l("click",function(){return i.toggleCollapse(0)}),e(20,"Link"),n(),e(21,`
          `),t(22,"button",4),l("click",function(){return i.toggleCollapse(0)}),e(23,`
            Button
          `),n(),e(24,`
          `),t(25,"div",5),e(26,`
            `),t(27,"c-card",6),e(28,`
              `),t(29,"c-card-body"),e(30,`
                Anim pariatur cliche reprehenderit, enim eiusmod high life
                accusamus terry richardson ad squid. Nihil anim keffiyeh
                helvetica, craft beer labore wes anderson cred nesciunt sapiente
                ea proident.
              `),n(),e(31,`
            `),n(),e(32,`
          `),n(),e(33,`
        `),n(),e(34,`
      `),n(),e(35,`
    `),n(),e(36,`
  `),n(),e(37,`
  `),t(38,"c-col",0),e(39,`
    `),t(40,"c-card",1),e(41,`
      `),t(42,"c-card-header",7),e(43,`
        `),t(44,"strong"),e(45,"Angular Collapse"),n(),e(46," "),t(47,"small"),e(48,"horizontal"),n(),e(49,`
      `),n(),e(50,`
      `),t(51,"c-card-body"),e(52,`
        `),t(53,"p",2),e(54,`
          Add the `),t(55,"code"),e(56,"horizontal"),n(),e(57,` property to transition the width
          instead of height and set a width on the immediate child element.
        `),n(),e(58,`
        `),t(59,"app-docs-example",3),e(60,`
          `),t(61,"button",8),l("click",function(){return i.toggleCollapse(1)}),e(62,`
            Button
          `),n(),e(63,`
          `),t(64,"div",9),e(65,`
            `),t(66,"div",10),e(67,`
              `),t(68,"c-card",11),e(69,`
                `),t(70,"c-card-body",12),e(71,`
                  This is some placeholder content for a horizontal collapse.
                  It's hidden by default and shown when triggered.
                `),n(),e(72,`
              `),n(),e(73,`
            `),n(),e(74,`
          `),n(),e(75,`
        `),n(),e(76,`
      `),n(),e(77,`
    `),n(),e(78,`
  `),n(),e(79,`
  `),t(80,"c-col",0),e(81,`
    `),t(82,"c-card",1),e(83,`
      `),t(84,"c-card-header"),e(85,`
        `),t(86,"strong"),e(87,"Angular Collapse"),n(),e(88," "),t(89,"small"),e(90," multi target"),n(),e(91,`
      `),n(),e(92,`
      `),t(93,"c-card-body"),e(94,`
        `),t(95,"p",2),e(96,`
          A `),t(97,"code"),e(98,"<c-button>"),n(),e(99,` can show and hide multiple elements.
        `),n(),e(100,`
        `),t(101,"app-docs-example",13),e(102,`
          `),t(103,"button",4),l("click",function(){return i.toggleCollapse(2)}),e(104,`
            Toggle first element
          `),n(),e(105,`
          `),t(106,"button",4),l("click",function(){return i.toggleCollapse(3)}),e(107,`
            Toggle second element
          `),n(),e(108,`
          `),t(109,"button",4),l("click",function(){return i.toggleCollapse(2),i.toggleCollapse(3)}),e(110,`
            Toggle both
          `),n(),e(111,`
          `),t(112,"c-row",9),e(113,`
            `),t(114,"c-col",14),e(115,`
              `),t(116,"div",5),e(117,`
                `),t(118,"c-card",15),e(119,`
                  `),t(120,"c-card-body"),e(121,`
                    Anim pariatur cliche reprehenderit, enim eiusmod high life
                    accusamus terry richardson ad squid. Nihil anim keffiyeh
                    helvetica, craft beer labore wes anderson cred nesciunt
                    sapiente ea proident.
                  `),n(),e(122,`
                `),n(),e(123,`
              `),n(),e(124,`
            `),n(),e(125,`
            `),t(126,"c-col",14),e(127,`
              `),t(128,"div",5),e(129,`
                `),t(130,"c-card",15),e(131,`
                  `),t(132,"c-card-body"),e(133,`
                    Anim pariatur cliche reprehenderit, enim eiusmod high life
                    accusamus terry richardson ad squid. Nihil anim keffiyeh
                    helvetica, craft beer labore wes anderson cred nesciunt
                    sapiente ea proident.
                  `),n(),e(134,`
                `),n(),e(135,`
              `),n(),e(136,`
            `),n(),e(137,`
          `),n(),e(138,`
        `),n(),e(139,`
      `),n(),e(140,`
    `),n(),e(141,`
  `),n(),e(142,`
`),n()),d&2&&(a(25),o("visible",i.collapses[0]),a(36),p("aria-expanded",i.collapses[1]),a(5),o("visible",i.collapses[1]),a(50),o("visible",i.collapses[2]),a(12),o("visible",i.collapses[3]))},dependencies:[g,f,E,C,S,b,h,u]})}}return m})();export{w as CollapsesComponent};
