@theroutingcompany/components 0.0.108-alpha.0 → 0.0.109-alpha.0
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/trc-components.es.js +28 -33
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +4 -10
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/GoogleInput/GoogleInput.d.ts +3 -1
- package/types/components/Text/Text.d.ts +0 -3
|
@@ -728,7 +728,6 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,H,re,oe+
|
|
|
728
728
|
${({variant:e,inverse:t})=>PC(e,t)}
|
|
729
729
|
${({size:e})=>kC(e)}
|
|
730
730
|
`,AC=N.default.span`
|
|
731
|
-
width: 100%;
|
|
732
731
|
${e=>vC(e)}
|
|
733
732
|
`;function IC(e,t){const{as:n,to:r,toTitle:o,formId:a,type:i="button",children:l,variant:s="primary",inverse:u=!1,disabled:d,size:f,onClick:m,onFocus:g,onBlur:h,className:b="",...v}=e,_=n??"button",y=Pt(v,Bt.propNames??[]),w=Pt(v,Di.propNames??[]),D={variant:s,inverse:u,className:b,disabled:d,onClick:m,onFocus:g,onBlur:h,size:f,form:a,type:i,ref:t,...w,...y,...ms(v)},T=c.useMemo(()=>E(AC,{children:l}),[l]);return r&&!n?E(jc,{as:"a",href:r,target:"_blank",rel:"noopener noreferrer",title:o??"Opens in a new tab",...D,"data-id":v["data-id"],children:T}):E(jc,{as:_,...D,"data-id":v["data-id"],children:T})}const Lo=c.forwardRef(IC);Lo.displayName="ButtonV2";const rh=S.default.forwardRef(function(t,n){return E(Lo,{mt:p.spacing_100,mr:p.border_radius_200,...t,ref:n})});rh.displayName="Banner.Action";const OC=rh;function MC(){return`
|
|
734
733
|
transition: background ${p.motion_duration_fast} ${p.motion_ease_in_out};
|
|
@@ -762,10 +761,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,H,re,oe+
|
|
|
762
761
|
${({variant:e})=>e===oh&&`border: 1px solid ${p.color_gray_opacity_6}`};
|
|
763
762
|
${({variant:e})=>e===NC&&`background-color: ${p.color_green_opacity_48};`};
|
|
764
763
|
${({variant:e})=>e===zC&&`background-color: ${p.color_brand_solidago_opacity_48}`};
|
|
765
|
-
${({variant:e})=>e===RC&&`
|
|
766
|
-
background-color: rgba(218,91,64,0.20);
|
|
767
|
-
border: 1px solid ${p.color_brand_red_opacity_48};
|
|
768
|
-
`};
|
|
764
|
+
${({variant:e})=>e===RC&&`background-color: ${p.color_brand_red_opacity_48}`};
|
|
769
765
|
`,VC=N.default(Be)`
|
|
770
766
|
${Xg}
|
|
771
767
|
${MC}
|
|
@@ -774,7 +770,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,H,re,oe+
|
|
|
774
770
|
top: 0.8rem; // really close to size 300 and 350 but not quite
|
|
775
771
|
right: ${p.spacing_350};
|
|
776
772
|
height: 24px;
|
|
777
|
-
`,Uc=c.forwardRef(function(t,n){const{children:r,onDismiss:o,variant:a="default",layout:i="default",title:l,style:s,...u}=t,d=Pt(u,$s.propNames??[]),f=l?E(Be,{mb:p.spacing_200,children:E(jn,{as:"h2",looksLike:"h6",normal:!0,children:l})}):null,m=o?J(VC,{as:"button",onClick:o,variant:a,color:p.color_gray_6,type:"button",children:[E(Ei,{children:"Dismiss"}),E(De.Close,{})]}):null;return J(KC,{ref:n,...d,style:s,tabIndex:-1,variant:a,overflow:"hidden","data-id":u["data-id"],children:[f,m,E(Si,{space:p.spacing_300,children:r})]})});Uc.displayName="Banner",Uc.Action=OC;function No(e){const t=Pe(e);if(_i()==="virtual"){let n=t.activeElement;Sg(()=>{t.activeElement===n&&e.isConnected&&It(e)})}else It(e)}function BC(e){const t=vt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:i,visibility:l}=a(e);o=i!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function jC(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ah(e,t){return e.nodeName!=="#comment"&&BC(e)&&jC(e,t)&&(!e.parentElement||ah(e.parentElement,e))}const ih=S.default.createContext(null),Wc="react-aria-focus-scope-restore";let we=null;function UC(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,a=c.useRef(null),i=c.useRef(null),l=c.useRef([]),{parentNode:s}=c.useContext(ih)||{},u=c.useMemo(()=>new qc({scopeRef:l}),[l]);Te(()=>{let m=s||Le.root;if(Le.getTreeNode(m.scopeRef)&&we&&!Ti(we,m.scopeRef)){let g=Le.getTreeNode(we);g&&(m=g)}m.addChild(u),Le.addNode(u)},[u,s]),Te(()=>{let m=Le.getTreeNode(l);m&&(m.contain=!!n)},[n]),Te(()=>{var m;let g=(m=a.current)===null||m===void 0?void 0:m.nextSibling,h=[],b=v=>v.stopPropagation();for(;g&&g!==i.current;)h.push(g),g.addEventListener(Wc,b),g=g.nextSibling;return l.current=h,()=>{for(let v of h)v.removeEventListener(Wc,b)}},[t]),JC(l,r,n),YC(l,n),QC(l,r,n),XC(l,o),c.useEffect(()=>{const m=Pe(l.current?l.current[0]:void 0).activeElement;let g=null;if(He(m,l.current)){for(let h of Le.traverse())h.scopeRef&&He(m,h.scopeRef.current)&&(g=h);g===Le.getTreeNode(l)&&(we=g.scopeRef)}},[l]),Te(()=>()=>{var m,g,h;let b=(h=(g=Le.getTreeNode(l))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&h!==void 0?h:null;(l===we||Ti(l,we))&&(!b||Le.getTreeNode(b))&&(we=b),Le.removeTreeNode(l)},[l]);let d=c.useMemo(()=>WC(l),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return S.default.createElement(ih.Provider,{value:f},S.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,S.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function WC(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:a,accept:i}=t,l=r||Pe(n[0]).activeElement,s=n[0].previousElementSibling,u=Hn(n),d=Zt(u,{tabbable:o,accept:i},n);d.currentNode=He(l,n)?l:s;let f=d.nextNode();return!f&&a&&(d.currentNode=s,f=d.nextNode()),f&&Jt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:a,accept:i}=t,l=r||Pe(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=Hn(n),d=Zt(u,{tabbable:o,accept:i},n);d.currentNode=He(l,n)?l:s;let f=d.previousNode();return!f&&a&&(d.currentNode=s,f=d.previousNode()),f&&Jt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,a=Hn(n),i=Zt(a,{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let l=i.nextNode();return l&&Jt(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,a=Hn(n),i=Zt(a,{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let l=i.previousNode();return l&&Jt(l,!0),l}}}const Hc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],HC=Hc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const GC=Hc.join(':not([hidden]):not([tabindex="-1"]),');function Hn(e){return e[0].parentElement}function zo(e){let t=Le.getTreeNode(we);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function YC(e,t){let n=c.useRef(void 0),r=c.useRef(void 0);Te(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Pe(o?o[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!zo(e)||u.isComposing)return;let d=a.activeElement,f=e.current;if(!f||!He(d,f))return;let m=Hn(f),g=Zt(m,{tabbable:!0},f);if(!d)return;g.currentNode=d;let h=u.shiftKey?g.previousNode():g.nextNode();h||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,h=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),h&&Jt(h,!0)},l=u=>{(!we||Ti(we,e))&&He(u.target,e.current)?(we=e,n.current=u.target):zo(e)&&!Pi(u.target,e)?n.current?n.current.focus():we&&we.current&&Gc(we.current):zo(e)&&(n.current=u.target)},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&zo(e)&&!Pi(a.activeElement,e))if(we=e,a.body.contains(u.target)){var d;n.current=u.target,(d=n.current)===null||d===void 0||d.focus()}else we.current&&Gc(we.current)})};return a.addEventListener("keydown",i,!1),a.addEventListener("focusin",l,!1),o==null||o.forEach(u=>u.addEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",i,!1),a.removeEventListener("focusin",l,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),Te(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function lh(e){return Pi(e)}function He(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Pi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Le.traverse(Le.getTreeNode(t)))if(n&&He(e,n.current))return!0;return!1}function qC(e){return Pi(e,we)}function Ti(e,t){var n;let r=(n=Le.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Jt(e,t=!1){if(e!=null&&!t)try{No(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function sh(e,t=!0){let n=e[0].previousElementSibling,r=Hn(e),o=Zt(r,{tabbable:t},e);o.currentNode=n;let a=o.nextNode();return t&&!a&&(r=Hn(e),o=Zt(r,{tabbable:!1},e),o.currentNode=n,a=o.nextNode()),a}function Gc(e,t=!0){Jt(sh(e,t))}function XC(e,t){const n=S.default.useRef(t);c.useEffect(()=>{if(n.current){we=e;const r=Pe(e.current?e.current[0]:void 0);!He(r.activeElement,we.current)&&e.current&&Gc(e.current)}n.current=!1},[e])}function JC(e,t,n){Te(()=>{if(t||n)return;let r=e.current;const o=Pe(r?r[0]:void 0);let a=i=>{let l=i.target;He(l,e.current)?we=e:lh(l)||(we=null)};return o.addEventListener("focusin",a,!1),r==null||r.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,t,n])}function ZC(e){let t=Le.getTreeNode(we);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function QC(e,t,n){const r=c.useRef(typeof document<"u"?Pe(e.current?e.current[0]:void 0).activeElement:null);Te(()=>{let o=e.current;const a=Pe(o?o[0]:void 0);if(!t||n)return;let i=()=>{(!we||Ti(we,e))&&He(a.activeElement,e.current)&&(we=e)};return a.addEventListener("focusin",i,!1),o==null||o.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{a.removeEventListener("focusin",i,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,n]),Te(()=>{const o=Pe(e.current?e.current[0]:void 0);if(!t)return;let a=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!zo(e)||i.isComposing)return;let l=o.activeElement;if(!He(l,e.current))return;let s=Le.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,d=Zt(o.body,{tabbable:!0});d.currentNode=l;let f=i.shiftKey?d.previousNode():d.nextNode();if((!u||!o.body.contains(u)||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!He(f,e.current))&&u){d.currentNode=u;do f=i.shiftKey?d.previousNode():d.nextNode();while(He(f,e.current));i.preventDefault(),i.stopPropagation(),f?Jt(f,!0):lh(u)?Jt(u,!0):l.blur()}};return n||o.addEventListener("keydown",a,!0),()=>{n||o.removeEventListener("keydown",a,!0)}},[e,t,n]),Te(()=>{const o=Pe(e.current?e.current[0]:void 0);if(!t)return;let a=Le.getTreeNode(e);if(a){var i;return a.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let l=Le.getTreeNode(e);if(!l)return;let s=l.nodeToRestore;if(t&&s&&(He(o.activeElement,e.current)||o.activeElement===o.body&&ZC(e))){let u=Le.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){ch(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Le.getTreeNode(d.scopeRef)){let f=sh(d.scopeRef.current,!0);ch(f);return}d=d.parent}}})}}}},[e,t])}function ch(e){e.dispatchEvent(new CustomEvent(Wc,{bubbles:!0,cancelable:!0}))&&Jt(e)}function Zt(e,t,n){let r=t!=null&&t.tabbable?GC:HC,o=Pe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var i;return!(t==null||(i=t.from)===null||i===void 0)&&i.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&ah(a)&&(!n||He(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Yc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let a=new qc({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&He(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Yc;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new qc({scopeRef:null}),this.fastMap.set(null,this.root)}}class qc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Le=new Yc;function Ci(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=c.useRef({isFocused:!1,isFocusVisible:t||$i()}),[a,i]=c.useState(!1),[l,s]=c.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=c.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),d=c.useCallback(g=>{o.current.isFocused=g,i(g),u()},[u]);cC(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=zc({isDisabled:r,onFocusChange:d}),{focusWithinProps:m}=Fo({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:r?m:f}}function uh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=uh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ek(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=uh(e))&&(r&&(r+=" "),r+=t);return r}function tk(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:o,isFocusVisible:a,focusProps:i}=Ci(e),l=S.default.Children.only(t);return S.default.cloneElement(l,fe(l.props,{...i,className:ek({[n||""]:o,[r||""]:a})}))}let nk=S.default.createContext(null);function rk(e){let t=c.useContext(nk)||{};Tg(t,e);let{ref:n,...r}=t;return r}function Xc(e,t){let{focusProps:n}=zc(e),{keyboardProps:r}=pC(e),o=fe(n,r),a=rk(t),i=e.isDisabled?{}:a,l=c.useRef(e.autoFocus);return c.useEffect(()=>{l.current&&t.current&&No(t.current),l.current=!1},[t]),{focusableProps:fe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},i)}}function Dr(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:a,onPressEnd:i,onPressChange:l,preventFocusOnPress:s,allowFocusWhenDisabled:u,onClick:d,href:f,target:m,rel:g,type:h="button"}=e,b;n==="button"?b={type:h,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?m:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:v,isPressed:_}=Er({onPressStart:a,onPressEnd:i,onPressChange:l,onPress:o,isDisabled:r,preventFocusOnPress:s,ref:t}),{focusableProps:y}=Xc(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let w=fe(y,v,$n(e,{labelable:!0}));return{isPressed:_,buttonProps:fe(b,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:D=>{d&&(d(D),console.warn("onClick is deprecated, please use onPress"))}})}}const Jc=c.createContext(!1);Jc.displayName="FieldsetContext";const dh=N.default.fieldset`
|
|
773
|
+
`,Uc=c.forwardRef(function(t,n){const{children:r,onDismiss:o,variant:a="default",layout:i="default",title:l,...s}=t,u=Pt(s,$s.propNames??[]),d=l?E(Be,{mb:p.spacing_200,children:E(jn,{as:"h2",looksLike:"h6",normal:!0,children:l})}):null,f=o?J(VC,{as:"button",onClick:o,variant:a,color:p.color_gray_6,type:"button",children:[E(Ei,{children:"Dismiss"}),E(De.Close,{})]}):null;return J(KC,{ref:n,...u,tabIndex:-1,variant:a,overflow:"hidden","data-id":s["data-id"],children:[d,f,E(Si,{space:p.spacing_300,children:r})]})});Uc.displayName="Banner",Uc.Action=OC;function No(e){const t=Pe(e);if(_i()==="virtual"){let n=t.activeElement;Sg(()=>{t.activeElement===n&&e.isConnected&&It(e)})}else It(e)}function BC(e){const t=vt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:i,visibility:l}=a(e);o=i!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function jC(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ah(e,t){return e.nodeName!=="#comment"&&BC(e)&&jC(e,t)&&(!e.parentElement||ah(e.parentElement,e))}const ih=S.default.createContext(null),Wc="react-aria-focus-scope-restore";let we=null;function UC(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,a=c.useRef(null),i=c.useRef(null),l=c.useRef([]),{parentNode:s}=c.useContext(ih)||{},u=c.useMemo(()=>new qc({scopeRef:l}),[l]);Te(()=>{let m=s||Le.root;if(Le.getTreeNode(m.scopeRef)&&we&&!Ti(we,m.scopeRef)){let g=Le.getTreeNode(we);g&&(m=g)}m.addChild(u),Le.addNode(u)},[u,s]),Te(()=>{let m=Le.getTreeNode(l);m&&(m.contain=!!n)},[n]),Te(()=>{var m;let g=(m=a.current)===null||m===void 0?void 0:m.nextSibling,h=[],b=v=>v.stopPropagation();for(;g&&g!==i.current;)h.push(g),g.addEventListener(Wc,b),g=g.nextSibling;return l.current=h,()=>{for(let v of h)v.removeEventListener(Wc,b)}},[t]),JC(l,r,n),YC(l,n),QC(l,r,n),XC(l,o),c.useEffect(()=>{const m=Pe(l.current?l.current[0]:void 0).activeElement;let g=null;if(He(m,l.current)){for(let h of Le.traverse())h.scopeRef&&He(m,h.scopeRef.current)&&(g=h);g===Le.getTreeNode(l)&&(we=g.scopeRef)}},[l]),Te(()=>()=>{var m,g,h;let b=(h=(g=Le.getTreeNode(l))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&h!==void 0?h:null;(l===we||Ti(l,we))&&(!b||Le.getTreeNode(b))&&(we=b),Le.removeTreeNode(l)},[l]);let d=c.useMemo(()=>WC(l),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return S.default.createElement(ih.Provider,{value:f},S.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,S.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function WC(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:a,accept:i}=t,l=r||Pe(n[0]).activeElement,s=n[0].previousElementSibling,u=Hn(n),d=Zt(u,{tabbable:o,accept:i},n);d.currentNode=He(l,n)?l:s;let f=d.nextNode();return!f&&a&&(d.currentNode=s,f=d.nextNode()),f&&Jt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:a,accept:i}=t,l=r||Pe(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=Hn(n),d=Zt(u,{tabbable:o,accept:i},n);d.currentNode=He(l,n)?l:s;let f=d.previousNode();return!f&&a&&(d.currentNode=s,f=d.previousNode()),f&&Jt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,a=Hn(n),i=Zt(a,{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let l=i.nextNode();return l&&Jt(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,a=Hn(n),i=Zt(a,{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let l=i.previousNode();return l&&Jt(l,!0),l}}}const Hc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],HC=Hc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const GC=Hc.join(':not([hidden]):not([tabindex="-1"]),');function Hn(e){return e[0].parentElement}function zo(e){let t=Le.getTreeNode(we);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function YC(e,t){let n=c.useRef(void 0),r=c.useRef(void 0);Te(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Pe(o?o[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!zo(e)||u.isComposing)return;let d=a.activeElement,f=e.current;if(!f||!He(d,f))return;let m=Hn(f),g=Zt(m,{tabbable:!0},f);if(!d)return;g.currentNode=d;let h=u.shiftKey?g.previousNode():g.nextNode();h||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,h=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),h&&Jt(h,!0)},l=u=>{(!we||Ti(we,e))&&He(u.target,e.current)?(we=e,n.current=u.target):zo(e)&&!Pi(u.target,e)?n.current?n.current.focus():we&&we.current&&Gc(we.current):zo(e)&&(n.current=u.target)},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&zo(e)&&!Pi(a.activeElement,e))if(we=e,a.body.contains(u.target)){var d;n.current=u.target,(d=n.current)===null||d===void 0||d.focus()}else we.current&&Gc(we.current)})};return a.addEventListener("keydown",i,!1),a.addEventListener("focusin",l,!1),o==null||o.forEach(u=>u.addEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",i,!1),a.removeEventListener("focusin",l,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),Te(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function lh(e){return Pi(e)}function He(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Pi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Le.traverse(Le.getTreeNode(t)))if(n&&He(e,n.current))return!0;return!1}function qC(e){return Pi(e,we)}function Ti(e,t){var n;let r=(n=Le.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Jt(e,t=!1){if(e!=null&&!t)try{No(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function sh(e,t=!0){let n=e[0].previousElementSibling,r=Hn(e),o=Zt(r,{tabbable:t},e);o.currentNode=n;let a=o.nextNode();return t&&!a&&(r=Hn(e),o=Zt(r,{tabbable:!1},e),o.currentNode=n,a=o.nextNode()),a}function Gc(e,t=!0){Jt(sh(e,t))}function XC(e,t){const n=S.default.useRef(t);c.useEffect(()=>{if(n.current){we=e;const r=Pe(e.current?e.current[0]:void 0);!He(r.activeElement,we.current)&&e.current&&Gc(e.current)}n.current=!1},[e])}function JC(e,t,n){Te(()=>{if(t||n)return;let r=e.current;const o=Pe(r?r[0]:void 0);let a=i=>{let l=i.target;He(l,e.current)?we=e:lh(l)||(we=null)};return o.addEventListener("focusin",a,!1),r==null||r.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,t,n])}function ZC(e){let t=Le.getTreeNode(we);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function QC(e,t,n){const r=c.useRef(typeof document<"u"?Pe(e.current?e.current[0]:void 0).activeElement:null);Te(()=>{let o=e.current;const a=Pe(o?o[0]:void 0);if(!t||n)return;let i=()=>{(!we||Ti(we,e))&&He(a.activeElement,e.current)&&(we=e)};return a.addEventListener("focusin",i,!1),o==null||o.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{a.removeEventListener("focusin",i,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,n]),Te(()=>{const o=Pe(e.current?e.current[0]:void 0);if(!t)return;let a=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!zo(e)||i.isComposing)return;let l=o.activeElement;if(!He(l,e.current))return;let s=Le.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,d=Zt(o.body,{tabbable:!0});d.currentNode=l;let f=i.shiftKey?d.previousNode():d.nextNode();if((!u||!o.body.contains(u)||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!He(f,e.current))&&u){d.currentNode=u;do f=i.shiftKey?d.previousNode():d.nextNode();while(He(f,e.current));i.preventDefault(),i.stopPropagation(),f?Jt(f,!0):lh(u)?Jt(u,!0):l.blur()}};return n||o.addEventListener("keydown",a,!0),()=>{n||o.removeEventListener("keydown",a,!0)}},[e,t,n]),Te(()=>{const o=Pe(e.current?e.current[0]:void 0);if(!t)return;let a=Le.getTreeNode(e);if(a){var i;return a.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let l=Le.getTreeNode(e);if(!l)return;let s=l.nodeToRestore;if(t&&s&&(He(o.activeElement,e.current)||o.activeElement===o.body&&ZC(e))){let u=Le.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){ch(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Le.getTreeNode(d.scopeRef)){let f=sh(d.scopeRef.current,!0);ch(f);return}d=d.parent}}})}}}},[e,t])}function ch(e){e.dispatchEvent(new CustomEvent(Wc,{bubbles:!0,cancelable:!0}))&&Jt(e)}function Zt(e,t,n){let r=t!=null&&t.tabbable?GC:HC,o=Pe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var i;return!(t==null||(i=t.from)===null||i===void 0)&&i.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&ah(a)&&(!n||He(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Yc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let a=new qc({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&He(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Yc;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new qc({scopeRef:null}),this.fastMap.set(null,this.root)}}class qc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Le=new Yc;function Ci(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=c.useRef({isFocused:!1,isFocusVisible:t||$i()}),[a,i]=c.useState(!1),[l,s]=c.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=c.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),d=c.useCallback(g=>{o.current.isFocused=g,i(g),u()},[u]);cC(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=zc({isDisabled:r,onFocusChange:d}),{focusWithinProps:m}=Fo({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:r?m:f}}function uh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=uh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ek(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=uh(e))&&(r&&(r+=" "),r+=t);return r}function tk(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:o,isFocusVisible:a,focusProps:i}=Ci(e),l=S.default.Children.only(t);return S.default.cloneElement(l,fe(l.props,{...i,className:ek({[n||""]:o,[r||""]:a})}))}let nk=S.default.createContext(null);function rk(e){let t=c.useContext(nk)||{};Tg(t,e);let{ref:n,...r}=t;return r}function Xc(e,t){let{focusProps:n}=zc(e),{keyboardProps:r}=pC(e),o=fe(n,r),a=rk(t),i=e.isDisabled?{}:a,l=c.useRef(e.autoFocus);return c.useEffect(()=>{l.current&&t.current&&No(t.current),l.current=!1},[t]),{focusableProps:fe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},i)}}function Dr(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:a,onPressEnd:i,onPressChange:l,preventFocusOnPress:s,allowFocusWhenDisabled:u,onClick:d,href:f,target:m,rel:g,type:h="button"}=e,b;n==="button"?b={type:h,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?m:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:v,isPressed:_}=Er({onPressStart:a,onPressEnd:i,onPressChange:l,onPress:o,isDisabled:r,preventFocusOnPress:s,ref:t}),{focusableProps:y}=Xc(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let w=fe(y,v,$n(e,{labelable:!0}));return{isPressed:_,buttonProps:fe(b,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:D=>{d&&(d(D),console.warn("onClick is deprecated, please use onPress"))}})}}const Jc=c.createContext(!1);Jc.displayName="FieldsetContext";const dh=N.default.fieldset`
|
|
778
774
|
padding: 0;
|
|
779
775
|
border: none;
|
|
780
776
|
`;function ok({children:e,disabled:t,...n}){const o=Mt()||!!t;return E(Jc.Provider,{value:o,children:E(dh,{disabled:t,...n,children:e})})}function Mt(){return c.useContext(Jc)}function fh({isFocusVisible:e,isPressed:t}){return[e?"focused":void 0,t?"pressed":void 0].filter(Boolean).join(" ")}const Zc={small:`${p.spacing_200} ${p.spacing_300}`,large:`${p.spacing_300} ${p.spacing_400}`},yt=N.default.button`
|
|
@@ -1618,8 +1614,6 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,H,re,oe+
|
|
|
1618
1614
|
|
|
1619
1615
|
${({truncate:e})=>e&&Es()}
|
|
1620
1616
|
|
|
1621
|
-
${({textDecoration:e})=>e&&`text-decoration: ${e};`}
|
|
1622
|
-
|
|
1623
1617
|
margin-block: 0;
|
|
1624
1618
|
overflow-wrap: break-word;
|
|
1625
1619
|
hyphens: auto;
|
|
@@ -1629,7 +1623,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var le=_e(ae,se,H,re,oe+
|
|
|
1629
1623
|
${({size:e,variant:t})=>J9(e??"medium",t)}
|
|
1630
1624
|
`,Z9=N.default(F$)``,Q9=N.default(F$)`
|
|
1631
1625
|
font-feature-settings: 'tnum' on, 'lnum' on, 'ss01' on;
|
|
1632
|
-
`,eA=(e,t)=>{const{variant:n="body",color:r,weak:o=!1,negative:a=!1,italic:i,bold:l,
|
|
1626
|
+
`,eA=(e,t)=>{const{variant:n="body",color:r,weak:o=!1,negative:a=!1,italic:i,bold:l,style:s={},as:u="p",...d}=e;let f,m;n==="number"?(f=e.fontWeight??(l?700:300),m=Q9):(f=e.fontWeight??(l?500:300),m=Z9);let g;r?g=r:a?g=p.color_brand_red:o?g=p.color_gray_52:g=p.color_black;const h={...d,fontStyle:i?"italic":"normal",textColor:g,fontWeight:f,style:s,variant:n,as:u};return E(m,{...h,ref:t})},tt=c.forwardRef(eA);tt.displayName="Text";const bd=N.default.ul`
|
|
1633
1627
|
max-height: 300px;
|
|
1634
1628
|
overflow: auto;
|
|
1635
1629
|
list-style: none;
|
|
@@ -1995,7 +1989,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1995
1989
|
:hover {
|
|
1996
1990
|
background-color: ${p.color_gray_opacity_5};
|
|
1997
1991
|
}
|
|
1998
|
-
`,x1=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:""},zM=({googleApiKey:e,placeholder:t="Enter an address",options:n,libraries:r=["places"],googleMapsScriptBaseUrl:o,debounce:a=300,defaultValue:i,value:l,onChange:s,disabled:u,isInvalid:d,label:f,labelId:m="location-input-label",inputId:g="location-input",hideLabel:h=!1,boldLabel:b=!1,autoFocus:v,extraMenuActions:_=[],showExtraActionsWithResults:y=!1,...w})=>{var G;const[D,T]=c.useState(i??l??""),P=c.createRef(),M=c.useRef(null),$=ua({}),{overlayProps:I}=uv({},P);c.useEffect(()=>{l&&T(l)},[l]);const{placesService:z,placePredictions:x,getPlacePredictions:V,isPlacePredictionsLoading:O}=CM({apiKey:e,libraries:r,googleMapsScriptBaseUrl:o,debounce:a,options:{input:D,...n}}),[C,j]=c.useState(-1),k=D.length>0&&!O&&x.length===0,q=c.useCallback(R=>{R&&(z==null||z.getDetails({placeId:R.place_id??""},(F,B)=>{if(F&&B===google.maps.places.PlacesServiceStatus.OK){const X=x1(F);X&&T(X),s==null||s(F),$.close(),j(-1)}else console.error("Error getting place details."),console.error("status: ",B),console.error("place: ",F)}))},[s,$,z]);return ri(()=>{document.activeElement===P.current&&$.close()}),J(Et,{children:[f?J(Re,{id:m,htmlFor:g,srOnly:h,mb:p.spacing_150,bold:b,children:[f,w.tooltipContent?E(Qe,{children:w.tooltipContent}):null]}):null,E(Lt,{height:p.spacing_600,type:"text",autoComplete:"off",autoFocus:v,"data-id":(w==null?void 0:w["data-id"])??g,id:g,disabled:u,"data-state":d?"invalid":void 0,value:((G=x[C])==null?void 0:G.description)??D,placeholder:t,ref:P,onChange:R=>{const F=R.target.value;(F==null?void 0:F.length)===0?(T(F),s==null||s(null)):(V({input:F,locationRestriction:n==null?void 0:n.bounds}),T(F),j(-1))},onFocus:R=>{R.target.select(),$.isOpen||$.open()},onBlur:()=>{$.isOpen&&$.close()},onKeyDown:R=>{R.key==="Enter"?R.preventDefault():R.key==="ArrowDown"?(C===-1&&(R.preventDefault(),j(0)),C<x.length-1&&(R.preventDefault(),j(C+1)),C===x.length-1&&(R.preventDefault(),j(-1))):R.key==="ArrowUp"?(C===-1&&(R.preventDefault(),j(x.length-1)),C===0&&(R.preventDefault(),j(-1)),C>0&&(R.preventDefault(),j(C-1))):(j(-1),$.isOpen||$.open())},onKeyUp:R=>{R.key==="Enter"&&C!==-1&&q(x[C])},onMouseUp:R=>{R.preventDefault()}}),w.errorMessage?E(St,{children:w.errorMessage}):null,$.isOpen&&(_.length||x.length)?E(Gr,{className:"google-input-popover",targetRef:P,popoverRef:M,state:$,...I,isTargetWidth:!0,placement:"bottom start",isNonModal:!0,children:J(ge,{onMouseDown:R=>R.preventDefault(),children:[D.length>0&&!O&&x.length>0?x.map((R,F)=>E(_1,{p:p.spacing_200,truncate:!0,onClick:()=>{q(R)},style:{cursor:"pointer"},backgroundColor:C===F?p.color_gray_opacity_5:"transparent",children:R.description},R.place_id)):null,O?E(tt,{as:"span",italic:!0,p:p.spacing_200,style:{cursor:"pointer"},children:"Loading..."}):null,_.length===0&&k?E(tt,{as:"span",p:p.spacing_200,style:{cursor:"pointer"},children:"No results found"}):null,_.length&&y?E("hr",{style:{margin:0}}):null,_.length&&y||D.length===0||!O&&x.length===0?_.map(R=>E(_1,{p:p.spacing_200,truncate:!0,onClick:()=>{R.onClick(),$.close()},style:{cursor:"pointer"},children:R.label},R.id)):null]})}):null]})};var w1={};w1={Empty:"فارغ"};var E1={};E1={Empty:"Изпразни"};var S1={};S1={Empty:"Prázdné"};var D1={};D1={Empty:"Tom"};var P1={};P1={Empty:"Leer"};var T1={};T1={Empty:"Άδειο"};var C1={};C1={Empty:"Empty"};var k1={};k1={Empty:"Vacío"};var A1={};A1={Empty:"Tühjenda"};var I1={};I1={Empty:"Tyhjä"};var O1={};O1={Empty:"Vide"};var M1={};M1={Empty:"ריק"};var F1={};F1={Empty:"Prazno"};var L1={};L1={Empty:"Üres"};var N1={};N1={Empty:"Vuoto"};var z1={};z1={Empty:"空"};var R1={};R1={Empty:"비어 있음"};var K1={};K1={Empty:"Tuščias"};var V1={};V1={Empty:"Tukšs"};var B1={};B1={Empty:"Tom"};var j1={};j1={Empty:"Leeg"};var U1={};U1={Empty:"Pusty"};var W1={};W1={Empty:"Vazio"};var H1={};H1={Empty:"Vazio"};var G1={};G1={Empty:"Gol"};var Y1={};Y1={Empty:"Не заполнено"};var q1={};q1={Empty:"Prázdne"};var X1={};X1={Empty:"Prazen"};var J1={};J1={Empty:"Prazno"};var Z1={};Z1={Empty:"Tomt"};var Q1={};Q1={Empty:"Boş"};var ex={};ex={Empty:"Пусто"};var tx={};tx={Empty:"空"};var nx={};nx={Empty:"空白"};function RM(e){return e&&e.__esModule?e.default:e}var rx={};rx={"ar-AE":w1,"bg-BG":E1,"cs-CZ":S1,"da-DK":D1,"de-DE":P1,"el-GR":T1,"en-US":C1,"es-ES":k1,"et-EE":A1,"fi-FI":I1,"fr-FR":O1,"he-IL":M1,"hr-HR":F1,"hu-HU":L1,"it-IT":N1,"ja-JP":z1,"ko-KR":R1,"lt-LT":K1,"lv-LV":V1,"nb-NO":B1,"nl-NL":j1,"pl-PL":U1,"pt-BR":W1,"pt-PT":H1,"ro-RO":G1,"ru-RU":Y1,"sk-SK":q1,"sl-SI":X1,"sr-SP":J1,"sv-SE":Z1,"tr-TR":Q1,"uk-UA":ex,"zh-CN":tx,"zh-TW":nx};function KM(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=_t(RM(rx),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);c.useEffect(()=>()=>v(),[]);let _=x=>{if(!(x.ctrlKey||x.metaKey||x.shiftKey||x.altKey||l))switch(x.key){case"PageUp":if(d){x.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":u&&(x.preventDefault(),u==null||u());break;case"PageDown":if(m){x.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":f&&(x.preventDefault(),f==null||f());break;case"Home":g&&(x.preventDefault(),g==null||g());break;case"End":h&&(x.preventDefault(),h==null||h());break}},y=c.useRef(!1),w=()=>{y.current=!0},D=()=>{y.current=!1},T=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");c.useEffect(()=>{y.current&&(L4("assertive"),Mr(T,"assertive"))},[T]);const P=ke(x=>{v(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&P(60)},x)}),M=ke(x=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&M(60)},x)});let $=x=>{x.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:z}=Pc();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":T,"aria-valuemin":o,"aria-valuemax":a,"aria-disabled":i||void 0,"aria-readonly":l||void 0,"aria-required":s||void 0,onKeyDown:_,onFocus:w,onBlur:D},incrementButtonProps:{onPressStart:()=>{P(400),I(window,"contextmenu",$)},onPressEnd:()=>{v(),z()},onFocus:w,onBlur:D},decrementButtonProps:{onPressStart:()=>{M(400),I(window,"contextmenu",$)},onPressEnd:()=>{v(),z()},onFocus:w,onBlur:D}}}function VM(e){return e&&e.__esModule?e.default:e}var ox={},ax={};ax={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ix={};ix={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var lx={};lx={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var sx={};sx={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var cx={};cx={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var ux={};ux={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var dx={};dx={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var fx={};fx={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var px={};px={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var mx={};mx={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var gx={};gx={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var hx={};hx={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var bx={};bx={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var vx={};vx={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var yx={};yx={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var $x={};$x={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var _x={};_x={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var xx={};xx={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var wx={};wx={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Ex={};Ex={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 Dx={};Dx={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Px={};Px={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Tx={};Tx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Cx={};Cx={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var kx={};kx={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ax={};Ax={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ix={};Ix={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Ox={};Ox={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Mx={};Mx={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Fx={};Fx={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Lx={};Lx={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Nx={};Nx={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var zx={};zx={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},ox={"ar-AE":ax,"bg-BG":ix,"cs-CZ":lx,"da-DK":sx,"de-DE":cx,"el-GR":ux,"en-US":dx,"es-ES":fx,"et-EE":px,"fi-FI":mx,"fr-FR":gx,"he-IL":hx,"hr-HR":bx,"hu-HU":vx,"it-IT":yx,"ja-JP":$x,"ko-KR":_x,"lt-LT":xx,"lv-LV":wx,"nb-NO":Ex,"nl-NL":Sx,"pl-PL":Dx,"pt-BR":Px,"pt-PT":Tx,"ro-RO":Cx,"ru-RU":kx,"sk-SK":Ax,"sl-SI":Ix,"sr-SP":Ox,"sv-SE":Mx,"tr-TR":Fx,"uk-UA":Lx,"zh-CN":Nx,"zh-TW":zx};function BM(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:w,description:D,errorMessage:T,...P}=e,{increment:M,incrementToMax:$,decrement:I,decrementToMin:z,numberValue:x,inputValue:V,commit:O}=t;const C=_t(VM(ox));let j=ct(r),{focusProps:k}=zc({onBlur:()=>{O()}}),q=Db(h),G=c.useMemo(()=>q.resolvedOptions(),[q]),R=Db({...h,currencySign:void 0}),F=c.useMemo(()=>isNaN(x)?"":R.format(x),[R,x]),{spinButtonProps:B,incrementButtonProps:X,decrementButtonProps:W}=KM({isDisabled:i,isReadOnly:l,isRequired:s,maxValue:d,minValue:u,onIncrement:M,onIncrementToMax:$,onDecrement:I,onDecrementToMin:z,value:x,textValue:F}),[H,re]=c.useState(!1),{focusWithinProps:oe}=Fo({isDisabled:i,onFocusWithinChange:re}),ae=c.useCallback(st=>{Math.abs(st.deltaY)<=Math.abs(st.deltaX)||(st.deltaY>0?M():st.deltaY<0&&I())},[I,M]);mC({onScroll:ae,isDisabled:i||l||!H},n);let ee=G.maximumFractionDigits>0,se=isNaN(t.minValue)||t.minValue<0,_e="numeric";wg()?se?_e="text":ee&&(_e="decimal"):Sc()&&(se?_e="numeric":ee&&(_e="decimal"));let le=st=>{t.validate(st)&&t.setInputValue(st)},pe=$n(e),{labelProps:Se,inputProps:Fn,descriptionProps:Ln,errorMessageProps:io}=B9({...P,...pe,label:g,autoFocus:f,isDisabled:i,isReadOnly:l,isRequired:s,validationState:m,value:V,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:j,type:"text",inputMode:_e,onChange:le,onBlur:b,onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:w,description:D,errorMessage:T},t,n),lo=fe(B,k,Fn,{role:null,"aria-roledescription":Co()?null:C.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),cn=st=>{document.activeElement!==n.current&&(st.pointerType==="mouse"?n.current.focus():st.target.focus())},zt=e["aria-label"]||(typeof e.label=="string"?e.label:""),un;zt||(un=e.label!=null?Se.id:e["aria-labelledby"]);let so=ct(),Zl=ct(),Zf=fe(X,{"aria-label":a||C.format("increase",{fieldLabel:zt}).trim(),id:un&&!a?so:null,"aria-labelledby":un&&!a?`${so} ${un}`:null,"aria-controls":j,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:cn}),Ql=fe(W,{"aria-label":o||C.format("decrease",{fieldLabel:zt}).trim(),id:un&&!o?Zl:null,"aria-labelledby":un&&!o?`${Zl} ${un}`:null,"aria-controls":j,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:cn});return{groupProps:{role:"group","aria-disabled":i,"aria-invalid":m==="invalid"?"true":void 0,...oe},labelProps:Se,inputProps:lo,incrementButtonProps:Zf,decrementButtonProps:Ql,errorMessageProps:io,descriptionProps:Ln}}function jM(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]=Ot(a,isNaN(i)?NaN:i,l),[g,h]=c.useState(()=>isNaN(f)?"":new qi(s,o).format(f)),b=c.useMemo(()=>new _b(s,o),[s,o]),v=c.useMemo(()=>b.getNumberingSystem(g),[b,g]),_=c.useMemo(()=>new qi(s,{...o,numberingSystem:v}),[s,o,v]),y=c.useMemo(()=>_.resolvedOptions(),[_]),w=c.useCallback(B=>isNaN(B)||B===null?"":_.format(B),[_]),D=isNaN(r)?1:r;y.style==="percent"&&isNaN(r)&&(D=.01);let[T,P]=c.useState(f),[M,$]=c.useState(s),[I,z]=c.useState(o);(!Object.is(f,T)||s!==M||o!==I)&&(h(w(f)),P(f),$(s),z(o));let x=c.useMemo(()=>b.parse(g),[b,g]),V=()=>{if(!g.length){m(NaN),h(a===void 0?"":w(f));return}if(isNaN(x)){h(w(f));return}let B;isNaN(r)?B=di(x,t,n):B=Un(x,t,n,r),B=b.parse(w(B)),m(B),h(w(a===void 0?B:f))},O=(B,X)=>{let W=x;if(isNaN(W)){let H=isNaN(X)?0:X;return Un(H,t,n,D)}else{let H=Un(W,t,n,D);return B==="+"&&H>W||B==="-"&&H<W?H:Un(Nd(B,W,D),t,n,D)}},C=()=>{let B=O("+",t);B===f&&h(w(B)),m(B)},j=()=>{let B=O("-",n);B===f&&h(w(B)),m(B)},k=()=>{n!=null&&m(Un(n,t,n,D))},q=()=>{t!=null&&m(t)},G=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(n)||Un(x,t,n,D)>x||Nd("+",x,D)<=n),[u,d,t,n,D,x]),R=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(t)||Un(x,t,n,D)<x||Nd("-",x,D)>=t),[u,d,t,n,D,x]);return{validate:B=>b.isValidPartialNumber(B,t,n),increment:C,incrementToMax:k,decrement:j,decrementToMin:q,canIncrement:G,canDecrement:R,minValue:t,maxValue:n,numberValue:x,setInputValue:h,inputValue:g,commit:V}}function Nd(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 Rx(e){const t=c.useRef(null),{buttonProps:n,isPressed:r}=Dr(e,t),{children:o,className:a}=e;return E("button",{"data-state":r?"pressed":void 0,ref:t,...n,className:a,children:o})}const UM=N.default.div`
|
|
1992
|
+
`,x1=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:""},zM=({googleApiKey:e,placeholder:t="Enter an address",options:n,libraries:r=["places"],googleMapsScriptBaseUrl:o,debounce:a=300,defaultValue:i,value:l,onChange:s,disabled:u,isInvalid:d,label:f,labelId:m="location-input-label",inputId:g="location-input",hideLabel:h=!1,boldLabel:b=!1,autoFocus:v,extraMenuActions:_=[],showExtraActionsWithResults:y=!1,...w})=>{var G;const[D,T]=c.useState(i??l??""),P=c.createRef(),M=c.useRef(null),$=ua({}),{overlayProps:I}=uv({},P);c.useEffect(()=>{l&&T(l)},[l]);const{placesService:z,placePredictions:x,getPlacePredictions:V,isPlacePredictionsLoading:O}=CM({apiKey:e,libraries:r,googleMapsScriptBaseUrl:o,debounce:a,options:{input:D,...n}}),[C,j]=c.useState(-1),k=D.length>0&&!O&&x.length===0,q=c.useCallback(R=>{R&&(z==null||z.getDetails({placeId:R.place_id??"",fields:n==null?void 0:n.fields},(F,B)=>{if(F&&B===google.maps.places.PlacesServiceStatus.OK){const X=x1(F);X&&T(X),s==null||s(F),$.close(),j(-1)}else console.error("Error getting place details."),console.error("status: ",B),console.error("place: ",F)}))},[s,n==null?void 0:n.fields,$,z]);return ri(()=>{document.activeElement===P.current&&$.close()}),J(Et,{children:[f?J(Re,{id:m,htmlFor:g,srOnly:h,mb:p.spacing_150,bold:b,children:[f,w.tooltipContent?E(Qe,{children:w.tooltipContent}):null]}):null,E(Lt,{height:p.spacing_600,type:"text",autoComplete:"off",autoFocus:v,"data-id":(w==null?void 0:w["data-id"])??g,id:g,disabled:u,"data-state":d?"invalid":void 0,value:((G=x[C])==null?void 0:G.description)??D,placeholder:t,ref:P,onChange:R=>{const F=R.target.value;(F==null?void 0:F.length)===0?(T(F),s==null||s(null)):(V({input:F,locationRestriction:n==null?void 0:n.bounds}),T(F),j(-1))},onFocus:R=>{R.target.select(),$.isOpen||$.open()},onBlur:()=>{$.isOpen&&$.close()},onKeyDown:R=>{R.key==="Enter"?R.preventDefault():R.key==="ArrowDown"?(C===-1&&(R.preventDefault(),j(0)),C<x.length-1&&(R.preventDefault(),j(C+1)),C===x.length-1&&(R.preventDefault(),j(-1))):R.key==="ArrowUp"?(C===-1&&(R.preventDefault(),j(x.length-1)),C===0&&(R.preventDefault(),j(-1)),C>0&&(R.preventDefault(),j(C-1))):(j(-1),$.isOpen||$.open())},onKeyUp:R=>{R.key==="Enter"&&C!==-1&&q(x[C])},onMouseUp:R=>{R.preventDefault()}}),w.errorMessage?E(St,{children:w.errorMessage}):null,$.isOpen&&(_.length||x.length)?E(Gr,{className:"google-input-popover",targetRef:P,popoverRef:M,state:$,...I,isTargetWidth:!0,placement:"bottom start",isNonModal:!0,children:J(ge,{onMouseDown:R=>R.preventDefault(),children:[D.length>0&&!O&&x.length>0?x.map((R,F)=>E(_1,{p:p.spacing_200,truncate:!0,onClick:()=>{q(R)},style:{cursor:"pointer"},backgroundColor:C===F?p.color_gray_opacity_5:"transparent",children:R.description},R.place_id)):null,O?E(tt,{as:"span",italic:!0,p:p.spacing_200,style:{cursor:"pointer"},children:"Loading..."}):null,_.length===0&&k?E(tt,{as:"span",p:p.spacing_200,style:{cursor:"pointer"},children:"No results found"}):null,_.length&&y?E("hr",{style:{margin:0}}):null,_.length&&y||D.length===0||!O&&x.length===0?_.map(R=>E(_1,{p:p.spacing_200,truncate:!0,onClick:()=>{R.onClick(),$.close()},style:{cursor:"pointer"},children:R.label},R.id)):null]})}):null]})};var w1={};w1={Empty:"فارغ"};var E1={};E1={Empty:"Изпразни"};var S1={};S1={Empty:"Prázdné"};var D1={};D1={Empty:"Tom"};var P1={};P1={Empty:"Leer"};var T1={};T1={Empty:"Άδειο"};var C1={};C1={Empty:"Empty"};var k1={};k1={Empty:"Vacío"};var A1={};A1={Empty:"Tühjenda"};var I1={};I1={Empty:"Tyhjä"};var O1={};O1={Empty:"Vide"};var M1={};M1={Empty:"ריק"};var F1={};F1={Empty:"Prazno"};var L1={};L1={Empty:"Üres"};var N1={};N1={Empty:"Vuoto"};var z1={};z1={Empty:"空"};var R1={};R1={Empty:"비어 있음"};var K1={};K1={Empty:"Tuščias"};var V1={};V1={Empty:"Tukšs"};var B1={};B1={Empty:"Tom"};var j1={};j1={Empty:"Leeg"};var U1={};U1={Empty:"Pusty"};var W1={};W1={Empty:"Vazio"};var H1={};H1={Empty:"Vazio"};var G1={};G1={Empty:"Gol"};var Y1={};Y1={Empty:"Не заполнено"};var q1={};q1={Empty:"Prázdne"};var X1={};X1={Empty:"Prazen"};var J1={};J1={Empty:"Prazno"};var Z1={};Z1={Empty:"Tomt"};var Q1={};Q1={Empty:"Boş"};var ex={};ex={Empty:"Пусто"};var tx={};tx={Empty:"空"};var nx={};nx={Empty:"空白"};function RM(e){return e&&e.__esModule?e.default:e}var rx={};rx={"ar-AE":w1,"bg-BG":E1,"cs-CZ":S1,"da-DK":D1,"de-DE":P1,"el-GR":T1,"en-US":C1,"es-ES":k1,"et-EE":A1,"fi-FI":I1,"fr-FR":O1,"he-IL":M1,"hr-HR":F1,"hu-HU":L1,"it-IT":N1,"ja-JP":z1,"ko-KR":R1,"lt-LT":K1,"lv-LV":V1,"nb-NO":B1,"nl-NL":j1,"pl-PL":U1,"pt-BR":W1,"pt-PT":H1,"ro-RO":G1,"ru-RU":Y1,"sk-SK":q1,"sl-SI":X1,"sr-SP":J1,"sv-SE":Z1,"tr-TR":Q1,"uk-UA":ex,"zh-CN":tx,"zh-TW":nx};function KM(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=_t(RM(rx),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);c.useEffect(()=>()=>v(),[]);let _=x=>{if(!(x.ctrlKey||x.metaKey||x.shiftKey||x.altKey||l))switch(x.key){case"PageUp":if(d){x.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":u&&(x.preventDefault(),u==null||u());break;case"PageDown":if(m){x.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":f&&(x.preventDefault(),f==null||f());break;case"Home":g&&(x.preventDefault(),g==null||g());break;case"End":h&&(x.preventDefault(),h==null||h());break}},y=c.useRef(!1),w=()=>{y.current=!0},D=()=>{y.current=!1},T=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");c.useEffect(()=>{y.current&&(L4("assertive"),Mr(T,"assertive"))},[T]);const P=ke(x=>{v(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&P(60)},x)}),M=ke(x=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&M(60)},x)});let $=x=>{x.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:z}=Pc();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":T,"aria-valuemin":o,"aria-valuemax":a,"aria-disabled":i||void 0,"aria-readonly":l||void 0,"aria-required":s||void 0,onKeyDown:_,onFocus:w,onBlur:D},incrementButtonProps:{onPressStart:()=>{P(400),I(window,"contextmenu",$)},onPressEnd:()=>{v(),z()},onFocus:w,onBlur:D},decrementButtonProps:{onPressStart:()=>{M(400),I(window,"contextmenu",$)},onPressEnd:()=>{v(),z()},onFocus:w,onBlur:D}}}function VM(e){return e&&e.__esModule?e.default:e}var ox={},ax={};ax={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ix={};ix={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var lx={};lx={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var sx={};sx={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var cx={};cx={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var ux={};ux={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var dx={};dx={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var fx={};fx={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var px={};px={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var mx={};mx={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var gx={};gx={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var hx={};hx={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var bx={};bx={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var vx={};vx={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var yx={};yx={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var $x={};$x={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var _x={};_x={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var xx={};xx={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var wx={};wx={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Ex={};Ex={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 Dx={};Dx={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Px={};Px={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Tx={};Tx={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Cx={};Cx={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var kx={};kx={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ax={};Ax={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ix={};Ix={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Ox={};Ox={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Mx={};Mx={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Fx={};Fx={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Lx={};Lx={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Nx={};Nx={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var zx={};zx={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},ox={"ar-AE":ax,"bg-BG":ix,"cs-CZ":lx,"da-DK":sx,"de-DE":cx,"el-GR":ux,"en-US":dx,"es-ES":fx,"et-EE":px,"fi-FI":mx,"fr-FR":gx,"he-IL":hx,"hr-HR":bx,"hu-HU":vx,"it-IT":yx,"ja-JP":$x,"ko-KR":_x,"lt-LT":xx,"lv-LV":wx,"nb-NO":Ex,"nl-NL":Sx,"pl-PL":Dx,"pt-BR":Px,"pt-PT":Tx,"ro-RO":Cx,"ru-RU":kx,"sk-SK":Ax,"sl-SI":Ix,"sr-SP":Ox,"sv-SE":Mx,"tr-TR":Fx,"uk-UA":Lx,"zh-CN":Nx,"zh-TW":zx};function BM(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:w,description:D,errorMessage:T,...P}=e,{increment:M,incrementToMax:$,decrement:I,decrementToMin:z,numberValue:x,inputValue:V,commit:O}=t;const C=_t(VM(ox));let j=ct(r),{focusProps:k}=zc({onBlur:()=>{O()}}),q=Db(h),G=c.useMemo(()=>q.resolvedOptions(),[q]),R=Db({...h,currencySign:void 0}),F=c.useMemo(()=>isNaN(x)?"":R.format(x),[R,x]),{spinButtonProps:B,incrementButtonProps:X,decrementButtonProps:W}=KM({isDisabled:i,isReadOnly:l,isRequired:s,maxValue:d,minValue:u,onIncrement:M,onIncrementToMax:$,onDecrement:I,onDecrementToMin:z,value:x,textValue:F}),[H,re]=c.useState(!1),{focusWithinProps:oe}=Fo({isDisabled:i,onFocusWithinChange:re}),ae=c.useCallback(st=>{Math.abs(st.deltaY)<=Math.abs(st.deltaX)||(st.deltaY>0?M():st.deltaY<0&&I())},[I,M]);mC({onScroll:ae,isDisabled:i||l||!H},n);let ee=G.maximumFractionDigits>0,se=isNaN(t.minValue)||t.minValue<0,_e="numeric";wg()?se?_e="text":ee&&(_e="decimal"):Sc()&&(se?_e="numeric":ee&&(_e="decimal"));let le=st=>{t.validate(st)&&t.setInputValue(st)},pe=$n(e),{labelProps:Se,inputProps:Fn,descriptionProps:Ln,errorMessageProps:io}=B9({...P,...pe,label:g,autoFocus:f,isDisabled:i,isReadOnly:l,isRequired:s,validationState:m,value:V,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:j,type:"text",inputMode:_e,onChange:le,onBlur:b,onFocus:v,onFocusChange:_,onKeyDown:y,onKeyUp:w,description:D,errorMessage:T},t,n),lo=fe(B,k,Fn,{role:null,"aria-roledescription":Co()?null:C.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),cn=st=>{document.activeElement!==n.current&&(st.pointerType==="mouse"?n.current.focus():st.target.focus())},zt=e["aria-label"]||(typeof e.label=="string"?e.label:""),un;zt||(un=e.label!=null?Se.id:e["aria-labelledby"]);let so=ct(),Zl=ct(),Zf=fe(X,{"aria-label":a||C.format("increase",{fieldLabel:zt}).trim(),id:un&&!a?so:null,"aria-labelledby":un&&!a?`${so} ${un}`:null,"aria-controls":j,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:cn}),Ql=fe(W,{"aria-label":o||C.format("decrease",{fieldLabel:zt}).trim(),id:un&&!o?Zl:null,"aria-labelledby":un&&!o?`${Zl} ${un}`:null,"aria-controls":j,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:cn});return{groupProps:{role:"group","aria-disabled":i,"aria-invalid":m==="invalid"?"true":void 0,...oe},labelProps:Se,inputProps:lo,incrementButtonProps:Zf,decrementButtonProps:Ql,errorMessageProps:io,descriptionProps:Ln}}function jM(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]=Ot(a,isNaN(i)?NaN:i,l),[g,h]=c.useState(()=>isNaN(f)?"":new qi(s,o).format(f)),b=c.useMemo(()=>new _b(s,o),[s,o]),v=c.useMemo(()=>b.getNumberingSystem(g),[b,g]),_=c.useMemo(()=>new qi(s,{...o,numberingSystem:v}),[s,o,v]),y=c.useMemo(()=>_.resolvedOptions(),[_]),w=c.useCallback(B=>isNaN(B)||B===null?"":_.format(B),[_]),D=isNaN(r)?1:r;y.style==="percent"&&isNaN(r)&&(D=.01);let[T,P]=c.useState(f),[M,$]=c.useState(s),[I,z]=c.useState(o);(!Object.is(f,T)||s!==M||o!==I)&&(h(w(f)),P(f),$(s),z(o));let x=c.useMemo(()=>b.parse(g),[b,g]),V=()=>{if(!g.length){m(NaN),h(a===void 0?"":w(f));return}if(isNaN(x)){h(w(f));return}let B;isNaN(r)?B=di(x,t,n):B=Un(x,t,n,r),B=b.parse(w(B)),m(B),h(w(a===void 0?B:f))},O=(B,X)=>{let W=x;if(isNaN(W)){let H=isNaN(X)?0:X;return Un(H,t,n,D)}else{let H=Un(W,t,n,D);return B==="+"&&H>W||B==="-"&&H<W?H:Un(Nd(B,W,D),t,n,D)}},C=()=>{let B=O("+",t);B===f&&h(w(B)),m(B)},j=()=>{let B=O("-",n);B===f&&h(w(B)),m(B)},k=()=>{n!=null&&m(Un(n,t,n,D))},q=()=>{t!=null&&m(t)},G=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(n)||Un(x,t,n,D)>x||Nd("+",x,D)<=n),[u,d,t,n,D,x]),R=c.useMemo(()=>!u&&!d&&(isNaN(x)||isNaN(t)||Un(x,t,n,D)<x||Nd("-",x,D)>=t),[u,d,t,n,D,x]);return{validate:B=>b.isValidPartialNumber(B,t,n),increment:C,incrementToMax:k,decrement:j,decrementToMin:q,canIncrement:G,canDecrement:R,minValue:t,maxValue:n,numberValue:x,setInputValue:h,inputValue:g,commit:V}}function Nd(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 Rx(e){const t=c.useRef(null),{buttonProps:n,isPressed:r}=Dr(e,t),{children:o,className:a}=e;return E("button",{"data-state":r?"pressed":void 0,ref:t,...n,className:a,children:o})}const UM=N.default.div`
|
|
1999
1993
|
/*
|
|
2000
1994
|
--border-color: ${p.color_deprecated_outline_secondary_enabled};
|
|
2001
1995
|
*/
|