{"version":3,"file":"install.mjs","sources":["../../../packages/shared/install.js"],"sourcesContent":["import { NOOP } from '@vitamin/shared'\n\nexport const withInstall = (main, extra = {}) => {\n    main.install = function(app) {\n        for (const comp of [main, ...Object.values(extra)]) {\n            app.component(comp.name, comp)\n        }\n    }\n    return main\n}\n\nexport const withNoopInstall = component => {\n    component.install = NOOP\n    return component\n}\n"],"names":["withInstall","main","extra","app","comp","withNoopInstall","component","NOOP"],"mappings":";AAEY,MAACA,IAAc,CAACC,GAAMC,IAAQ,QACtCD,EAAK,UAAU,SAASE,GAAK;AACzB,aAAWC,KAAQ,CAACH,GAAM,GAAG,OAAO,OAAOC,CAAK,CAAC;AAC7C,IAAAC,EAAI,UAAUC,EAAK,MAAMA,CAAI;AAEpC,GACMH,IAGEI,IAAkB,CAAAC,OAC3BA,EAAU,UAAUC,GACbD;"}