@awell-health/ui-library 0.1.150 → 0.1.151

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.js CHANGED
@@ -40545,10 +40545,10 @@ Check the top-level render call using <` + t + ">.");
40545
40545
  i&&o&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+i);
40546
40546
  const l=r-e;
40547
40547
  l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);
40548
- const s=An(t.timeZone,t),d=-/* @__PURE__ */new Date(+t).getTimezoneOffset()-s,f=s!==e,p=d-l;
40549
- if(f&&p){
40550
- Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+p);
40551
- const C=An(t.timeZone,t),m=s-C;
40548
+ const s=An(t.timeZone,t),d=-/* @__PURE__ */new Date(+t).getTimezoneOffset()-s,f=s!==e,C=d-l;
40549
+ if(f&&C){
40550
+ Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+C);
40551
+ const g=An(t.timeZone,t),m=s-g;
40552
40552
  m&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+m),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+m));
40553
40553
  }
40554
40554
  }
@@ -41219,8 +41219,8 @@ Check the top-level render call using <` + t + ">.");
41219
41219
  return Math.round(r/Ta)+1;
41220
41220
  }
41221
41221
  function Ua(t,e){
41222
- var d,f,p,C;
41223
- const n=se(t,e==null?void 0:e.in),r=n.getFullYear(),a=Fn(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((C=(p=a.locale)==null?void 0:p.options)==null?void 0:C.firstWeekContainsDate)??1,o=Me((e==null?void 0:e.in)||t,0);
41222
+ var d,f,C,g;
41223
+ const n=se(t,e==null?void 0:e.in),r=n.getFullYear(),a=Fn(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((g=(C=a.locale)==null?void 0:C.options)==null?void 0:g.firstWeekContainsDate)??1,o=Me((e==null?void 0:e.in)||t,0);
41224
41224
  o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);
41225
41225
  const l=Bt(o,e),s=Me((e==null?void 0:e.in)||t,0);
41226
41226
  s.setFullYear(r,0,i),s.setHours(0,0,0,0);
@@ -41866,15 +41866,15 @@ Check the top-level render call using <` + t + ">.");
41866
41866
  }
41867
41867
  const Du=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ru=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zu=/^'([^]*?)'?$/,Bu=/''/g,Gu=/[a-zA-Z]/;
41868
41868
  function sn(t,e,n){
41869
- var d,f,p,C,m,h,b,g;
41870
- const r=Fn(),a=(n==null?void 0:n.locale)??r.locale??On,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((C=(p=r.locale)==null?void 0:p.options)==null?void 0:C.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((h=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((g=(b=r.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??0,l=se(t,n==null?void 0:n.in);
41869
+ var d,f,C,g,m,h,p,b;
41870
+ const r=Fn(),a=(n==null?void 0:n.locale)??r.locale??On,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(C=r.locale)==null?void 0:C.options)==null?void 0:g.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((h=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((b=(p=r.locale)==null?void 0:p.options)==null?void 0:b.weekStartsOn)??0,l=se(t,n==null?void 0:n.in);
41871
41871
  if(!Ja(l))
41872
41872
  throw new RangeError("Invalid time value");
41873
41873
  let s=e.match(Ru).map((v)=>{
41874
41874
  const w=v[0];
41875
41875
  if(w==="p"||w==="P"){
41876
- const y=Vu[w];
41877
- return y(v,a.formatLong);
41876
+ const I=Vu[w];
41877
+ return I(v,a.formatLong);
41878
41878
  }
41879
41879
  return v;
41880
41880
  }).join("").match(Du).map((v)=>{
@@ -41901,8 +41901,8 @@ Check the top-level render call using <` + t + ">.");
41901
41901
  if(!v.isToken)return v.value;
41902
41902
  const w=v.value;
41903
41903
  (!(n!=null&&n.useAdditionalWeekYearTokens)&&Lu(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Eu(w))&&Au(w,e,String(t));
41904
- const y=F1[w[0]];
41905
- return y(l,w,a.localize,c);
41904
+ const I=F1[w[0]];
41905
+ return I(l,w,a.localize,c);
41906
41906
  }).join("");
41907
41907
  }
41908
41908
  function Fu(t){
@@ -42134,12 +42134,12 @@ Check the top-level render call using <` + t + ">.");
42134
42134
  minVal:c,
42135
42135
  maxVal:d,
42136
42136
  required:f,
42137
- sublabel:p,
42138
- disabled:C=!1,
42137
+ sublabel:C,
42138
+ disabled:g=!1,
42139
42139
  placeholder:m,
42140
42140
  ...h},
42141
- b)=>{
42142
- const g=(v,w)=>/* @__PURE__ */jsxRuntime.exports.jsx(
42141
+ p)=>{
42142
+ const b=(v,w)=>/* @__PURE__ */jsxRuntime.exports.jsx(
42143
42143
  "span",
42144
42144
  {
42145
42145
  className:go$1(
@@ -42154,9 +42154,9 @@ Check the top-level render call using <` + t + ">.");
42154
42154
 
42155
42155
 
42156
42156
  return/* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"",children:[
42157
- e&&/* @__PURE__ */jsxRuntime.exports.jsx(Cr,{label:e,sublabel:p,className:s,required:f}),
42157
+ e&&/* @__PURE__ */jsxRuntime.exports.jsx(Cr,{label:e,sublabel:C,className:s,required:f}),
42158
42158
  /* @__PURE__ */jsxRuntime.exports.jsxs("label",{className:"form-control w-full flex relative",children:[
42159
- a&&g(a,"left"),
42159
+ a&&b(a,"left"),
42160
42160
  /* @__PURE__ */jsxRuntime.exports.jsx(
42161
42161
  "input",
42162
42162
  {
@@ -42177,14 +42177,14 @@ Check the top-level render call using <` + t + ">.");
42177
42177
  t),
42178
42178
 
42179
42179
  onChange:o,
42180
- ref:b,
42180
+ ref:p,
42181
42181
  required:f,
42182
- disabled:C,
42183
- placeholder:C?void 0:m,
42182
+ disabled:g,
42183
+ placeholder:g?void 0:m,
42184
42184
  ...h}),
42185
42185
 
42186
42186
 
42187
- r&&g(r,"right")]}),
42187
+ r&&b(r,"right")]}),
42188
42188
 
42189
42189
  n&&/* @__PURE__ */jsxRuntime.exports.jsx("div",{className:"label",children:/* @__PURE__ */jsxRuntime.exports.jsx(
42190
42190
  "span",
@@ -42216,36 +42216,36 @@ Check the top-level render call using <` + t + ">.");
42216
42216
  children:o,
42217
42217
  ...l},
42218
42218
  s)=>{
42219
- const c=t!==void 0,[d,f]=React__namespace.useState(e),[p,C]=React__namespace.useState(void 0),[m,h]=React__namespace.useState(void 0),b=React__namespace.useRef(null);
42220
- React__namespace.useImperativeHandle(s,()=>b.current);
42221
- const g=c?t:d,v=React__namespace.useCallback(
42219
+ const c=t!==void 0,[d,f]=React__namespace.useState(e),[C,g]=React__namespace.useState(void 0),[m,h]=React__namespace.useState(void 0),p=React__namespace.useRef(null);
42220
+ React__namespace.useImperativeHandle(s,()=>p.current);
42221
+ const b=c?t:d,v=React__namespace.useCallback(
42222
42222
  (w)=>{
42223
42223
  c||f(w),n==null||n(w);
42224
42224
  },
42225
42225
  [c,n]);
42226
42226
 
42227
42227
  return React__namespace.useEffect(()=>{
42228
- const w=b.current;
42229
- w&&(g?w.open||(typeof w.showModal=="function"?w.showModal():w.setAttribute("open","")):w.open&&w.close());
42230
- },[g]),/* @__PURE__ */jsxRuntime.exports.jsx(
42228
+ const w=p.current;
42229
+ w&&(b?w.open||(typeof w.showModal=="function"?w.showModal():w.setAttribute("open","")):w.open&&w.close());
42230
+ },[b]),/* @__PURE__ */jsxRuntime.exports.jsx(
42231
42231
  Ci.Provider,
42232
42232
  {
42233
42233
  value:{
42234
- open:g,
42234
+ open:b,
42235
42235
  setOpen:v,
42236
- titleId:p,
42236
+ titleId:C,
42237
42237
  descriptionId:m,
42238
- setTitleId:C,
42238
+ setTitleId:g,
42239
42239
  setDescriptionId:h},
42240
42240
 
42241
42241
  children:/* @__PURE__ */jsxRuntime.exports.jsx(
42242
42242
  "dialog",
42243
42243
  {
42244
- ref:b,
42244
+ ref:p,
42245
42245
  "aria-modal":"true",
42246
- "aria-labelledby":p,
42246
+ "aria-labelledby":C,
42247
42247
  "aria-describedby":m,
42248
- "data-state":g?"open":"closed",
42248
+ "data-state":b?"open":"closed",
42249
42249
  className:go$1(
42250
42250
  "fixed inset-0 z-50 m-0 flex items-start justify-center bg-black/50 p-6 sm:p-8",
42251
42251
  "border-0 overflow-y-auto",
@@ -42258,7 +42258,7 @@ Check the top-level render call using <` + t + ">.");
42258
42258
  a||w.preventDefault();
42259
42259
  },
42260
42260
  onClose:()=>{
42261
- g&&v(!1);
42261
+ b&&v(!1);
42262
42262
  },
42263
42263
  ...l,
42264
42264
  children:o})});
@@ -42403,11 +42403,12 @@ Check the top-level render call using <` + t + ">.");
42403
42403
  onChange:e,
42404
42404
  isMultiple:n=!1,
42405
42405
  accept:r=[".jpg",".jpeg",".png",".pdf",".doc",".docx",".txt"],
42406
- capture:a,
42407
- maxSizeMb:i=2,
42406
+ displayAccept:a,
42407
+ capture:i,
42408
+ maxSizeMb:o=2,
42408
42409
  // Default max size to 2MB
42409
- onError:o=void 0,
42410
- translations:l={
42410
+ onError:l=void 0,
42411
+ translations:s={
42411
42412
  dropFilesHere:"Drop files here or",
42412
42413
  chooseFiles:"Choose Files",
42413
42414
  someFilesExceedMaxSize:"Some files exceed the maximum size of",
@@ -42415,39 +42416,39 @@ Check the top-level render call using <` + t + ">.");
42415
42416
  maxFileSize:"Maximum file size"}})=>
42416
42417
 
42417
42418
  {
42418
- const s=React.useRef(null),[c,d]=React.useState(!1),[f,p]=React.useState(null);
42419
+ const c=React.useRef(null),[d,f]=React.useState(!1),[C,g]=React.useState(null);
42419
42420
  React.useEffect(()=>{
42420
- f&&(o==null||o(f));
42421
- },[f,o]);
42422
- const C=(g)=>{
42423
- const v=g.target.files;
42424
- if(v){
42425
- const w=Array.from(v).filter((y)=>y.size<=i*1024*1024);
42426
- if(w.length!==v.length){
42427
- p(`Some files exceed the maximum size of ${i}MB.`);
42421
+ C&&(l==null||l(C));
42422
+ },[C,l]);
42423
+ const m=(v)=>{
42424
+ const w=v.target.files;
42425
+ if(w){
42426
+ const I=Array.from(w).filter((y)=>y.size<=o*1024*1024);
42427
+ if(I.length!==w.length){
42428
+ g(`Some files exceed the maximum size of ${o}MB.`);
42428
42429
  return;
42429
42430
  }
42430
- n?e(w):w.length>0&&e([w[0]]);
42431
- }
42432
- },m=(g)=>{
42433
- g.preventDefault(),g.stopPropagation(),d(!0);
42434
- },h=(g)=>{
42435
- g.preventDefault(),g.stopPropagation();
42436
- const v=g.currentTarget.getBoundingClientRect(),w=g.clientX,y=g.clientY;
42437
- (w<=v.left||w>=v.right||y<=v.top||y>=v.bottom)&&d(!1);
42438
- },b=(g)=>{
42439
- g.preventDefault(),g.stopPropagation();
42440
- const v=g.dataTransfer.files;
42441
- if(v){
42442
- const w=Array.from(v).filter((y)=>y.size<=i*1024*1024);
42443
- if(w.length!==v.length&&p(`Some files exceed the maximum size of ${i}MB.`),w.length>0){
42431
+ n?e(I):I.length>0&&e([I[0]]);
42432
+ }
42433
+ },h=(v)=>{
42434
+ v.preventDefault(),v.stopPropagation(),f(!0);
42435
+ },p=(v)=>{
42436
+ v.preventDefault(),v.stopPropagation();
42437
+ const w=v.currentTarget.getBoundingClientRect(),I=v.clientX,y=v.clientY;
42438
+ (I<=w.left||I>=w.right||y<=w.top||y>=w.bottom)&&f(!1);
42439
+ },b=(v)=>{
42440
+ v.preventDefault(),v.stopPropagation();
42441
+ const w=v.dataTransfer.files;
42442
+ if(w){
42443
+ const I=Array.from(w).filter((y)=>y.size<=o*1024*1024);
42444
+ if(I.length!==w.length&&g(`Some files exceed the maximum size of ${o}MB.`),I.length>0){
42444
42445
  const y=new Event("change",{bubbles:!0});
42445
42446
  Object.defineProperty(y,"target",{
42446
- value:{files:w}}),
42447
- C({target:{files:w}});
42447
+ value:{files:I}}),
42448
+ m({target:{files:I}});
42448
42449
  }
42449
42450
  }
42450
- d(!1);
42451
+ f(!1);
42451
42452
  };
42452
42453
  return/* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"flex flex-col gap-2",children:[
42453
42454
  t&&/* @__PURE__ */jsxRuntime.exports.jsx("label",{className:"text-sm font-medium text-gray-700",children:t}),
@@ -42455,12 +42456,12 @@ Check the top-level render call using <` + t + ">.");
42455
42456
  "input",
42456
42457
  {
42457
42458
  type:"file",
42458
- onChange:C,
42459
+ onChange:m,
42459
42460
  className:"invisible",
42460
- ref:s,
42461
+ ref:c,
42461
42462
  multiple:n,
42462
42463
  accept:r.join(","),
42463
- capture:a}),
42464
+ capture:i}),
42464
42465
 
42465
42466
 
42466
42467
  /* @__PURE__ */jsxRuntime.exports.jsxs(
@@ -42469,35 +42470,35 @@ Check the top-level render call using <` + t + ">.");
42469
42470
  className:go$1(
42470
42471
  "flex flex-col items-center justify-center gap-4 border border-dashed border-gray-200 rounded-md p-4 relative w-full",
42471
42472
  {
42472
- "border-blue-500":c}),
42473
+ "border-blue-500":d}),
42473
42474
 
42474
42475
 
42475
- onDragOver:m,
42476
- onDragLeave:h,
42476
+ onDragOver:h,
42477
+ onDragLeave:p,
42477
42478
  onDrop:b,
42478
42479
  children:[
42479
- /* @__PURE__ */jsxRuntime.exports.jsx("div",{children:l.dropFilesHere}),
42480
+ /* @__PURE__ */jsxRuntime.exports.jsx("div",{children:s.dropFilesHere}),
42480
42481
  /* @__PURE__ */jsxRuntime.exports.jsx(
42481
42482
  nt,
42482
42483
  {
42483
42484
  variant:"secondaryBlue",
42484
42485
  size:"sm",
42485
- onClick:(g)=>{
42486
- var v;
42487
- g.preventDefault(),(v=s.current)==null||v.click();
42486
+ onClick:(v)=>{
42487
+ var w;
42488
+ v.preventDefault(),(w=c.current)==null||w.click();
42488
42489
  },
42489
- children:l.chooseFiles}),
42490
+ children:s.chooseFiles}),
42490
42491
 
42491
42492
 
42492
42493
  /* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"text-sm text-gray-500 text-center",children:[
42493
- l.maxFileSize,
42494
+ s.maxFileSize,
42494
42495
  " ",
42495
- i,
42496
+ o,
42496
42497
  "MB ",
42497
42498
  /* @__PURE__ */jsxRuntime.exports.jsx("br",{}),
42498
- l.supportedFileTypes,
42499
+ s.supportedFileTypes,
42499
42500
  " ",
42500
- r.join(", ").replace(/;[^,]*/g,"")]}),
42501
+ (a??r).join(", ")]}),
42501
42502
 
42502
42503
  /* @__PURE__ */jsxRuntime.exports.jsx(
42503
42504
  "div",
@@ -42505,30 +42506,30 @@ Check the top-level render call using <` + t + ">.");
42505
42506
  className:go$1(
42506
42507
  "absolute inset-0 bg-white/90 rounded-md transition-opacity duration-300 z-10",
42507
42508
  {
42508
- hidden:!c}),
42509
+ hidden:!d}),
42509
42510
 
42510
42511
 
42511
- children:/* @__PURE__ */jsxRuntime.exports.jsx("div",{className:"flex items-center justify-center h-full",children:/* @__PURE__ */jsxRuntime.exports.jsx("p",{className:"text-gray-500 text-sm block",children:l.dropFilesHere})})})]}),
42512
+ children:/* @__PURE__ */jsxRuntime.exports.jsx("div",{className:"flex items-center justify-center h-full",children:/* @__PURE__ */jsxRuntime.exports.jsx("p",{className:"text-gray-500 text-sm block",children:s.dropFilesHere})})})]}),
42512
42513
 
