text: var SLDS=SLDS||{};SLDS["__internal/chunked/showcase/ui/components/dynamic-menu/base/example.jsx.js"]=webpackJsonpSLDS___internal_chunked_showcase([68,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],{0:function(e,t){e.exports=React},102:function(e,t,l){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.states=void 0;var s=a(l(0)),n=l(7),i=a(l(3)),o=l(16),r=a(l(2)),d=a(l(4)),m=["Acme","Edge SLA","Express Logistics SLA","GenePoint Lab Generators","GenePoint SLA","Pyramid Emergency Generators","United Oil Installations","United Oil Plant Standby Generators","University of AZ Installations","University of AZ Portable Generators"],u=function(e){return s.default.createElement(n.Listbox,{className:"slds-dropdown_length-10",vertical:!0,"aria-label":"My Favorites"},s.default.createElement(n.ListboxItem,null,s.default.createElement("div",{className:"slds-media slds-listbox__option slds-listbox__option_plain",role:"presentation"},s.default.createElement("h3",{className:"slds-text-title_caps",role:"presentation"},"My Favorites"))),m.slice(0,e.length).map(function(t,l){return s.default.createElement(n.ListboxItem,{key:t},s.default.createElement(n.EntityOption,{id:d.default.uniqueId("listbox-option-id-"),entityTitle:t,entityMeta:!0,tabIndex:0!==l||e.isCombobox?null:"0"}))}))},c=function(e){return s.default.createElement("ul",null,s.default.createElement("li",null,s.default.createElement("button",{className:"slds-button slds-button_reset slds-p-vertical_xx-small slds-size_1-of-1"},s.default.createElement(r.default,{className:"slds-button__icon slds-button__icon_left",sprite:"utility",symbol:"add"}),"Favorite this page")),s.default.createElement("li",null,s.default.createElement("button",{className:"slds-button slds-button_reset slds-p-vertical_xx-small slds-size_1-of-1"},s.default.createElement(r.default,{className:"slds-button__icon slds-button__icon_left",sprite:"utility",symbol:"edit"}),"Edit Favorites")))},f=function(e){return s.default.createElement(o.Popover,{className:"slds-nubbin_top-left slds-dynamic-menu",bodyClassName:"slds-p-horizontal_none",title:"My Favourites",footer:s.default.createElement(c,null),style:{position:"absolute",left:"0",top:"55px"}},e.children)};t.default=s.default.createElement("div",{className:"demo-only",style:{height:"12rem"}},s.default.createElement(i.default,{className:"slds-button_icon-border-filled",symbol:"favorite",assistiveText:"Show Favorites",title:"Show Favorites"}),s.default.createElement(f,null,s.default.createElement("div",{className:"slds-p-vertical_x-small slds-p-horizontal_small"},s.default.createElement("h3",{className:"slds-text-title_caps slds-m-bottom_x-small",role:"presentation"},"My Favorites"),s.default.createElement("p",null,"You can favorite any page!"))));t.states=[{id:"dynamic-menu-0-items",label:"Dynamic Menu — 0 Items",element:s.default.createElement("div",{className:"demo-only",style:{height:"12rem"}},s.default.createElement(i.default,{className:"slds-button_icon-border-filled",symbol:"favorite",assistiveText:"Show Favorites",title:"Show Favorites"}),s.default.createElement(f,null,s.default.createElement("div",{className:"slds-p-vertical_x-small slds-p-horizontal_small"},s.default.createElement("h3",{className:"slds-text-title_caps slds-m-bottom_x-small",role:"presentation"},"My Favorites"),s.default.createElement("p",null,"You can favorite any page!"))))},{id:"dynamic-menu-1-item",label:"Dynamic Menu — 1 Item",element:s.default.createElement("div",{className:"demo-only",style:{height:"13rem"}},s.default.createElement(i.default,{className:"slds-button_icon-border-filled",symbol:"favorite",assistiveText:"Show Favorites",title:"Show Favorites"}),s.default.createElement(f,null,s.default.createElement(u,{length:"1"})))},{id:"dynamic-menu-sub-10-item",label:"Dynamic Menu — <10 Items",element:s.default.createElement("div",{className:"demo-only",style:{height:"27rem"}},s.default.createElement(i.default,{className:"slds-button_icon-border-filled",symbol:"favorite",assistiveText:"Show Favorites",title:"Show Favorites"}),s.default.createElement(f,null,s.default.createElement(u,{length:"6"})))},{id:"dynamic-menu-over-10-item",label:"Dynamic Menu — >10 Items",element:s.default.createElement("div",{className:"demo-only",style:{height:"34rem"}},s.default.createElement(i.default,{className:"slds-button_icon-border-filled",symbol:"favorite",assistiveText:"Show Favorites",title:"Show Favorites"}),s.default.createElement(f,null,s.default.createElement(n.ComboboxContainer,{autocomplete:!0,isOpen:!0,placeholder:"Search Favorites",hideLabel:!0,inputIcon:"right",inputIconRightSymbol:"search",inputContainerClassName:"slds-m-around_small",listbox:s.default.createElement(u,{length:"12",isCombobox:!0}),staticListbox:!0})))}]}},[102]);