@ehfuse/mui-form-controls 3.5.12 → 3.6.1

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.
package/dist/address.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{createContext as te,useContext as ne}from"react";import{jsx as Ne}from"react/jsx-runtime";var re=te({});function oe(e){let t=ne(re);return e??t.readonly??!1}function N(e){let t=oe(e.readonly);return t===!!e.readonly&&e.readonly!==void 0?e:t?{...e,readonly:t}:e}import{IconButton as J,InputAdornment as we,TextField as Te,Dialog as xe,DialogContent as Ie,DialogTitle as Ce}from"@mui/material";import Pe from"@mui/icons-material/Search";import Le from"@mui/icons-material/Close";import{useState as X,useEffect as Me,useCallback as He,forwardRef as U,useRef as De,useImperativeHandle as ke}from"react";import $,{createRef as se,Component as ae,useEffect as We,useCallback as Ge}from"react";var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},A(e,t)},I=function(){return I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)};function le(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var k,j="https://t1.kakaocdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js",ie=(k=null,function(e){return e===void 0&&(e=j),k||(k=new Promise((function(t,r){var n=document.createElement("script");n.src=e,n.onload=function(){var o,s,a,i=(s=(o=window?.kakao)===null||o===void 0?void 0:o.Postcode)!==null&&s!==void 0?s:(a=window?.daum)===null||a===void 0?void 0:a.Postcode;if(i)return t(i);r(new Error("Script is loaded successfully, but cannot find Postcode module. Check your scriptURL property."))},n.onerror=function(o){return r(o)},n.id="kakao_postcode_script",document.body.appendChild(n)})))}),ue=$.createElement("p",null,"\uD604\uC7AC Kakao \uC6B0\uD3B8\uBC88\uD638 \uC11C\uBE44\uC2A4\uB97C \uC774\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694."),ce={width:"100%",height:400},de={scriptUrl:j,errorMessage:ue,autoClose:!0},W=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mounted=!1,r.wrap=se(),r.state={hasError:!1,completed:!1},r.initiate=function(n){if(r.wrap.current){var o=r.props;o.scriptUrl,o.className,o.style;var s=o.defaultQuery,a=o.autoClose;o.errorMessage;var i=o.onComplete,u=o.onClose,m=o.onResize,c=o.onSearch,f=le(o,["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"]);new n(I(I({},f),{oncomplete:function(y){i&&i(y),r.setState({completed:!0})},onsearch:c,onresize:m,onclose:u,width:"100%",height:"100%"})).embed(r.wrap.current,{q:s,autoClose:a})}},r.onError=function(n){console.error(n),r.setState({hasError:!0})},r}return(function(r,n){function o(){this.constructor=r}A(r,n),r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)})(t,e),t.prototype.componentDidMount=function(){var r=this.initiate,n=this.onError,o=this.props.scriptUrl;o&&(this.mounted||(ie(o).then(r).catch(n),this.mounted=!0))},t.prototype.render=function(){var r=this.props,n=r.className,o=r.style,s=r.errorMessage,a=r.autoClose,i=this.state,u=i.hasError,m=i.completed;return a===!0&&m===!0?null:$.createElement("div",{ref:this.wrap,className:n,style:I(I({},ce),o)},u&&s)},t.defaultProps=de,t})(ae);import{useState as ze,useRef as G,useEffect as me,useCallback as K}from"react";function F({name:e="",debounce:t,onChange:r}){let n=G(""),o=G(null);me(()=>()=>{o.current&&clearTimeout(o.current)},[]);let s=K((i,u,m=!1)=>{if(u===n.current)return;let c=()=>{if(u!==n.current&&(n.current=u,r)){let f={...i||{},target:{...i?.target||{},name:e,value:u}};r(f)}};o.current&&clearTimeout(o.current),m||t===void 0||t===0?c():o.current=setTimeout(c,t)},[r,t,e]),a=K((i,u)=>{if(o.current&&(clearTimeout(o.current),o.current=null),u!==n.current&&(n.current=u,r)){let m={...i,target:{...i.target,name:e,value:u}};r(m)}},[r,e]);return{emitChange:s,flushOnBlur:a,lastEmittedValue:n,debounceTimer:o}}import{useCallback as Je,useEffect as Xe,useRef as Ze}from"react";import{useState as nt,useEffect as rt,useCallback as ot}from"react";import{useCallback as lt,useEffect as it,useRef as ut}from"react";import{useRef as mt,useState as ft,useCallback as pt}from"react";import{styled as L}from"@mui/material/styles";import{Box as fe}from"@mui/material";import{jsx as g,jsxs as be}from"react/jsx-runtime";var b={root:"MuiInputBase-root MuiOutlinedInput-root",outline:"MuiOutlinedInput-notchedOutline",label:"MuiFormLabel-root MuiInputLabel-root MuiInputLabel-outlined MuiInputLabel-shrink",input:"MuiInputBase-input MuiOutlinedInput-input",adornment:"MuiInputAdornment-root",disabled:"Mui-disabled"},pe=L(fe,{shouldForwardProp:e=>e!=="small"&&e!=="fullWidth"&&e!=="dimmed"&&e!=="multiline"})(({theme:e,small:t,fullWidth:r,dimmed:n,multiline:o})=>({position:"relative",display:"inline-flex",alignItems:o?"flex-start":"center",width:r?"100%":void 0,minHeight:t?"calc(1.4375em + 17px)":"calc(1.4375em + 33px)",borderRadius:e.shape.borderRadius||4,color:n?e.palette.text.disabled:e.palette.text.primary,...e.typography.body1,lineHeight:"1.4375em",boxSizing:"border-box"})),ge=L("fieldset",{shouldForwardProp:e=>e!=="dimmed"})(({theme:e,dimmed:t})=>({position:"absolute",inset:"-5px 0 0 0",margin:0,padding:"0 8px",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,borderColor:t?e.palette.action.disabled:e.palette.mode==="dark"?"rgba(255, 255, 255, 0.23)":"rgba(0, 0, 0, 0.23)",pointerEvents:"none",overflow:"hidden",minWidth:0,"& > legend":{padding:0,fontSize:"0.75em",lineHeight:"11px",visibility:"hidden",maxWidth:"100%",whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0}}})),he=L("span",{shouldForwardProp:e=>e!=="dimmed"})(({theme:e,dimmed:t})=>({position:"absolute",top:0,left:9,transform:"translateY(-50%)",padding:"0 4px",fontSize:"0.75em",lineHeight:"1.4375em",color:t?e.palette.text.disabled:e.palette.text.secondary,backgroundColor:e.palette.background.paper,pointerEvents:"none",whiteSpace:"nowrap",maxWidth:"calc(100% - 18px)",overflow:"hidden",textOverflow:"ellipsis",zIndex:1})),ve=L("div",{shouldForwardProp:e=>e!=="multiline"&&e!=="small"&&e!=="align"&&e!=="hasStart"&&e!=="hasEnd"&&e!=="minRows"})(({multiline:e,small:t,align:r,hasStart:n,hasEnd:o,minRows:s})=>({flex:1,minWidth:0,boxSizing:"border-box",padding:t?"8.5px 14px":"16.5px 14px",paddingLeft:n?0:void 0,paddingRight:o?0:void 0,fontSize:"1rem",lineHeight:"1.4375em",font:"inherit",textAlign:r,minHeight:e&&s?`calc(${s} * 1.4375em)`:void 0,overflow:"hidden",whiteSpace:e?"pre-wrap":"nowrap",overflowWrap:e?"anywhere":void 0,textOverflow:e?void 0:"ellipsis"})),_=L("span",{shouldForwardProp:e=>e!=="side"})(({theme:e,side:t})=>({flexShrink:0,display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",paddingLeft:t==="start"?14:void 0,paddingRight:t==="end"?14:void 0,color:e.palette.text.secondary}));function S({label:e,value:t,prefix:r,suffix:n,startAdornment:o,endAdornment:s,showAffixOnlyWithValue:a=!1,align:i="left",size:u="medium",fullWidth:m,dimmed:c=!1,multiline:f=!1,minRows:y,onClick:R,title:E,className:M,id:w,sx:H}){let T=u==="small",D=!(t==null||t===""),p=!a||D,C=o||(r&&p?r:null),x=s||(n&&p?n:null),P=c?` ${b.disabled}`:"";return be(pe,{small:T,fullWidth:m,dimmed:c,multiline:f,className:`${b.root}${P}${M?` ${M}`:""}`,id:w,title:E,onClick:R,sx:H,children:[g(ge,{"aria-hidden":"true",dimmed:c,className:b.outline,children:g("legend",{children:e?g("span",{children:e}):g("span",{children:"\u200B"})})}),e?g(he,{dimmed:c,className:`${b.label}${P}`,children:e}):null,C?g(_,{side:"start",className:b.adornment,children:C}):null,g(ve,{className:`${b.input}${P}`,multiline:f,small:T,align:i,hasStart:!!C,hasEnd:!!x,minRows:y,children:t}),x?g(_,{side:"end",className:b.adornment,children:x}):null]})}import{jsx as O}from"react/jsx-runtime";function z(e){return!!(e.readonly||e.disabled)&&!e.readonlyInput}function ye(e){let t=e,r=t?.input,n=t?.htmlInput?.style?.textAlign;return{startAdornment:r&&typeof r!="function"?r.startAdornment:void 0,endAdornment:r&&typeof r!="function"?r.endAdornment:void 0,align:n==="right"||n==="center"?n:void 0}}function Re(e,t){if(!e)return t;if(!t)return e;let r=n=>Array.isArray(n)?n:[n];return[...r(e),...r(t)]}function Y(e){let t=ye(e.slotProps);return{form:e.form,name:e.name,value:e.value,label:e.label,disabled:e.disabled,size:e.size==="small"?"small":"medium",fullWidth:e.fullWidth,className:e.className,id:e.id,onClick:e.onClick,multiline:!!e.multiline,minRows:e.minRows===void 0?void 0:Number(e.minRows),sx:Re(e.formControlProps?.sx,e.sx),...t}}function q(e,t){return t?t(e):e==null?"":String(e)}function Ee({form:e,name:t,value:r,format:n,disabled:o,...s}){let a=e.useValue(t);return O(S,{...s,value:q(a===void 0?r:a,n),dimmed:!!o})}function Q(e){if(e.form&&e.name&&typeof e.form.useValue=="function")return O(Ee,{...e});let{form:t,name:r,value:n,format:o,disabled:s,...a}=e;return O(S,{...a,value:q(n,o),dimmed:!!s})}import{Fragment as Se,jsx as d,jsxs as V}from"react/jsx-runtime";var Z=U(function({value:t,onChange:r,readonly:n,debounce:o,onBlur:s,size:a,spellCheck:i=!1,onAddressComplete:u,inputRef:m,...c},f){let y=De(null);ke(m,()=>y.current,[]);let[R,E]=X(typeof t=="string"?t:""),[M,w]=X(!1),H=a==="small"?20:24,{emitChange:T,flushOnBlur:D,lastEmittedValue:p}=F({name:c.name,debounce:o,onChange:r});Me(()=>{if(t!=null){let l=String(t);l!==p.current&&(E(l),p.current=l)}else p.current!==""&&(E(""),p.current="")},[t,p]);let C=l=>{let h=l.address,v="";l.addressType==="R"&&(l.bname!==""&&/[동|로|가]$/g.test(l.bname)&&(v+=l.bname),l.buildingName!==""&&l.apartment==="Y"&&(v+=v!==""?", "+l.buildingName:l.buildingName),v!==""&&(v=" ("+v+")"),h+=v),E(h),T(null,h,!0),u?.(h,l),w(!1)},x=()=>{w(!0)},P=l=>{l.key==="Enter"&&(l.preventDefault(),x())},B=()=>{w(!1)},ee=()=>{w(!1),T(null,R,!0)};return V(Se,{children:[d(Te,{...c,ref:f,inputRef:y,size:a,value:R,onChange:n?void 0:l=>{let h=l.target.value;E(h),T(l,h)},autoComplete:"off",spellCheck:i,onKeyDown:n?void 0:P,onBlur:n?void 0:l=>{D(l,R),s&&s(l)},sx:{...n?{"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)",borderWidth:1},"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)"},"& .MuiInputLabel-root.Mui-focused":{color:"rgba(0, 0, 0, 0.6)"}}:{},...n&&{pointerEvents:"none"}},slotProps:{...c.slotProps,input:{...c.slotProps?.input,readOnly:n,endAdornment:n?void 0:d(we,{position:"end",sx:{mr:a==="small"?-.5:.5},children:d(J,{tabIndex:-1,onClick:x,edge:"end","aria-label":"\uC8FC\uC18C \uCC3E\uAE30",size:a,children:d(Pe,{sx:{fontSize:H}})})})}}}),V(xe,{open:M,onClose:B,maxWidth:"sm",fullWidth:!0,slotProps:{paper:{sx:{height:"550px"}}},children:[V(Ce,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pr:2},children:["\uC8FC\uC18C \uAC80\uC0C9",d(J,{onClick:ee,size:"small",children:d(Le,{})})]}),d(Ie,{style:{padding:0},dividers:!0,children:d(W,{onComplete:C,onClose:B,defaultQuery:R,style:{width:"100%",height:"100%"}})})]})]})}),Ae=U(function({form:t,name:r,onChange:n,...o},s){if(!t||typeof t.useValue!="function")throw new Error("AddressTextField form prop is missing. Provide a form from useForm or useGlobalForm.");if(!r)throw new Error("AddressTextField requires a name when form prop is provided.");let a=t.useValue(r),i=He(u=>{t.handleFormChange(u),n?.(u)},[t,n]);return d(Z,{...o,ref:s,name:r,value:a,onChange:i})}),Fe=U(function(t,r){return t=N(t),z(t)?d(Q,{...Y(t)}):t.form?d(Ae,{...t,ref:r}):d(Z,{...t,ref:r})});export{Fe as AddressTextField};
1
+ import{useCallback as ht,useSyncExternalStore as gt}from"react";var K={accountCopied:"\uACC4\uC88C\uBC88\uD638\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",accountHolder:"\uC608\uAE08\uC8FC: {{name}}",accountUnverifiable:"\uD655\uC778\uD560 \uC218 \uC5C6\uB294 \uACC4\uC88C\uC785\uB2C8\uB2E4.",accountVerified:"\uD655\uC778\uB41C \uACC4\uC88C\uC785\uB2C8\uB2E4.",addressSearch:"\uC8FC\uC18C \uAC80\uC0C9",bankAccountLength:"\uACC4\uC88C\uBC88\uD638\uB294 10~{{max}}\uC790\uB9AC\uC785\uB2C8\uB2E4 (\uD604\uC7AC {{current}}\uC790\uB9AC)",bankAccountLengthFor:"{{bank}} \uACC4\uC88C\uBC88\uD638\uB294 \uBCF4\uD1B5 {{lengths}}\uC790\uB9AC\uC785\uB2C8\uB2E4 (\uD604\uC7AC {{current}}\uC790\uB9AC)",bizNumCopied:"\uC0AC\uC5C5\uC790\uBC88\uD638\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",close:"\uB2EB\uAE30",closeSuggestions:"\uC790\uB3D9\uC644\uC131 \uB2EB\uAE30",corpNumCopied:"\uBC95\uC778\uB4F1\uB85D\uBC88\uD638\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",empty:"\uBE44\uC5B4 \uC788\uC74C",endDate:"\uC885\uB8CC\uC77C",findAddress:"\uC8FC\uC18C \uCC3E\uAE30",hidePassword:"\uBE44\uBC00\uBC88\uD638 \uAC00\uB9AC\uAE30",holderMismatch:"\uC608\uAE08\uC8FC \uBD88\uC77C\uCE58: {{name}}",invalidJumin:"\uC62C\uBC14\uB974\uC9C0 \uC54A\uC740 \uC8FC\uBBFC\uB4F1\uB85D\uBC88\uD638\uC785\uB2C8\uB2E4.",newItem:"\uC0C8 \uD56D\uBAA9",noResults:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",none:"\uC120\uD0DD\uC548\uD568",openSuggestions:"\uC790\uB3D9\uC644\uC131 \uC5F4\uAE30",pickFromCalendar:"\uB2EC\uB825\uC5D0\uC11C \uACE0\uB974\uAE30",pickMonth:"\uB2EC \uACE0\uB974\uAE30",pickYear:"\uC5F0\uB3C4 \uACE0\uB974\uAE30",search:"\uCC3E\uAE30",searchOrCreate:"\uCC3E\uAC70\uB098 \uC0C8 \uD56D\uBAA9 \uC785\uB825",select:"\uC120\uD0DD",showPassword:"\uBE44\uBC00\uBC88\uD638 \uBCF4\uAE30",startDate:"\uC2DC\uC791\uC77C",verify:"\uC870\uD68C",verifyFailed:"\uC2E4\uBA85\uC870\uD68C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4."};var j={accountCopied:"Account number copied.",accountHolder:"Account holder: {{name}}",accountUnverifiable:"This account could not be verified.",accountVerified:"Account verified.",addressSearch:"Address search",bankAccountLength:"Account numbers are 10\u2013{{max}} digits (currently {{current}})",bankAccountLengthFor:"{{bank}} account numbers are usually {{lengths}} digits (currently {{current}})",bizNumCopied:"Business registration number copied.",close:"Close",closeSuggestions:"Close suggestions",corpNumCopied:"Corporate registration number copied.",empty:"Empty",endDate:"End date",findAddress:"Find address",hidePassword:"Hide password",holderMismatch:"Account holder mismatch: {{name}}",invalidJumin:"Invalid resident registration number.",newItem:"New",noResults:"No results found.",none:"None",openSuggestions:"Open suggestions",pickFromCalendar:"Pick from calendar",pickMonth:"Pick month",pickYear:"Pick year",search:"Search",searchOrCreate:"Search or add new",select:"Select",showPassword:"Show password",startDate:"Start date",verify:"Verify",verifyFailed:"Account holder verification failed."};var $={accountCopied:"\u53E3\u5EA7\u756A\u53F7\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\u3002",accountHolder:"\u53E3\u5EA7\u540D\u7FA9: {{name}}",accountUnverifiable:"\u78BA\u8A8D\u3067\u304D\u306A\u3044\u53E3\u5EA7\u3067\u3059\u3002",accountVerified:"\u78BA\u8A8D\u6E08\u307F\u306E\u53E3\u5EA7\u3067\u3059\u3002",addressSearch:"\u4F4F\u6240\u691C\u7D22",bankAccountLength:"\u53E3\u5EA7\u756A\u53F7\u306F10\u301C{{max}}\u6841\u3067\u3059\uFF08\u73FE\u5728{{current}}\u6841\uFF09",bankAccountLengthFor:"{{bank}}\u306E\u53E3\u5EA7\u756A\u53F7\u306F\u901A\u5E38{{lengths}}\u6841\u3067\u3059\uFF08\u73FE\u5728{{current}}\u6841\uFF09",bizNumCopied:"\u4E8B\u696D\u8005\u756A\u53F7\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\u3002",close:"\u9589\u3058\u308B",closeSuggestions:"\u5019\u88DC\u3092\u9589\u3058\u308B",corpNumCopied:"\u6CD5\u4EBA\u767B\u9332\u756A\u53F7\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\u3002",empty:"\u7A7A",endDate:"\u7D42\u4E86\u65E5",findAddress:"\u4F4F\u6240\u3092\u691C\u7D22",hidePassword:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u96A0\u3059",holderMismatch:"\u53E3\u5EA7\u540D\u7FA9\u4E0D\u4E00\u81F4: {{name}}",invalidJumin:"\u4F4F\u6C11\u767B\u9332\u756A\u53F7\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002",newItem:"\u65B0\u898F\u9805\u76EE",noResults:"\u691C\u7D22\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\u3002",none:"\u306A\u3057",openSuggestions:"\u5019\u88DC\u3092\u8868\u793A",pickFromCalendar:"\u30AB\u30EC\u30F3\u30C0\u30FC\u304B\u3089\u9078\u629E",pickMonth:"\u6708\u3092\u9078\u629E",pickYear:"\u5E74\u3092\u9078\u629E",search:"\u691C\u7D22",searchOrCreate:"\u691C\u7D22\u307E\u305F\u306F\u65B0\u898F\u5165\u529B",select:"\u9078\u629E",showPassword:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A",startDate:"\u958B\u59CB\u65E5",verify:"\u7167\u4F1A",verifyFailed:"\u540D\u7FA9\u7167\u4F1A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"};var G={accountCopied:"\u8D26\u53F7\u5DF2\u590D\u5236\u3002",accountHolder:"\u6237\u540D\uFF1A{{name}}",accountUnverifiable:"\u65E0\u6CD5\u9A8C\u8BC1\u8BE5\u8D26\u6237\u3002",accountVerified:"\u8D26\u6237\u5DF2\u9A8C\u8BC1\u3002",addressSearch:"\u5730\u5740\u641C\u7D22",bankAccountLength:"\u8D26\u53F7\u4E3A 10\u2013{{max}} \u4F4D\uFF08\u5F53\u524D\u4E3A {{current}} \u4F4D\uFF09",bankAccountLengthFor:"{{bank}}\u8D26\u53F7\u901A\u5E38\u4E3A {{lengths}} \u4F4D\uFF08\u5F53\u524D\u4E3A {{current}} \u4F4D\uFF09",bizNumCopied:"\u8425\u4E1A\u6267\u7167\u7F16\u53F7\u5DF2\u590D\u5236\u3002",close:"\u5173\u95ED",closeSuggestions:"\u5173\u95ED\u8054\u60F3",corpNumCopied:"\u6CD5\u4EBA\u767B\u8BB0\u53F7\u5DF2\u590D\u5236\u3002",empty:"\u65E0\u5185\u5BB9",endDate:"\u7ED3\u675F\u65E5\u671F",findAddress:"\u67E5\u627E\u5730\u5740",hidePassword:"\u9690\u85CF\u5BC6\u7801",holderMismatch:"\u6237\u540D\u4E0D\u4E00\u81F4\uFF1A{{name}}",invalidJumin:"\u5C45\u6C11\u767B\u8BB0\u53F7\u65E0\u6548\u3002",newItem:"\u65B0\u589E\u9879",noResults:"\u672A\u627E\u5230\u76F8\u5173\u7ED3\u679C\u3002",none:"\u4E0D\u9009\u62E9",openSuggestions:"\u5C55\u5F00\u8054\u60F3",pickFromCalendar:"\u4ECE\u65E5\u5386\u9009\u62E9",pickMonth:"\u9009\u62E9\u6708\u4EFD",pickYear:"\u9009\u62E9\u5E74\u4EFD",search:"\u67E5\u627E",searchOrCreate:"\u641C\u7D22\u6216\u65B0\u589E",select:"\u9009\u62E9",showPassword:"\u663E\u793A\u5BC6\u7801",startDate:"\u5F00\u59CB\u65E5\u671F",verify:"\u67E5\u8BE2",verifyFailed:"\u5B9E\u540D\u6838\u9A8C\u5931\u8D25\u3002"};var W={accountCopied:"Kontonummer kopiert.",accountHolder:"Kontoinhaber: {{name}}",accountUnverifiable:"Dieses Konto konnte nicht verifiziert werden.",accountVerified:"Konto verifiziert.",addressSearch:"Adresssuche",bankAccountLength:"Kontonummern haben 10\u2013{{max}} Stellen (aktuell {{current}})",bankAccountLengthFor:"{{bank}}-Kontonummern haben \xFCblicherweise {{lengths}} Stellen (aktuell {{current}})",bizNumCopied:"Unternehmensnummer kopiert.",close:"Schlie\xDFen",closeSuggestions:"Vorschl\xE4ge schlie\xDFen",corpNumCopied:"Handelsregisternummer kopiert.",empty:"Leer",endDate:"Enddatum",findAddress:"Adresse suchen",hidePassword:"Passwort verbergen",holderMismatch:"Kontoinhaber stimmt nicht \xFCberein: {{name}}",invalidJumin:"Ung\xFCltige Personalausweisnummer.",newItem:"Neues Element",noResults:"Keine Ergebnisse gefunden.",none:"Keine",openSuggestions:"Vorschl\xE4ge \xF6ffnen",pickFromCalendar:"Aus Kalender w\xE4hlen",pickMonth:"Monat w\xE4hlen",pickYear:"Jahr w\xE4hlen",search:"Suchen",searchOrCreate:"Suchen oder neu erstellen",select:"Ausw\xE4hlen",showPassword:"Passwort anzeigen",startDate:"Startdatum",verify:"\xDCberpr\xFCfen",verifyFailed:"\xDCberpr\xFCfung des Kontoinhabers fehlgeschlagen."};var Y={accountCopied:"Num\xE9ro de compte copi\xE9.",accountHolder:"Titulaire : {{name}}",accountUnverifiable:"Impossible de v\xE9rifier ce compte.",accountVerified:"Compte v\xE9rifi\xE9.",addressSearch:"Recherche d'adresse",bankAccountLength:"Le num\xE9ro de compte compte 10 \xE0 {{max}} chiffres (actuellement {{current}})",bankAccountLengthFor:"Les num\xE9ros de compte {{bank}} comportent g\xE9n\xE9ralement {{lengths}} chiffres (actuellement {{current}})",bizNumCopied:"Num\xE9ro d'immatriculation de l'entreprise copi\xE9.",close:"Fermer",closeSuggestions:"Masquer les suggestions",corpNumCopied:"Num\xE9ro d'immatriculation de la soci\xE9t\xE9 copi\xE9.",empty:"Vide",endDate:"Date de fin",findAddress:"Rechercher une adresse",hidePassword:"Masquer le mot de passe",holderMismatch:"Titulaire non concordant : {{name}}",invalidJumin:"Num\xE9ro d'enregistrement de r\xE9sident non valide.",newItem:"Nouvel \xE9l\xE9ment",noResults:"Aucun r\xE9sultat trouv\xE9.",none:"Aucun",openSuggestions:"Afficher les suggestions",pickFromCalendar:"Choisir dans le calendrier",pickMonth:"Choisir le mois",pickYear:"Choisir l'ann\xE9e",search:"Rechercher",searchOrCreate:"Rechercher ou cr\xE9er",select:"S\xE9lectionner",showPassword:"Afficher le mot de passe",startDate:"Date de d\xE9but",verify:"V\xE9rifier",verifyFailed:"\xC9chec de la v\xE9rification du titulaire."};var _={accountCopied:"Numero di conto copiato.",accountHolder:"Intestatario del conto: {{name}}",accountUnverifiable:"Impossibile verificare il conto.",accountVerified:"Conto verificato.",addressSearch:"Cerca indirizzo",bankAccountLength:"I numeri di conto sono composti da 10 a {{max}} cifre (attualmente {{current}})",bankAccountLengthFor:"I numeri di conto {{bank}} hanno di solito {{lengths}} cifre (attualmente {{current}})",bizNumCopied:"Numero di registrazione aziendale copiato.",close:"Chiudi",closeSuggestions:"Chiudi suggerimenti",corpNumCopied:"Numero di registrazione societario copiato.",empty:"Vuoto",endDate:"Data di fine",findAddress:"Trova indirizzo",hidePassword:"Nascondi password",holderMismatch:"Intestatario non corrispondente: {{name}}",invalidJumin:"Numero di registrazione del residente non valido.",newItem:"Nuovo elemento",noResults:"Nessun risultato trovato.",none:"Nessuno",openSuggestions:"Apri suggerimenti",pickFromCalendar:"Scegli dal calendario",pickMonth:"Scegli il mese",pickYear:"Scegli l'anno",search:"Cerca",searchOrCreate:"Cerca o aggiungi nuovo",select:"Seleziona",showPassword:"Mostra password",startDate:"Data di inizio",verify:"Verifica",verifyFailed:"Verifica dell'intestatario non riuscita."};var J={accountCopied:"\u0110\xE3 sao ch\xE9p s\u1ED1 t\xE0i kho\u1EA3n.",accountHolder:"Ch\u1EE7 t\xE0i kho\u1EA3n: {{name}}",accountUnverifiable:"Kh\xF4ng th\u1EC3 x\xE1c minh t\xE0i kho\u1EA3n n\xE0y.",accountVerified:"T\xE0i kho\u1EA3n \u0111\xE3 \u0111\u01B0\u1EE3c x\xE1c minh.",addressSearch:"T\xECm ki\u1EBFm \u0111\u1ECBa ch\u1EC9",bankAccountLength:"S\u1ED1 t\xE0i kho\u1EA3n g\u1ED3m 10\u2013{{max}} ch\u1EEF s\u1ED1 (hi\u1EC7n t\u1EA1i: {{current}} ch\u1EEF s\u1ED1)",bankAccountLengthFor:"S\u1ED1 t\xE0i kho\u1EA3n {{bank}} th\u01B0\u1EDDng c\xF3 {{lengths}} ch\u1EEF s\u1ED1 (hi\u1EC7n t\u1EA1i: {{current}} ch\u1EEF s\u1ED1)",bizNumCopied:"\u0110\xE3 sao ch\xE9p m\xE3 s\u1ED1 doanh nghi\u1EC7p.",close:"\u0110\xF3ng",closeSuggestions:"\u0110\xF3ng g\u1EE3i \xFD",corpNumCopied:"\u0110\xE3 sao ch\xE9p s\u1ED1 \u0111\u0103ng k\xFD ph\xE1p nh\xE2n.",empty:"Tr\u1ED1ng",endDate:"Ng\xE0y k\u1EBFt th\xFAc",findAddress:"T\xECm \u0111\u1ECBa ch\u1EC9",hidePassword:"\u1EA8n m\u1EADt kh\u1EA9u",holderMismatch:"Ch\u1EE7 t\xE0i kho\u1EA3n kh\xF4ng kh\u1EDBp: {{name}}",invalidJumin:"S\u1ED1 \u0111\u0103ng k\xFD c\xF4ng d\xE2n kh\xF4ng h\u1EE3p l\u1EC7.",newItem:"M\u1EE5c m\u1EDBi",noResults:"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3.",none:"Kh\xF4ng ch\u1ECDn",openSuggestions:"M\u1EDF g\u1EE3i \xFD",pickFromCalendar:"Ch\u1ECDn t\u1EEB l\u1ECBch",pickMonth:"Ch\u1ECDn th\xE1ng",pickYear:"Ch\u1ECDn n\u0103m",search:"T\xECm ki\u1EBFm",searchOrCreate:"T\xECm ki\u1EBFm ho\u1EB7c th\xEAm m\u1EDBi",select:"Ch\u1ECDn",showPassword:"Hi\u1EC7n m\u1EADt kh\u1EA9u",startDate:"Ng\xE0y b\u1EAFt \u0111\u1EA7u",verify:"X\xE1c minh",verifyFailed:"X\xE1c minh t\xEAn th\u1EADt th\u1EA5t b\u1EA1i."};var L={ko:K,en:j,ja:$,zh:G,de:W,fr:Y,it:_,vi:J};var q="__ehfuseMuiFormControlsI18n",Q=globalThis,X=Q[q]??(Q[q]={lang:"ko",listeners:new Set}),xt=X.listeners;function Ce(e){let t=String(e??"").toLowerCase().split(/[-_]/)[0];return t in L?t:"en"}function F(e,t,n){let r=n?Ce(n):X.lang,o=L[r][e]??L.en[e]??L.ko[e]??e;return t?o.replace(/\{\{\s*(\w+)\s*\}\}/g,(i,s)=>t[s]==null?i:String(t[s])):o}import{createContext as Ee,useContext as Te}from"react";import{jsx as St}from"react/jsx-runtime";var xe=Ee({});function ke(e){let t=Te(xe);return e??t.readonly??!1}function Z(e){let t=ke(e.readonly);return t===!!e.readonly&&e.readonly!==void 0?e:t?{...e,readonly:t}:e}import{IconButton as ce,InputAdornment as $e,TextField as Ge,Dialog as We,DialogContent as Ye,DialogTitle as _e}from"@mui/material";import Je from"@mui/icons-material/Search";import qe from"@mui/icons-material/Close";import{useState as de,useEffect as Qe,useCallback as Xe,forwardRef as B,useRef as Ze,useImperativeHandle as et}from"react";import ee,{createRef as Ie,Component as Pe,useEffect as At,useCallback as Ft}from"react";var H=function(e,t){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},H(e,t)},x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)};function Se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var D,te="https://t1.kakaocdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js",Le=(D=null,function(e){return e===void 0&&(e=te),D||(D=new Promise((function(t,n){var r=document.createElement("script");r.src=e,r.onload=function(){var o,i,s,l=(i=(o=window?.kakao)===null||o===void 0?void 0:o.Postcode)!==null&&i!==void 0?i:(s=window?.daum)===null||s===void 0?void 0:s.Postcode;if(l)return t(l);n(new Error("Script is loaded successfully, but cannot find Postcode module. Check your scriptURL property."))},r.onerror=function(o){return n(o)},r.id="kakao_postcode_script",document.body.appendChild(r)})))}),Me=ee.createElement("p",null,"\uD604\uC7AC Kakao \uC6B0\uD3B8\uBC88\uD638 \uC11C\uBE44\uC2A4\uB97C \uC774\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694."),Ae={width:"100%",height:400},Fe={scriptUrl:te,errorMessage:Me,autoClose:!0},ne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mounted=!1,n.wrap=Ie(),n.state={hasError:!1,completed:!1},n.initiate=function(r){if(n.wrap.current){var o=n.props;o.scriptUrl,o.className,o.style;var i=o.defaultQuery,s=o.autoClose;o.errorMessage;var l=o.onComplete,u=o.onClose,m=o.onResize,c=o.onSearch,p=Se(o,["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"]);new r(x(x({},p),{oncomplete:function(y){l&&l(y),n.setState({completed:!0})},onsearch:c,onresize:m,onclose:u,width:"100%",height:"100%"})).embed(n.wrap.current,{q:i,autoClose:s})}},n.onError=function(r){console.error(r),n.setState({hasError:!0})},n}return(function(n,r){function o(){this.constructor=n}H(n,r),n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)})(t,e),t.prototype.componentDidMount=function(){var n=this.initiate,r=this.onError,o=this.props.scriptUrl;o&&(this.mounted||(Le(o).then(n).catch(r),this.mounted=!0))},t.prototype.render=function(){var n=this.props,r=n.className,o=n.style,i=n.errorMessage,s=n.autoClose,l=this.state,u=l.hasError,m=l.completed;return s===!0&&m===!0?null:ee.createElement("div",{ref:this.wrap,className:r,style:x(x({},Ae),o)},u&&i)},t.defaultProps=Fe,t})(Pe);import{useState as Ot,useRef as re,useEffect as De,useCallback as oe}from"react";function O({name:e="",debounce:t,onChange:n}){let r=re(""),o=re(null);De(()=>()=>{o.current&&clearTimeout(o.current)},[]);let i=oe((l,u,m=!1)=>{if(u===r.current)return;let c=()=>{if(u!==r.current&&(r.current=u,n)){let p={...l||{},target:{...l?.target||{},name:e,value:u}};n(p)}};o.current&&clearTimeout(o.current),m||t===void 0||t===0?c():o.current=setTimeout(c,t)},[n,t,e]),s=oe((l,u)=>{if(o.current&&(clearTimeout(o.current),o.current=null),u!==r.current&&(r.current=u,n)){let m={...l,target:{...l.target,name:e,value:u}};n(m)}},[n,e]);return{emitChange:i,flushOnBlur:s,lastEmittedValue:r,debounceTimer:o}}import{useCallback as Bt,useEffect as zt,useRef as Kt}from"react";import{useState as Gt,useEffect as Wt,useCallback as Yt}from"react";import{useCallback as qt,useEffect as Qt,useRef as Xt}from"react";import{useRef as tn,useState as nn,useCallback as rn}from"react";import{styled as P}from"@mui/material/styles";import{Box as He}from"@mui/material";import{jsx as h,jsxs as Be}from"react/jsx-runtime";var b={root:"MuiInputBase-root MuiOutlinedInput-root",outline:"MuiOutlinedInput-notchedOutline",label:"MuiFormLabel-root MuiInputLabel-root MuiInputLabel-outlined MuiInputLabel-shrink",input:"MuiInputBase-input MuiOutlinedInput-input",adornment:"MuiInputAdornment-root",disabled:"Mui-disabled"},Oe=P(He,{shouldForwardProp:e=>e!=="small"&&e!=="fullWidth"&&e!=="dimmed"&&e!=="multiline"})(({theme:e,small:t,fullWidth:n,dimmed:r,multiline:o})=>({position:"relative",display:"inline-flex",alignItems:o?"flex-start":"center",width:n?"100%":void 0,minHeight:t?"calc(1.4375em + 17px)":"calc(1.4375em + 33px)",borderRadius:e.shape.borderRadius||4,color:r?e.palette.text.disabled:e.palette.text.primary,...e.typography.body1,lineHeight:"1.4375em",boxSizing:"border-box"})),Ve=P("fieldset",{shouldForwardProp:e=>e!=="dimmed"})(({theme:e,dimmed:t})=>({position:"absolute",inset:"-5px 0 0 0",margin:0,padding:"0 8px",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,borderColor:t?e.palette.action.disabled:e.palette.mode==="dark"?"rgba(255, 255, 255, 0.23)":"rgba(0, 0, 0, 0.23)",pointerEvents:"none",overflow:"hidden",minWidth:0,"& > legend":{padding:0,fontSize:"0.75em",lineHeight:"11px",visibility:"hidden",maxWidth:"100%",whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0}}})),Ne=P("span",{shouldForwardProp:e=>e!=="dimmed"})(({theme:e,dimmed:t})=>({position:"absolute",top:0,left:9,transform:"translateY(-50%)",padding:"0 4px",fontSize:"0.75em",lineHeight:"1.4375em",color:t?e.palette.text.disabled:e.palette.text.secondary,backgroundColor:e.palette.background.paper,pointerEvents:"none",whiteSpace:"nowrap",maxWidth:"calc(100% - 18px)",overflow:"hidden",textOverflow:"ellipsis",zIndex:1})),Ue=P("div",{shouldForwardProp:e=>e!=="multiline"&&e!=="small"&&e!=="align"&&e!=="hasStart"&&e!=="hasEnd"&&e!=="minRows"})(({multiline:e,small:t,align:n,hasStart:r,hasEnd:o,minRows:i})=>({flex:1,minWidth:0,boxSizing:"border-box",padding:t?"8.5px 14px":"16.5px 14px",paddingLeft:r?0:void 0,paddingRight:o?0:void 0,fontSize:"1rem",lineHeight:"1.4375em",font:"inherit",textAlign:n,minHeight:e&&i?`calc(${i} * 1.4375em)`:void 0,overflow:"hidden",whiteSpace:e?"pre-wrap":"nowrap",overflowWrap:e?"anywhere":void 0,textOverflow:e?void 0:"ellipsis"})),se=P("span",{shouldForwardProp:e=>e!=="side"})(({theme:e,side:t})=>({flexShrink:0,display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",paddingLeft:t==="start"?14:void 0,paddingRight:t==="end"?14:void 0,color:e.palette.text.secondary}));function V({label:e,value:t,prefix:n,suffix:r,startAdornment:o,endAdornment:i,showAffixOnlyWithValue:s=!1,align:l="left",size:u="medium",fullWidth:m,dimmed:c=!1,multiline:p=!1,minRows:y,onClick:R,title:w,className:S,id:C,sx:M}){let E=u==="small",A=!(t==null||t===""),f=!s||A,k=o||(n&&f?n:null),T=i||(r&&f?r:null),I=c?` ${b.disabled}`:"";return Be(Oe,{small:E,fullWidth:m,dimmed:c,multiline:p,className:`${b.root}${I}${S?` ${S}`:""}`,id:C,title:w,onClick:R,sx:M,children:[h(Ve,{"aria-hidden":"true",dimmed:c,className:b.outline,children:h("legend",{children:e?h("span",{children:e}):h("span",{children:"\u200B"})})}),e?h(Ne,{dimmed:c,className:`${b.label}${I}`,children:e}):null,k?h(se,{side:"start",className:b.adornment,children:k}):null,h(Ue,{className:`${b.input}${I}`,multiline:p,small:E,align:l,hasStart:!!k,hasEnd:!!T,minRows:y,children:t}),T?h(se,{side:"end",className:b.adornment,children:T}):null]})}import{jsx as N}from"react/jsx-runtime";function ie(e){return!!(e.readonly||e.disabled)&&!e.readonlyInput}function ze(e){let t=e,n=t?.input,r=t?.htmlInput?.style?.textAlign;return{startAdornment:n&&typeof n!="function"?n.startAdornment:void 0,endAdornment:n&&typeof n!="function"?n.endAdornment:void 0,align:r==="right"||r==="center"?r:void 0}}function Ke(e,t){if(!e)return t;if(!t)return e;let n=r=>Array.isArray(r)?r:[r];return[...n(e),...n(t)]}function ae(e){let t=ze(e.slotProps);return{form:e.form,name:e.name,value:e.value,label:e.label,disabled:e.disabled,size:e.size==="small"?"small":"medium",fullWidth:e.fullWidth,className:e.className,id:e.id,onClick:e.onClick,multiline:!!e.multiline,minRows:e.minRows===void 0?void 0:Number(e.minRows),sx:Ke(e.formControlProps?.sx,e.sx),...t}}function le(e,t){return t?t(e):e==null?"":String(e)}function je({form:e,name:t,value:n,format:r,disabled:o,...i}){let s=e.useValue(t);return N(V,{...i,value:le(s===void 0?n:s,r),dimmed:!!o})}function ue(e){if(e.form&&e.name&&typeof e.form.useValue=="function")return N(je,{...e});let{form:t,name:n,value:r,format:o,disabled:i,...s}=e;return N(V,{...s,value:le(r,o),dimmed:!!i})}import{Fragment as rt,jsx as d,jsxs as U}from"react/jsx-runtime";var me=B(function({value:t,onChange:n,readonly:r,debounce:o,onBlur:i,size:s,spellCheck:l=!1,onAddressComplete:u,inputRef:m,...c},p){let y=Ze(null);et(m,()=>y.current,[]);let[R,w]=de(typeof t=="string"?t:""),[S,C]=de(!1),M=s==="small"?20:24,{emitChange:E,flushOnBlur:A,lastEmittedValue:f}=O({name:c.name,debounce:o,onChange:n});Qe(()=>{if(t!=null){let a=String(t);a!==f.current&&(w(a),f.current=a)}else f.current!==""&&(w(""),f.current="")},[t,f]);let k=a=>{let g=a.address,v="";a.addressType==="R"&&(a.bname!==""&&/[동|로|가]$/g.test(a.bname)&&(v+=a.bname),a.buildingName!==""&&a.apartment==="Y"&&(v+=v!==""?", "+a.buildingName:a.buildingName),v!==""&&(v=" ("+v+")"),g+=v),w(g),E(null,g,!0),u?.(g,a),C(!1)},T=()=>{C(!0)},I=a=>{a.key==="Enter"&&(a.preventDefault(),T())},z=()=>{C(!1)},pe=()=>{C(!1),E(null,R,!0)};return U(rt,{children:[d(Ge,{...c,ref:p,inputRef:y,size:s,value:R,onChange:r?void 0:a=>{let g=a.target.value;w(g),E(a,g)},autoComplete:"off",spellCheck:l,onKeyDown:r?void 0:I,onBlur:r?void 0:a=>{A(a,R),i&&i(a)},sx:{...r?{"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)",borderWidth:1},"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)"},"& .MuiInputLabel-root.Mui-focused":{color:"rgba(0, 0, 0, 0.6)"}}:{},...r&&{pointerEvents:"none"}},slotProps:{...c.slotProps,input:{...c.slotProps?.input,readOnly:r,endAdornment:r?void 0:d($e,{position:"end",sx:{mr:s==="small"?-.5:.5},children:d(ce,{tabIndex:-1,onClick:T,edge:"end","aria-label":F("findAddress"),size:s,children:d(Je,{sx:{fontSize:M}})})})}}}),U(We,{open:S,onClose:z,maxWidth:"sm",fullWidth:!0,slotProps:{paper:{sx:{height:"550px"}}},children:[U(_e,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pr:2},children:[F("addressSearch"),d(ce,{onClick:pe,size:"small",children:d(qe,{})})]}),d(Ye,{style:{padding:0},dividers:!0,children:d(ne,{onComplete:k,onClose:z,defaultQuery:R,style:{width:"100%",height:"100%"}})})]})]})}),tt=B(function({form:t,name:n,onChange:r,...o},i){if(!t||typeof t.useValue!="function")throw new Error("AddressTextField form prop is missing. Provide a form from useForm or useGlobalForm.");if(!n)throw new Error("AddressTextField requires a name when form prop is provided.");let s=t.useValue(n),l=Xe(u=>{t.handleFormChange(u),r?.(u)},[t,r]);return d(me,{...o,ref:i,name:n,value:s,onChange:l})}),nt=B(function(t,n){return t=Z(t),ie(t)?d(ue,{...ae(t)}):t.form?d(tt,{...t,ref:n}):d(me,{...t,ref:n})});export{nt as AddressTextField};
2
2
  /**
3
3
  * FormControlsConfig.tsx
4
4
  *