import{__rest as s}from"../../_virtual/_tslib.js";import{jsxs as i,jsx as e}from"react/jsx-runtime";import t from"classnames";import{BEMClass as n}from"../../helpers/bem-helper.js";import{NOOP as o}from"../../utils/function-utils.js";import l from"../Button/Button.js";import{backwardCompatibilityForProperties as m}from"../../helpers/backwardCompatibilityForProperties.js";import{DISMISS_BUTTON_TEXT as r,SUBMIT_BUTTON_TEXT as c}from"./TipseenConstants.js";import a from"./TipseenBasicContent.js";import d from"./TipseenContent.module.scss.js";var u=n("l3-style-tipseen-content"),p={},b=function(n){var b=n.title,j=n.children,f=void 0===j?null:j,h=n.isSubmitHidden,C=n.hideSubmit,k=n.submitButtonText,N=n.onSubmit,O=void 0===N?o:N,R=n.dismissButtonText,v=n.onDismiss,B=void 0===v?o:v,T=n.dismissButtonProps,A=void 0===T?p:T,L=n.submitButtonProps,P=void 0===L?p:L,_=m([n.hideDismiss,n.isDismissHidden],!0),g=m([C,h],!1),M=A.content||A.children,S=A.className,x=A.onClick,z=s(A,["className","onClick"]),I=m([R,M],r),Y=m([B,x],o),y=P.content||P.children,D=P.className,H=P.onClick,w=s(P,["className","onClick"]),E=m([k,y],c),F=m([O,H],o);return i(a,Object.assign({title:b,className:"l3-style-tipseen-content"},{children:[f?e("span",Object.assign({className:t(u({element:"content"}))},{children:f})):null,i("div",Object.assign({className:t(d.buttons,u({element:"buttons"}))},{children:[_?null:e(l,Object.assign({kind:l.kinds.TERTIARY,color:l.colors.ON_PRIMARY_COLOR,className:t(d.dismiss,u({element:"dismiss"}),S),size:l.sizes.SMALL,onClick:Y},z,{children:I})),g?null:e(l,Object.assign({kind:l.kinds.PRIMARY,color:l.colors.ON_PRIMARY_COLOR,size:l.sizes.SMALL,className:t(u({element:"submit"}),D),onClick:F},w,{children:E}))]}))]}))};export{b as default};
