@bikdotai/bik-component-library 0.0.655-2 → 0.0.655-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/alert_triangle.svg.js"),i=require("../../assets/icons/plus.svg.js"),o=require("react"),n=require("../../constants/Theme.js"),r=require("../button/Button.js"),s=require("../TypographyStyle.js"),a=require("./DataSourcePanel.style.js"),d=require("./model.js");const l=o.memo((l=>{const{appType:c,sourceIntent:g,hideHeading:h,messageSource:v,trainingSourceCount:p={},ShowTrainingDataSource:m={},faqCount:T,ChecklistType:b,footerButtonOption:y}=l,j=m,[O,C]=o.useState(!0),[f,A]=o.useState(!0),[I,x]=o.useState({buttonTitle:"",redirectUrl:"",addFaqProps:{}}),[R,_]=o.useState({title:"",subTitle:""}),F=o.useMemo((()=>{const e=(null==p?void 0:p[g])||0;return e<=1?"There is "+e+"data source added to the identified intent":`There are ${e} data sources added to the identified intent`}),[p,g]),S=()=>{(null==I?void 0:I.redirectUrl)?window.open(`${window.location.origin}${null==I?void 0:I.redirectUrl}`,"_self"):(null==I?void 0:I.addFaqProps)?null==y||y.onClick(I):(null==y?void 0:y.navigate)&&(null==y||y.navigate("/Training",{tab:"/"},{},!0))};return o.useEffect((()=>{var e,t,i;if(g){if(null===(e=null==v?void 0:v.sources)||void 0===e?void 0:e.length)if(j[g])g===b.ORDER_ENQUIRY&&A(!1);else{let e=v.sources[0].insights,o="";switch(g){case b.PRODUCT_DETAILS:"Product reviews"!==v.sources[0].title&&(e=`${T||"No"} FAQs added for this product`,o="Add product-specific information via FAQs to improve responses",x({buttonTitle:"Add FAQ",addFaqProps:{faqProducts:[{id:v.sources[0].productId,variantId:v.sources[0].variantId,name:v.sources[0].title,imageUrl:v.sources[0].imageUrl}]},redirectUrl:""}));break;case b.ORDER_MODIFICATION:e=(null==p?void 0:p[g])?void 0:"Customers who are looking to modify their orders would be redirected to your live agents via the agent handover flow.",e&&x({buttonTitle:"Manage agent handover",redirectUrl:c==d.AppType.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case b.ORDER_CANCELLATION:e=(null==p?void 0:p[g])?void 0:"Customers who are looking to cancel their orders would be redirected to your live agents via the agent handover flow.",x({buttonTitle:"Manage agent handover",redirectUrl:c==d.AppType.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case b.ORDER_TRACKING:if("ORDER_NOT_FOUND"===v.sources[0].subIntent)break;x({buttonTitle:"Add order tracking link",redirectUrl:c==d.AppType.MANIFEST?"/training/order-management":"/training",addFaqProps:{}});break;case b.PRODUCT_SEARCH:if("QUIZ"===v.sources[0].type)break;if(-1!==(null===(i=null===(t=null==v?void 0:v.sources)||void 0===t?void 0:t[0].title)||void 0===i?void 0:i.toLowerCase().indexOf("collection"))){e="Collections are recommended by matching queries with collection names and descriptions. Add relevant keywords to your collection description to improve results.";break}e="Products are recommended by matching queries with product names, descriptions, tags, and collections. Add relevant keywords and tags to your products to improve results."}_({title:null!=e?e:"",subTitle:o})}(j[g]||[b.PRODUCT_DETAILS,b.ORDER_MODIFICATION,b.ORDER_CANCELLATION,b.ORDER_TRACKING].includes(g))&&C(!1)}}),[null==v?void 0:v.messageId,p,g,null==v?void 0:v.sources,j,b,T,c]),e.jsx(a.SourceInfoFooterStyle,{children:!(null==R?void 0:R.title)&&p&&g in p?e.jsxs(e.Fragment,{children:[e.jsx(u,{hideHeading:null!=h&&h}),e.jsxs("div",Object.assign({className:"source_info_details "+(p[g]>0?"":"no_data_source")},{children:[p[g]>0&&f?e.jsxs(e.Fragment,{children:[e.jsx(s.BodyCaption,{children:F}),e.jsx(s.BodyCaption,Object.assign({color:n.COLORS.content.secondary},{children:"Improve responses by adding more data sources for the identified intent"}))]}):f&&e.jsxs("div",Object.assign({className:"no_data_source_title"},{children:[e.jsx(t.default,{width:15,height:15,color:n.COLORS.content.negative,style:{marginTop:2}}),e.jsx(s.BodyCaption,{children:"No data sources added to the identified link"})]})),!y||y.hideAddDataButton||O?e.jsx(e.Fragment,{}):e.jsx(r.Button,{size:"small",buttonType:"tertiary",LeadingIcon:i.default,buttonText:(null==I?void 0:I.buttonTitle.length)>0?null==I?void 0:I.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>S(),style:{backgroundColor:"unset"}})]}))]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{hideHeading:null!=h&&h}),e.jsxs("div",Object.assign({className:"source_info_details"},{children:[f&&e.jsxs(e.Fragment,{children:[e.jsx(s.BodyCaption,{children:null==R?void 0:R.title}),e.jsx(s.BodyCaption,Object.assign({color:n.COLORS.content.secondary},{children:null==R?void 0:R.subTitle}))]}),!y||y.hideAddDataButton||O?e.jsx(e.Fragment,{}):e.jsx(r.Button,{size:"small",buttonType:"tertiary",LeadingIcon:i.default,buttonText:(null==I?void 0:I.buttonTitle.length)>0?null==I?void 0:I.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>S(),style:{backgroundColor:"unset"}})]}))]})})})),u=o.memo((t=>t.hideHeading?null:e.jsx(s.BodyCaption,Object.assign({color:n.COLORS.content.secondary},{children:"Training insights"}))));u.displayName="TrainingInsightsHeading",l.displayName="SourceInfoFooter",exports.default=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/alert_triangle.svg.js"),o=require("../../assets/icons/plus.svg.js"),n=require("react"),i=require("../../constants/Theme.js"),r=require("../button/Button.js"),s=require("../TypographyStyle.js"),d=require("./DataSourcePanel.style.js"),l=require("./model.js");const a=n.memo((a=>{const{appType:c,sourceIntent:v,hideHeading:g,messageSource:h,trainingSourceCount:p={},ShowTrainingDataSource:m={},faqCount:T,ChecklistType:b,footerButtonOption:y}=a,j=m,[O,f]=n.useState(!0),[C,I]=n.useState(!0),[A,x]=n.useState({buttonTitle:"",redirectUrl:"",addFaqProps:{}}),[R,_]=n.useState({title:"",subTitle:""}),F=n.useMemo((()=>{const e=(null==p?void 0:p[v])||0;return e<=1?"There is "+e+"data source added to the identified intent":`There are ${e} data sources added to the identified intent`}),[p,v]),S=()=>{var e;(null==A?void 0:A.redirectUrl)?window.open(`${window.location.origin}${null==A?void 0:A.redirectUrl}`,"_self"):Object.keys(null!==(e=null==A?void 0:A.addFaqProps)&&void 0!==e?e:{}).length>0?null==y||y.onClick(A):(null==y?void 0:y.navigate)&&(null==y||y.navigate("/Training",{tab:"/"},{},!0))};return n.useEffect((()=>{var e,t,o,n,i,r,s,d,a,u,g,m;if(console.log("KB sourceIntent",v,h),v){if(null===(e=null==h?void 0:h.sources)||void 0===e?void 0:e.length)if(console.log("KB sourceIntent 1"),j[v])v===b.ORDER_ENQUIRY&&I(!1);else{console.log("KB sourceIntent 2");let e=null===(t=h.sources[0])||void 0===t?void 0:t.insights,y="";switch(console.log("KB sourceIntent 3"),v){case b.PRODUCT_DETAILS:"Product reviews"!==(null===(o=h.sources[0])||void 0===o?void 0:o.title)&&(e=`${T||"No"} FAQs added for this product`,y="Add product-specific information via FAQs to improve responses",x({buttonTitle:"Add FAQ",addFaqProps:{faqProducts:[{id:null===(n=h.sources[0])||void 0===n?void 0:n.productId,variantId:null===(i=h.sources[0])||void 0===i?void 0:i.variantId,name:null===(r=h.sources[0])||void 0===r?void 0:r.title,imageUrl:null===(s=h.sources[0])||void 0===s?void 0:s.imageUrl}]},redirectUrl:""}));break;case b.ORDER_MODIFICATION:e=(null==p?void 0:p[v])?void 0:"Customers who are looking to modify their orders would be redirected to your live agents via the agent handover flow.",e&&x({buttonTitle:"Manage agent handover",redirectUrl:c==l.AppType.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case b.ORDER_CANCELLATION:e=(null==p?void 0:p[v])?void 0:"Customers who are looking to cancel their orders would be redirected to your live agents via the agent handover flow.",x({buttonTitle:"Manage agent handover",redirectUrl:c==l.AppType.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case b.ORDER_TRACKING:if("ORDER_NOT_FOUND"===(null===(d=h.sources[0])||void 0===d?void 0:d.subIntent))break;x({buttonTitle:"Add order tracking link",redirectUrl:c==l.AppType.MANIFEST?"/training/order-management":"/training",addFaqProps:{}});break;case b.PRODUCT_SEARCH:if("QUIZ"===(null===(a=h.sources[0])||void 0===a?void 0:a.type))break;if(-1!==(null===(m=null===(g=null===(u=null==h?void 0:h.sources)||void 0===u?void 0:u[0])||void 0===g?void 0:g.title)||void 0===m?void 0:m.toLowerCase().indexOf("collection"))){e="Collections are recommended by matching queries with collection names and descriptions. Add relevant keywords to your collection description to improve results.";break}e="Products are recommended by matching queries with product names, descriptions, tags, and collections. Add relevant keywords and tags to your products to improve results."}_({title:null!=e?e:"",subTitle:y})}(j[v]||[b.PRODUCT_DETAILS,b.ORDER_MODIFICATION,b.ORDER_CANCELLATION,b.ORDER_TRACKING].includes(v))&&f(!1)}}),[null==h?void 0:h.messageId,p,v,null==h?void 0:h.sources,j,b,T,c,h]),n.useEffect((()=>{console.log("KB change",R,R)}),[A,R]),e.jsx(d.SourceInfoFooterStyle,{children:!(null==R?void 0:R.title)&&p&&v in p?e.jsxs(e.Fragment,{children:[e.jsx(u,{hideHeading:null!=g&&g}),e.jsxs("div",Object.assign({className:"source_info_details "+(p[v]>0?"":"no_data_source")},{children:[p[v]>0&&C?e.jsxs(e.Fragment,{children:[e.jsx(s.BodyCaption,{children:F}),e.jsx(s.BodyCaption,Object.assign({color:i.COLORS.content.secondary},{children:"Improve responses by adding more data sources for the identified intent"}))]}):C&&e.jsxs("div",Object.assign({className:"no_data_source_title"},{children:[e.jsx(t.default,{width:15,height:15,color:i.COLORS.content.negative,style:{marginTop:2}}),e.jsx(s.BodyCaption,{children:"No data sources added to the identified link"})]})),!y||y.hideAddDataButton||O?e.jsx(e.Fragment,{}):e.jsx(r.Button,{size:"small",buttonType:"tertiary",LeadingIcon:o.default,buttonText:(null==A?void 0:A.buttonTitle.length)>0?null==A?void 0:A.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>S(),style:{backgroundColor:"unset"}})]}))]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{hideHeading:null!=g&&g}),e.jsxs("div",Object.assign({className:"source_info_details"},{children:[C&&e.jsxs(e.Fragment,{children:[e.jsx(s.BodyCaption,{children:null==R?void 0:R.title}),e.jsx(s.BodyCaption,Object.assign({color:i.COLORS.content.secondary},{children:null==R?void 0:R.subTitle}))]}),!y||y.hideAddDataButton||O?e.jsx(e.Fragment,{}):e.jsx(r.Button,{size:"small",buttonType:"tertiary",LeadingIcon:o.default,buttonText:(null==A?void 0:A.buttonTitle.length)>0?null==A?void 0:A.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>S(),style:{backgroundColor:"unset"}})]}))]})})})),u=n.memo((t=>t.hideHeading?null:e.jsx(s.BodyCaption,Object.assign({color:i.COLORS.content.secondary},{children:"Training insights"}))));u.displayName="TrainingInsightsHeading",a.displayName="SourceInfoFooter",exports.default=a;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/alert_triangle.svg.js";import n from"../../assets/icons/plus.svg.js";import{memo as r,useState as d,useMemo as a,useEffect as s}from"react";import{COLORS as l}from"../../constants/Theme.js";import{Button as c}from"../button/Button.js";import{BodyCaption as u}from"../TypographyStyle.js";import{SourceInfoFooterStyle as g}from"./DataSourcePanel.style.js";import{AppType as h}from"./model.js";const m=r((r=>{const{appType:m,sourceIntent:p,hideHeading:T,messageSource:b,trainingSourceCount:f={},ShowTrainingDataSource:y={},faqCount:A,ChecklistType:I,footerButtonOption:O}=r,C=y,[R,_]=d(!0),[N,k]=d(!0),[D,w]=d({buttonTitle:"",redirectUrl:"",addFaqProps:{}}),[E,F]=d({title:"",subTitle:""}),P=a((()=>{const e=(null==f?void 0:f[p])||0;return e<=1?"There is "+e+"data source added to the identified intent":`There are ${e} data sources added to the identified intent`}),[f,p]),U=()=>{(null==D?void 0:D.redirectUrl)?window.open(`${window.location.origin}${null==D?void 0:D.redirectUrl}`,"_self"):(null==D?void 0:D.addFaqProps)?null==O||O.onClick(D):(null==O?void 0:O.navigate)&&(null==O||O.navigate("/Training",{tab:"/"},{},!0))};return s((()=>{var e,t,o;if(p){if(null===(e=null==b?void 0:b.sources)||void 0===e?void 0:e.length)if(C[p])p===I.ORDER_ENQUIRY&&k(!1);else{let e=b.sources[0].insights,i="";switch(p){case I.PRODUCT_DETAILS:"Product reviews"!==b.sources[0].title&&(e=`${A||"No"} FAQs added for this product`,i="Add product-specific information via FAQs to improve responses",w({buttonTitle:"Add FAQ",addFaqProps:{faqProducts:[{id:b.sources[0].productId,variantId:b.sources[0].variantId,name:b.sources[0].title,imageUrl:b.sources[0].imageUrl}]},redirectUrl:""}));break;case I.ORDER_MODIFICATION:e=(null==f?void 0:f[p])?void 0:"Customers who are looking to modify their orders would be redirected to your live agents via the agent handover flow.",e&&w({buttonTitle:"Manage agent handover",redirectUrl:m==h.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case I.ORDER_CANCELLATION:e=(null==f?void 0:f[p])?void 0:"Customers who are looking to cancel their orders would be redirected to your live agents via the agent handover flow.",w({buttonTitle:"Manage agent handover",redirectUrl:m==h.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case I.ORDER_TRACKING:if("ORDER_NOT_FOUND"===b.sources[0].subIntent)break;w({buttonTitle:"Add order tracking link",redirectUrl:m==h.MANIFEST?"/training/order-management":"/training",addFaqProps:{}});break;case I.PRODUCT_SEARCH:if("QUIZ"===b.sources[0].type)break;if(-1!==(null===(o=null===(t=null==b?void 0:b.sources)||void 0===t?void 0:t[0].title)||void 0===o?void 0:o.toLowerCase().indexOf("collection"))){e="Collections are recommended by matching queries with collection names and descriptions. Add relevant keywords to your collection description to improve results.";break}e="Products are recommended by matching queries with product names, descriptions, tags, and collections. Add relevant keywords and tags to your products to improve results."}F({title:null!=e?e:"",subTitle:i})}(C[p]||[I.PRODUCT_DETAILS,I.ORDER_MODIFICATION,I.ORDER_CANCELLATION,I.ORDER_TRACKING].includes(p))&&_(!1)}}),[null==b?void 0:b.messageId,f,p,null==b?void 0:b.sources,C,I,A,m]),e(g,{children:!(null==E?void 0:E.title)&&f&&p in f?t(o,{children:[e(v,{hideHeading:null!=T&&T}),t("div",Object.assign({className:"source_info_details "+(f[p]>0?"":"no_data_source")},{children:[f[p]>0&&N?t(o,{children:[e(u,{children:P}),e(u,Object.assign({color:l.content.secondary},{children:"Improve responses by adding more data sources for the identified intent"}))]}):N&&t("div",Object.assign({className:"no_data_source_title"},{children:[e(i,{width:15,height:15,color:l.content.negative,style:{marginTop:2}}),e(u,{children:"No data sources added to the identified link"})]})),!O||O.hideAddDataButton||R?e(o,{}):e(c,{size:"small",buttonType:"tertiary",LeadingIcon:n,buttonText:(null==D?void 0:D.buttonTitle.length)>0?null==D?void 0:D.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>U(),style:{backgroundColor:"unset"}})]}))]}):t(o,{children:[e(v,{hideHeading:null!=T&&T}),t("div",Object.assign({className:"source_info_details"},{children:[N&&t(o,{children:[e(u,{children:null==E?void 0:E.title}),e(u,Object.assign({color:l.content.secondary},{children:null==E?void 0:E.subTitle}))]}),!O||O.hideAddDataButton||R?e(o,{}):e(c,{size:"small",buttonType:"tertiary",LeadingIcon:n,buttonText:(null==D?void 0:D.buttonTitle.length)>0?null==D?void 0:D.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>U(),style:{backgroundColor:"unset"}})]}))]})})})),v=r((t=>t.hideHeading?null:e(u,Object.assign({color:l.content.secondary},{children:"Training insights"}))));v.displayName="TrainingInsightsHeading",m.displayName="SourceInfoFooter";export{m as default};
1
+ import{jsx as e,jsxs as o,Fragment as t}from"react/jsx-runtime";import i from"../../assets/icons/alert_triangle.svg.js";import n from"../../assets/icons/plus.svg.js";import{memo as r,useState as d,useMemo as l,useEffect as s}from"react";import{COLORS as a}from"../../constants/Theme.js";import{Button as c}from"../button/Button.js";import{BodyCaption as u}from"../TypographyStyle.js";import{SourceInfoFooterStyle as v}from"./DataSourcePanel.style.js";import{AppType as g}from"./model.js";const h=r((r=>{const{appType:h,sourceIntent:p,hideHeading:b,messageSource:T,trainingSourceCount:f={},ShowTrainingDataSource:I={},faqCount:y,ChecklistType:A,footerButtonOption:O}=r,C=I,[R,_]=d(!0),[k,N]=d(!0),[D,w]=d({buttonTitle:"",redirectUrl:"",addFaqProps:{}}),[E,F]=d({title:"",subTitle:""}),j=l((()=>{const e=(null==f?void 0:f[p])||0;return e<=1?"There is "+e+"data source added to the identified intent":`There are ${e} data sources added to the identified intent`}),[f,p]),P=()=>{var e;(null==D?void 0:D.redirectUrl)?window.open(`${window.location.origin}${null==D?void 0:D.redirectUrl}`,"_self"):Object.keys(null!==(e=null==D?void 0:D.addFaqProps)&&void 0!==e?e:{}).length>0?null==O||O.onClick(D):(null==O?void 0:O.navigate)&&(null==O||O.navigate("/Training",{tab:"/"},{},!0))};return s((()=>{var e,o,t,i,n,r,d,l,s,a,c,u;if(console.log("KB sourceIntent",p,T),p){if(null===(e=null==T?void 0:T.sources)||void 0===e?void 0:e.length)if(console.log("KB sourceIntent 1"),C[p])p===A.ORDER_ENQUIRY&&N(!1);else{console.log("KB sourceIntent 2");let e=null===(o=T.sources[0])||void 0===o?void 0:o.insights,v="";switch(console.log("KB sourceIntent 3"),p){case A.PRODUCT_DETAILS:"Product reviews"!==(null===(t=T.sources[0])||void 0===t?void 0:t.title)&&(e=`${y||"No"} FAQs added for this product`,v="Add product-specific information via FAQs to improve responses",w({buttonTitle:"Add FAQ",addFaqProps:{faqProducts:[{id:null===(i=T.sources[0])||void 0===i?void 0:i.productId,variantId:null===(n=T.sources[0])||void 0===n?void 0:n.variantId,name:null===(r=T.sources[0])||void 0===r?void 0:r.title,imageUrl:null===(d=T.sources[0])||void 0===d?void 0:d.imageUrl}]},redirectUrl:""}));break;case A.ORDER_MODIFICATION:e=(null==f?void 0:f[p])?void 0:"Customers who are looking to modify their orders would be redirected to your live agents via the agent handover flow.",e&&w({buttonTitle:"Manage agent handover",redirectUrl:h==g.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case A.ORDER_CANCELLATION:e=(null==f?void 0:f[p])?void 0:"Customers who are looking to cancel their orders would be redirected to your live agents via the agent handover flow.",w({buttonTitle:"Manage agent handover",redirectUrl:h==g.MANIFEST?"/customise?tab=AgentHandover":"/training",addFaqProps:{}});break;case A.ORDER_TRACKING:if("ORDER_NOT_FOUND"===(null===(l=T.sources[0])||void 0===l?void 0:l.subIntent))break;w({buttonTitle:"Add order tracking link",redirectUrl:h==g.MANIFEST?"/training/order-management":"/training",addFaqProps:{}});break;case A.PRODUCT_SEARCH:if("QUIZ"===(null===(s=T.sources[0])||void 0===s?void 0:s.type))break;if(-1!==(null===(u=null===(c=null===(a=null==T?void 0:T.sources)||void 0===a?void 0:a[0])||void 0===c?void 0:c.title)||void 0===u?void 0:u.toLowerCase().indexOf("collection"))){e="Collections are recommended by matching queries with collection names and descriptions. Add relevant keywords to your collection description to improve results.";break}e="Products are recommended by matching queries with product names, descriptions, tags, and collections. Add relevant keywords and tags to your products to improve results."}F({title:null!=e?e:"",subTitle:v})}(C[p]||[A.PRODUCT_DETAILS,A.ORDER_MODIFICATION,A.ORDER_CANCELLATION,A.ORDER_TRACKING].includes(p))&&_(!1)}}),[null==T?void 0:T.messageId,f,p,null==T?void 0:T.sources,C,A,y,h,T]),s((()=>{console.log("KB change",E,E)}),[D,E]),e(v,{children:!(null==E?void 0:E.title)&&f&&p in f?o(t,{children:[e(m,{hideHeading:null!=b&&b}),o("div",Object.assign({className:"source_info_details "+(f[p]>0?"":"no_data_source")},{children:[f[p]>0&&k?o(t,{children:[e(u,{children:j}),e(u,Object.assign({color:a.content.secondary},{children:"Improve responses by adding more data sources for the identified intent"}))]}):k&&o("div",Object.assign({className:"no_data_source_title"},{children:[e(i,{width:15,height:15,color:a.content.negative,style:{marginTop:2}}),e(u,{children:"No data sources added to the identified link"})]})),!O||O.hideAddDataButton||R?e(t,{}):e(c,{size:"small",buttonType:"tertiary",LeadingIcon:n,buttonText:(null==D?void 0:D.buttonTitle.length)>0?null==D?void 0:D.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>P(),style:{backgroundColor:"unset"}})]}))]}):o(t,{children:[e(m,{hideHeading:null!=b&&b}),o("div",Object.assign({className:"source_info_details"},{children:[k&&o(t,{children:[e(u,{children:null==E?void 0:E.title}),e(u,Object.assign({color:a.content.secondary},{children:null==E?void 0:E.subTitle}))]}),!O||O.hideAddDataButton||R?e(t,{}):e(c,{size:"small",buttonType:"tertiary",LeadingIcon:n,buttonText:(null==D?void 0:D.buttonTitle.length)>0?null==D?void 0:D.buttonTitle:"Add relevant data",matchParentWidth:!0,onClick:()=>P(),style:{backgroundColor:"unset"}})]}))]})})})),m=r((o=>o.hideHeading?null:e(u,Object.assign({color:a.content.secondary},{children:"Training insights"}))));m.displayName="TrainingInsightsHeading",h.displayName="SourceInfoFooter";export{h as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.655-2",
3
+ "version": "0.0.655-4",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",