{"version":3,"file":"dropDownMenu.obs.js","sources":["../../../Framework/Controls/dropDownMenu.obs","../../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["\n\n\n\n\n\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["isDropDownOpen","ref","dropdownElement","hasAnyIcons","computed","props","items","some","i","iconCssClass","additionalDropDownClasses","value","additionalDropDownMenuClasses","concat","align","getActionButtonClasses","action","classes","type","actionCssClass","getActionItemClasses","disabled","onDropDownClick","onActionClick","_x","_x2","_onActionClick","apply","arguments","_asyncToGenerator","event","handler","result","isPromise","onDocumentMouseDown","_dropdownElement$valu","target","HTMLElement","contains","watch","document","addEventListener","removeEventListener","styleInject","css","insertAt","head","getElementsByTagName","style","createElement","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4DI,IAAA,IAAMA,cAAc,GAAGC,GAAG,CAAC,KAAK,CAAC,CAAA;UACjC,IAAMC,eAAe,GAAGD,GAAG,EAAe,CAAA;MAM1C,IAAA,IAAME,WAAW,GAAGC,QAAQ,CAAC,MAAe;MACxC,MAAA,OAAOC,KAAK,CAACC,KAAK,CAACC,IAAI,CAACC,CAAC,IAAI,CAAC,CAACA,CAAC,CAACC,YAAY,CAAC,CAAA;MAClD,KAAC,CAAC,CAAA;MAGF,IAAA,IAAMC,yBAAy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