@theroutingcompany/components 0.0.99-alpha.6 → 0.0.99-alpha.8

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.
@@ -1979,7 +1979,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1979
1979
  :hover {
1980
1980
  background-color: ${p.color_gray_opacity_5};
1981
1981
  }
1982
- `,xM=e=>{var r,o,a;const t=((r=e.formatted_address)==null?void 0:r.length)&&((o=e.name)==null?void 0:o.length)&&!e.formatted_address.startsWith(e.name),n=(a=e.formatted_address)==null?void 0:a.length;return t&&e.name&&e.formatted_address?`${e.name}, ${e.formatted_address}`:n?e.formatted_address:""},wM=({googleApiKey:e,placeholder:t="Location...",options:n,libraries:r=["places"],googleMapsScriptBaseUrl:o,debounce:a=300,defaultValue:i,value:l,onChange:s,disabled:u,isInvalid:d,label:f,labelId:m="time-input-label",inputId:g="time-input",hideLabel:h=!1,boldLabel:b=!1,autoFocus:v,..._})=>{var z;const[y,x]=c.useState(i??l??""),S=c.createRef(),P=ia({}),{overlayProps:C}=Z0({},S),k=Za(l);c.useEffect(()=>{l&&l!==k&&x(l)},[k,l]);const{placesService:$,placePredictions:O,getPlacePredictions:V,isPlacePredictionsLoading:E}=fM({apiKey:e,libraries:r,googleMapsScriptBaseUrl:o,debounce:a,options:{input:y,...n}}),[F,I]=c.useState(-1),M=c.useCallback(T=>{T&&($==null||$.getDetails({placeId:T.place_id??""},(G,j)=>{G&&j===google.maps.places.PlacesServiceStatus.OK?(s==null||s(G),P.close(),I(-1)):(console.error("Error getting place details."),console.error("status: ",j),console.error("place: ",G))}))},[s,P,$]);return J(Ot,{children:[f?J(ze,{id:m,htmlFor:g,srOnly:h,mb:p.spacing_100,bold:b,children:[f,_.tooltipContent?w(rt,{children:_.tooltipContent}):null]}):null,w(on,{height:p.spacing_600,type:"text",autoComplete:"off",autoFocus:v,"data-id":(_==null?void 0:_["data-id"])??g,id:g,disabled:u,"data-state":d?"invalid":void 0,value:((z=O[F])==null?void 0:z.description)??y,placeholder:t,ref:S,onChange:T=>{V({input:T.target.value}),x(T.target.value)},onFocus:T=>{T.target.select(),P.isOpen||P.open()},onBlur:()=>{P.isOpen&&P.close()},onKeyDown:T=>{T.key==="Enter"?T.preventDefault():T.key==="ArrowDown"?(F===-1&&(T.preventDefault(),I(0)),F<O.length-1&&(T.preventDefault(),I(F+1)),F===O.length-1&&(T.preventDefault(),I(-1))):T.key==="ArrowUp"?(F===-1&&(T.preventDefault(),I(O.length-1)),F===0&&(T.preventDefault(),I(-1)),F>0&&(T.preventDefault(),I(F-1))):I(-1)},onKeyUp:T=>{T.key==="Enter"&&F!==-1&&M(O[F])},onMouseUp:T=>{T.preventDefault(),P.isOpen||P.open()}}),P.isOpen?w(jr,{className:"google-input-popover",targetRef:S,state:P,...C,isTargetWidth:!0,placement:"bottom start",children:w(ge,{onMouseDown:T=>T.preventDefault(),children:!E&&O.length>0?O.map((T,G)=>w(_M,{p:p.spacing_200,truncate:!0,onClick:()=>{M(T)},style:{cursor:"pointer"},backgroundColor:F===G?p.color_gray_opacity_5:"transparent",children:T.description},T.place_id)):null})}):null]})};var i1={};i1={Empty:"فارغ"};var l1={};l1={Empty:"Изпразни"};var s1={};s1={Empty:"Prázdné"};var c1={};c1={Empty:"Tom"};var u1={};u1={Empty:"Leer"};var d1={};d1={Empty:"Άδειο"};var f1={};f1={Empty:"Empty"};var p1={};p1={Empty:"Vacío"};var m1={};m1={Empty:"Tühjenda"};var g1={};g1={Empty:"Tyhjä"};var h1={};h1={Empty:"Vide"};var b1={};b1={Empty:"ריק"};var v1={};v1={Empty:"Prazno"};var y1={};y1={Empty:"Üres"};var $1={};$1={Empty:"Vuoto"};var _1={};_1={Empty:"空"};var x1={};x1={Empty:"비어 있음"};var w1={};w1={Empty:"Tuščias"};var E1={};E1={Empty:"Tukšs"};var S1={};S1={Empty:"Tom"};var D1={};D1={Empty:"Leeg"};var P1={};P1={Empty:"Pusty"};var T1={};T1={Empty:"Vazio"};var C1={};C1={Empty:"Vazio"};var k1={};k1={Empty:"Gol"};var A1={};A1={Empty:"Не заполнено"};var I1={};I1={Empty:"Prázdne"};var O1={};O1={Empty:"Prazen"};var M1={};M1={Empty:"Prazno"};var F1={};F1={Empty:"Tomt"};var L1={};L1={Empty:"Boş"};var N1={};N1={Empty:"Пусто"};var z1={};z1={Empty:"空"};var R1={};R1={Empty:"空白"};function EM(e){return e&&e.__esModule?e.default:e}var K1={};K1={"ar-AE":i1,"bg-BG":l1,"cs-CZ":s1,"da-DK":c1,"de-DE":u1,"el-GR":d1,"en-US":f1,"es-ES":p1,"et-EE":m1,"fi-FI":g1,"fr-FR":h1,"he-IL":b1,"hr-HR":v1,"hu-HU":y1,"it-IT":$1,"ja-JP":_1,"ko-KR":x1,"lt-LT":w1,"lv-LV":E1,"nb-NO":S1,"nl-NL":D1,"pl-PL":P1,"pt-BR":T1,"pt-PT":C1,"ro-RO":k1,"ru-RU":A1,"sk-SK":I1,"sl-SI":O1,"sr-SP":M1,"sv-SE":F1,"tr-TR":L1,"uk-UA":N1,"zh-CN":z1,"zh-TW":R1};function SM(e){const t=c.useRef();let{value:n,textValue:r,minValue:o,maxValue:a,isDisabled:i,isReadOnly:l,isRequired:s,onIncrement:u,onIncrementPage:d,onDecrement:f,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:h}=e;const b=yt(EM(K1),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);c.useEffect(()=>()=>v(),[]);let _=E=>{if(!(E.ctrlKey||E.metaKey||E.shiftKey||E.altKey||l))switch(E.key){case"PageUp":if(d){E.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":u&&(E.preventDefault(),u==null||u());break;case"PageDown":if(m){E.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":f&&(E.preventDefault(),f==null||f());break;case"Home":g&&(E.preventDefault(),g==null||g());break;case"End":h&&(E.preventDefault(),h==null||h());break}},y=c.useRef(!1),x=()=>{y.current=!0},S=()=>{y.current=!1},P=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");c.useEffect(()=>{y.current&&($4("assertive"),Ar(P,"assertive"))},[P]);const C=ke(E=>{v(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&C(60)},E)}),k=ke(E=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&k(60)},E)});let $=E=>{E.preventDefault()},{addGlobalListener:O,removeAllGlobalListeners:V}=_c();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":o,"aria-valuemax":a,"aria-disabled":i||void 0,"aria-readonly":l||void 0,"aria-required":s||void 0,onKeyDown:_,onFocus:x,onBlur:S},incrementButtonProps:{onPressStart:()=>{C(400),O(window,"contextmenu",$)},onPressEnd:()=>{v(),V()},onFocus:x,onBlur:S},decrementButtonProps:{onPressStart:()=>{k(400),O(window,"contextmenu",$)},onPressEnd:()=>{v(),V()},onFocus:x,onBlur:S}}}function DM(e){return e&&e.__esModule?e.default:e}var V1={},B1={};B1={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var j1={};j1={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var U1={};U1={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var W1={};W1={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var H1={};H1={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var G1={};G1={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Y1={};Y1={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var q1={};q1={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var X1={};X1={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var J1={};J1={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Z1={};Z1={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Q1={};Q1={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var ex={};ex={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var tx={};tx={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var nx={};nx={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var rx={};rx={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var ox={};ox={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var ax={};ax={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var ix={};ix={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var lx={};lx={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var sx={};sx={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var cx={};cx={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var ux={};ux={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var dx={};dx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var fx={};fx={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var px={};px={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var mx={};mx={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var gx={};gx={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var hx={};hx={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var bx={};bx={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var vx={};vx={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var yx={};yx={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var $x={};$x={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var _x={};_x={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},V1={"ar-AE":B1,"bg-BG":j1,"cs-CZ":U1,"da-DK":W1,"de-DE":H1,"el-GR":G1,"en-US":Y1,"es-ES":q1,"et-EE":X1,"fi-FI":J1,"fr-FR":Z1,"he-IL":Q1,"hr-HR":ex,"hu-HU":tx,"it-IT":nx,"ja-JP":rx,"ko-KR":ox,"lt-LT":ax,"lv-LV":ix,"nb-NO":lx,"nl-NL":sx,"pl-PL":cx,"pt-BR":ux,"pt-PT":dx,"ro-RO":fx,"ru-RU":px,"sk-SK":mx,"sl-SI":gx,"sr-SP":hx,"sv-SE":bx,"tr-TR":vx,"uk-UA":yx,"zh-CN":$x,"zh-TW":_x};function PM(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:a,isDisabled:i,isReadOnly:l,isRequired:s,minValue:u,maxValue:d,autoFocus:f,validationState:m,label:g,formatOptions:h,onBlur:b=()=>{},onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:x,description:S,errorMessage:P,...C}=e,{increment:k,incrementToMax:$,decrement:O,decrementToMin:V,numberValue:E,inputValue:F,commit:I}=t;const M=yt(DM(V1));let z=it(r),{focusProps:T}=kc({onBlur:()=>{I()}}),G=gb(h),j=c.useMemo(()=>G.resolvedOptions(),[G]),W=gb({...h,currencySign:void 0}),K=c.useMemo(()=>isNaN(E)?"":W.format(E),[W,E]),{spinButtonProps:B,incrementButtonProps:X,decrementButtonProps:H}=SM({isDisabled:i,isReadOnly:l,isRequired:s,maxValue:d,minValue:u,onIncrement:k,onIncrementToMax:$,onDecrement:O,onDecrementToMin:V,value:E,textValue:K}),[Y,ie]=c.useState(!1),{focusWithinProps:re}=ko({isDisabled:i,onFocusWithinChange:ie}),oe=c.useCallback(at=>{Math.abs(at.deltaY)<=Math.abs(at.deltaX)||(at.deltaY>0?k():at.deltaY<0&&O())},[O,k]);qC({onScroll:oe,isDisabled:i||l||!Y},n);let ee=j.maximumFractionDigits>0,se=isNaN(t.minValue)||t.minValue<0,xe="numeric";hg()?se?xe="text":ee&&(xe="decimal"):yc()&&(se?xe="numeric":ee&&(xe="decimal"));let le=at=>{t.validate(at)&&t.setInputValue(at)},pe=bn(e),{labelProps:De,inputProps:kn,descriptionProps:An,errorMessageProps:to}=D9({...C,...pe,label:g,autoFocus:f,isDisabled:i,isReadOnly:l,isRequired:s,validationState:m,value:F,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:z,type:"text",inputMode:xe,onChange:le,onBlur:b,onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:x,description:S,errorMessage:P},t,n),no=fe(B,T,kn,{role:null,"aria-roledescription":Eo()?null:M.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),an=at=>{document.activeElement!==n.current&&(at.pointerType==="mouse"?n.current.focus():at.target.focus())},Ft=e["aria-label"]||(typeof e.label=="string"?e.label:""),ln;Ft||(ln=e.label!=null?De.id:e["aria-labelledby"]);let ro=it(),Yl=it(),Wf=fe(X,{"aria-label":a||M.format("increase",{fieldLabel:Ft}).trim(),id:ln&&!a?ro:null,"aria-labelledby":ln&&!a?`${ro} ${ln}`:null,"aria-controls":z,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:an}),ql=fe(H,{"aria-label":o||M.format("decrease",{fieldLabel:Ft}).trim(),id:ln&&!o?Yl:null,"aria-labelledby":ln&&!o?`${Yl} ${ln}`:null,"aria-controls":z,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:an});return{groupProps:{role:"group","aria-disabled":i,"aria-invalid":m==="invalid"?"true":void 0,...re},labelProps:De,inputProps:no,incrementButtonProps:Wf,decrementButtonProps:ql,errorMessageProps:to,descriptionProps:An}}function TM(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:a,defaultValue:i,onChange:l,locale:s,isDisabled:u,isReadOnly:d}=e,[f,m]=Ct(a,isNaN(i)?NaN:i,l),[g,h]=c.useState(()=>isNaN(f)?"":new Yi(s,o).format(f)),b=c.useMemo(()=>new lb(s,o),[s,o]),v=c.useMemo(()=>b.getNumberingSystem(g),[b,g]),_=c.useMemo(()=>new Yi(s,{...o,numberingSystem:v}),[s,o,v]),y=c.useMemo(()=>_.resolvedOptions(),[_]),x=c.useCallback(B=>isNaN(B)||B===null?"":_.format(B),[_]),S=isNaN(r)?1:r;y.style==="percent"&&isNaN(r)&&(S=.01);let[P,C]=c.useState(f),[k,$]=c.useState(s),[O,V]=c.useState(o);(!Object.is(f,P)||s!==k||o!==O)&&(h(x(f)),C(f),$(s),V(o));let E=c.useMemo(()=>b.parse(g),[b,g]),F=()=>{if(!g.length){m(NaN),h(a===void 0?"":x(f));return}if(isNaN(E)){h(x(f));return}let B;isNaN(r)?B=ti(E,t,n):B=Rn(E,t,n,r),B=b.parse(x(B)),m(B),h(x(a===void 0?B:f))},I=(B,X)=>{let H=E;if(isNaN(H)){let Y=isNaN(X)?0:X;return Rn(Y,t,n,S)}else{let Y=Rn(H,t,n,S);return B==="+"&&Y>H||B==="-"&&Y<H?Y:Rn(Ad(B,H,S),t,n,S)}},M=()=>{let B=I("+",t);B===f&&h(x(B)),m(B)},z=()=>{let B=I("-",n);B===f&&h(x(B)),m(B)},T=()=>{n!=null&&m(Rn(n,t,n,S))},G=()=>{t!=null&&m(t)},j=c.useMemo(()=>!u&&!d&&(isNaN(E)||isNaN(n)||Rn(E,t,n,S)>E||Ad("+",E,S)<=n),[u,d,t,n,S,E]),W=c.useMemo(()=>!u&&!d&&(isNaN(E)||isNaN(t)||Rn(E,t,n,S)<E||Ad("-",E,S)>=t),[u,d,t,n,S,E]);return{validate:B=>b.isValidPartialNumber(B,t,n),increment:M,incrementToMax:T,decrement:z,decrementToMin:G,canIncrement:j,canDecrement:W,minValue:t,maxValue:n,numberValue:E,setInputValue:h,inputValue:g,commit:F}}function Ad(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),a=n.toString().split("."),i=o[1]&&o[1].length||0,l=a[1]&&a[1].length||0,s=Math.pow(10,Math.max(i,l));t=Math.round(t*s),n=Math.round(n*s),r=e==="+"?t+n:t-n,r/=s}return r}function xx(e){const t=c.useRef(null),{buttonProps:n,isPressed:r}=wr(e,t),{children:o,className:a}=e;return w("button",{"data-state":r?"pressed":void 0,ref:t,...n,className:a,children:o})}const CM=N.default.div`
1982
+ `,xM=e=>{var r,o,a;const t=((r=e.formatted_address)==null?void 0:r.length)&&((o=e.name)==null?void 0:o.length)&&!e.formatted_address.startsWith(e.name),n=(a=e.formatted_address)==null?void 0:a.length;return t&&e.name&&e.formatted_address?`${e.name}, ${e.formatted_address}`:n?e.formatted_address:""},wM=({googleApiKey:e,placeholder:t="Location...",options:n,libraries:r=["places"],googleMapsScriptBaseUrl:o,debounce:a=300,defaultValue:i,value:l,onChange:s,disabled:u,isInvalid:d,label:f,labelId:m="time-input-label",inputId:g="time-input",hideLabel:h=!1,boldLabel:b=!1,autoFocus:v,..._})=>{var z;const[y,x]=c.useState(i??l??""),S=c.createRef(),P=ia({}),{overlayProps:C}=Z0({},S),k=Za(l);c.useEffect(()=>{l&&l!==k&&x(l)},[k,l]);const{placesService:$,placePredictions:O,getPlacePredictions:V,isPlacePredictionsLoading:E}=fM({apiKey:e,libraries:r,googleMapsScriptBaseUrl:o,debounce:a,options:{input:y,...n}}),[F,I]=c.useState(-1),M=c.useCallback(T=>{T&&($==null||$.getDetails({placeId:T.place_id??""},(G,j)=>{G&&j===google.maps.places.PlacesServiceStatus.OK?(s==null||s(G),P.close(),I(-1)):(console.error("Error getting place details."),console.error("status: ",j),console.error("place: ",G))}))},[s,P,$]);return J(Ot,{children:[f?J(ze,{id:m,htmlFor:g,srOnly:h,mb:p.spacing_100,bold:b,children:[f,_.tooltipContent?w(rt,{children:_.tooltipContent}):null]}):null,w(on,{height:p.spacing_600,type:"text",autoComplete:"off",autoFocus:v,"data-id":(_==null?void 0:_["data-id"])??g,id:g,disabled:u,"data-state":d?"invalid":void 0,value:((z=O[F])==null?void 0:z.description)??y,placeholder:t,ref:S,onChange:T=>{V({input:T.target.value,locationRestriction:n==null?void 0:n.bounds}),x(T.target.value)},onFocus:T=>{T.target.select(),P.isOpen||P.open()},onBlur:()=>{P.isOpen&&P.close()},onKeyDown:T=>{T.key==="Enter"?T.preventDefault():T.key==="ArrowDown"?(F===-1&&(T.preventDefault(),I(0)),F<O.length-1&&(T.preventDefault(),I(F+1)),F===O.length-1&&(T.preventDefault(),I(-1))):T.key==="ArrowUp"?(F===-1&&(T.preventDefault(),I(O.length-1)),F===0&&(T.preventDefault(),I(-1)),F>0&&(T.preventDefault(),I(F-1))):(I(-1),P.isOpen||P.open())},onKeyUp:T=>{T.key==="Enter"&&F!==-1&&M(O[F])},onMouseUp:T=>{T.preventDefault(),P.isOpen||P.open()}}),P.isOpen?w(jr,{className:"google-input-popover",targetRef:S,state:P,...C,isTargetWidth:!0,placement:"bottom start",children:w(ge,{onMouseDown:T=>T.preventDefault(),children:!E&&O.length>0?O.map((T,G)=>w(_M,{p:p.spacing_200,truncate:!0,onClick:()=>{M(T)},style:{cursor:"pointer"},backgroundColor:F===G?p.color_gray_opacity_5:"transparent",children:T.description},T.place_id)):null})}):null]})};var i1={};i1={Empty:"فارغ"};var l1={};l1={Empty:"Изпразни"};var s1={};s1={Empty:"Prázdné"};var c1={};c1={Empty:"Tom"};var u1={};u1={Empty:"Leer"};var d1={};d1={Empty:"Άδειο"};var f1={};f1={Empty:"Empty"};var p1={};p1={Empty:"Vacío"};var m1={};m1={Empty:"Tühjenda"};var g1={};g1={Empty:"Tyhjä"};var h1={};h1={Empty:"Vide"};var b1={};b1={Empty:"ריק"};var v1={};v1={Empty:"Prazno"};var y1={};y1={Empty:"Üres"};var $1={};$1={Empty:"Vuoto"};var _1={};_1={Empty:"空"};var x1={};x1={Empty:"비어 있음"};var w1={};w1={Empty:"Tuščias"};var E1={};E1={Empty:"Tukšs"};var S1={};S1={Empty:"Tom"};var D1={};D1={Empty:"Leeg"};var P1={};P1={Empty:"Pusty"};var T1={};T1={Empty:"Vazio"};var C1={};C1={Empty:"Vazio"};var k1={};k1={Empty:"Gol"};var A1={};A1={Empty:"Не заполнено"};var I1={};I1={Empty:"Prázdne"};var O1={};O1={Empty:"Prazen"};var M1={};M1={Empty:"Prazno"};var F1={};F1={Empty:"Tomt"};var L1={};L1={Empty:"Boş"};var N1={};N1={Empty:"Пусто"};var z1={};z1={Empty:"空"};var R1={};R1={Empty:"空白"};function EM(e){return e&&e.__esModule?e.default:e}var K1={};K1={"ar-AE":i1,"bg-BG":l1,"cs-CZ":s1,"da-DK":c1,"de-DE":u1,"el-GR":d1,"en-US":f1,"es-ES":p1,"et-EE":m1,"fi-FI":g1,"fr-FR":h1,"he-IL":b1,"hr-HR":v1,"hu-HU":y1,"it-IT":$1,"ja-JP":_1,"ko-KR":x1,"lt-LT":w1,"lv-LV":E1,"nb-NO":S1,"nl-NL":D1,"pl-PL":P1,"pt-BR":T1,"pt-PT":C1,"ro-RO":k1,"ru-RU":A1,"sk-SK":I1,"sl-SI":O1,"sr-SP":M1,"sv-SE":F1,"tr-TR":L1,"uk-UA":N1,"zh-CN":z1,"zh-TW":R1};function SM(e){const t=c.useRef();let{value:n,textValue:r,minValue:o,maxValue:a,isDisabled:i,isReadOnly:l,isRequired:s,onIncrement:u,onIncrementPage:d,onDecrement:f,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:h}=e;const b=yt(EM(K1),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);c.useEffect(()=>()=>v(),[]);let _=E=>{if(!(E.ctrlKey||E.metaKey||E.shiftKey||E.altKey||l))switch(E.key){case"PageUp":if(d){E.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":u&&(E.preventDefault(),u==null||u());break;case"PageDown":if(m){E.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":f&&(E.preventDefault(),f==null||f());break;case"Home":g&&(E.preventDefault(),g==null||g());break;case"End":h&&(E.preventDefault(),h==null||h());break}},y=c.useRef(!1),x=()=>{y.current=!0},S=()=>{y.current=!1},P=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");c.useEffect(()=>{y.current&&($4("assertive"),Ar(P,"assertive"))},[P]);const C=ke(E=>{v(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&C(60)},E)}),k=ke(E=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&k(60)},E)});let $=E=>{E.preventDefault()},{addGlobalListener:O,removeAllGlobalListeners:V}=_c();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":o,"aria-valuemax":a,"aria-disabled":i||void 0,"aria-readonly":l||void 0,"aria-required":s||void 0,onKeyDown:_,onFocus:x,onBlur:S},incrementButtonProps:{onPressStart:()=>{C(400),O(window,"contextmenu",$)},onPressEnd:()=>{v(),V()},onFocus:x,onBlur:S},decrementButtonProps:{onPressStart:()=>{k(400),O(window,"contextmenu",$)},onPressEnd:()=>{v(),V()},onFocus:x,onBlur:S}}}function DM(e){return e&&e.__esModule?e.default:e}var V1={},B1={};B1={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var j1={};j1={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var U1={};U1={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var W1={};W1={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var H1={};H1={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var G1={};G1={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Y1={};Y1={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var q1={};q1={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var X1={};X1={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var J1={};J1={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Z1={};Z1={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Q1={};Q1={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var ex={};ex={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var tx={};tx={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var nx={};nx={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var rx={};rx={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var ox={};ox={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var ax={};ax={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var ix={};ix={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var lx={};lx={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var sx={};sx={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var cx={};cx={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var ux={};ux={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var dx={};dx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var fx={};fx={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var px={};px={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var mx={};mx={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var gx={};gx={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var hx={};hx={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var bx={};bx={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var vx={};vx={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var yx={};yx={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var $x={};$x={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var _x={};_x={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},V1={"ar-AE":B1,"bg-BG":j1,"cs-CZ":U1,"da-DK":W1,"de-DE":H1,"el-GR":G1,"en-US":Y1,"es-ES":q1,"et-EE":X1,"fi-FI":J1,"fr-FR":Z1,"he-IL":Q1,"hr-HR":ex,"hu-HU":tx,"it-IT":nx,"ja-JP":rx,"ko-KR":ox,"lt-LT":ax,"lv-LV":ix,"nb-NO":lx,"nl-NL":sx,"pl-PL":cx,"pt-BR":ux,"pt-PT":dx,"ro-RO":fx,"ru-RU":px,"sk-SK":mx,"sl-SI":gx,"sr-SP":hx,"sv-SE":bx,"tr-TR":vx,"uk-UA":yx,"zh-CN":$x,"zh-TW":_x};function PM(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:a,isDisabled:i,isReadOnly:l,isRequired:s,minValue:u,maxValue:d,autoFocus:f,validationState:m,label:g,formatOptions:h,onBlur:b=()=>{},onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:x,description:S,errorMessage:P,...C}=e,{increment:k,incrementToMax:$,decrement:O,decrementToMin:V,numberValue:E,inputValue:F,commit:I}=t;const M=yt(DM(V1));let z=it(r),{focusProps:T}=kc({onBlur:()=>{I()}}),G=gb(h),j=c.useMemo(()=>G.resolvedOptions(),[G]),W=gb({...h,currencySign:void 0}),K=c.useMemo(()=>isNaN(E)?"":W.format(E),[W,E]),{spinButtonProps:B,incrementButtonProps:X,decrementButtonProps:H}=SM({isDisabled:i,isReadOnly:l,isRequired:s,maxValue:d,minValue:u,onIncrement:k,onIncrementToMax:$,onDecrement:O,onDecrementToMin:V,value:E,textValue:K}),[Y,ie]=c.useState(!1),{focusWithinProps:re}=ko({isDisabled:i,onFocusWithinChange:ie}),oe=c.useCallback(at=>{Math.abs(at.deltaY)<=Math.abs(at.deltaX)||(at.deltaY>0?k():at.deltaY<0&&O())},[O,k]);qC({onScroll:oe,isDisabled:i||l||!Y},n);let ee=j.maximumFractionDigits>0,se=isNaN(t.minValue)||t.minValue<0,xe="numeric";hg()?se?xe="text":ee&&(xe="decimal"):yc()&&(se?xe="numeric":ee&&(xe="decimal"));let le=at=>{t.validate(at)&&t.setInputValue(at)},pe=bn(e),{labelProps:De,inputProps:kn,descriptionProps:An,errorMessageProps:to}=D9({...C,...pe,label:g,autoFocus:f,isDisabled:i,isReadOnly:l,isRequired:s,validationState:m,value:F,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:z,type:"text",inputMode:xe,onChange:le,onBlur:b,onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:x,description:S,errorMessage:P},t,n),no=fe(B,T,kn,{role:null,"aria-roledescription":Eo()?null:M.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),an=at=>{document.activeElement!==n.current&&(at.pointerType==="mouse"?n.current.focus():at.target.focus())},Ft=e["aria-label"]||(typeof e.label=="string"?e.label:""),ln;Ft||(ln=e.label!=null?De.id:e["aria-labelledby"]);let ro=it(),Yl=it(),Wf=fe(X,{"aria-label":a||M.format("increase",{fieldLabel:Ft}).trim(),id:ln&&!a?ro:null,"aria-labelledby":ln&&!a?`${ro} ${ln}`:null,"aria-controls":z,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:an}),ql=fe(H,{"aria-label":o||M.format("decrease",{fieldLabel:Ft}).trim(),id:ln&&!o?Yl:null,"aria-labelledby":ln&&!o?`${Yl} ${ln}`:null,"aria-controls":z,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:an});return{groupProps:{role:"group","aria-disabled":i,"aria-invalid":m==="invalid"?"true":void 0,...re},labelProps:De,inputProps:no,incrementButtonProps:Wf,decrementButtonProps:ql,errorMessageProps:to,descriptionProps:An}}function TM(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:a,defaultValue:i,onChange:l,locale:s,isDisabled:u,isReadOnly:d}=e,[f,m]=Ct(a,isNaN(i)?NaN:i,l),[g,h]=c.useState(()=>isNaN(f)?"":new Yi(s,o).format(f)),b=c.useMemo(()=>new lb(s,o),[s,o]),v=c.useMemo(()=>b.getNumberingSystem(g),[b,g]),_=c.useMemo(()=>new Yi(s,{...o,numberingSystem:v}),[s,o,v]),y=c.useMemo(()=>_.resolvedOptions(),[_]),x=c.useCallback(B=>isNaN(B)||B===null?"":_.format(B),[_]),S=isNaN(r)?1:r;y.style==="percent"&&isNaN(r)&&(S=.01);let[P,C]=c.useState(f),[k,$]=c.useState(s),[O,V]=c.useState(o);(!Object.is(f,P)||s!==k||o!==O)&&(h(x(f)),C(f),$(s),V(o));let E=c.useMemo(()=>b.parse(g),[b,g]),F=()=>{if(!g.length){m(NaN),h(a===void 0?"":x(f));return}if(isNaN(E)){h(x(f));return}let B;isNaN(r)?B=ti(E,t,n):B=Rn(E,t,n,r),B=b.parse(x(B)),m(B),h(x(a===void 0?B:f))},I=(B,X)=>{let H=E;if(isNaN(H)){let Y=isNaN(X)?0:X;return Rn(Y,t,n,S)}else{let Y=Rn(H,t,n,S);return B==="+"&&Y>H||B==="-"&&Y<H?Y:Rn(Ad(B,H,S),t,n,S)}},M=()=>{let B=I("+",t);B===f&&h(x(B)),m(B)},z=()=>{let B=I("-",n);B===f&&h(x(B)),m(B)},T=()=>{n!=null&&m(Rn(n,t,n,S))},G=()=>{t!=null&&m(t)},j=c.useMemo(()=>!u&&!d&&(isNaN(E)||isNaN(n)||Rn(E,t,n,S)>E||Ad("+",E,S)<=n),[u,d,t,n,S,E]),W=c.useMemo(()=>!u&&!d&&(isNaN(E)||isNaN(t)||Rn(E,t,n,S)<E||Ad("-",E,S)>=t),[u,d,t,n,S,E]);return{validate:B=>b.isValidPartialNumber(B,t,n),increment:M,incrementToMax:T,decrement:z,decrementToMin:G,canIncrement:j,canDecrement:W,minValue:t,maxValue:n,numberValue:E,setInputValue:h,inputValue:g,commit:F}}function Ad(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),a=n.toString().split("."),i=o[1]&&o[1].length||0,l=a[1]&&a[1].length||0,s=Math.pow(10,Math.max(i,l));t=Math.round(t*s),n=Math.round(n*s),r=e==="+"?t+n:t-n,r/=s}return r}function xx(e){const t=c.useRef(null),{buttonProps:n,isPressed:r}=wr(e,t),{children:o,className:a}=e;return w("button",{"data-state":r?"pressed":void 0,ref:t,...n,className:a,children:o})}const CM=N.default.div`
1983
1983
  /*
1984
1984
  --border-color: ${p.color_deprecated_outline_secondary_enabled};
1985
1985
  */