42513
42514
 
42514
42515
 
42515
42516
 
42516
42517
 
42517
- f&&/* @__PURE__ */jsxRuntime.exports.jsx("p",{className:"text-red-500 text-sm",children:f})]});
42518
+ C&&/* @__PURE__ */jsxRuntime.exports.jsx("p",{className:"text-red-500 text-sm",children:C})]});
42518
42519
 
42519
42520
  };
42520
42521
  var Mt=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54",{default:"(..) .... ....","/^11/":"(..) .... ....","/^15/":"(..) ... ....","/^(2|3|4|5)/":"(.) .... ....","/^9/":"(.) .... ....."},0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973",".... ...."],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965",".... ...."],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968",".... ...."],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974",".... ...."],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966",".. ... ...."],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971",{default:".. ... ....","/^5[024568]/":".. ... ....","/^[234679]/":". ... ...."}],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Wd="react-international-phone-",Vi=(...t)=>t.filter((e)=>!!e).join(" ").trim(),zd=(...t)=>Vi(...t).split(" ").map((e)=>`${Wd}${e}`).join(" "),ke=({addPrefix:t,rawClassNames:e})=>Vi(zd(...t),...e),Xd=({value:t,mask:e,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:a=!1,allowMaskOverflow:i=!1})=>{
42521
42522
  if(t.length<r)return t;
42522
- let o=t.slice(0,r),l=t.slice(r),s=e.split("").filter((C)=>C===n).length,c=l.slice(0,s),d=i?l.slice(s):"",f=o,p=0;
42523
- for(let C of e.split("")){
42524
- if(p>=c.length){
42525
- if(!a&&C!==n){
42526
- f+=C;
42523
+ let o=t.slice(0,r),l=t.slice(r),s=e.split("").filter((g)=>g===n).length,c=l.slice(0,s),d=i?l.slice(s):"",f=o,C=0;
42524
+ for(let g of e.split("")){
42525
+ if(C>=c.length){
42526
+ if(!a&&g!==n){
42527
+ f+=g;
42527
42528
  continue;
42528
42529
  }
42529
42530
  break;
42530
42531
  }
42531
- C===n?(f+=c[p],p+=1):f+=C;
42532
+ g===n?(f+=c[C],C+=1):f+=g;
42532
42533
  }
42533
42534
  return f+d;
42534
42535
  },on=(t)=>t?/^\d+$/.test(t):!1,pr=(t)=>t.replace(/\D/g,""),Jd=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),jd=(t,e)=>{
@@ -42564,24 +42565,24 @@ Check the top-level render call using <` + t + ">.");
42564
42565
  if(i!=="backward")for(;!on(n[s])&&s<n.length;)s+=1;
42565
42566
  return s;
42566
42567
  },qn=({phone:t,prefix:e})=>t?`${e}${pr(t)}`:"";
42567
- function Xr({value:t,country:e,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:a,prefix:i,charAfterDialCode:o,forceDialCode:l,disableDialCodeAndPrefix:s,defaultMask:c,countryGuessingEnabled:d,disableFormatting:f,allowMaskOverflow:p}){
42568
- let C=t;
42569
- s&&(C=C.startsWith(`${i}`)?C:`${i}${e.dialCode}${C}`);
42570
- let m=d?r4({phone:C,countries:a,currentCountryIso2:e==null?void 0:e.iso2}):void 0,h=(m==null?void 0:m.country)??e,b=jd(C,{prefix:i,mask:t4({phone:C,country:h,defaultMask:c,disableFormatting:f}),maskChar:Mi,dialCode:h.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:l,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:s,allowMaskOverflow:p}),g=d&&!(m!=null&&m.fullDialCodeMatch)?e:h;
42571
- return {phone:qn({phone:s?`${g.dialCode}${b}`:b,prefix:i}),inputValue:b,country:g};
42568
+ function Xr({value:t,country:e,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:a,prefix:i,charAfterDialCode:o,forceDialCode:l,disableDialCodeAndPrefix:s,defaultMask:c,countryGuessingEnabled:d,disableFormatting:f,allowMaskOverflow:C}){
42569
+ let g=t;
42570
+ s&&(g=g.startsWith(`${i}`)?g:`${i}${e.dialCode}${g}`);
42571
+ let m=d?r4({phone:g,countries:a,currentCountryIso2:e==null?void 0:e.iso2}):void 0,h=(m==null?void 0:m.country)??e,p=jd(g,{prefix:i,mask:t4({phone:g,country:h,defaultMask:c,disableFormatting:f}),maskChar:Mi,dialCode:h.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:l,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:s,allowMaskOverflow:C}),b=d&&!(m!=null&&m.fullDialCodeMatch)?e:h;
42572
+ return {phone:qn({phone:s?`${b.dialCode}${p}`:p,prefix:i}),inputValue:p,country:b};
42572
42573
  }
42573
42574
  var $d=(t)=>{
42574
42575
  if((t==null?void 0:t.toLocaleLowerCase().includes("delete"))??!1)return t!=null&&t.toLocaleLowerCase().includes("forward")?"forward":"backward";
42575
- },Ud=(t,{country:e,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:a,charAfterDialCode:i,forceDialCode:o,disableDialCodeAndPrefix:l,countryGuessingEnabled:s,defaultMask:c,disableFormatting:d,countries:f,allowMaskOverflow:p})=>{
42576
- let C=t.nativeEvent,m=C.inputType,h=$d(m),b=!!(m!=null&&m.startsWith("insertFrom")),g=m==="insertText",v=(C==null?void 0:C.data)||void 0,w=t.target.value,y=t.target.selectionStart??0;
42576
+ },Ud=(t,{country:e,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:a,charAfterDialCode:i,forceDialCode:o,disableDialCodeAndPrefix:l,countryGuessingEnabled:s,defaultMask:c,disableFormatting:d,countries:f,allowMaskOverflow:C})=>{
42577
+ let g=t.nativeEvent,m=g.inputType,h=$d(m),p=!!(m!=null&&m.startsWith("insertFrom")),b=m==="insertText",v=(g==null?void 0:g.data)||void 0,w=t.target.value,I=t.target.selectionStart??0;
42577
42578
  if(m!=null&&m.includes("history"))return {inputValue:r,phone:qn({phone:r,prefix:a}),cursorPosition:r.length,country:e};
42578
- if(g&&!on(v)&&w!==a)return {inputValue:r,phone:qn({phone:l?`${e.dialCode}${r}`:r,prefix:a}),cursorPosition:y-((v==null?void 0:v.length)??0),country:e};
42579
- if(o&&!w.startsWith(`${a}${e.dialCode}`)&&!b){
42579
+ if(b&&!on(v)&&w!==a)return {inputValue:r,phone:qn({phone:l?`${e.dialCode}${r}`:r,prefix:a}),cursorPosition:I-((v==null?void 0:v.length)??0),country:e};
42580
+ if(o&&!w.startsWith(`${a}${e.dialCode}`)&&!p){
42580
42581
  let S=w?r:`${a}${e.dialCode}${i}`;
42581
42582
  return {inputValue:S,phone:qn({phone:S,prefix:a}),cursorPosition:a.length+e.dialCode.length+i.length,country:e};
42582
42583
  }
42583
- let{phone:I,inputValue:M,country:V}=Xr({value:w,country:e,trimNonDigitsEnd:h==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:s,countries:f,prefix:a,charAfterDialCode:i,forceDialCode:o,disableDialCodeAndPrefix:l,disableFormatting:d,defaultMask:c,allowMaskOverflow:p}),H=_d({cursorPositionAfterInput:y,phoneBeforeInput:r,phoneAfterInput:w,phoneAfterFormatted:M,leftOffset:o?a.length+e.dialCode.length+i.length:0,deletion:h});
42584
- return {phone:I,inputValue:M,cursorPosition:H,country:V};
42584
+ let{phone:y,inputValue:M,country:V}=Xr({value:w,country:e,trimNonDigitsEnd:h==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:s,countries:f,prefix:a,charAfterDialCode:i,forceDialCode:o,disableDialCodeAndPrefix:l,disableFormatting:d,defaultMask:c,allowMaskOverflow:C}),H=_d({cursorPositionAfterInput:I,phoneBeforeInput:r,phoneAfterInput:w,phoneAfterFormatted:M,leftOffset:o?a.length+e.dialCode.length+i.length:0,deletion:h});
42585
+ return {phone:y,inputValue:M,cursorPosition:H,country:V};
42585
42586
  },Qd=(t,e)=>{
42586
42587
  let n=Object.keys(t),r=Object.keys(e);
42587
42588
  if(n.length!==r.length)return !1;
@@ -42595,45 +42596,45 @@ Check the top-level render call using <` + t + ">.");
42595
42596
  return React.useMemo(()=>({check:n}),[n]);
42596
42597
  },qd={size:20,overrideLastItemDebounceMS:-1};
42597
42598
  function e4(t,e){
42598
- let{size:n,overrideLastItemDebounceMS:r,onChange:a}={...qd,...e},[i,o]=React.useState(t),l=React.useRef([i]),s=React.useRef(0),c=Kd(),d=React.useCallback((C,m)=>{
42599
+ let{size:n,overrideLastItemDebounceMS:r,onChange:a}={...qd,...e},[i,o]=React.useState(t),l=React.useRef([i]),s=React.useRef(0),c=Kd(),d=React.useCallback((g,m)=>{
42599
42600
  let h=l.current[s.current];
42600
- if(C===h||typeof C=="object"&&typeof h=="object"&&Qd(C,h))return;
42601
- let b=r>0,g=c.check(),v=b&&g!==void 0?g>r:!0;
42602
- if((m==null?void 0:m.overrideLastItem)!==void 0?m.overrideLastItem:!v)l.current=[...l.current.slice(0,s.current),C];else
42601
+ if(g===h||typeof g=="object"&&typeof h=="object"&&Qd(g,h))return;
42602
+ let p=r>0,b=c.check(),v=p&&b!==void 0?b>r:!0;
42603
+ if((m==null?void 0:m.overrideLastItem)!==void 0?m.overrideLastItem:!v)l.current=[...l.current.slice(0,s.current),g];else
42603
42604
  {
42604
42605
  let w=l.current.length>=n;
42605
- l.current=[...l.current.slice(w?1:0,s.current+1),C],w||(s.current+=1);
42606
+ l.current=[...l.current.slice(w?1:0,s.current+1),g],w||(s.current+=1);
42606
42607
  }
42607
- o(C),a==null||a(C);
42608
+ o(g),a==null||a(g);
42608
42609
  },[a,r,n,c]),f=React.useCallback(()=>{
42609
42610
  if(s.current<=0)return {success:!1};
42610
- let C=l.current[s.current-1];
42611
- return o(C),s.current-=1,a==null||a(C),{success:!0,value:C};
42612
- },[a]),p=React.useCallback(()=>{
42611
+ let g=l.current[s.current-1];
42612
+ return o(g),s.current-=1,a==null||a(g),{success:!0,value:g};
42613
+ },[a]),C=React.useCallback(()=>{
42613
42614
  if(s.current+1>=l.current.length)return {success:!1};
42614
- let C=l.current[s.current+1];
42615
- return o(C),s.current+=1,a==null||a(C),{success:!0,value:C};
42615
+ let g=l.current[s.current+1];
42616
+ return o(g),s.current+=1,a==null||a(g),{success:!0,value:g};
42616
42617
  },[a]);
42617
- return [i,d,f,p];
42618
+ return [i,d,f,C];
42618
42619
  }
42619
- var Mi=".",Ue={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,allowMaskOverflow:!1,countries:Mt,preferredCountries:[]},Hi=({defaultCountry:t=Ue.defaultCountry,value:e=Ue.value,countries:n=Ue.countries,prefix:r=Ue.prefix,defaultMask:a=Ue.defaultMask,charAfterDialCode:i=Ue.charAfterDialCode,historySaveDebounceMS:o=Ue.historySaveDebounceMS,disableCountryGuess:l=Ue.disableCountryGuess,disableDialCodePrefill:s=Ue.disableDialCodePrefill,forceDialCode:c=Ue.forceDialCode,disableDialCodeAndPrefix:d=Ue.disableDialCodeAndPrefix,disableFormatting:f=Ue.disableFormatting,allowMaskOverflow:p=Ue.allowMaskOverflow,onChange:C,inputRef:m})=>{
42620
- let h={countries:n,prefix:r,charAfterDialCode:i,forceDialCode:d?!1:c,disableDialCodeAndPrefix:d,defaultMask:a,countryGuessingEnabled:!l,disableFormatting:f,allowMaskOverflow:p},b=React.useRef(null),g=m||b,v=(R)=>{
42620
+ var Mi=".",Ue={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,allowMaskOverflow:!1,countries:Mt,preferredCountries:[]},Hi=({defaultCountry:t=Ue.defaultCountry,value:e=Ue.value,countries:n=Ue.countries,prefix:r=Ue.prefix,defaultMask:a=Ue.defaultMask,charAfterDialCode:i=Ue.charAfterDialCode,historySaveDebounceMS:o=Ue.historySaveDebounceMS,disableCountryGuess:l=Ue.disableCountryGuess,disableDialCodePrefill:s=Ue.disableDialCodePrefill,forceDialCode:c=Ue.forceDialCode,disableDialCodeAndPrefix:d=Ue.disableDialCodeAndPrefix,disableFormatting:f=Ue.disableFormatting,allowMaskOverflow:C=Ue.allowMaskOverflow,onChange:g,inputRef:m})=>{
42621
+ let h={countries:n,prefix:r,charAfterDialCode:i,forceDialCode:d?!1:c,disableDialCodeAndPrefix:d,defaultMask:a,countryGuessingEnabled:!l,disableFormatting:f,allowMaskOverflow:C},p=React.useRef(null),b=m||p,v=(R)=>{
42621
42622
  Promise.resolve().then(()=>{
42622
42623
  var F;
42623
- typeof window>"u"||g.current!==(document==null?void 0:document.activeElement)||(F=g.current)==null||F.setSelectionRange(R,R);
42624
+ typeof window>"u"||b.current!==(document==null?void 0:document.activeElement)||(F=b.current)==null||F.setSelectionRange(R,R);
42624
42625
  });
42625
- },w=React.useCallback((R)=>ln({value:R,field:"iso2",countries:n}),[n]),y=React.useCallback(({inputValue:R,phone:F,country:T})=>{
42626
- if(!C)return;
42626
+ },w=React.useCallback((R)=>ln({value:R,field:"iso2",countries:n}),[n]),I=React.useCallback(({inputValue:R,phone:F,country:T})=>{
42627
+ if(!g)return;
42627
42628
  let D=w(T);
42628
- C({phone:F,inputValue:R,country:D});
42629
- },[w,C]),[{phone:I,inputValue:M,country:V},H,S,L]=e4(()=>{
42629
+ g({phone:F,inputValue:R,country:D});
42630
+ },[w,g]),[{phone:y,inputValue:M,country:V},H,S,L]=e4(()=>{
42630
42631
  let R=ln({value:t,field:"iso2",countries:n});
42631
42632
  R||console.error(`[react-international-phone]: can not find a country with "${t}" iso2 code`);
42632
42633
  let F=R||ln({value:"us",field:"iso2",countries:n}),{phone:T,inputValue:D,country:B}=Xr({value:e,country:F,insertDialCodeOnEmpty:!s,...h});
42633
42634
  return v(D.length),{phone:T,inputValue:D,country:B.iso2};
42634
- },{overrideLastItemDebounceMS:o,onChange:y}),O=React.useMemo(()=>w(V),[V,w]);
42635
+ },{overrideLastItemDebounceMS:o,onChange:I}),O=React.useMemo(()=>w(V),[V,w]);
42635
42636
  React.useEffect(()=>{
42636
- let R=g.current;
42637
+ let R=b.current;
42637
42638
  if(!R)return;
42638
42639
  let F=(T)=>{
42639
42640
  if(!T.key)return;
@@ -42648,7 +42649,7 @@ Check the top-level render call using <` + t + ">.");
42648
42649
  return R.addEventListener("keydown",F),()=>{
42649
42650
  R.removeEventListener("keydown",F);
42650
42651
  };
42651
- },[g,S,L]);
42652
+ },[b,S,L]);
42652
42653
  let G=(R)=>{
42653
42654
  R.preventDefault();
42654
42655
  let{phone:F,inputValue:T,country:D,cursorPosition:B}=Ud(R,{country:O,phoneBeforeInput:M,insertDialCodeOnEmpty:!1,...h});
@@ -42662,18 +42663,18 @@ Check the top-level render call using <` + t + ">.");
42662
42663
  let D=d?"":`${r}${T.dialCode}${i}`;
42663
42664
  H({inputValue:D,phone:`${r}${T.dialCode}`,country:T.iso2}),F.focusOnInput&&Promise.resolve().then(()=>{
42664
42665
  var B;
42665
- (B=g.current)==null||B.focus();
42666
+ (B=b.current)==null||B.focus();
42666
42667
  });
42667
- },[n,d,r,i,H,g]),[k,j]=React.useState(!1);
42668
+ },[n,d,r,i,H,b]),[k,j]=React.useState(!1);
42668
42669
  return React.useEffect(()=>{
42669
42670
  if(!k){
42670
- j(!0),e!==I&&(C==null||C({inputValue:M,phone:I,country:O}));
42671
+ j(!0),e!==y&&(g==null||g({inputValue:M,phone:y,country:O}));
42671
42672
  return;
42672
42673
  }
42673
- if(e===I)return;
42674
+ if(e===y)return;
42674
42675
  let{phone:R,inputValue:F,country:T}=Xr({value:e,country:O,insertDialCodeOnEmpty:!s,...h});
42675
42676
  H({phone:R,inputValue:F,country:T.iso2});
42676
- },[e]),{phone:I,inputValue:M,country:O,setCountry:K,handlePhoneValueChange:G,inputRef:g};
42677
+ },[e]),{phone:y,inputValue:M,country:O,setCountry:K,handlePhoneValueChange:G,inputRef:b};
42677
42678
  },t4=({phone:t,country:e,defaultMask:n="............",disableFormatting:r=!1})=>{
42678
42679
  let a=e.format,i=(l)=>r?l.replace(new RegExp(`[^${Mi}]`,"g"),""):l;
42679
42680
  if(!a)return i(n);
@@ -42703,19 +42704,19 @@ Check the top-level render call using <` + t + ">.");
42703
42704
  let a=pr(t);
42704
42705
  if(!a)return r;
42705
42706
  let i=r,o=({country:s,fullDialCodeMatch:c})=>{
42706
- var p,C;
42707
- let d=s.dialCode===((p=i.country)==null?void 0:p.dialCode),f=(s.priority??0)<(((C=i.country)==null?void 0:C.priority)??0);
42707
+ var C,g;
42708
+ let d=s.dialCode===((C=i.country)==null?void 0:C.dialCode),f=(s.priority??0)<(((g=i.country)==null?void 0:g.priority)??0);
42708
42709
  (!d||f)&&(i={country:s,fullDialCodeMatch:c});
42709
42710
  };
42710
42711
  for(let s of e){
42711
42712
  let c=Te(s),{dialCode:d,areaCodes:f}=c;
42712
42713
  if(a.startsWith(d)){
42713
- let p=i.country?Number(d)>=Number(i.country.dialCode):!0;
42714
+ let C=i.country?Number(d)>=Number(i.country.dialCode):!0;
42714
42715
  if(f){
42715
- let C=a.substring(d.length);
42716
- for(let m of f)if(C.startsWith(m))return {country:c,fullDialCodeMatch:!0};
42716
+ let g=a.substring(d.length);
42717
+ for(let m of f)if(g.startsWith(m))return {country:c,fullDialCodeMatch:!0};
42717
42718
  }
42718
- (p||d===a||!i.fullDialCodeMatch)&&o({country:c,fullDialCodeMatch:!0});
42719
+ (C||d===a||!i.fullDialCodeMatch)&&o({country:c,fullDialCodeMatch:!0});
42719
42720
  }
42720
42721
  i.fullDialCodeMatch||a.length<d.length&&d.startsWith(a)&&(!i.country||Number(d)<=Number(i.country.dialCode))&&o({country:c,fullDialCodeMatch:!1});
42721
42722
  }
@@ -42725,7 +42726,7 @@ Check the top-level render call using <` + t + ">.");
42725
42726
  let c=s?((d)=>{
42726
42727
  if(!(d!=null&&d.areaCodes))return !1;
42727
42728
  let f=a.substring(d.dialCode.length);
42728
- return d.areaCodes.some((p)=>p.startsWith(f));
42729
+ return d.areaCodes.some((C)=>C.startsWith(f));
42729
42730
  })(s):!1;
