????
Current Path : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/ |
Current File : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/Form-2a8b127f.js |
import{P as f,R as _,r as d}from"./index-727ccf4d.js";import{t as R,m as P}from"./Button-9330b92c.js";function a(t){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(t)}var j=["className","cssModule","tag","innerRef"];function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},c.apply(this,arguments)}function w(t,e){if(t==null)return{};var o=T(t,e),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function T(t,e){if(t==null)return{};var o={},n=Object.keys(t),r,i;for(i=0;i<n.length;i++)r=n[i],!(e.indexOf(r)>=0)&&(o[r]=t[r]);return o}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x(t,e,o){return e&&y(t.prototype,e),o&&y(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function E(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},s(t,e)}function N(t){var e=M();return function(){var n=u(t),r;if(e){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return k(this,r)}}function k(t,e){if(e&&(a(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function p(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},u(t)}var F={children:f.node,tag:R,innerRef:f.oneOfType([f.object,f.func,f.string]),className:f.string,cssModule:f.object},b=function(t){E(o,t);var e=N(o);function o(n){var r;return S(this,o),r=e.call(this,n),r.getRef=r.getRef.bind(p(r)),r.submit=r.submit.bind(p(r)),r}return x(o,[{key:"getRef",value:function(r){this.props.innerRef&&this.props.innerRef(r),this.ref=r}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var r=this.props,i=r.className,m=r.cssModule,l=r.tag,h=l===void 0?"form":l,v=r.innerRef,g=w(r,j),O=P(i,m);return _.createElement(h,c({},g,{ref:v,className:O}))}}]),o}(d.Component);b.propTypes=F;const B=b;export{B as F};