{"version":3,"file":"index.mjs","sources":[""],"sourcesContent":["\r\ntype TFactoryProps = Partial<{\r\n  factory: Partial<{\r\n    html: string;\r\n  }>;\r\n}>;\r\n\r\n/**\r\n * Получает флаг необходимости обернуть пользовательскую разметку модуля в Factory\r\n * @param props{Object=}\r\n * @returns {boolean}\r\n */\r\nconst isNeedFactory = <T extends TFactoryProps>(props: T): boolean => {\r\n\r\n  const { html = \"\" } = props?.factory ?? {};\r\n  return typeof html === \"string\" && !!html.length;\r\n\r\n};\r\n\r\nexport {\r\n  isNeedFactory,\r\n};\r\n"],"names":["isNeedFactory","props","html","factory","length"],"mappings":";;;;;AAYA,MAAMA,cAA0CC,QAE9C,MAAMC,KAAEA,KAAO,IAAOD,OAAOE,SAAW,CAAA,EACxC,cAAcD,OAAS,YAAcA,KAAKE"}