@ambuj.bhaskar/react-component-library 0.5.5 → 0.5.6

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/index.cjs CHANGED
@@ -210,4 +210,4 @@ html body {
210
210
  `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Rt(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Rt(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Rt(r)}`,"&:after":{display:"none"}}}}}}}function ad(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[s2(e),s2(Nn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Rt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
211
211
  &${t}-show-arrow ${t}-selection-item,
212
212
  &${t}-show-arrow ${t}-selection-placeholder
213
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},s2(Nn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const od=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:i,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:C,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:p,colorPrimary:L,controlOutline:M}=e,w=s*2,b=r*2,S=Math.min(a-w,a-b),F=Math.min(i-w,i-b),I=Math.min(l-w,l-b);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:h,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:g,clearBg:g,singleItemHeightLG:l,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:F,multipleItemHeightLG:I,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:L,activeOutlineColor:M,selectAffixPadding:s}},Oi=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Rt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Rt(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Co=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Oi(e,t))}),id=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Co(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Co(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Rt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Pi=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Rt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},go=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Pi(e,t))}),ld=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Pi(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),go(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),go(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),sd=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Rt(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Rt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),cd=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},id(e)),ld(e)),sd(e))}),ud=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},dd=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},fd=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},S1(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ud(e)),dd(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Z2),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Z2),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},M1()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},vd=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},fd(e),ad(e),rd(e),Qu(e),{[`${t}-rtl`]:{direction:"rtl"}},dc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},md=S3("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Nn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[vd(r),cd(r)]},od,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var hd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Cd=function(t,n){return o.createElement(xn,et({},t,{ref:n,icon:hd}))},_i=o.forwardRef(Cd);process.env.NODE_ENV!=="production"&&(_i.displayName="CheckOutlined");var gd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},pd=function(t,n){return o.createElement(xn,et({},t,{ref:n,icon:gd}))},Ii=o.forwardRef(pd);process.env.NODE_ENV!=="production"&&(Ii.displayName="DownOutlined");var yd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ed=function(t,n){return o.createElement(xn,et({},t,{ref:n,icon:yd}))},Ai=o.forwardRef(Ed);process.env.NODE_ENV!=="production"&&(Ai.displayName="SearchOutlined");function bd(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;process.env.NODE_ENV!=="production"&&Zn(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=n??o.createElement(H3,null),g=p=>t===null&&!s&&!f?null:o.createElement(o.Fragment,null,u!==!1&&p,s&&d);let C=null;if(t!==void 0)C=g(t);else if(i)C=g(o.createElement(z3,{spin:!0}));else{const p=`${c}-suffix`;C=L=>{let{open:M,showSearch:w}=L;return g(M&&w?o.createElement(Ai,{className:p}):o.createElement(Ii,{className:p}))}}let v=null;r!==void 0?v=r:l?v=o.createElement(_i,null):v=null;let y=null;return a!==void 0?y=a:y=o.createElement(j3,null),{clearIcon:h,suffixIcon:C,itemIcon:v,removeIcon:y}}function Ld(e,t){return t!==void 0?t:e!==null}var wd=function(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")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ti="SECRET_COMBOBOX_MODE_DO_NOT_USE",Di=(e,t)=>{var n;const{prefixCls:r,bordered:a,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:h,disabled:g,notFoundContent:C,status:v,builtinPlacements:y,dropdownMatchSelectWidth:p,popupMatchSelectWidth:L,direction:M,style:w,allowClear:b,variant:S,dropdownStyle:F,transitionName:I,tagRender:T,maxCount:k,prefix:j}=e,Z=wd(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:U,renderEmpty:P,direction:_,virtual:R,popupMatchSelectWidth:N,popupOverflow:V,select:$}=o.useContext(pn),[,ee]=kn(),Q=m??(ee==null?void 0:ee.controlHeight),z=U("select",r),ce=U(),xe=M??_,{compactSize:re,compactItemClassnames:Oe}=Us(z,xe),[_e,we]=qu("select",S,a),X=As(z),[G,ie,B]=md(z,X),Y=o.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===Ti?"combobox":Ke},[e.mode]),le=Y==="multiple"||Y==="tags",Fe=Ld(e.suffixIcon,e.showArrow),be=(n=L??p)!==null&&n!==void 0?n:N,{status:Le,hasFeedback:$e,isFormItemInput:Re,feedbackIcon:De}=o.useContext(oi),ge=Bu(Le,v);let Ne;C!==void 0?Ne=C:Y==="combobox"?Ne=null:Ne=(P==null?void 0:P("Select"))||o.createElement(Gu,{componentName:"Select"});const{suffixIcon:Je,itemIcon:Ie,removeIcon:Ze,clearIcon:je}=bd(Object.assign(Object.assign({},Z),{multiple:le,hasFeedback:$e,feedbackIcon:De,showSuffixIcon:Fe,prefixCls:z,componentName:"Select"})),ze=b===!0?{clearIcon:je}:b,rt=Io(Z,["suffixIcon","itemIcon"]),ct=ot(c||u,{[`${z}-dropdown-${xe}`]:xe==="rtl"},l,B,X,ie),ut=Bs(Ke=>{var at;return(at=h??re)!==null&&at!==void 0?at:Ke}),ke=o.useContext(L4),tt=g??ke,ht=ot({[`${z}-lg`]:ut==="large",[`${z}-sm`]:ut==="small",[`${z}-rtl`]:xe==="rtl",[`${z}-${_e}`]:we,[`${z}-in-form-item`]:Re},zu(z,ge,$e),Oe,$==null?void 0:$.className,i,l,B,X,ie),wt=o.useMemo(()=>f!==void 0?f:xe==="rtl"?"bottomRight":"bottomLeft",[f,xe]);if(process.env.NODE_ENV!=="production"){const Ke=Zn("Select");Ke.deprecated(!u,"dropdownClassName","popupClassName"),Ke.deprecated(p===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Ke(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),Ke.deprecated(!("bordered"in e),"bordered","variant"),process.env.NODE_ENV!=="production"&&Ke(!(typeof k<"u"&&!le),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Qe]=Hs("SelectLike",F==null?void 0:F.zIndex);return G(o.createElement($1,Object.assign({ref:t,virtual:R,showSearch:$==null?void 0:$.showSearch},rt,{style:Object.assign(Object.assign({},$==null?void 0:$.style),w),dropdownMatchSelectWidth:be,transitionName:js(ce,"slide-up",I),builtinPlacements:Yu(y,V),listHeight:d,listItemHeight:Q,mode:Y,prefixCls:z,placement:wt,direction:xe,prefix:j,suffixIcon:Je,menuItemSelectedIcon:Ie,removeIcon:Ze,allowClear:ze,notFoundContent:Ne,className:ht,getPopupContainer:s||D,dropdownClassName:ct,disabled:tt,dropdownStyle:Object.assign(Object.assign({},F),{zIndex:Qe}),maxCount:le?k:void 0,tagRender:le?T:void 0})))};process.env.NODE_ENV!=="production"&&(Di.displayName="Select");const Hn=o.forwardRef(Di),Sd=p9(Hn,"dropdownAlign");Hn.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ti;Hn.Option=T1;Hn.OptGroup=A1;Hn._InternalPanelDoNotUseOrYouWillBeFired=Sd;process.env.NODE_ENV!=="production"&&(Hn.displayName="Select");const $i=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:a="start",className:i="",searchable:l=!0,disabled:s=!1,width:c="300px",height:u="m",id:d="",suffixIcon:f=!0})=>Lt.jsx(Hn,{id:d,className:`${i} single_select_container h_${u} items_${a}`,suffixIcon:f?void 0:null,style:{width:c},value:n,onChange:t,showSearch:l,placeholder:r,disabled:s,popupClassName:`single_select_dropdown h_${u} items_${a}`,removeIcon:!0,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),options:e}),Md=e=>`https://flagsapi.com/${e}/flat/64.png`,d4=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],xd=({value:e="",onChange:t=c=>{},height:n="m",width:r="16rem",className:a="",placeholder:i="XXXXXX XXXXX",separator:l=" ",disabled:s=!1})=>{var m,h;const[c,u]=O.useState(e!=null&&e.includes(l)?e.split(l)[0]:(m=d4[89])==null?void 0:m.dialingCode),d=g=>{var C;u(g),t(g+l+((C=e.split(l))==null?void 0:C[1])||"")},f=g=>{const{value:C}=g.target;t(c+l+C)};return Lt.jsxs("div",{className:`contact_input ${a}`,style:{width:r},children:[Lt.jsx($i,{options:d4==null?void 0:d4.map(g=>({label:Lt.jsx("img",{src:Md(g.countryCode)}),value:g==null?void 0:g.dialingCode})),placement:"center",value:c,onChange:d,suffixIcon:!1,disabled:s,height:n,width:"25%",searchable:!1}),Lt.jsx(c2,{value:c,readOnly:!0,height:n,width:"25%",disabled:s}),Lt.jsx(c2,{value:(h=e.split(l))==null?void 0:h[1],placeholder:i,onChange:f,height:n,width:"50%",disabled:s})]})},Rd=({options:e,onChange:t,value:n,placeholder:r="Select Items...",className:a="",searchable:i=!0,disabled:l=!1,width:s="300px",height:c="m",id:u="",maxTagCount:d="responsive",suffixIcon:f=!0})=>Lt.jsx(Hn,{id:u,disabled:l,showSearch:i,className:`multi_select_container ${a} h_${c}`,mode:"multiple",style:{width:s},suffixIcon:f?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:"multi_select_dropdown",value:n,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),maxTagCount:d});exports.Button=j7;exports.ContactInput=xd;exports.Icon=l1;exports.Input=c2;exports.Multiselect=Rd;exports.Select=$i;exports.Spinner=po;
213
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},s2(Nn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const od=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:i,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:C,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:p,colorPrimary:L,controlOutline:M}=e,w=s*2,b=r*2,S=Math.min(a-w,a-b),F=Math.min(i-w,i-b),I=Math.min(l-w,l-b);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:h,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:g,clearBg:g,singleItemHeightLG:l,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:F,multipleItemHeightLG:I,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:L,activeOutlineColor:M,selectAffixPadding:s}},Oi=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Rt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Rt(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Co=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Oi(e,t))}),id=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Oi(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Co(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Co(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Rt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Pi=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Rt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},go=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Pi(e,t))}),ld=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Pi(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),go(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),go(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),sd=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Rt(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Rt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),cd=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},id(e)),ld(e)),sd(e))}),ud=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},dd=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},fd=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},S1(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ud(e)),dd(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Z2),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Z2),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},M1()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},vd=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},fd(e),ad(e),rd(e),Qu(e),{[`${t}-rtl`]:{direction:"rtl"}},dc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},md=S3("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Nn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[vd(r),cd(r)]},od,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var hd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Cd=function(t,n){return o.createElement(xn,et({},t,{ref:n,icon:hd}))},_i=o.forwardRef(Cd);process.env.NODE_ENV!=="production"&&(_i.displayName="CheckOutlined");var gd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},pd=function(t,n){return o.createElement(xn,et({},t,{ref:n,icon:gd}))},Ii=o.forwardRef(pd);process.env.NODE_ENV!=="production"&&(Ii.displayName="DownOutlined");var yd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ed=function(t,n){return o.createElement(xn,et({},t,{ref:n,icon:yd}))},Ai=o.forwardRef(Ed);process.env.NODE_ENV!=="production"&&(Ai.displayName="SearchOutlined");function bd(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;process.env.NODE_ENV!=="production"&&Zn(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=n??o.createElement(H3,null),g=p=>t===null&&!s&&!f?null:o.createElement(o.Fragment,null,u!==!1&&p,s&&d);let C=null;if(t!==void 0)C=g(t);else if(i)C=g(o.createElement(z3,{spin:!0}));else{const p=`${c}-suffix`;C=L=>{let{open:M,showSearch:w}=L;return g(M&&w?o.createElement(Ai,{className:p}):o.createElement(Ii,{className:p}))}}let v=null;r!==void 0?v=r:l?v=o.createElement(_i,null):v=null;let y=null;return a!==void 0?y=a:y=o.createElement(j3,null),{clearIcon:h,suffixIcon:C,itemIcon:v,removeIcon:y}}function Ld(e,t){return t!==void 0?t:e!==null}var wd=function(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")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ti="SECRET_COMBOBOX_MODE_DO_NOT_USE",Di=(e,t)=>{var n;const{prefixCls:r,bordered:a,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:h,disabled:g,notFoundContent:C,status:v,builtinPlacements:y,dropdownMatchSelectWidth:p,popupMatchSelectWidth:L,direction:M,style:w,allowClear:b,variant:S,dropdownStyle:F,transitionName:I,tagRender:T,maxCount:k,prefix:j}=e,Z=wd(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:U,renderEmpty:P,direction:_,virtual:R,popupMatchSelectWidth:N,popupOverflow:V,select:$}=o.useContext(pn),[,ee]=kn(),Q=m??(ee==null?void 0:ee.controlHeight),z=U("select",r),ce=U(),xe=M??_,{compactSize:re,compactItemClassnames:Oe}=Us(z,xe),[_e,we]=qu("select",S,a),X=As(z),[G,ie,B]=md(z,X),Y=o.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===Ti?"combobox":Ke},[e.mode]),le=Y==="multiple"||Y==="tags",Fe=Ld(e.suffixIcon,e.showArrow),be=(n=L??p)!==null&&n!==void 0?n:N,{status:Le,hasFeedback:$e,isFormItemInput:Re,feedbackIcon:De}=o.useContext(oi),ge=Bu(Le,v);let Ne;C!==void 0?Ne=C:Y==="combobox"?Ne=null:Ne=(P==null?void 0:P("Select"))||o.createElement(Gu,{componentName:"Select"});const{suffixIcon:Je,itemIcon:Ie,removeIcon:Ze,clearIcon:je}=bd(Object.assign(Object.assign({},Z),{multiple:le,hasFeedback:$e,feedbackIcon:De,showSuffixIcon:Fe,prefixCls:z,componentName:"Select"})),ze=b===!0?{clearIcon:je}:b,rt=Io(Z,["suffixIcon","itemIcon"]),ct=ot(c||u,{[`${z}-dropdown-${xe}`]:xe==="rtl"},l,B,X,ie),ut=Bs(Ke=>{var at;return(at=h??re)!==null&&at!==void 0?at:Ke}),ke=o.useContext(L4),tt=g??ke,ht=ot({[`${z}-lg`]:ut==="large",[`${z}-sm`]:ut==="small",[`${z}-rtl`]:xe==="rtl",[`${z}-${_e}`]:we,[`${z}-in-form-item`]:Re},zu(z,ge,$e),Oe,$==null?void 0:$.className,i,l,B,X,ie),wt=o.useMemo(()=>f!==void 0?f:xe==="rtl"?"bottomRight":"bottomLeft",[f,xe]);if(process.env.NODE_ENV!=="production"){const Ke=Zn("Select");Ke.deprecated(!u,"dropdownClassName","popupClassName"),Ke.deprecated(p===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Ke(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),Ke.deprecated(!("bordered"in e),"bordered","variant"),process.env.NODE_ENV!=="production"&&Ke(!(typeof k<"u"&&!le),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Qe]=Hs("SelectLike",F==null?void 0:F.zIndex);return G(o.createElement($1,Object.assign({ref:t,virtual:R,showSearch:$==null?void 0:$.showSearch},rt,{style:Object.assign(Object.assign({},$==null?void 0:$.style),w),dropdownMatchSelectWidth:be,transitionName:js(ce,"slide-up",I),builtinPlacements:Yu(y,V),listHeight:d,listItemHeight:Q,mode:Y,prefixCls:z,placement:wt,direction:xe,prefix:j,suffixIcon:Je,menuItemSelectedIcon:Ie,removeIcon:Ze,allowClear:ze,notFoundContent:Ne,className:ht,getPopupContainer:s||D,dropdownClassName:ct,disabled:tt,dropdownStyle:Object.assign(Object.assign({},F),{zIndex:Qe}),maxCount:le?k:void 0,tagRender:le?T:void 0})))};process.env.NODE_ENV!=="production"&&(Di.displayName="Select");const Hn=o.forwardRef(Di),Sd=p9(Hn,"dropdownAlign");Hn.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ti;Hn.Option=T1;Hn.OptGroup=A1;Hn._InternalPanelDoNotUseOrYouWillBeFired=Sd;process.env.NODE_ENV!=="production"&&(Hn.displayName="Select");const $i=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:a="start",className:i="",searchable:l=!0,disabled:s=!1,width:c="300px",height:u="m",id:d="",suffixIcon:f=!0})=>Lt.jsx(Hn,{id:d,className:`${i} single_select_container h_${u} items_${a}`,suffixIcon:f?void 0:null,style:{width:c},value:n,onChange:t,showSearch:l,placeholder:r,disabled:s,popupClassName:`single_select_dropdown h_${u} items_${a}`,removeIcon:!0,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),options:e}),Md=e=>`https://flagsapi.com/${e}/flat/64.png`,d4=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],xd=({value:e="",onChange:t=c=>{},height:n="m",width:r="16rem",className:a="",placeholder:i="XXXXXX XXXXX",separator:l=" ",disabled:s=!1})=>{var m,h;const[c,u]=O.useState(e!=null&&e.includes(l)?e.split(l)[0]:(m=d4[89])==null?void 0:m.dialingCode),d=g=>{var C;u(g),t(g+l+(((C=e.split(l))==null?void 0:C[1])||""))},f=g=>{const{value:C}=g.target;t(c+l+C)};return Lt.jsxs("div",{className:`contact_input ${a}`,style:{width:r},children:[Lt.jsx($i,{options:d4==null?void 0:d4.map(g=>({label:Lt.jsx("img",{src:Md(g.countryCode)}),value:g==null?void 0:g.dialingCode})),placement:"center",value:c,onChange:d,suffixIcon:!1,disabled:s,height:n,width:"25%",searchable:!1}),Lt.jsx(c2,{value:c,readOnly:!0,height:n,width:"25%",disabled:s}),Lt.jsx(c2,{value:(h=e.split(l))==null?void 0:h[1],placeholder:i,onChange:f,height:n,width:"50%",disabled:s})]})},Rd=({options:e,onChange:t,value:n,placeholder:r="Select Items...",className:a="",searchable:i=!0,disabled:l=!1,width:s="300px",height:c="m",id:u="",maxTagCount:d="responsive",suffixIcon:f=!0})=>Lt.jsx(Hn,{id:u,disabled:l,showSearch:i,className:`multi_select_container ${a} h_${c}`,mode:"multiple",style:{width:s},suffixIcon:f?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:"multi_select_dropdown",value:n,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),maxTagCount:d});exports.Button=j7;exports.ContactInput=xd;exports.Icon=l1;exports.Input=c2;exports.Multiselect=Rd;exports.Select=$i;exports.Spinner=po;
package/dist/index.js CHANGED
@@ -14556,7 +14556,7 @@ const Dd = ({
14556
14556
  e != null && e.includes(l) ? e.split(l)[0] : (m = h4[89]) == null ? void 0 : m.dialingCode
14557
14557
  ), d = (g) => {
14558
14558
  var C;
14559
- u(g), t(g + l + ((C = e.split(l)) == null ? void 0 : C[1]) || "");
14559
+ u(g), t(g + l + (((C = e.split(l)) == null ? void 0 : C[1]) || ""));
14560
14560
  }, f = (g) => {
14561
14561
  const { value: C } = g.target;
14562
14562
  t(c + l + C);
package/dist/index.umd.js CHANGED
@@ -211,4 +211,4 @@ html body {
211
211
  `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${_t(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:_t(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${_t(r)}`,"&:after":{display:"none"}}}}}}}function rd(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[A2(e),A2(In(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${_t(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
212
212
  &${t}-show-arrow ${t}-selection-item,
213
213
  &${t}-show-arrow ${t}-selection-placeholder
214
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},A2(In(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const od=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:C,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:p,colorPrimary:L,controlOutline:M}=e,w=s*2,E=r*2,S=Math.min(o-w,o-E),R=Math.min(i-w,i-E),I=Math.min(l-w,l-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:h,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:l,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:R,multipleItemHeightLG:I,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:L,activeOutlineColor:M,selectAffixPadding:s}},F3=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_t(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${_t(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},R3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},F3(e,t))}),ad=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},F3(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),R3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),R3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_t(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),O3=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_t(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},P3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},O3(e,t))}),id=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},O3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),P3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),P3(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${_t(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),ld=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${_t(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_t(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),sd=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},ad(e)),id(e)),ld(e))}),cd=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ud=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dd=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ko(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},cd(e)),ud(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Uo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Uo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Go()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},fd=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},dd(e),rd(e),nd(e),Yu(e),{[`${t}-rtl`]:{direction:"rtl"}},uc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},vd=O1("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=In(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[fd(r),sd(r)]},od,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var md={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},hd=function(t,n){return a.createElement(wn,Je({},t,{ref:n,icon:md}))},I3=a.forwardRef(hd);process.env.NODE_ENV!=="production"&&(I3.displayName="CheckOutlined");var Cd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},gd=function(t,n){return a.createElement(wn,Je({},t,{ref:n,icon:Cd}))},A3=a.forwardRef(gd);process.env.NODE_ENV!=="production"&&(A3.displayName="DownOutlined");var pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},yd=function(t,n){return a.createElement(wn,Je({},t,{ref:n,icon:pd}))},T3=a.forwardRef(yd);process.env.NODE_ENV!=="production"&&(T3.displayName="SearchOutlined");function bd(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;process.env.NODE_ENV!=="production"&&Pn(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=n??a.createElement(ti,null),g=p=>t===null&&!s&&!f?null:a.createElement(a.Fragment,null,u!==!1&&p,s&&d);let C=null;if(t!==void 0)C=g(t);else if(i)C=g(a.createElement(oi,{spin:!0}));else{const p=`${c}-suffix`;C=L=>{let{open:M,showSearch:w}=L;return g(M&&w?a.createElement(T3,{className:p}):a.createElement(A3,{className:p}))}}let v=null;r!==void 0?v=r:l?v=a.createElement(I3,null):v=null;let y=null;return o!==void 0?y=o:y=a.createElement(ni,null),{clearIcon:h,suffixIcon:C,itemIcon:v,removeIcon:y}}function Ed(e,t){return t!==void 0?t:e!==null}var Ld=function(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")for(var o=0,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};const D3="SECRET_COMBOBOX_MODE_DO_NOT_USE",$3=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:h,disabled:g,notFoundContent:C,status:v,builtinPlacements:y,dropdownMatchSelectWidth:p,popupMatchSelectWidth:L,direction:M,style:w,allowClear:E,variant:S,dropdownStyle:R,transitionName:I,tagRender:T,maxCount:k,prefix:j}=e,Z=Ld(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:U,renderEmpty:O,direction:P,virtual:F,popupMatchSelectWidth:N,popupOverflow:V,select:$}=a.useContext(Cn),[,ee]=An(),J=m??(ee==null?void 0:ee.controlHeight),z=U("select",r),ce=U(),xe=M??P,{compactSize:re,compactItemClassnames:Oe}=Ws(z,xe),[Pe,we]=Gu("select",S,o),X=Ts(z),[G,ie,B]=vd(z,X),Y=a.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===D3?"combobox":Ke},[e.mode]),le=Y==="multiple"||Y==="tags",Fe=Ed(e.suffixIcon,e.showArrow),Ee=(n=L??p)!==null&&n!==void 0?n:N,{status:Le,hasFeedback:$e,isFormItemInput:_e,feedbackIcon:De}=a.useContext(Vi),pe=zu(Le,v);let Ne;C!==void 0?Ne=C:Y==="combobox"?Ne=null:Ne=(O==null?void 0:O("Select"))||a.createElement(Ku,{componentName:"Select"});const{suffixIcon:et,itemIcon:Ie,removeIcon:Ze,clearIcon:ze}=bd(Object.assign(Object.assign({},Z),{multiple:le,hasFeedback:$e,feedbackIcon:De,showSuffixIcon:Fe,prefixCls:z,componentName:"Select"})),Be=E===!0?{clearIcon:ze}:E,ot=da(Z,["suffixIcon","itemIcon"]),ct=rt(c||u,{[`${z}-dropdown-${xe}`]:xe==="rtl"},l,B,X,ie),ut=zs(Ke=>{var at;return(at=h??re)!==null&&at!==void 0?at:Ke}),ke=a.useContext(L4),tt=g??ke,ht=rt({[`${z}-lg`]:ut==="large",[`${z}-sm`]:ut==="small",[`${z}-rtl`]:xe==="rtl",[`${z}-${Pe}`]:we,[`${z}-in-form-item`]:_e},ju(z,pe,$e),Oe,$==null?void 0:$.className,i,l,B,X,ie),St=a.useMemo(()=>f!==void 0?f:xe==="rtl"?"bottomRight":"bottomLeft",[f,xe]);if(process.env.NODE_ENV!=="production"){const Ke=Pn("Select");Ke.deprecated(!u,"dropdownClassName","popupClassName"),Ke.deprecated(p===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Ke(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),Ke.deprecated(!("bordered"in e),"bordered","variant"),process.env.NODE_ENV!=="production"&&Ke(!(typeof k<"u"&&!le),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Qe]=ks("SelectLike",R==null?void 0:R.zIndex);return G(a.createElement(P2,Object.assign({ref:t,virtual:F,showSearch:$==null?void 0:$.showSearch},ot,{style:Object.assign(Object.assign({},$==null?void 0:$.style),w),dropdownMatchSelectWidth:Ee,transitionName:Hs(ce,"slide-up",I),builtinPlacements:Xu(y,V),listHeight:d,listItemHeight:J,mode:Y,prefixCls:z,placement:St,direction:xe,prefix:j,suffixIcon:et,menuItemSelectedIcon:Ie,removeIcon:Ze,allowClear:Be,notFoundContent:Ne,className:ht,getPopupContainer:s||D,dropdownClassName:ct,disabled:tt,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:Qe}),maxCount:le?k:void 0,tagRender:le?T:void 0})))};process.env.NODE_ENV!=="production"&&($3.displayName="Select");const Nn=a.forwardRef($3),wd=g9(Nn,"dropdownAlign");Nn.SECRET_COMBOBOX_MODE_DO_NOT_USE=D3,Nn.Option=x2,Nn.OptGroup=M2,Nn._InternalPanelDoNotUseOrYouWillBeFired=wd,process.env.NODE_ENV!=="production"&&(Nn.displayName="Select");const N3=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:o="start",className:i="",searchable:l=!0,disabled:s=!1,width:c="300px",height:u="m",id:d="",suffixIcon:f=!0})=>bt.jsx(Nn,{id:d,className:`${i} single_select_container h_${u} items_${o}`,suffixIcon:f?void 0:null,style:{width:c},value:n,onChange:t,showSearch:l,placeholder:r,disabled:s,popupClassName:`single_select_dropdown h_${u} items_${o}`,removeIcon:!0,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),options:e}),Sd=e=>`https://flagsapi.com/${e}/flat/64.png`,$4=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],Md=({value:e="",onChange:t=c=>{},height:n="m",width:r="16rem",className:o="",placeholder:i="XXXXXX XXXXX",separator:l=" ",disabled:s=!1})=>{var m,h;const[c,u]=_.useState(e!=null&&e.includes(l)?e.split(l)[0]:(m=$4[89])==null?void 0:m.dialingCode),d=g=>{var C;u(g),t(g+l+((C=e.split(l))==null?void 0:C[1])||"")},f=g=>{const{value:C}=g.target;t(c+l+C)};return bt.jsxs("div",{className:`contact_input ${o}`,style:{width:r},children:[bt.jsx(N3,{options:$4==null?void 0:$4.map(g=>({label:bt.jsx("img",{src:Sd(g.countryCode)}),value:g==null?void 0:g.dialingCode})),placement:"center",value:c,onChange:d,suffixIcon:!1,disabled:s,height:n,width:"25%",searchable:!1}),bt.jsx(j4,{value:c,readOnly:!0,height:n,width:"25%",disabled:s}),bt.jsx(j4,{value:(h=e.split(l))==null?void 0:h[1],placeholder:i,onChange:f,height:n,width:"50%",disabled:s})]})},xd=({options:e,onChange:t,value:n,placeholder:r="Select Items...",className:o="",searchable:i=!0,disabled:l=!1,width:s="300px",height:c="m",id:u="",maxTagCount:d="responsive",suffixIcon:f=!0})=>bt.jsx(Nn,{id:u,disabled:l,showSearch:i,className:`multi_select_container ${o} h_${c}`,mode:"multiple",style:{width:s},suffixIcon:f?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:"multi_select_dropdown",value:n,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),maxTagCount:d});Bt.Button=B7,Bt.ContactInput=Md,Bt.Icon=H4,Bt.Input=j4,Bt.Multiselect=xd,Bt.Select=N3,Bt.Spinner=z2,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})});
214
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},A2(In(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const od=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:C,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:p,colorPrimary:L,controlOutline:M}=e,w=s*2,E=r*2,S=Math.min(o-w,o-E),R=Math.min(i-w,i-E),I=Math.min(l-w,l-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:h,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:l,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:R,multipleItemHeightLG:I,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:L,activeOutlineColor:M,selectAffixPadding:s}},F3=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_t(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${_t(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},R3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},F3(e,t))}),ad=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},F3(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),R3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),R3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_t(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),O3=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_t(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},P3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},O3(e,t))}),id=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},O3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),P3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),P3(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${_t(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),ld=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${_t(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_t(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),sd=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},ad(e)),id(e)),ld(e))}),cd=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ud=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dd=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ko(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},cd(e)),ud(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Uo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Uo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Go()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},fd=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},dd(e),rd(e),nd(e),Yu(e),{[`${t}-rtl`]:{direction:"rtl"}},uc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},vd=O1("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=In(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[fd(r),sd(r)]},od,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var md={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},hd=function(t,n){return a.createElement(wn,Je({},t,{ref:n,icon:md}))},I3=a.forwardRef(hd);process.env.NODE_ENV!=="production"&&(I3.displayName="CheckOutlined");var Cd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},gd=function(t,n){return a.createElement(wn,Je({},t,{ref:n,icon:Cd}))},A3=a.forwardRef(gd);process.env.NODE_ENV!=="production"&&(A3.displayName="DownOutlined");var pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},yd=function(t,n){return a.createElement(wn,Je({},t,{ref:n,icon:pd}))},T3=a.forwardRef(yd);process.env.NODE_ENV!=="production"&&(T3.displayName="SearchOutlined");function bd(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;process.env.NODE_ENV!=="production"&&Pn(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=n??a.createElement(ti,null),g=p=>t===null&&!s&&!f?null:a.createElement(a.Fragment,null,u!==!1&&p,s&&d);let C=null;if(t!==void 0)C=g(t);else if(i)C=g(a.createElement(oi,{spin:!0}));else{const p=`${c}-suffix`;C=L=>{let{open:M,showSearch:w}=L;return g(M&&w?a.createElement(T3,{className:p}):a.createElement(A3,{className:p}))}}let v=null;r!==void 0?v=r:l?v=a.createElement(I3,null):v=null;let y=null;return o!==void 0?y=o:y=a.createElement(ni,null),{clearIcon:h,suffixIcon:C,itemIcon:v,removeIcon:y}}function Ed(e,t){return t!==void 0?t:e!==null}var Ld=function(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")for(var o=0,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};const D3="SECRET_COMBOBOX_MODE_DO_NOT_USE",$3=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:h,disabled:g,notFoundContent:C,status:v,builtinPlacements:y,dropdownMatchSelectWidth:p,popupMatchSelectWidth:L,direction:M,style:w,allowClear:E,variant:S,dropdownStyle:R,transitionName:I,tagRender:T,maxCount:k,prefix:j}=e,Z=Ld(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:U,renderEmpty:O,direction:P,virtual:F,popupMatchSelectWidth:N,popupOverflow:V,select:$}=a.useContext(Cn),[,ee]=An(),J=m??(ee==null?void 0:ee.controlHeight),z=U("select",r),ce=U(),xe=M??P,{compactSize:re,compactItemClassnames:Oe}=Ws(z,xe),[Pe,we]=Gu("select",S,o),X=Ts(z),[G,ie,B]=vd(z,X),Y=a.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===D3?"combobox":Ke},[e.mode]),le=Y==="multiple"||Y==="tags",Fe=Ed(e.suffixIcon,e.showArrow),Ee=(n=L??p)!==null&&n!==void 0?n:N,{status:Le,hasFeedback:$e,isFormItemInput:_e,feedbackIcon:De}=a.useContext(Vi),pe=zu(Le,v);let Ne;C!==void 0?Ne=C:Y==="combobox"?Ne=null:Ne=(O==null?void 0:O("Select"))||a.createElement(Ku,{componentName:"Select"});const{suffixIcon:et,itemIcon:Ie,removeIcon:Ze,clearIcon:ze}=bd(Object.assign(Object.assign({},Z),{multiple:le,hasFeedback:$e,feedbackIcon:De,showSuffixIcon:Fe,prefixCls:z,componentName:"Select"})),Be=E===!0?{clearIcon:ze}:E,ot=da(Z,["suffixIcon","itemIcon"]),ct=rt(c||u,{[`${z}-dropdown-${xe}`]:xe==="rtl"},l,B,X,ie),ut=zs(Ke=>{var at;return(at=h??re)!==null&&at!==void 0?at:Ke}),ke=a.useContext(L4),tt=g??ke,ht=rt({[`${z}-lg`]:ut==="large",[`${z}-sm`]:ut==="small",[`${z}-rtl`]:xe==="rtl",[`${z}-${Pe}`]:we,[`${z}-in-form-item`]:_e},ju(z,pe,$e),Oe,$==null?void 0:$.className,i,l,B,X,ie),St=a.useMemo(()=>f!==void 0?f:xe==="rtl"?"bottomRight":"bottomLeft",[f,xe]);if(process.env.NODE_ENV!=="production"){const Ke=Pn("Select");Ke.deprecated(!u,"dropdownClassName","popupClassName"),Ke.deprecated(p===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Ke(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),Ke.deprecated(!("bordered"in e),"bordered","variant"),process.env.NODE_ENV!=="production"&&Ke(!(typeof k<"u"&&!le),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Qe]=ks("SelectLike",R==null?void 0:R.zIndex);return G(a.createElement(P2,Object.assign({ref:t,virtual:F,showSearch:$==null?void 0:$.showSearch},ot,{style:Object.assign(Object.assign({},$==null?void 0:$.style),w),dropdownMatchSelectWidth:Ee,transitionName:Hs(ce,"slide-up",I),builtinPlacements:Xu(y,V),listHeight:d,listItemHeight:J,mode:Y,prefixCls:z,placement:St,direction:xe,prefix:j,suffixIcon:et,menuItemSelectedIcon:Ie,removeIcon:Ze,allowClear:Be,notFoundContent:Ne,className:ht,getPopupContainer:s||D,dropdownClassName:ct,disabled:tt,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:Qe}),maxCount:le?k:void 0,tagRender:le?T:void 0})))};process.env.NODE_ENV!=="production"&&($3.displayName="Select");const Nn=a.forwardRef($3),wd=g9(Nn,"dropdownAlign");Nn.SECRET_COMBOBOX_MODE_DO_NOT_USE=D3,Nn.Option=x2,Nn.OptGroup=M2,Nn._InternalPanelDoNotUseOrYouWillBeFired=wd,process.env.NODE_ENV!=="production"&&(Nn.displayName="Select");const N3=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:o="start",className:i="",searchable:l=!0,disabled:s=!1,width:c="300px",height:u="m",id:d="",suffixIcon:f=!0})=>bt.jsx(Nn,{id:d,className:`${i} single_select_container h_${u} items_${o}`,suffixIcon:f?void 0:null,style:{width:c},value:n,onChange:t,showSearch:l,placeholder:r,disabled:s,popupClassName:`single_select_dropdown h_${u} items_${o}`,removeIcon:!0,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),options:e}),Sd=e=>`https://flagsapi.com/${e}/flat/64.png`,$4=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],Md=({value:e="",onChange:t=c=>{},height:n="m",width:r="16rem",className:o="",placeholder:i="XXXXXX XXXXX",separator:l=" ",disabled:s=!1})=>{var m,h;const[c,u]=_.useState(e!=null&&e.includes(l)?e.split(l)[0]:(m=$4[89])==null?void 0:m.dialingCode),d=g=>{var C;u(g),t(g+l+(((C=e.split(l))==null?void 0:C[1])||""))},f=g=>{const{value:C}=g.target;t(c+l+C)};return bt.jsxs("div",{className:`contact_input ${o}`,style:{width:r},children:[bt.jsx(N3,{options:$4==null?void 0:$4.map(g=>({label:bt.jsx("img",{src:Sd(g.countryCode)}),value:g==null?void 0:g.dialingCode})),placement:"center",value:c,onChange:d,suffixIcon:!1,disabled:s,height:n,width:"25%",searchable:!1}),bt.jsx(j4,{value:c,readOnly:!0,height:n,width:"25%",disabled:s}),bt.jsx(j4,{value:(h=e.split(l))==null?void 0:h[1],placeholder:i,onChange:f,height:n,width:"50%",disabled:s})]})},xd=({options:e,onChange:t,value:n,placeholder:r="Select Items...",className:o="",searchable:i=!0,disabled:l=!1,width:s="300px",height:c="m",id:u="",maxTagCount:d="responsive",suffixIcon:f=!0})=>bt.jsx(Nn,{id:u,disabled:l,showSearch:i,className:`multi_select_container ${o} h_${c}`,mode:"multiple",style:{width:s},suffixIcon:f?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:"multi_select_dropdown",value:n,filterOption:(m,h)=>((h==null?void 0:h.label)??"").toLowerCase().includes(m.toLowerCase()),maxTagCount:d});Bt.Button=B7,Bt.ContactInput=Md,Bt.Icon=H4,Bt.Input=j4,Bt.Multiselect=xd,Bt.Select=N3,Bt.Spinner=z2,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ambuj.bhaskar/react-component-library",
3
3
  "private": false,
4
- "version": "0.5.5",
4
+ "version": "0.5.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"