42730
42731
  i&&((l=i.country)==null?void 0:l.dialCode)===s.dialCode&&i.country!==s&&i.fullDialCodeMatch&&(!s.areaCodes||c)&&(i={country:s,fullDialCodeMatch:!0});
42731
42732
  }
@@ -42748,37 +42749,37 @@ Check the top-level render call using <` + t + ">.");
42748
42749
  onSelect:n,
42749
42750
  disabled:r=!1})
42750
42751
  {
42751
- const[a,i]=React__namespace.useState(!1),[o,l]=React__namespace.useState(""),[s,c]=React__namespace.useState(0),d=React__namespace.useRef(null),f=React__namespace.useRef(null),p=React__namespace.useMemo(()=>t.map(Te),[t]),C=p.find((g)=>g.iso2===e),m=React__namespace.useMemo(()=>{
42752
- const g=o.trim().toLowerCase();
42753
- return g?p.filter((v)=>v.name.toLowerCase().includes(g)||v.iso2.toLowerCase().includes(g)||v.dialCode.includes(g.replace("+",""))):p;
42754
- },[p,o]);
42752
+ const[a,i]=React__namespace.useState(!1),[o,l]=React__namespace.useState(""),[s,c]=React__namespace.useState(0),d=React__namespace.useRef(null),f=React__namespace.useRef(null),C=React__namespace.useMemo(()=>t.map(Te),[t]),g=C.find((b)=>b.iso2===e),m=React__namespace.useMemo(()=>{
42753
+ const b=o.trim().toLowerCase();
42754
+ return b?C.filter((v)=>v.name.toLowerCase().includes(b)||v.iso2.toLowerCase().includes(b)||v.dialCode.includes(b.replace("+",""))):C;
42755
+ },[C,o]);
42755
42756
  React__namespace.useEffect(()=>{
42756
42757
  if(!a)
42757
42758
  return;
42758
- const g=(v)=>{
42759
+ const b=(v)=>{
42759
42760
  var w;
42760
42761
  (w=d.current)!=null&&w.contains(v.target)||i(!1);
42761
42762
  };
42762
- return document.addEventListener("mousedown",g),()=>{
42763
- document.removeEventListener("mousedown",g);
42763
+ return document.addEventListener("mousedown",b),()=>{
42764
+ document.removeEventListener("mousedown",b);
42764
42765
  };
42765
42766
  },[a]),React__namespace.useEffect(()=>{
42766
42767
  a?(c(0),window.setTimeout(()=>{
42767
- var g;
42768
- return (g=f.current)==null?void 0:g.focus();
42768
+ var b;
42769
+ return (b=f.current)==null?void 0:b.focus();
42769
42770
  },0)):l("");
42770
42771
  },[a]),React__namespace.useEffect(()=>{
42771
42772
  c(0);
42772
42773
  },[o]);
42773
- const h=(g)=>{
42774
- n(g),i(!1);
42774
+ const h=(b)=>{
42775
+ n(b),i(!1);
42775
42776
  };
42776
- return/* @__PURE__ */jsxRuntime.exports.jsxs("div",{ref:d,className:"absolute left-0 top-0 z-20 h-[38px]",onKeyDown:(g)=>{
42777
- if(g.key==="Escape"){
42777
+ return/* @__PURE__ */jsxRuntime.exports.jsxs("div",{ref:d,className:"absolute left-0 top-0 z-20 h-[38px]",onKeyDown:(b)=>{
42778
+ if(b.key==="Escape"){
42778
42779
  i(!1);
42779
42780
  return;
42780
42781
  }
42781
- a&&(g.key==="ArrowDown"&&(g.preventDefault(),c((v)=>Math.min(v+1,m.length-1))),g.key==="ArrowUp"&&(g.preventDefault(),c((v)=>Math.max(v-1,0))),g.key==="Enter"&&m[s]&&(g.preventDefault(),h(m[s].iso2)));
42782
+ a&&(b.key==="ArrowDown"&&(b.preventDefault(),c((v)=>Math.min(v+1,m.length-1))),b.key==="ArrowUp"&&(b.preventDefault(),c((v)=>Math.max(v-1,0))),b.key==="Enter"&&m[s]&&(b.preventDefault(),h(m[s].iso2)));
42782
42783
  },children:[
42783
42784
  /* @__PURE__ */jsxRuntime.exports.jsxs(
42784
42785
  "button",
@@ -42794,9 +42795,9 @@ Check the top-level render call using <` + t + ">.");
42794
42795
  "focus:outline-0 focus:ring-2 focus:ring-blue-500 focus:ring-inset",
42795
42796
  "disabled:cursor-not-allowed disabled:bg-slate-100 disabled:text-slate-500"),
42796
42797
 
42797
- onClick:()=>i((g)=>!g),
42798
+ onClick:()=>i((b)=>!b),
42798
42799
  children:[
42799
- /* @__PURE__ */jsxRuntime.exports.jsx(ir,{iso2:C==null?void 0:C.iso2,size:"20px"}),
42800
+ /* @__PURE__ */jsxRuntime.exports.jsx(ir,{iso2:g==null?void 0:g.iso2,size:"20px"}),
42800
42801
  /* @__PURE__ */jsxRuntime.exports.jsx("span",{className:"text-slate-500 text-[10px]","aria-hidden":"true",children:"▾"})]}),
42801
42802
 
42802
42803
 
@@ -42821,14 +42822,14 @@ Check the top-level render call using <` + t + ">.");
42821
42822
  "h-9 w-full rounded-md border border-slate-300 px-3 text-sm",
42822
42823
  "focus:outline-0 focus:border-blue-500"),
42823
42824
 
42824
- onChange:(g)=>l(g.target.value)})}),
42825
+ onChange:(b)=>l(b.target.value)})}),
42825
42826
 
42826
42827
 
42827
- /* @__PURE__ */jsxRuntime.exports.jsx("ul",{role:"listbox",className:"max-h-[300px] overflow-y-auto py-1",children:m.length>0?m.map((g,v)=>/* @__PURE__ */jsxRuntime.exports.jsx(
42828
+ /* @__PURE__ */jsxRuntime.exports.jsx("ul",{role:"listbox",className:"max-h-[300px] overflow-y-auto py-1",children:m.length>0?m.map((b,v)=>/* @__PURE__ */jsxRuntime.exports.jsx(
42828
42829
  "li",
42829
42830
  {
42830
42831
  role:"option",
42831
- "aria-selected":g.iso2===e,
42832
+ "aria-selected":b.iso2===e,
42832
42833
  children:/* @__PURE__ */jsxRuntime.exports.jsxs(
42833
42834
  "button",
42834
42835
  {
@@ -42836,23 +42837,23 @@ Check the top-level render call using <` + t + ">.");
42836
42837
  className:go$1(
42837
42838
  "flex w-full items-center px-3 py-2 text-left",
42838
42839
  "hover:bg-slate-100 focus:outline-0 focus:bg-slate-100",
42839
- g.iso2===e&&"bg-slate-200 text-slate-700",
42840
+ b.iso2===e&&"bg-slate-200 text-slate-700",
42840
42841
  v===s&&"bg-slate-100"),
42841
42842
 
42842
42843
  onMouseEnter:()=>c(v),
42843
- onClick:()=>h(g.iso2),
42844
+ onClick:()=>h(b.iso2),
42844
42845
  children:[
42845
- /* @__PURE__ */jsxRuntime.exports.jsx(ir,{iso2:g.iso2,size:"20px",className:"mr-2 shrink-0"}),
42846
- /* @__PURE__ */jsxRuntime.exports.jsx("span",{className:"mr-2 truncate",children:g.name}),
42846
+ /* @__PURE__ */jsxRuntime.exports.jsx(ir,{iso2:b.iso2,size:"20px",className:"mr-2 shrink-0"}),
42847
+ /* @__PURE__ */jsxRuntime.exports.jsx("span",{className:"mr-2 truncate",children:b.name}),
42847
42848
  /* @__PURE__ */jsxRuntime.exports.jsxs("span",{className:"ml-auto text-slate-500",children:[
42848
42849
  "+",
42849
- g.dialCode]})]})},
42850
+ b.dialCode]})]})},
42850
42851
 
42851
42852
 
42852
42853
 
42853
42854
 
42854
42855
 
42855
- g.iso2)):
42856
+ b.iso2)):
42856
42857
  /* @__PURE__ */jsxRuntime.exports.jsx("li",{className:"px-3 py-2 text-slate-500",children:"No countries found"})})]})]});
42857
42858
 
42858
42859
 
@@ -42889,18 +42890,18 @@ Check the top-level render call using <` + t + ">.");
42889
42890
  preferredCountries:c=[],
42890
42891
  labelClassName:d,
42891
42892
  required:f,
42892
- sublabel:p,
42893
- disabled:C,
42893
+ sublabel:C,
42894
+ disabled:g,
42894
42895
  placeholder:m,
42895
42896
  ...h},
42896
- b)=>{
42897
- const g=React__namespace.useRef(null),v=React__namespace.useMemo(
42897
+ p)=>{
42898
+ const b=React__namespace.useRef(null),v=React__namespace.useMemo(
42898
42899
  ()=>h4(s),
42899
42900
  [s]),
42900
42901
  w=React__namespace.useMemo(
42901
42902
  ()=>m4(v,c),
42902
42903
  [v,c]),
42903
- I=w.some(
42904
+ y=w.some(
42904
42905
  (k)=>Te(k).iso2===o)?
42905
42906
  o:Te(w[0]??Mt[0]).iso2,M=React__namespace.useRef(!1),{
42906
42907
  inputValue:V,
@@ -42909,12 +42910,12 @@ Check the top-level render call using <` + t + ">.");
42909
42910
  country:L,
42910
42911
  setCountry:O}=
