"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIBOGT7SSjs = require('./chunk-IBOGT7SS.js');var _chunkDUYODMRRjs = require('./chunk-DUYODMRR.js');var _chunkQNGIYF7Gjs = require('./chunk-QNGIYF7G.js');var _chunkBVUCCBCLjs = require('./chunk-BVUCCBCL.js');var _react = require('react');var _inputs = require('@baseapp-frontend/design-system/components/web/inputs');var _jsxruntime = require('react/jsx-runtime');function l(e){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(e)}function h(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?h(Object(o),!0).forEach(function(r){_(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function _(e,t,o){return(t=k(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function k(e){var t=M(e,"string");return l(t)=="symbol"?t:t+""}function M(e,t){if(l(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z=_react.forwardRef.call(void 0, function(e,t){var o=e.placeholder,r=o===void 0?"Message...":o,a=e.autoFocusInput,p=e.SocialTextField,D=p===void 0?_inputs.SocialTextField:p,f=e.SocialTextFieldProps,x=f===void 0?{}:f,m=e.SocialUpsertActions,F=m===void 0?_chunkQNGIYF7Gjs.a:m,y=e.SubmitActions,T=y===void 0?_chunkIBOGT7SSjs.a:y,d=e.SubmitActionsProps,A=d===void 0?{}:d,b=e.onKeyDown,S=e.formId,v=S===void 0?"text-field-form":S,c=e.submit,R=e.isLoading,P=e.isReply,K=P===void 0?!1:P,I=e.replyTargetName,$=e.onCancelReply,n=e.form,C=function(i,L){i.key==="Enter"&&i.ctrlKey&&(i.preventDefault(),L())},E=function(i){b?b(i,function(){return n.handleSubmit(c)(i)}):C(i,function(){return n.handleSubmit(c)(i)})},U=R||!n.formState.isValid||!n.formState.isDirty;return _jsxruntime.jsx.call(void 0, _chunkDUYODMRRjs.a,{id:v,onSubmit:n.handleSubmit(c),children:_jsxruntime.jsxs.call(void 0, D,u(u({inputRef:t,name:_chunkBVUCCBCLjs.b.body,control:n.control,onKeyDown:E,placeholder:r,autoFocus:a,isReply:K,replyTargetName:I,onCancelReply:$},x),{},{children:[_jsxruntime.jsx.call(void 0, F,{}),_jsxruntime.jsx.call(void 0, T,u({formId:v,disabled:U},A))]}))})}),Z= exports.a =z;exports.a = Z;
//# sourceMappingURL=chunk-CF34IZDH.js.map