42911
42912
  Hi({
42912
- defaultCountry:I,
42913
+ defaultCountry:y,
42913
42914
  value:i,
42914
42915
  countries:w,
42915
42916
  preferredCountries:c,
42916
42917
  disableDialCodePrefill:!0,
42917
- inputRef:g,
42918
+ inputRef:b,
42918
42919
  onChange:(k)=>{
42919
42920
  M.current&&(a==null||a(k.phone,{
42920
42921
  country:k.country,
@@ -42926,8 +42927,8 @@ Check the top-level render call using <` + t + ">.");
42926
42927
  },K=(k)=>{
42927
42928
  M.current=!0,O(k,{focusOnInput:!0});
42928
42929
  };
42929
- return React__namespace.useImperativeHandle(b,()=>S.current),/* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"",children:[
42930
- e&&/* @__PURE__ */jsxRuntime.exports.jsx(Cr,{label:e,sublabel:p,className:d,required:f}),
42930
+ return React__namespace.useImperativeHandle(p,()=>S.current),/* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"",children:[
42931
+ e&&/* @__PURE__ */jsxRuntime.exports.jsx(Cr,{label:e,sublabel:C,className:d,required:f}),
42931
42932
  /* @__PURE__ */jsxRuntime.exports.jsxs("label",{className:"form-control w-full flex relative",children:[
42932
42933
  l&&/* @__PURE__ */jsxRuntime.exports.jsx(
42933
42934
  f4,
@@ -42935,7 +42936,7 @@ Check the top-level render call using <` + t + ">.");
42935
42936
  countries:w,
42936
42937
  selectedCountry:L.iso2,
42937
42938
  onSelect:K,
42938
- disabled:C}),
42939
+ disabled:g}),
42939
42940
 
42940
42941
 
42941
42942
  /* @__PURE__ */jsxRuntime.exports.jsx(
@@ -42943,8 +42944,8 @@ Check the top-level render call using <` + t + ">.");
42943
42944
  {
42944
42945
  type:"tel",
42945
42946
  value:V,
42946
- placeholder:C?void 0:m,
42947
- disabled:C,
42947
+ placeholder:g?void 0:m,
42948
+ disabled:g,
42948
42949
  className:go$1(
42949
42950
  "px-3.5 py-2.5",
42950
42951
  "h-[38px] min-h-[38px] rounded-lg gap-2 w-full border-box",
@@ -43091,16 +43092,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43091
43092
  }
43092
43093
  var x4=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];
43093
43094
  function y4(t){
43094
- var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,a=r===void 0?!1:r,i=t.defaultValue,o=i===void 0?null:i,l=t.inputValue,s=t.menuIsOpen,c=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,C=t.value,m=Et(t,x4),h=React.useState(l!==void 0?l:n),b=Vt(h,2),g=b[0],v=b[1],w=React.useState(s!==void 0?s:a),y=Vt(w,2),I=y[0],M=y[1],V=React.useState(C!==void 0?C:o),H=Vt(V,2),S=H[0],L=H[1],O=React.useCallback(function(T,D){
43095
+ var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,a=r===void 0?!1:r,i=t.defaultValue,o=i===void 0?null:i,l=t.inputValue,s=t.menuIsOpen,c=t.onChange,d=t.onInputChange,f=t.onMenuClose,C=t.onMenuOpen,g=t.value,m=Et(t,x4),h=React.useState(l!==void 0?l:n),p=Vt(h,2),b=p[0],v=p[1],w=React.useState(s!==void 0?s:a),I=Vt(w,2),y=I[0],M=I[1],V=React.useState(g!==void 0?g:o),H=Vt(V,2),S=H[0],L=H[1],O=React.useCallback(function(T,D){
43095
43096
  typeof c=="function"&&c(T,D),L(T);
43096
43097
  },[c]),G=React.useCallback(function(T,D){
43097
43098
  var B;
43098
43099
  typeof d=="function"&&(B=d(T,D)),v(B!==void 0?B:T);
43099
43100
  },[d]),K=React.useCallback(function(){
43100
- typeof p=="function"&&p(),M(!0);
43101
- },[p]),k=React.useCallback(function(){
43101
+ typeof C=="function"&&C(),M(!0);
43102
+ },[C]),k=React.useCallback(function(){
43102
43103
  typeof f=="function"&&f(),M(!1);
43103
- },[f]),j=l!==void 0?l:g,R=s!==void 0?s:I,F=C!==void 0?C:S;
43104
+ },[f]),j=l!==void 0?l:b,R=s!==void 0?s:y,F=g!==void 0?g:S;
43104
43105
  return z(z({},m),{},{
43105
43106
  inputValue:j,
43106
43107
  menuIsOpen:R,
@@ -43382,11 +43383,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43382
43383
  return Bi(nr("",null,null,null,[""],t=Zi(t),0,[0],t));
43383
43384
  }
43384
43385
  function nr(t,e,n,r,a,i,o,l,s){
43385
- for(var c=0,d=0,f=o,p=0,C=0,m=0,h=1,b=1,g=1,v=0,w="",y=a,I=i,M=r,V=w;b;)
43386
+ for(var c=0,d=0,f=o,C=0,g=0,m=0,h=1,p=1,b=1,v=0,w="",I=a,y=i,M=r,V=w;p;)
43386
43387
  switch(m=v,v=Qe()){
43387
43388
  case 40:
43388
43389
  if(m!=108&&Be(V,f-1)==58){
43389
- jr(V+=de(tr(v),"&","&\f"),"&\f")!=-1&&(g=-1);
43390
+ jr(V+=de(tr(v),"&","&\f"),"&\f")!=-1&&(b=-1);
43390
43391
  break;
43391
43392
  }
43392
43393
  case 34:
@@ -43414,39 +43415,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43414
43415
 
43415
43416
  break;
43416
43417
  case 123*h:
43417
- l[c++]=ft(V)*g;
43418
+ l[c++]=ft(V)*b;
43418
43419
  case 125*h:
43419
43420
  case 59:
43420
43421
  case 0:
43421
43422
  switch(v){
43422
43423
  case 0:
43423
43424
  case 125:
43424
- b=0;
43425
+ p=0;
43425
43426
  case 59+d:
43426
- g==-1&&(V=de(V,/\f/g,"")),C>0&&ft(V)-f&&_n(C>32?Q1(V+";",r,n,f-1):Q1(de(V," ","")+";",r,n,f-2),s);
43427
+ b==-1&&(V=de(V,/\f/g,"")),g>0&&ft(V)-f&&_n(g>32?Q1(V+";",r,n,f-1):Q1(de(V," ","")+";",r,n,f-2),s);
43427
43428
  break;
43428
43429
  case 59:
43429
43430
  V+=";";
43430
43431
  default:
43431
- if(_n(M=U1(V,e,n,c,d,a,l,w,y=[],I=[],f),i),v===123)
43432
+ if(_n(M=U1(V,e,n,c,d,a,l,w,I=[],y=[],f),i),v===123)
43432
43433
  if(d===0)
43433
- nr(V,e,M,M,y,i,f,l,I);else
43434
+ nr(V,e,M,M,I,i,f,l,y);else
43434
43435
 
43435
- switch(p===99&&Be(V,3)===110?100:p){
43436
+ switch(C===99&&Be(V,3)===110?100:C){
43436
43437
  case 100:
43437
43438
  case 108:
43438
43439
  case 109:
43439
43440
  case 115:
43440
- nr(t,M,M,r&&_n(U1(t,M,M,0,0,a,l,w,a,y=[],f),I),a,I,f,l,r?y:I);
43441
+ nr(t,M,M,r&&_n(U1(t,M,M,0,0,a,l,w,a,I=[],f),y),a,y,f,l,r?I:y);
43441
43442
  break;
43442
43443
  default:
43443
- nr(V,M,M,M,[""],I,0,l,I);}}
43444
+ nr(V,M,M,M,[""],y,0,l,y);}}
43444
43445
 
43445
43446
 
43446
- c=d=C=0,h=g=1,w=V="",f=o;
43447
+ c=d=g=0,h=b=1,w=V="",f=o;
43447
43448
  break;
43448
43449
  case 58:
43449
- f=1+ft(V),C=m;
43450
+ f=1+ft(V),g=m;
43450
43451
  default:
43451
43452
  if(h<1){
43452
43453
  if(v==123)
@@ -43456,13 +43457,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43456
43457
  }
43457
43458
  switch(V+=br(v),v*h){
43458
43459
  case 38:
43459
- g=d>0?1:(V+="\f",-1);
43460
+ b=d>0?1:(V+="\f",-1);
43460
43461
  break;
43461
43462
  case 44:
43462
- l[c++]=(ft(V)-1)*g,g=1;
43463
+ l[c++]=(ft(V)-1)*b,b=1;
43463
43464
  break;
43464
43465
  case 64:
43465
- gt()===45&&(V+=tr(Qe())),p=gt(),d=f=ft(w=V+=j4(er())),v++;
43466
+ gt()===45&&(V+=tr(Qe())),C=gt(),d=f=ft(w=V+=j4(er())),v++;
43466
43467
  break;
43467
43468
  case 45:
43468
43469
  m===45&&ft(V)==2&&(h=0);}}
@@ -43471,9 +43472,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43471
43472
  return i;
43472
43473
  }
43473
43474
  function U1(t,e,n,r,a,i,o,l,s,c,d){
43474
- for(var f=a-1,p=a===0?i:[""],C=g1(p),m=0,h=0,b=0;m<r;++m)
43475
- for(var g=0,v=Rn(t,f+1,f=F4(h=o[m])),w=t;g<C;++g)
43476
- (w=Di(h>0?p[g]+" "+v:de(v,/&\f/g,p[g])))&&(s[b++]=w);
43475
+ for(var f=a-1,C=a===0?i:[""],g=g1(C),m=0,h=0,p=0;m<r;++m)
43476
+ for(var b=0,v=Rn(t,f+1,f=F4(h=o[m])),w=t;b<g;++b)
43477
+ (w=Di(h>0?C[b]+" "+v:de(v,/&\f/g,C[b])))&&(s[p++]=w);
43477
43478
  return wr(t,e,n,a===0?m1:l,s,c,d);
43478
43479
  }
43479
43480
  function $4(t,e,n){
@@ -43714,8 +43715,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43714
43715
  if(n==="css"){
43715
43716
  var r=document.querySelectorAll("style[data-emotion]:not([data-s])");
43716
43717
  Array.prototype.forEach.call(r,function(h){
43717
- var b=h.getAttribute("data-emotion");
43718
- b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""));
43718
+ var p=h.getAttribute("data-emotion");
43719
+ p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""));
43719
43720
  });
43720
43721
  }
43721
43722
  var a=e.stylisPlugins||o5,i={},o,l=[];
@@ -43724,8 +43725,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43724
43725
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
43725
43726
  document.querySelectorAll('style[data-emotion^="'+n+' "]'),
43726
43727
  function(h){
43727
- for(var b=h.getAttribute("data-emotion").split(" "),g=1;g<b.length;g++)
43728
- i[b[g]]=!0;
43728
+ for(var p=h.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)
43729
+ i[p[b]]=!0;
43729
43730
  l.push(h);
43730
43731
  });
43731
43732
 
@@ -43733,11 +43734,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43733
43734
  {
43734
43735
  var d,f=[U4,K4(function(h){
43735
43736
  d.insert(h);
43736
- })],p=Q4(c.concat(a,f)),C=function(b){
43737
- return cn(_4(b),p);
43737
+ })],C=Q4(c.concat(a,f)),g=function(p){
43738
+ return cn(_4(p),C);
43738
43739
  };
43739
- s=function(b,g,v,w){
43740
- d=v,C(b?b+"{"+g.styles+"}":g.styles),w&&(m.inserted[g.name]=!0);
43740
+ s=function(p,b,v,w){
43741
+ d=v,g(p?p+"{"+b.styles+"}":b.styles),w&&(m.inserted[b.name]=!0);
43741
43742
  };
43742
43743
  }
43743
43744
  var m={
@@ -43769,28 +43770,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43769
43770
  function l5(){
43770
43771
  if(q1)return fe;
43771
43772
  q1=1;
43772
- var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;
43773
- function w(I){
43774
- if(typeof I=="object"&&I!==null){
43775
- var M=I.$$typeof;
43773
+ var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,C=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;
43774
+ function w(y){
43775
+ if(typeof y=="object"&&y!==null){
43776
+ var M=y.$$typeof;
43776
43777
  switch(M){
43777
43778
  case e:
43778
- switch(I=I.type,I){
43779
+ switch(y=y.type,y){
43779
43780
  case s:
43780
43781
  case c:
43781
43782
  case r:
43782
43783
  case i:
43783
43784
  case a:
43784
43785
  case f:
43785
- return I;
43786
+ return y;
43786
43787
  default:
43787
- switch(I=I&&I.$$typeof,I){
43788
+ switch(y=y&&y.$$typeof,y){
43788
43789
  case l:
43789
43790
  case d:
43790
43791
  case m:
43791
- case C:
43792
+ case g:
43792
43793
  case o:
43793
- return I;
43794
+ return y;
43794
43795
  default:
43795
43796
  return M;}}
43796
43797
 
@@ -43800,35 +43801,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43800
43801
 
43801
43802
  }
43802
43803
  }
43803
- function y(I){
43804
- return w(I)===c;
43805
- }
43806
- return fe.AsyncMode=s,fe.ConcurrentMode=c,fe.ContextConsumer=l,fe.ContextProvider=o,fe.Element=e,fe.ForwardRef=d,fe.Fragment=r,fe.Lazy=m,fe.Memo=C,fe.Portal=n,fe.Profiler=i,fe.StrictMode=a,fe.Suspense=f,fe.isAsyncMode=function(I){
43807
- return y(I)||w(I)===s;
43808
- },fe.isConcurrentMode=y,fe.isContextConsumer=function(I){
43809
- return w(I)===l;
43810
- },fe.isContextProvider=function(I){
43811
- return w(I)===o;
43812
- },fe.isElement=function(I){
43813
- return typeof I=="object"&&I!==null&&I.$$typeof===e;
43814
- },fe.isForwardRef=function(I){
43815
- return w(I)===d;
43816
- },fe.isFragment=function(I){
43817
- return w(I)===r;
43818
- },fe.isLazy=function(I){
43819
- return w(I)===m;
43820
- },fe.isMemo=function(I){
43821
- return w(I)===C;
43822
- },fe.isPortal=function(I){
43823
- return w(I)===n;
43824
- },fe.isProfiler=function(I){
43825
- return w(I)===i;
43826
- },fe.isStrictMode=function(I){
43827
- return w(I)===a;
43828
- },fe.isSuspense=function(I){
43829
- return w(I)===f;
43830
- },fe.isValidElementType=function(I){
43831
- return typeof I=="string"||typeof I=="function"||I===r||I===c||I===i||I===a||I===f||I===p||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===C||I.$$typeof===o||I.$$typeof===l||I.$$typeof===d||I.$$typeof===b||I.$$typeof===g||I.$$typeof===v||I.$$typeof===h);
43804
+ function I(y){
43805
+ return w(y)===c;
43806
+ }
43807
+ return fe.AsyncMode=s,fe.ConcurrentMode=c,fe.ContextConsumer=l,fe.ContextProvider=o,fe.Element=e,fe.ForwardRef=d,fe.Fragment=r,fe.Lazy=m,fe.Memo=g,fe.Portal=n,fe.Profiler=i,fe.StrictMode=a,fe.Suspense=f,fe.isAsyncMode=function(y){
43808
+ return I(y)||w(y)===s;
43809
+ },fe.isConcurrentMode=I,fe.isContextConsumer=function(y){
43810
+ return w(y)===l;
43811
+ },fe.isContextProvider=function(y){
43812
+ return w(y)===o;
43813
+ },fe.isElement=function(y){
43814
+ return typeof y=="object"&&y!==null&&y.$$typeof===e;
43815
+ },fe.isForwardRef=function(y){
43816
+ return w(y)===d;
43817
+ },fe.isFragment=function(y){
43818
+ return w(y)===r;
43819
+ },fe.isLazy=function(y){
43820
+ return w(y)===m;
43821
+ },fe.isMemo=function(y){
43822
+ return w(y)===g;
43823
+ },fe.isPortal=function(y){
43824
+ return w(y)===n;
43825
+ },fe.isProfiler=function(y){
43826
+ return w(y)===i;
43827
+ },fe.isStrictMode=function(y){
43828
+ return w(y)===a;
43829
+ },fe.isSuspense=function(y){
43830
+ return w(y)===f;
43831
+ },fe.isValidElementType=function(y){
43832
+ return typeof y=="string"||typeof y=="function"||y===r||y===c||y===i||y===a||y===f||y===C||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===g||y.$$typeof===o||y.$$typeof===l||y.$$typeof===d||y.$$typeof===p||y.$$typeof===b||y.$$typeof===v||y.$$typeof===h);
43832
43833
  },fe.typeOf=w,fe;
43833
43834
  }
43834
43835
  var me={};
@@ -43843,12 +43844,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43843
43844
  var ea;
43844
43845
  function c5(){
43845
43846
  return ea||(ea=1,process.env.NODE_ENV!=="production"&&function(){
43846
- var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;
43847
+ var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,C=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;
43847
43848
  function w(P){
43848
43849
  return typeof P=="string"||typeof P=="function"||// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
43849
- P===r||P===c||P===i||P===a||P===f||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===C||P.$$typeof===o||P.$$typeof===l||P.$$typeof===d||P.$$typeof===b||P.$$typeof===g||P.$$typeof===v||P.$$typeof===h);
43850
+ P===r||P===c||P===i||P===a||P===f||P===C||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===g||P.$$typeof===o||P.$$typeof===l||P.$$typeof===d||P.$$typeof===p||P.$$typeof===b||P.$$typeof===v||P.$$typeof===h);
43850
43851
  }
43851
- function y(P){
43852
+ function I(P){
43852
43853
  if(typeof P=="object"&&P!==null){
43853
43854
  var Ge=P.$$typeof;
43854
43855
  switch(Ge){
@@ -43868,7 +43869,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43868
43869
  case l:
43869
43870
  case d:
43870
43871
  case m:
43871
- case C:
43872
+ case g:
43872
43873
  case o:
43873
43874
  return Ne;
43874
43875
  default:
@@ -43880,47 +43881,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
43880
43881
 
43881
43882
  }
43882
43883
  }
43883
- var I=s,M=c,V=l,H=o,S=e,L=d,O=r,G=m,K=C,k=n,j=i,R=a,F=f,T=!1;
43884
+ var y=s,M=c,V=l,H=o,S=e,L=d,O=r,G=m,K=g,k=n,j=i,R=a,F=f,T=!1;
43884
43885
  function D(P){
43885
- return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(P)||y(P)===s;
43886
+ return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(P)||I(P)===s;
43886
43887
  }
43887
43888
  function B(P){
43888
- return y(P)===c;
43889
+ return I(P)===c;
43889
43890
  }
43890
43891
  function U(P){
43891
- return y(P)===l;
43892
+ return I(P)===l;
43892
43893
  }
43893
43894
  function Q(P){
43894
- return y(P)===o;
43895
+ return I(P)===o;
43895
43896
  }
43896
43897
  function le(P){
43897
43898
  return typeof P=="object"&&P!==null&&P.$$typeof===e;
43898
43899
  }
43899
43900
  function He(P){
43900
- return y(P)===d;
43901
+ return I(P)===d;
43901
43902
  }
43902
43903
  function Ae(P){
43903
- return y(P)===r;
43904
+ return I(P)===r;
43904
43905
  }
43905
43906
  function xe(P){
43906
- return y(P)===m;
43907
+ return I(P)===m;
43907
43908
  }
43908
43909
  function Se(P){
43909
- return y(P)===C;
43910
+ return I(P)===g;
43910
43911
  }
43911
43912
  function he(P){
43912
- return y(P)===n;
43913
+ return I(P)===n;
43913
43914
  }
43914
43915
  function We(P){
43915
- return y(P)===i;
43916
+ return I(P)===i;
43916
43917
  }
43917
43918
  function De(P){
43918
- return y(P)===a;
43919
+ return I(P)===a;
43919
43920
  }
43920
43921
  function ze(P){
43921
- return y(P)===f;
43922
+ return I(P)===f;
43922
43923
  }
43923
- me.AsyncMode=I,me.ConcurrentMode=M,me.ContextConsumer=V,me.ContextProvider=H,me.Element=S,me.ForwardRef=L,me.Fragment=O,me.Lazy=G,me.Memo=K,me.Portal=k,me.Profiler=j,me.StrictMode=R,me.Suspense=F,me.isAsyncMode=D,me.isConcurrentMode=B,me.isContextConsumer=U,me.isContextProvider=Q,me.isElement=le,me.isForwardRef=He,me.isFragment=Ae,me.isLazy=xe,me.isMemo=Se,me.isPortal=he,me.isProfiler=We,me.isStrictMode=De,me.isSuspense=ze,me.isValidElementType=w,me.typeOf=y;
43924
+ me.AsyncMode=y,me.ConcurrentMode=M,me.ContextConsumer=V,me.ContextProvider=H,me.Element=S,me.ForwardRef=L,me.Fragment=O,me.Lazy=G,me.Memo=K,me.Portal=k,me.Profiler=j,me.StrictMode=R,me.Suspense=F,me.isAsyncMode=D,me.isConcurrentMode=B,me.isContextConsumer=U,me.isContextProvider=Q,me.isElement=le,me.isForwardRef=He,me.isFragment=Ae,me.isLazy=xe,me.isMemo=Se,me.isPortal=he,me.isProfiler=We,me.isStrictMode=De,me.isSuspense=ze,me.isValidElementType=w,me.typeOf=I;
43924
43925
  }()),me;
43925
43926
  }
43926
43927
  process.env.NODE_ENV==="production"?$r.exports=l5():$r.exports=c5();
@@ -44380,11 +44381,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44380
44381
  const l=_5(i,n,r)?$i(i):Ct(0);
44381
44382
  let s=(a.left+l.x)/o.x,c=(a.top+l.y)/o.y,d=a.width/o.x,f=a.height/o.y;
44382
44383
  if(i){
44383
- const p=Ke(i),C=r&&ot(r)?Ke(r):r;
44384
- let m=p,h=qr(m);
44385
- for(;h&&r&&C!==m;){
44386
- const b=un(h),g=h.getBoundingClientRect(),v=st(h),w=g.left+(h.clientLeft+parseFloat(v.paddingLeft))*b.x,y=g.top+(h.clientTop+parseFloat(v.paddingTop))*b.y;
44387
- s*=b.x,c*=b.y,d*=b.x,f*=b.y,s+=w,c+=y,m=Ke(h),h=qr(m);
44384
+ const C=Ke(i),g=r&&ot(r)?Ke(r):r;
44385
+ let m=C,h=qr(m);
44386
+ for(;h&&r&&g!==m;){
44387
+ const p=un(h),b=h.getBoundingClientRect(),v=st(h),w=b.left+(h.clientLeft+parseFloat(v.paddingLeft))*p.x,I=b.top+(h.clientTop+parseFloat(v.paddingTop))*p.y;
44388
+ s*=p.x,c*=p.y,d*=p.x,f*=p.y,s+=w,c+=I,m=Ke(h),h=qr(m);
44388
44389
  }
44389
44390
  }
44390
44391
  return ur({
@@ -44410,35 +44411,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44410
44411
  const c=t.getBoundingClientRect(),{
44411
44412
  left:d,
44412
44413
  top:f,
44413
- width:p,
44414
- height:C}=
44414
+ width:C,
44415
+ height:g}=
44415
44416
  c;
44416
- if(l||e(),!p||!C)
44417
+ if(l||e(),!C||!g)
44417
44418
  return;
44418
- const m=$n(f),h=$n(a.clientWidth-(d+p)),b=$n(a.clientHeight-(f+C)),g=$n(d),w={
44419
- rootMargin:-m+"px "+-h+"px "+-b+"px "+-g+"px",
44419
+ const m=$n(f),h=$n(a.clientWidth-(d+C)),p=$n(a.clientHeight-(f+g)),b=$n(d),w={
44420
+ rootMargin:-m+"px "+-h+"px "+-p+"px "+-b+"px",
44420
44421
  threshold:_t(0,fn(1,s))||1};
44421
44422
 
44422
- let y=!0;
44423
- function I(M){
44423
+ let I=!0;
44424
+ function y(M){
44424
44425
  const V=M[0].intersectionRatio;
44425
44426
  if(V!==s){
44426
- if(!y)
44427
+ if(!I)
44427
44428
  return o();
44428
44429
  V?o(!1,V):r=setTimeout(()=>{
44429
44430
  o(!1,1e-7);
44430
44431
  },1e3);
44431
44432
  }
44432
- V===1&&!qi(c,t.getBoundingClientRect())&&o(),y=!1;
44433
+ V===1&&!qi(c,t.getBoundingClientRect())&&o(),I=!1;
44433
44434
  }
44434
44435
  try{
44435
- n=new IntersectionObserver(I,{
44436
+ n=new IntersectionObserver(y,{
44436
44437
  ...w,
44437
44438
  // Handle <iframe>s
44438
44439
  root:a.ownerDocument});
44439
44440
 
44440
44441
  }catch{
44441
- n=new IntersectionObserver(I,w);
44442
+ n=new IntersectionObserver(y,w);
44442
44443
  }
44443
44444
  n.observe(t);
44444
44445
  }
@@ -44453,31 +44454,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44453
44454
  layoutShift:l=typeof IntersectionObserver=="function",
44454
44455
  animationFrame:s=!1}=
44455
44456
  r,c=y1(t),d=a||i?[...(c?Gn(c):[]),...Gn(e)]:[];
44456
- d.forEach((g)=>{
44457
- a&&g.addEventListener("scroll",n,{
44457
+ d.forEach((b)=>{
44458
+ a&&b.addEventListener("scroll",n,{
44458
44459
  passive:!0}),
44459
- i&&g.addEventListener("resize",n);
44460
+ i&&b.addEventListener("resize",n);
44460
44461
  });
44461
44462
  const f=c&&l?s3(c,n):null;
44462
- let p=-1,C=null;
44463
- o&&(C=new ResizeObserver((g)=>{
44464
- let[v]=g;
44465
- v&&v.target===c&&C&&(C.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{
44463
+ let C=-1,g=null;
44464
+ o&&(g=new ResizeObserver((b)=>{
44465
+ let[v]=b;
44466
+ v&&v.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{
44466
44467
  var w;
44467
- (w=C)==null||w.observe(e);
44468
+ (w=g)==null||w.observe(e);
44468
44469
  })),n();
44469
- }),c&&!s&&C.observe(c),C.observe(e));
44470
+ }),c&&!s&&g.observe(c),g.observe(e));
44470
44471
  let m,h=s?Kt(t):null;
44471
- s&&b();
44472
- function b(){
44473
- const g=Kt(t);
44474
- h&&!qi(h,g)&&n(),h=g,m=requestAnimationFrame(b);
44472
+ s&&p();
44473
+ function p(){
44474
+ const b=Kt(t);
44475
+ h&&!qi(h,b)&&n(),h=b,m=requestAnimationFrame(p);
44475
44476
  }
44476
44477
  return n(),()=>{
44477
- var g;
44478
+ var b;
44478
44479
  d.forEach((v)=>{
44479
44480
  a&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n);
44480
- }),f==null||f(),(g=C)==null||g.disconnect(),C=null,s&&cancelAnimationFrame(m);
44481
+ }),f==null||f(),(b=g)==null||b.disconnect(),g=null,s&&cancelAnimationFrame(m);
44481
44482
  };
44482
44483
  }
44483
44484
  var e1=React.useLayoutEffect,f3=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],dr=function(){
@@ -44610,7 +44611,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44610
44611
  maxHeight:e};
44611
44612
 
44612
44613
  if(!n||!n.offsetParent)return c;
44613
- var d=s.getBoundingClientRect(),f=d.height,p=n.getBoundingClientRect(),C=p.bottom,m=p.height,h=p.top,b=n.offsetParent.getBoundingClientRect(),g=b.top,v=o?window.innerHeight:g3(s),w=no(s),y=parseInt(getComputedStyle(n).marginBottom,10),I=parseInt(getComputedStyle(n).marginTop,10),M=g-I,V=v-h,H=M+w,S=f-w-h,L=C-v+w+y,O=w+h-I,G=160;
44614
+ var d=s.getBoundingClientRect(),f=d.height,C=n.getBoundingClientRect(),g=C.bottom,m=C.height,h=C.top,p=n.offsetParent.getBoundingClientRect(),b=p.top,v=o?window.innerHeight:g3(s),w=no(s),I=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),M=b-y,V=v-h,H=M+w,S=f-w-h,L=g-v+w+I,O=w+h-y,G=160;
44614
44615
  switch(a){
44615
44616
  case"auto":
44616
44617
  case"bottom":
@@ -44626,7 +44627,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44626
44627
 
44627
44628
  if(!o&&S>=r||o&&V>=r){
44628
44629
  i&&Un(s,L,G);
44629
- var K=o?V-y:S-y;
44630
+ var K=o?V-I:S-I;
44630
44631
  return {
44631
44632
  placement:"bottom",
44632
44633
  maxHeight:K};
@@ -44634,7 +44635,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44634
44635
  }
44635
44636
  if(a==="auto"||o){
44636
44637
  var k=e,j=o?M:H;
44637
- return j>=r&&(k=Math.min(j-y-l,e)),{
44638
+ return j>=r&&(k=Math.min(j-I-l,e)),{
44638
44639
  placement:"top",
44639
44640
  maxHeight:k};
44640
44641
 
@@ -44658,7 +44659,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44658
44659
 
44659
44660
  if(!o&&H>=r||o&&M>=r){
44660
44661
  var R=e;
44661
- return (!o&&H>=r||o&&M>=r)&&(R=o?M-I:H-I),i&&Un(s,O,G),{
44662
+ return (!o&&H>=r||o&&M>=r)&&(R=o?M-y:H-y),i&&Un(s,O,G),{
44662
44663
  placement:"top",
44663
44664
  maxHeight:R};
44664
44665
 
@@ -44693,22 +44694,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44693
44694
  marginTop:l.menuGutter});
44694
44695
 
44695
44696
  },io=/* @__PURE__ */React.createContext(null),A3=function(e){
44696
- var n=e.children,r=e.minMenuHeight,a=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,c=React.useContext(io)||{},d=c.setPortalPlacement,f=React.useRef(null),p=React.useState(a),C=Vt(p,2),m=C[0],h=C[1],b=React.useState(null),g=Vt(b,2),v=g[0],w=g[1],y=s.spacing.controlHeight;
44697
+ var n=e.children,r=e.minMenuHeight,a=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,c=React.useContext(io)||{},d=c.setPortalPlacement,f=React.useRef(null),C=React.useState(a),g=Vt(C,2),m=g[0],h=g[1],p=React.useState(null),b=Vt(p,2),v=b[0],w=b[1],I=s.spacing.controlHeight;
44697
44698
  return e1(function(){
44698
- var I=f.current;
44699
- if(I){
44699
+ var y=f.current;
44700
+ if(y){
44700
44701
  var M=o==="fixed",V=l&&!M,H=N3({
44701
44702
  maxHeight:a,
44702
- menuEl:I,
44703
+ menuEl:y,
44703
44704
  minHeight:r,
44704
44705
  placement:i,
44705
44706
  shouldScroll:V,
44706
44707
  isFixedPosition:M,
44707
- controlHeight:y});
44708
+ controlHeight:I});
44708
44709
 
44709
44710
  h(H.maxHeight),w(H.placement),d==null||d(H.placement);
44710
44711
  }
44711
- },[a,i,o,l,r,d,y]),n({
44712
+ },[a,i,o,l,r,d,I]),n({
44712
44713
  ref:f,
44713
44714
  placerProps:z(z({},e),{},{
44714
44715
  placement:v||ao(i),
@@ -44778,40 +44779,40 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
44778
44779
  zIndex:1};
44779
44780
 
44780
44781
  },T3=function(e){
44781
- var n=e.appendTo,r=e.children,a=e.controlElement,i=e.innerProps,o=e.menuPlacement,l=e.menuPosition,s=React.useRef(null),c=React.useRef(null),d=React.useState(ao(o)),f=Vt(d,2),p=f[0],C=f[1],m=React.useMemo(function(){
44782
+ var n=e.appendTo,r=e.children,a=e.controlElement,i=e.innerProps,o=e.menuPlacement,l=e.menuPosition,s=React.useRef(null),c=React.useRef(null),d=React.useState(ao(o)),f=Vt(d,2),C=f[0],g=f[1],m=React.useMemo(function(){
44782
44783
  return {
44783
- setPortalPlacement:C};
44784
+ setPortalPlacement:g};
44784
44785
 
44785
- },[]),h=React.useState(null),b=Vt(h,2),g=b[0],v=b[1],w=React.useCallback(function(){
44786
+ },[]),h=React.useState(null),p=Vt(h,2),b=p[0],v=p[1],w=React.useCallback(function(){
44786
44787
  if(a){
44787
- var V=b3(a),H=l==="fixed"?0:window.pageYOffset,S=V[p]+H;
44788
- (S!==(g==null?void 0:g.offset)||V.left!==(g==null?void 0:g.rect.left)||V.width!==(g==null?void 0:g.rect.width))&&v({
44788
+ var V=b3(a),H=l==="fixed"?0:window.pageYOffset,S=V[C]+H;
44789
+ (S!==(b==null?void 0:b.offset)||V.left!==(b==null?void 0:b.rect.left)||V.width!==(b==null?void 0:b.rect.width))&&v({
44789
44790
  offset:S,
44790
44791
  rect:V});
44791
44792
 
44792
44793
  }
44793
- },[a,l,p,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);
44794
+ },[a,l,C,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);
44794
44795
  e1(function(){
44795
44796
  w();
44796
44797
  },[w]);
44797
- var y=React.useCallback(function(){
44798
+ var I=React.useCallback(function(){
44798
44799
  typeof c.current=="function"&&(c.current(),c.current=null),a&&s.current&&(c.current=eo(a,s.current,w,{
44799
44800
  elementResize:"ResizeObserver"in window}));
44800
44801
 
44801
44802
  },[a,w]);
44802
44803
  e1(function(){
44803
- y();
44804
- },[y]);
44805
- var I=React.useCallback(function(V){
44806
- s.current=V,y();
44807
- },[y]);
44808
- if(!n&&l!=="fixed"||!g)return null;
44804
+ I();
44805
+ },[I]);
44806
+ var y=React.useCallback(function(V){
44807
+ s.current=V,I();
44808
+ },[I]);
44809
+ if(!n&&l!=="fixed"||!b)return null;
44809
44810
  var M=W("div",Y({
44810
- ref:I},
44811
+ ref:y},
44811
44812
  Ve(z(z({},e),{},{
44812
- offset:g.offset,
44813
+ offset:b.offset,
44813
44814
  position:l,
44814
- rect:g.rect}),
44815
+ rect:b.rect}),
44815
44816
  "menuPortal",{
44816
44817
  "menu-portal":!0}),
44817
44818
  i),r);
@@ -45368,14 +45369,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45368
45369
 
45369
45370
  },
45370
45371
  onFocus:function(e){
45371
- var n=e.context,r=e.focused,a=e.options,i=e.label,o=i===void 0?"":i,l=e.selectValue,s=e.isDisabled,c=e.isSelected,d=e.isAppleDevice,f=function(h,b){
45372
- return h&&h.length?"".concat(h.indexOf(b)+1," of ").concat(h.length):"";
45372
+ var n=e.context,r=e.focused,a=e.options,i=e.label,o=i===void 0?"":i,l=e.selectValue,s=e.isDisabled,c=e.isSelected,d=e.isAppleDevice,f=function(h,p){
45373
+ return h&&h.length?"".concat(h.indexOf(p)+1," of ").concat(h.length):"";
45373
45374
  };
45374
45375
  if(n==="value"&&l)
45375
45376
  return "value ".concat(o," focused, ").concat(f(l,r),".");
45376
45377
  if(n==="menu"&&d){
45377
- var p=s?" disabled":"",C="".concat(c?" selected":"").concat(p);
45378
- return "".concat(o).concat(C,", ").concat(f(a,r),".");
45378
+ var C=s?" disabled":"",g="".concat(c?" selected":"").concat(C);
45379
+ return "".concat(o).concat(g,", ").concat(f(a,r),".");
45379
45380
  }
45380
45381
  return "";
45381
45382
  },
@@ -45384,14 +45385,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45384
45385
  return "".concat(r).concat(n?" for search term "+n:"",".");
45385
45386
  }},
45386
45387
  jf=function(e){
45387
- var n=e.ariaSelection,r=e.focusedOption,a=e.focusedValue,i=e.focusableOptions,o=e.isFocused,l=e.selectValue,s=e.selectProps,c=e.id,d=e.isAppleDevice,f=s.ariaLiveMessages,p=s.getOptionLabel,C=s.inputValue,m=s.isMulti,h=s.isOptionDisabled,b=s.isSearchable,g=s.menuIsOpen,v=s.options,w=s.screenReaderStatus,y=s.tabSelectsValue,I=s.isLoading,M=s["aria-label"],V=s["aria-live"],H=React.useMemo(function(){
45388
+ var n=e.ariaSelection,r=e.focusedOption,a=e.focusedValue,i=e.focusableOptions,o=e.isFocused,l=e.selectValue,s=e.selectProps,c=e.id,d=e.isAppleDevice,f=s.ariaLiveMessages,C=s.getOptionLabel,g=s.inputValue,m=s.isMulti,h=s.isOptionDisabled,p=s.isSearchable,b=s.menuIsOpen,v=s.options,w=s.screenReaderStatus,I=s.tabSelectsValue,y=s.isLoading,M=s["aria-label"],V=s["aria-live"],H=React.useMemo(function(){
45388
45389
  return z(z({},Jf),f||{});
45389
45390
  },[f]),S=React.useMemo(function(){
45390
45391
  var j="";
45391
45392
  if(n&&H.onChange){
45392
45393
  var R=n.option,F=n.options,T=n.removedValue,D=n.removedValues,B=n.value,U=function(he){
45393
45394
  return Array.isArray(he)?null:he;
45394
- },Q=T||R||U(B),le=Q?p(Q):"",He=F||D||void 0,Ae=He?He.map(p):[],xe=z({
45395
+ },Q=T||R||U(B),le=Q?C(Q):"",He=F||D||void 0,Ae=He?He.map(C):[],xe=z({
45395
45396
  // multiSelected items are usually items that have already been selected
45396
45397
  // or set by the user as a default value so we assume they are not disabled
45397
45398
  isDisabled:Q&&h(Q,l),
@@ -45401,12 +45402,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45401
45402
  j=H.onChange(xe);
45402
45403
  }
45403
45404
  return j;
45404
- },[n,H,h,l,p]),L=React.useMemo(function(){
45405
+ },[n,H,h,l,C]),L=React.useMemo(function(){
45405
45406
  var j="",R=r||a,F=!!(r&&l&&l.includes(r));
45406
45407
  if(R&&H.onFocus){
45407
45408
  var T={
45408
45409
  focused:R,
45409
- label:p(R),
45410
+ label:C(R),
45410
45411
  isDisabled:h(R,l),
45411
45412
  isSelected:F,
45412
45413
  options:i,
@@ -45417,34 +45418,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45417
45418
  j=H.onFocus(T);
45418
45419
  }
45419
45420
  return j;
45420
- },[r,a,p,h,H,i,l,d]),O=React.useMemo(function(){
45421
+ },[r,a,C,h,H,i,l,d]),O=React.useMemo(function(){
45421
45422
  var j="";
45422
- if(g&&v.length&&!I&&H.onFilter){
45423
+ if(b&&v.length&&!y&&H.onFilter){
45423
45424
  var R=w({
45424
45425
  count:i.length});
45425
45426
 
45426
45427
  j=H.onFilter({
45427
- inputValue:C,
45428
+ inputValue:g,
45428
45429
  resultsMessage:R});
45429
45430
 
45430
45431
  }
45431
45432
  return j;
45432
- },[i,C,g,H,v,w,I]),G=(n==null?void 0:n.action)==="initial-input-focus",K=React.useMemo(function(){
45433
+ },[i,g,b,H,v,w,y]),G=(n==null?void 0:n.action)==="initial-input-focus",K=React.useMemo(function(){
45433
45434
  var j="";
45434
45435
  if(H.guidance){
45435
- var R=a?"value":g?"menu":"input";
45436
+ var R=a?"value":b?"menu":"input";
45436
45437
  j=H.guidance({
45437
45438
  "aria-label":M,
45438
45439
  context:R,
45439
45440
  isDisabled:r&&h(r,l),
45440
45441
  isMulti:m,
45441
- isSearchable:b,
45442
- tabSelectsValue:y,
45442
+ isSearchable:p,
45443
+ tabSelectsValue:I,
45443
45444
  isInitialFocus:G});
45444
45445
 
45445
45446
  }
45446
45447
  return j;
45447
- },[M,r,a,m,h,b,g,H,l,y,G]),k=W(React.Fragment,null,W("span",{
45448
+ },[M,r,a,m,h,p,b,H,l,I,G]),k=W(React.Fragment,null,W("span",{
45448
45449
  id:"aria-selection"},
45449
45450
  S),W("span",{
45450
45451
  id:"aria-focused"},
@@ -45772,37 +45773,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45772
45773
  e.cancelable&&e.preventDefault(),e.stopPropagation();
45773
45774
  };
45774
45775
  function n9(t){
45775
- var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,a=t.onTopArrive,i=t.onTopLeave,o=React.useRef(!1),l=React.useRef(!1),s=React.useRef(0),c=React.useRef(null),d=React.useCallback(function(b,g){
45776
+ var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,a=t.onTopArrive,i=t.onTopLeave,o=React.useRef(!1),l=React.useRef(!1),s=React.useRef(0),c=React.useRef(null),d=React.useCallback(function(p,b){
45776
45777
  if(c.current!==null){
45777
- var v=c.current,w=v.scrollTop,y=v.scrollHeight,I=v.clientHeight,M=c.current,V=g>0,H=y-I-w,S=!1;
45778
- H>g&&o.current&&(r&&r(b),o.current=!1),V&&l.current&&(i&&i(b),l.current=!1),V&&g>H?(n&&!o.current&&n(b),M.scrollTop=y,S=!0,o.current=!0):!V&&-g>w&&(a&&!l.current&&a(b),M.scrollTop=0,S=!0,l.current=!0),S&&t9(b);
45779
- }
45780
- },[n,r,a,i]),f=React.useCallback(function(b){
45781
- d(b,b.deltaY);
45782
- },[d]),p=React.useCallback(function(b){
45783
- s.current=b.changedTouches[0].clientY;
45784
- },[]),C=React.useCallback(function(b){
45785
- var g=s.current-b.changedTouches[0].clientY;
45786
- d(b,g);
45787
- },[d]),m=React.useCallback(function(b){
45788
- if(b){
45789
- var g=x3?{
45778
+ var v=c.current,w=v.scrollTop,I=v.scrollHeight,y=v.clientHeight,M=c.current,V=b>0,H=I-y-w,S=!1;
45779
+ H>b&&o.current&&(r&&r(p),o.current=!1),V&&l.current&&(i&&i(p),l.current=!1),V&&b>H?(n&&!o.current&&n(p),M.scrollTop=I,S=!0,o.current=!0):!V&&-b>w&&(a&&!l.current&&a(p),M.scrollTop=0,S=!0,l.current=!0),S&&t9(p);
45780
+ }
45781
+ },[n,r,a,i]),f=React.useCallback(function(p){
45782
+ d(p,p.deltaY);
45783
+ },[d]),C=React.useCallback(function(p){
45784
+ s.current=p.changedTouches[0].clientY;
45785
+ },[]),g=React.useCallback(function(p){
45786
+ var b=s.current-p.changedTouches[0].clientY;
45787
+ d(p,b);
45788
+ },[d]),m=React.useCallback(function(p){
45789
+ if(p){
45790
+ var b=x3?{
45790
45791
  passive:!1}:
45791
45792
  !1;
45792
- b.addEventListener("wheel",f,g),b.addEventListener("touchstart",p,g),b.addEventListener("touchmove",C,g);
45793
+ p.addEventListener("wheel",f,b),p.addEventListener("touchstart",C,b),p.addEventListener("touchmove",g,b);
45793
45794
  }
45794
- },[C,p,f]),h=React.useCallback(function(b){
45795
- b&&(b.removeEventListener("wheel",f,!1),b.removeEventListener("touchstart",p,!1),b.removeEventListener("touchmove",C,!1));
45796
- },[C,p,f]);
45795
+ },[g,C,f]),h=React.useCallback(function(p){
45796
+ p&&(p.removeEventListener("wheel",f,!1),p.removeEventListener("touchstart",C,!1),p.removeEventListener("touchmove",g,!1));
45797
+ },[g,C,f]);
45797
45798
  return React.useEffect(function(){
45798
45799
  if(e){
45799
- var b=c.current;
45800
- return m(b),function(){
45801
- h(b);
45800
+ var p=c.current;
45801
+ return m(p),function(){
45802
+ h(p);
45802
45803
  };
45803
45804
  }
45804
- },[e,m,h]),function(b){
45805
- c.current=b;
45805
+ },[e,m,h]),function(p){
45806
+ c.current=p;
45806
45807
  };
45807
45808
  }
45808
45809
  var Ca=["boxSizing","height","overflow","paddingRight","position"],pa={
@@ -45837,11 +45838,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45837
45838
  var h=d&&d[m];
45838
45839
  a.current[m]=h;
45839
45840
  }),r&&Hn<1){
45840
- var f=parseInt(a.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,C=window.innerWidth-p+f||0;
45841
+ var f=parseInt(a.current.paddingRight,10)||0,C=document.body?document.body.clientWidth:0,g=window.innerWidth-C+f||0;
45841
45842
  Object.keys(pa).forEach(function(m){
45842
45843
  var h=pa[m];
45843
45844
  d&&(d[m]=h);
45844
- }),d&&(d.paddingRight="".concat(C,"px"));
45845
+ }),d&&(d.paddingRight="".concat(g,"px"));
45845
45846
  }
45846
45847
  c&&xa()&&(c.addEventListener("touchmove",ba,rn),s&&(s.addEventListener("touchstart",wa,rn),s.addEventListener("touchmove",va,rn))),Hn+=1;
45847
45848
  }
@@ -45849,8 +45850,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45849
45850
  if(ya){
45850
45851
  var c=document.body,d=c&&c.style;
45851
45852
  Hn=Math.max(Hn-1,0),r&&Hn<1&&Ca.forEach(function(f){
45852
- var p=a.current[f];
45853
- d&&(d[f]=p);
45853
+ var C=a.current[f];
45854
+ d&&(d[f]=C);
45854
45855
  }),c&&xa()&&(c.removeEventListener("touchmove",ba,rn),s&&(s.removeEventListener("touchstart",wa,rn),s.removeEventListener("touchmove",va,rn)));
45855
45856
  }
45856
45857
  },[r]);
@@ -45889,8 +45890,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45889
45890
  onTopLeave:s}),
45890
45891
  d=r9({
45891
45892
  isEnabled:n}),
45892
- f=function(C){
45893
- c(C),d(C);
45893
+ f=function(g){
45894
+ c(g),d(g);
45894
45895
  };
45895
45896
  return W(React.Fragment,null,n&&W("div",{
45896
45897
  onClick:i9,
@@ -46180,15 +46181,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46180
46181
  },a.inputRef=null,a.getInputRef=function(s){
46181
46182
  a.inputRef=s;
46182
46183
  },a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(s,c){
46183
- var d=a.props,f=d.onChange,p=d.name;
46184
- c.name=p,a.ariaOnChange(s,c),f(s,c);
46184
+ var d=a.props,f=d.onChange,C=d.name;
46185
+ c.name=C,a.ariaOnChange(s,c),f(s,c);
46185
46186
  },a.setValue=function(s,c,d){
46186
- var f=a.props,p=f.closeMenuOnSelect,C=f.isMulti,m=f.inputValue;
46187
+ var f=a.props,C=f.closeMenuOnSelect,g=f.isMulti,m=f.inputValue;
46187
46188
  a.onInputChange("",{
46188
46189
  action:"set-value",
46189
46190
  prevInputValue:m}),
46190
- p&&(a.setState({
46191
- inputIsHiddenAfterUpdate:!C}),
46191
+ C&&(a.setState({
46192
+ inputIsHiddenAfterUpdate:!g}),
46192
46193
  a.onMenuClose()),a.setState({
46193
46194
  clearFocusValueOnUpdate:!0}),
46194
46195
  a.onChange(s,{
@@ -46196,28 +46197,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46196
46197
  option:d});
46197
46198
 
46198
46199
  },a.selectOption=function(s){
46199
- var c=a.props,d=c.blurInputOnSelect,f=c.isMulti,p=c.name,C=a.state.selectValue,m=f&&a.isOptionSelected(s,C),h=a.isOptionDisabled(s,C);
46200
+ var c=a.props,d=c.blurInputOnSelect,f=c.isMulti,C=c.name,g=a.state.selectValue,m=f&&a.isOptionSelected(s,g),h=a.isOptionDisabled(s,g);
46200
46201
  if(m){
46201
- var b=a.getOptionValue(s);
46202
- a.setValue(C.filter(function(g){
46203
- return a.getOptionValue(g)!==b;
46202
+ var p=a.getOptionValue(s);
46203
+ a.setValue(g.filter(function(b){
46204
+ return a.getOptionValue(b)!==p;
46204
46205
  }),"deselect-option",s);
46205
46206
  }else if(!h)
46206
- f?a.setValue([].concat(f1(C),[s]),"select-option",s):a.setValue(s,"select-option");else
46207
+ f?a.setValue([].concat(f1(g),[s]),"select-option",s):a.setValue(s,"select-option");else
46207
46208
  {
46208
46209
  a.ariaOnChange(s,{
46209
46210
  action:"select-option",
46210
46211
  option:s,
46211
- name:p});
46212
+ name:C});
46212
46213
 
46213
46214
  return;
46214
46215
  }
46215
46216
  d&&a.blurInput();
46216
46217
  },a.removeValue=function(s){
46217
- var c=a.props.isMulti,d=a.state.selectValue,f=a.getOptionValue(s),p=d.filter(function(m){
46218
+ var c=a.props.isMulti,d=a.state.selectValue,f=a.getOptionValue(s),C=d.filter(function(m){
46218
46219
  return a.getOptionValue(m)!==f;
46219
- }),C=Kn(c,p,p[0]||null);
46220
- a.onChange(C,{
46220
+ }),g=Kn(c,C,C[0]||null);
46221
+ a.onChange(g,{
46221
46222
  action:"remove-value",
46222
46223
  removedValue:s}),
46223
46224
  a.focusInput();
@@ -46228,8 +46229,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46228
46229
  removedValues:s});
46229
46230
 
46230
46231
  },a.popValue=function(){
46231
- var s=a.props.isMulti,c=a.state.selectValue,d=c[c.length-1],f=c.slice(0,c.length-1),p=Kn(s,f,f[0]||null);
46232
- d&&a.onChange(p,{
46232
+ var s=a.props.isMulti,c=a.state.selectValue,d=c[c.length-1],f=c.slice(0,c.length-1),C=Kn(s,f,f[0]||null);
46233
+ d&&a.onChange(C,{
46233
46234
  action:"pop-value",
46234
46235
  removedValue:d});
46235
46236
 
@@ -46250,8 +46251,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46250
46251
  },a.getStyles=function(s,c){
46251
46252
  var d=a.props.unstyled,f=w9[s](c,d);
46252
46253
  f.boxSizing="border-box";
46253
- var p=a.props.styles[s];
46254
- return p?p(f,c):f;
46254
+ var C=a.props.styles[s];
46255
+ return C?C(f,c):f;
46255
46256
  },a.getClassNames=function(s,c){
46256
46257
  var d,f;
46257
46258
  return (d=(f=a.props.classNames)[s])===null||d===void 0?void 0:d.call(f,c);
@@ -46305,8 +46306,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46305
46306
  },a.onTouchMove=function(s){
46306
46307
  var c=s.touches,d=c&&c.item(0);
46307
46308
  if(d){
46308
- var f=Math.abs(d.clientX-a.initialTouchX),p=Math.abs(d.clientY-a.initialTouchY),C=5;
46309
- a.userIsDragging=f>C||p>C;
46309
+ var f=Math.abs(d.clientX-a.initialTouchX),C=Math.abs(d.clientY-a.initialTouchY),g=5;
46310
+ a.userIsDragging=f>g||C>g;
46310
46311
  }
46311
46312
  },a.onTouchEnd=function(s){
46312
46313
  a.userIsDragging||(a.controlRef&&!a.controlRef.contains(s.target)&&a.menuListRef&&!a.menuListRef.contains(s.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0);
@@ -46355,20 +46356,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46355
46356
  },a.onValueInputFocus=function(s){
46356
46357
  s.preventDefault(),s.stopPropagation(),a.focus();
46357
46358
  },a.onKeyDown=function(s){
46358
- var c=a.props,d=c.isMulti,f=c.backspaceRemovesValue,p=c.escapeClearsValue,C=c.inputValue,m=c.isClearable,h=c.isDisabled,b=c.menuIsOpen,g=c.onKeyDown,v=c.tabSelectsValue,w=c.openMenuOnFocus,y=a.state,I=y.focusedOption,M=y.focusedValue,V=y.selectValue;
46359
- if(!h&&!(typeof g=="function"&&(g(s),s.defaultPrevented))){
46359
+ var c=a.props,d=c.isMulti,f=c.backspaceRemovesValue,C=c.escapeClearsValue,g=c.inputValue,m=c.isClearable,h=c.isDisabled,p=c.menuIsOpen,b=c.onKeyDown,v=c.tabSelectsValue,w=c.openMenuOnFocus,I=a.state,y=I.focusedOption,M=I.focusedValue,V=I.selectValue;
46360
+ if(!h&&!(typeof b=="function"&&(b(s),s.defaultPrevented))){
46360
46361
  switch(a.blockOptionHover=!0,s.key){
46361
46362
  case"ArrowLeft":
46362
- if(!d||C)return;
46363
+ if(!d||g)return;
46363
46364
  a.focusValue("previous");
46364
46365
  break;
46365
46366
  case"ArrowRight":
46366
- if(!d||C)return;
46367
+ if(!d||g)return;
46367
46368
  a.focusValue("next");
46368
46369
  break;
46369
46370
  case"Delete":
46370
46371
  case"Backspace":
46371
- if(C)return;
46372
+ if(g)return;
46372
46373
  if(M)
46373
46374
  a.removeValue(M);else
46374
46375
  {
@@ -46377,59 +46378,59 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46377
46378
  }
46378
46379
  break;
46379
46380
  case"Tab":
46380
- if(a.isComposing||s.shiftKey||!b||!v||!I||// don't capture the event if the menu opens on focus and the focused
46381
+ if(a.isComposing||s.shiftKey||!p||!v||!y||// don't capture the event if the menu opens on focus and the focused
46381
46382
  // option is already selected; it breaks the flow of navigation
46382
- w&&a.isOptionSelected(I,V))
46383
+ w&&a.isOptionSelected(y,V))
46383
46384
  return;
46384
- a.selectOption(I);
46385
+ a.selectOption(y);
46385
46386
  break;
46386
46387
  case"Enter":
46387
46388
  if(s.keyCode===229)
46388
46389
  break;
46389
- if(b){
46390
- if(!I||a.isComposing)return;
46391
- a.selectOption(I);
46390
+ if(p){
46391
+ if(!y||a.isComposing)return;
46392
+ a.selectOption(y);
46392
46393
  break;
46393
46394
  }
46394
46395
  return;
46395
46396
  case"Escape":
46396
- b?(a.setState({
46397
+ p?(a.setState({
46397
46398
  inputIsHiddenAfterUpdate:!1}),
46398
46399
  a.onInputChange("",{
46399
46400
  action:"menu-close",
46400
- prevInputValue:C}),
46401
- a.onMenuClose()):m&&p&&a.clearValue();
46401
+ prevInputValue:g}),
46402
+ a.onMenuClose()):m&&C&&a.clearValue();
46402
46403
  break;
46403
46404
  case" ":
46404
- if(C)
46405
+ if(g)
46405
46406
  return;
46406
- if(!b){
46407
+ if(!p){
46407
46408
  a.openMenu("first");
46408
46409
  break;
46409
46410
  }
46410
- if(!I)return;
46411
- a.selectOption(I);
46411
+ if(!y)return;
46412
+ a.selectOption(y);
46412
46413
  break;
46413
46414
  case"ArrowUp":
46414
- b?a.focusOption("up"):a.openMenu("last");
46415
+ p?a.focusOption("up"):a.openMenu("last");
46415
46416
  break;
46416
46417
  case"ArrowDown":
46417
- b?a.focusOption("down"):a.openMenu("first");
46418
+ p?a.focusOption("down"):a.openMenu("first");
46418
46419
  break;
46419
46420
  case"PageUp":
46420
- if(!b)return;
46421
+ if(!p)return;
46421
46422
  a.focusOption("pageup");
46422
46423
  break;
46423
46424
  case"PageDown":
46424
- if(!b)return;
46425
+ if(!p)return;
46425
46426
  a.focusOption("pagedown");
46426
46427
  break;
46427
46428
  case"Home":
46428
- if(!b)return;
46429
+ if(!p)return;
46429
46430
  a.focusOption("first");
46430
46431
  break;
46431
46432
  case"End":
46432
- if(!b)return;
46433
+ if(!p)return;
46433
46434
  a.focusOption("last");
46434
46435
  break;
46435
46436
  default:
@@ -46570,7 +46571,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46570
46571
  {
46571
46572
  key:"getCommonProps",
46572
46573
  value:function(){
46573
- var a=this.clearValue,i=this.cx,o=this.getStyles,l=this.getClassNames,s=this.getValue,c=this.selectOption,d=this.setValue,f=this.props,p=f.isMulti,C=f.isRtl,m=f.options,h=this.hasValue();
46574
+ var a=this.clearValue,i=this.cx,o=this.getStyles,l=this.getClassNames,s=this.getValue,c=this.selectOption,d=this.setValue,f=this.props,C=f.isMulti,g=f.isRtl,m=f.options,h=this.hasValue();
46574
46575
  return {
46575
46576
  clearValue:a,
46576
46577
  cx:i,
@@ -46578,8 +46579,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46578
46579
  getClassNames:l,
46579
46580
  getValue:s,
46580
46581
  hasValue:h,
46581
- isMulti:p,
46582
- isRtl:C,
46582
+ isMulti:C,
46583
+ isRtl:g,
46583
46584
  options:m,
46584
46585
  selectOption:c,
46585
46586
  selectProps:f,
@@ -46677,7 +46678,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46677
46678
  // Renderers
46678
46679
  // ==============================
46679
46680
  function(){
46680
- var a=this.props,i=a.isDisabled,o=a.isSearchable,l=a.inputId,s=a.inputValue,c=a.tabIndex,d=a.form,f=a.menuIsOpen,p=a.required,C=this.getComponents(),m=C.Input,h=this.state,b=h.inputIsHidden,g=h.ariaSelection,v=this.commonProps,w=l||this.getElementId("input"),y=z(z(z({
46681
+ var a=this.props,i=a.isDisabled,o=a.isSearchable,l=a.inputId,s=a.inputValue,c=a.tabIndex,d=a.form,f=a.menuIsOpen,C=a.required,g=this.getComponents(),m=g.Input,h=this.state,p=h.inputIsHidden,b=h.ariaSelection,v=this.commonProps,w=l||this.getElementId("input"),I=z(z(z({
46681
46682
  "aria-autocomplete":"list",
46682
46683
  "aria-expanded":f,
46683
46684
  "aria-haspopup":!0,
@@ -46685,14 +46686,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46685
46686
  "aria-invalid":this.props["aria-invalid"],
46686
46687
  "aria-label":this.props["aria-label"],
46687
46688
  "aria-labelledby":this.props["aria-labelledby"],
46688
- "aria-required":p,
46689
+ "aria-required":C,
46689
46690
  role:"combobox",
46690
46691
  "aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},
46691
46692
  f&&{
46692
46693
  "aria-controls":this.getElementId("listbox")}),
46693
46694
  !o&&{
46694
46695
  "aria-readonly":!0}),
46695
- this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{
46696
+ this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{
46696
46697
  "aria-describedby":this.getElementId("live-region")}:
46697
46698
  {
46698
46699
  "aria-describedby":this.getElementId("placeholder")});
@@ -46704,7 +46705,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46704
46705
  id:w,
46705
46706
  innerRef:this.getInputRef,
46706
46707
  isDisabled:i,
46707
- isHidden:b,
46708
+ isHidden:p,
46708
46709
  onBlur:this.onInputBlur,
46709
46710
  onChange:this.handleInputChange,
46710
46711
  onFocus:this.onInputFocus,
@@ -46713,7 +46714,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46713
46714
  form:d,
46714
46715
  type:"text",
46715
46716
  value:s},
46716
- y)):/* @__PURE__ */React__namespace.createElement(e9,Y({
46717
+ I)):/* @__PURE__ */React__namespace.createElement(e9,Y({
46717
46718
  id:w,
46718
46719
  innerRef:this.getInputRef,
46719
46720
  onBlur:this.onInputBlur,
@@ -46724,15 +46725,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46724
46725
  inputMode:"none",
46725
46726
  form:d,
46726
46727
  value:""},
46727
- y));
46728
+ I));
46728
46729
  }},
46729
46730
 
46730
46731
  {
46731
46732
  key:"renderPlaceholderOrValue",
46732
46733
  value:function(){
46733
- var a=this,i=this.getComponents(),o=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,c=i.MultiValueRemove,d=i.SingleValue,f=i.Placeholder,p=this.commonProps,C=this.props,m=C.controlShouldRenderValue,h=C.isDisabled,b=C.isMulti,g=C.inputValue,v=C.placeholder,w=this.state,y=w.selectValue,I=w.focusedValue,M=w.isFocused;
46734
+ var a=this,i=this.getComponents(),o=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,c=i.MultiValueRemove,d=i.SingleValue,f=i.Placeholder,C=this.commonProps,g=this.props,m=g.controlShouldRenderValue,h=g.isDisabled,p=g.isMulti,b=g.inputValue,v=g.placeholder,w=this.state,I=w.selectValue,y=w.focusedValue,M=w.isFocused;
46734
46735
  if(!this.hasValue()||!m)
46735
- return g?null:/* @__PURE__ */React__namespace.createElement(f,Y({},p,{
46736
+ return b?null:/* @__PURE__ */React__namespace.createElement(f,Y({},C,{
46736
46737
  key:"placeholder",
46737
46738
  isDisabled:h,
46738
46739
  isFocused:M,
@@ -46740,10 +46741,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46740
46741
  id:this.getElementId("placeholder")}}),
46741
46742
 
46742
46743
  v);
46743
- if(b)
46744
- return y.map(function(H,S){
46745
- var L=H===I,O="".concat(a.getOptionLabel(H),"-").concat(a.getOptionValue(H));
46746
- return/* @__PURE__ */React__namespace.createElement(o,Y({},p,{
46744
+ if(p)
46745
+ return I.map(function(H,S){
46746
+ var L=H===y,O="".concat(a.getOptionLabel(H),"-").concat(a.getOptionValue(H));
46747
+ return/* @__PURE__ */React__namespace.createElement(o,Y({},C,{
46747
46748
  components:{
46748
46749
  Container:l,
46749
46750
  Label:s,
@@ -46767,10 +46768,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46767
46768
  data:H}),
46768
46769
  a.formatOptionLabel(H,"value"));
46769
46770
  });
46770
- if(g)
46771
+ if(b)
46771
46772
  return null;
46772
- var V=y[0];
46773
- return/* @__PURE__ */React__namespace.createElement(d,Y({},p,{
46773
+ var V=I[0];
46774
+ return/* @__PURE__ */React__namespace.createElement(d,Y({},C,{
46774
46775
  data:V,
46775
46776
  isDisabled:h}),
46776
46777
  this.formatOptionLabel(V,"value"));
@@ -46835,7 +46836,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46835
46836
  {
46836
46837
  key:"renderMenu",
46837
46838
  value:function(){
46838
- var a=this,i=this.getComponents(),o=i.Group,l=i.GroupHeading,s=i.Menu,c=i.MenuList,d=i.MenuPortal,f=i.LoadingMessage,p=i.NoOptionsMessage,C=i.Option,m=this.commonProps,h=this.state.focusedOption,b=this.props,g=b.captureMenuScroll,v=b.inputValue,w=b.isLoading,y=b.loadingMessage,I=b.minMenuHeight,M=b.maxMenuHeight,V=b.menuIsOpen,H=b.menuPlacement,S=b.menuPosition,L=b.menuPortalTarget,O=b.menuShouldBlockScroll,G=b.menuShouldScrollIntoView,K=b.noOptionsMessage,k=b.onMenuScrollToTop,j=b.onMenuScrollToBottom;
46839
+ var a=this,i=this.getComponents(),o=i.Group,l=i.GroupHeading,s=i.Menu,c=i.MenuList,d=i.MenuPortal,f=i.LoadingMessage,C=i.NoOptionsMessage,g=i.Option,m=this.commonProps,h=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,v=p.inputValue,w=p.isLoading,I=p.loadingMessage,y=p.minMenuHeight,M=p.maxMenuHeight,V=p.menuIsOpen,H=p.menuPlacement,S=p.menuPosition,L=p.menuPortalTarget,O=p.menuShouldBlockScroll,G=p.menuShouldScrollIntoView,K=p.noOptionsMessage,k=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;
46839
46840
  if(!V)return null;
46840
46841
  var R=function(le,He){
46841
46842
  var Ae=le.type,xe=le.data,Se=le.isDisabled,he=le.isSelected,We=le.label,De=le.value,ze=h===xe,P=Se?void 0:function(){
@@ -46852,7 +46853,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46852
46853
  "aria-selected":a.isAppleDevice?void 0:he
46853
46854
  // is not supported on Apple devices
46854
46855
  };
46855
- return/* @__PURE__ */React__namespace.createElement(C,Y({},m,{
46856
+ return/* @__PURE__ */React__namespace.createElement(g,Y({},m,{
46856
46857
  innerProps:Ne,
46857
46858
  data:xe,
46858
46859
  isDisabled:Se,
@@ -46886,7 +46887,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46886
46887
  return R(Q,"".concat(Q.index));
46887
46888
  });else
46888
46889
  if(w){
46889
- var T=y({
46890
+ var T=I({
46890
46891
  inputValue:v});
46891
46892
 
46892
46893
  if(T===null)return null;
@@ -46896,10 +46897,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46896
46897
  inputValue:v});
46897
46898
 
46898
46899
  if(D===null)return null;
46899
- F=/* @__PURE__ */React__namespace.createElement(p,m,D);
46900
+ F=/* @__PURE__ */React__namespace.createElement(C,m,D);
46900
46901
  }
46901
46902
  var B={
46902
- minMenuHeight:I,
46903
+ minMenuHeight:y,
46903
46904
  maxMenuHeight:M,
46904
46905
  menuPlacement:H,
46905
46906
  menuPosition:S,
@@ -46915,7 +46916,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46915
46916
  isLoading:w,
46916
46917
  placement:Ae}),
46917
46918
  /* @__PURE__ */React__namespace.createElement(s9,{
46918
- captureEnabled:g,
46919
+ captureEnabled:b,
46919
46920
  onTopArrive:k,
46920
46921
  onBottomArrive:j,
46921
46922
  lockEnabled:O},
@@ -46954,18 +46955,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46954
46955
  if(!(!c||l))
46955
46956
  if(s){
46956
46957
  if(o){
46957
- var p=f.map(function(h){
46958
+ var C=f.map(function(h){
46958
46959
  return a.getOptionValue(h);
46959
46960
  }).join(o);
46960
46961
  return/* @__PURE__ */React__namespace.createElement("input",{
46961
46962
  name:c,
46962
46963
  type:"hidden",
46963
- value:p});
46964
+ value:C});
46964
46965
 
46965
46966
  }else {
46966
- var C=f.length>0?f.map(function(h,b){
46967
+ var g=f.length>0?f.map(function(h,p){
46967
46968
  return/* @__PURE__ */React__namespace.createElement("input",{
46968
- key:"i-".concat(b),
46969
+ key:"i-".concat(p),
46969
46970
  name:c,
46970
46971
  type:"hidden",
46971
46972
  value:a.getOptionValue(h)});
@@ -46975,7 +46976,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46975
46976
  type:"hidden",
46976
46977
  value:""});
46977
46978
 
46978
- return/* @__PURE__ */React__namespace.createElement("div",null,C);
46979
+ return/* @__PURE__ */React__namespace.createElement("div",null,g);
46979
46980
  }}else
46980
46981
  {
46981
46982
  var m=f[0]?this.getOptionValue(f[0]):"";
@@ -47004,14 +47005,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47004
47005
  {
47005
47006
  key:"render",
47006
47007
  value:function(){
47007
- var a=this.getComponents(),i=a.Control,o=a.IndicatorsContainer,l=a.SelectContainer,s=a.ValueContainer,c=this.props,d=c.className,f=c.id,p=c.isDisabled,C=c.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();
47008
+ var a=this.getComponents(),i=a.Control,o=a.IndicatorsContainer,l=a.SelectContainer,s=a.ValueContainer,c=this.props,d=c.className,f=c.id,C=c.isDisabled,g=c.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();
47008
47009
  return/* @__PURE__ */React__namespace.createElement(l,Y({},h,{
47009
47010
  className:d,
47010
47011
  innerProps:{
47011
47012
  id:f,
47012
47013
  onKeyDown:this.onKeyDown},
47013
47014
 
47014
- isDisabled:p,
47015
+ isDisabled:C,
47015
47016
  isFocused:m}),
47016
47017
  this.renderLiveRegion(),/* @__PURE__ */React__namespace.createElement(i,Y({},h,{
47017
47018
  innerRef:this.getControlRef,
@@ -47019,26 +47020,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47019
47020
  onMouseDown:this.onControlMouseDown,
47020
47021
  onTouchEnd:this.onControlTouchEnd},
47021
47022
 
47022
- isDisabled:p,
47023
+ isDisabled:C,
47023
47024
  isFocused:m,
47024
- menuIsOpen:C}),
47025
+ menuIsOpen:g}),
47025
47026
  /* @__PURE__ */React__namespace.createElement(s,Y({},h,{
47026
- isDisabled:p}),
47027
+ isDisabled:C}),
47027
47028
  this.renderPlaceholderOrValue(),this.renderInput()),/* @__PURE__ */React__namespace.createElement(o,Y({},h,{
47028
- isDisabled:p}),
47029
+ isDisabled:C}),
47029
47030
  this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField());
47030
47031
  }}],
47031
47032
  [{
47032
47033
  key:"getDerivedStateFromProps",
47033
47034
  value:function(a,i){
47034
- var o=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,d=i.isFocused,f=i.prevWasFocused,p=i.instancePrefix,C=a.options,m=a.value,h=a.menuIsOpen,b=a.inputValue,g=a.isMulti,v=ca(m),w={};
47035
- if(o&&(m!==o.value||C!==o.options||h!==o.menuIsOpen||b!==o.inputValue)){
47036
- var y=h?N9(a,v):[],I=h?Va(rr(a,v),"".concat(p,"-option")):[],M=l?E9(i,v):null,V=L9(i,y),H=Or(I,V);
47035
+ var o=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,d=i.isFocused,f=i.prevWasFocused,C=i.instancePrefix,g=a.options,m=a.value,h=a.menuIsOpen,p=a.inputValue,b=a.isMulti,v=ca(m),w={};
47036
+ if(o&&(m!==o.value||g!==o.options||h!==o.menuIsOpen||p!==o.inputValue)){
47037
+ var I=h?N9(a,v):[],y=h?Va(rr(a,v),"".concat(C,"-option")):[],M=l?E9(i,v):null,V=L9(i,I),H=Or(y,V);
47037
47038
  w={
47038
47039
  selectValue:v,
47039
47040
  focusedOption:V,
47040
47041
  focusedOptionId:H,
47041
- focusableOptionsWithIds:I,
47042
+ focusableOptionsWithIds:y,
47042
47043
  focusedValue:M,
47043
47044
  clearFocusValueOnUpdate:!1};
47044
47045
 
@@ -47048,7 +47049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47048
47049
  inputIsHiddenAfterUpdate:void 0}:
47049
47050
  {},L=c,O=d&&f;
47050
47051
  return d&&!O&&(L={
47051
- value:Kn(g,v,v[0]||null),
47052
+ value:Kn(b,v,v[0]||null),
47052
47053
  options:v,
47053
47054
  action:"initial-input-focus"},
47054
47055
  O=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(L=null),z(z(z({},w),S),{},{
@@ -47079,16 +47080,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47079
47080
  value:c=void 0,
47080
47081
  isClearable:d=!1,
47081
47082
  disabled:f=!1,
47082
- placeholder:p="Select...",
47083
- menuPosition:C="absolute",
47083
+ placeholder:C="Select...",
47084
+ menuPosition:g="absolute",
47084
47085
  menuShouldBlockScroll:m=!0,
47085
47086
  hasError:h=!1,
47086
- CustomOptionComponent:b=void 0,
47087
- SingleValueComponent:g=void 0,
47087
+ CustomOptionComponent:p=void 0,
47088
+ SingleValueComponent:b=void 0,
47088
47089
  labelClassName:v="",
47089
47090
  sublabel:w,
47090
- required:y=!1,
47091
- isOptionDisabled:I=void 0,
47091
+ required:I=!1,
47092
+ isOptionDisabled:y=void 0,
47092
47093
  helpText:M=void 0}=
47093
47094
  t,V=go$1(!o&&l&&"pl-5");
47094
47095
  if(!n&&!r)
@@ -47099,13 +47100,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47099
47100
  a&&a(L);
47100
47101
  };
47101
47102
  return/* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"flex flex-col",children:[
47102
- s&&/* @__PURE__ */jsxRuntime.exports.jsx(Cr,{label:s,sublabel:w,className:v,required:y}),
47103
+ s&&/* @__PURE__ */jsxRuntime.exports.jsx(Cr,{label:s,sublabel:w,className:v,required:I}),
47103
47104
  /* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"relative",children:[
47104
47105
  !o&&l&&/* @__PURE__ */jsxRuntime.exports.jsx("span",{className:"absolute z-10 left-2 top-2.5",children:/*#__PURE__*/React.cloneElement(l,{className:"fill-slate-500",size:16})}),
47105
47106
  /* @__PURE__ */jsxRuntime.exports.jsx(
47106
47107
  D9,
47107
47108
  {
47108
- placeholder:f?void 0:p,
47109
+ placeholder:f?void 0:C,
47109
47110
  options:e,
47110
47111
  onChange:H,
47111
47112
  onInputChange:S,
@@ -47114,12 +47115,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47114
47115
  isMulti:o,
47115
47116
  value:c,
47116
47117
  isDisabled:f,
47117
- menuPosition:C,
47118
+ menuPosition:g,
47118
47119
  menuShouldBlockScroll:m,
47119
- isOptionDisabled:I,
47120
+ isOptionDisabled:y,
47120
47121
  components:{
47121
- Option:({children:L,...O})=>/* @__PURE__ */jsxRuntime.exports.jsx(Ln.Option,{...O,children:b?b(O.data):L}),
47122
- SingleValue:({children:L,...O})=>/* @__PURE__ */jsxRuntime.exports.jsx(Ln.SingleValue,{...O,children:g?g(O.data):L}),
47122
+ Option:({children:L,...O})=>/* @__PURE__ */jsxRuntime.exports.jsx(Ln.Option,{...O,children:p?p(O.data):L}),
47123
+ SingleValue:({children:L,...O})=>/* @__PURE__ */jsxRuntime.exports.jsx(Ln.SingleValue,{...O,children:b?b(O.data):L}),
47123
47124
  ClearIndicator:(L)=>/* @__PURE__ */jsxRuntime.exports.jsx(Ln.ClearIndicator,{...L}),
47124
47125
  DropdownIndicator:(L)=>/* @__PURE__ */jsxRuntime.exports.jsx(Ln.DropdownIndicator,{...L})},
47125
47126
 
@@ -47205,7 +47206,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47205
47206
  variant:c,
47206
47207
  toggleSize:d,
47207
47208
  ...f}=
47208
- t,p=React__namespace.useId();
47209
+ t,C=React__namespace.useId();
47209
47210
  return/* @__PURE__ */jsxRuntime.exports.jsx("div",{children:/* @__PURE__ */jsxRuntime.exports.jsxs("div",{className:"flex gap-2 items-top",children:[
47210
47211
  /* @__PURE__ */jsxRuntime.exports.jsx(
47211
47212
  "input",
@@ -47227,13 +47228,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47227
47228
  disabled:a,
47228
47229
  type:"checkbox",
47229
47230
  onChange:l,
47230
- "aria-labelledby":p}),
47231
+ "aria-labelledby":C}),
47231
47232
 
47232
47233
 
47233
47234
  /* @__PURE__ */jsxRuntime.exports.jsxs(
47234
47235
  "span",
47235
47236
  {
47236
- id:p,
47237
+ id:C,
47237
47238
  className:go$1(
47238
47239
  "label-text text-slate-700 text-sm font-medium flex flex-col gap-2",
47239
47240
  s),
@@ -51475,7 +51476,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
51475
51476
 
51476
51477
  var SingleFileInputField = function (_a) {
51477
51478
  var _b, _c, _d, _e, _f;
51478
- var id = _a.id,label = _a.label,accept = _a.accept,error = _a.error,onChange = _a.onChange,onError = _a.onError,_g = _a.className,className = _g === void 0 ? '' : _g,dataCy = _a.dataCy,onFileUpload = _a.onFileUpload,configSlug = _a.configSlug,value = _a.value,mandatory = _a.mandatory,disabled = _a.disabled,_h = _a.maxFileSizeMb,maxFileSizeMb = _h === void 0 ? 30 : _h,capture = _a.capture;
51479
+ var id = _a.id,label = _a.label,accept = _a.accept,displayAccept = _a.displayAccept,error = _a.error,onChange = _a.onChange,onError = _a.onError,_g = _a.className,className = _g === void 0 ? '' : _g,dataCy = _a.dataCy,onFileUpload = _a.onFileUpload,configSlug = _a.configSlug,value = _a.value,mandatory = _a.mandatory,disabled = _a.disabled,_h = _a.maxFileSizeMb,maxFileSizeMb = _h === void 0 ? 30 : _h,capture = _a.capture;
51479
51480
  var _j = React.useState(!lodash.exports.isNil(value) && !lodash.exports.isEmpty(value) ?
51480
51481
  {
51481
51482
  id: (_b = value.filename) !== null && _b !== void 0 ? _b : 'untitled',
@@ -51595,7 +51596,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
51595
51596
  if (value && disabled === true) {
51596
51597
  return jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$9.file_input_field_container, " ").concat(className), "data-cy": dataCy }, { children: [label && jsxRuntime.exports.jsx(QuestionLabel, { htmlFor: id, label: label, mandatory: mandatory }), !value.url ? jsxRuntime.exports.jsx("div", { children: "No file uploaded" }) : jsxRuntime.exports.jsxs("div", __assign({ className: classes$9.read_only_file }, { children: [value.filename, " (", value.contentType, ")"] }))] }), id);
51597
51598
  }
51598
- return jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$9.file_input_field_container, " ").concat(className), "data-cy": dataCy }, { children: [label && jsxRuntime.exports.jsx(QuestionLabel, { htmlFor: id, label: label, mandatory: mandatory }), error && jsxRuntime.exports.jsx("div", __assign({ className: classes$9.error_message }, { children: error })), jsxRuntime.exports.jsx("div", __assign({ className: classes$9.file_upload_wrapper }, { children: jsxRuntime.exports.jsx(wm, { onChange: handleFilesChange, onError: onError, isMultiple: false, accept: accept, capture: capture, error: error, maxSizeMb: maxFileSizeMb }) })), selectedFile && jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes$9.file_list_wrapper, " ").concat(classes$9.custom_file_list_container) }, { children: jsxRuntime.exports.jsx(vm, { files: [selectedFile], onDelete: function () {return handleRemoveFile();}, generalProgress: selectedFile.progress !== undefined && selectedFile.progress < 100 ?
51599
+ return jsxRuntime.exports.jsxs("div", __assign({ className: "".concat(classes$9.file_input_field_container, " ").concat(className), "data-cy": dataCy }, { children: [label && jsxRuntime.exports.jsx(QuestionLabel, { htmlFor: id, label: label, mandatory: mandatory }), error && jsxRuntime.exports.jsx("div", __assign({ className: classes$9.error_message }, { children: error })), jsxRuntime.exports.jsx("div", __assign({ className: classes$9.file_upload_wrapper }, { children: jsxRuntime.exports.jsx(wm, { onChange: handleFilesChange, onError: onError, isMultiple: false, accept: accept, displayAccept: displayAccept, capture: capture, error: error, maxSizeMb: maxFileSizeMb }) })), selectedFile && jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes$9.file_list_wrapper, " ").concat(classes$9.custom_file_list_container) }, { children: jsxRuntime.exports.jsx(vm, { files: [selectedFile], onDelete: function () {return handleRemoveFile();}, generalProgress: selectedFile.progress !== undefined && selectedFile.progress < 100 ?
51599
51600
  selectedFile.progress :
51600
51601
  undefined }) }))] }), id);
51601
51602
  };
@@ -51860,17 +51861,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
51860
51861
 
51861
51862
  } },
51862
51863
  render: function (_a) {
51863
- var _b, _c, _d;
51864
- var _e = _a.field,onControllerChange = _e.onChange,onBlur = _e.onBlur,value = _e.value,fieldError = _a.fieldState.error;
51864
+ var _b, _c, _d, _e, _f;
51865
+ var _g = _a.field,onControllerChange = _g.onChange,onBlur = _g.onBlur,value = _g.value,fieldError = _a.fieldState.error;
51865
51866
  return jsxRuntime.exports.jsx(SingleFileInputField, { id: question.id, value: custom_json_parser(value, ''), onChange: function (attachment) {
51866
51867
  var attachmentValue = attachment ?
51867
51868
  JSON.stringify(attachment) :
51868
51869
  '';
51869
51870
  onControllerChange(attachmentValue);
51870
51871
  notifyAnswerChange(attachmentValue);
51871
- }, onBlur: onBlur, accept: [
51872
- "".concat(((_c = (_b = config === null || config === void 0 ? void 0 : config.file_storage) === null || _b === void 0 ? void 0 : _b.accepted_file_types) !== null && _c !== void 0 ? _c : ['image/*']).join(','), ";capture=camera")],
51873
- configSlug: (_d = config === null || config === void 0 ? void 0 : config.file_storage) === null || _d === void 0 ? void 0 : _d.file_storage_config_slug, onFileUpload: onFileUpload, maxFileSizeMb: maxFileSizeMb, label: question.title, mandatory: config === null || config === void 0 ? void 0 : config.mandatory, error: fieldError === null || fieldError === void 0 ? void 0 : fieldError.message });
51872
+ }, onBlur: onBlur, accept: __spreadArray(__spreadArray([], (_c = (_b = config === null || config === void 0 ? void 0 : config.file_storage) === null || _b === void 0 ? void 0 : _b.accepted_file_types) !== null && _c !== void 0 ? _c : ['image/*'], true), [
51873
+ 'android/allowCamera'],
51874
+ false), displayAccept: (_e = (_d = config === null || config === void 0 ? void 0 : config.file_storage) === null || _d === void 0 ? void 0 : _d.accepted_file_types) !== null && _e !== void 0 ? _e : ['image/*'], configSlug: (_f = config === null || config === void 0 ? void 0 : config.file_storage) === null || _f === void 0 ? void 0 : _f.file_storage_config_slug, onFileUpload: onFileUpload, maxFileSizeMb: maxFileSizeMb, label: question.title, mandatory: config === null || config === void 0 ? void 0 : config.mandatory, error: fieldError === null || fieldError === void 0 ? void 0 : fieldError.message });
51874
51875
  } });
51875
51876
  case exports.UserQuestionType.Description:
51876
51877
  return jsxRuntime.exports.jsx(Description, { content: question.title });