@midas-ds/components 12.1.0 → 12.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AccordionItem-SOfjXh3V.cjs → AccordionItem-CV9Hrare.cjs} +1 -1
- package/{AccordionItem-C9dBt-tQ.js → AccordionItem-Dd9VLdsb.js} +1 -1
- package/{Breadcrumbs-DUcHHI_2.cjs → Breadcrumbs-BQLxFZVm.cjs} +1 -1
- package/{Breadcrumbs-BAHJMPsu.js → Breadcrumbs-C6B4fyk3.js} +1 -1
- package/{Button-DYcmg49Z.js → Button-CUMHt7MG.js} +1 -1
- package/{Button-DrL5Jv-s.cjs → Button-D_tRdPW9.cjs} +1 -1
- package/Button.module-BT9wZenr.cjs +1 -0
- package/Button.module-CGIVvzVm.js +14 -0
- package/{ButtonGroup-WZZDPu9Z.js → ButtonGroup-DC8925jD.js} +1 -1
- package/{ButtonGroup-ClYTgaRc.cjs → ButtonGroup-zx-9mxbJ.cjs} +1 -1
- package/CHANGELOG.md +17 -0
- package/Card-D2UbrhDW.js +131 -0
- package/Card-UolcSL5O.cjs +1 -0
- package/{Checkbox-BtM2rFh9.js → Checkbox-DTuryJdM.js} +14 -14
- package/{Checkbox-CvdIG43J.cjs → Checkbox-dtZfsSfx.cjs} +1 -1
- package/{CheckboxGroup-CjcDYBRk.js → CheckboxGroup-BmCK0XG9.js} +2 -2
- package/{CheckboxGroup-C94as9Xt.cjs → CheckboxGroup-DbmYdQEv.cjs} +1 -1
- package/{ColorSchemeSwitch-C4PMYeD5.js → ColorSchemeSwitch-CgZfgCG4.js} +1 -1
- package/{ColorSchemeSwitch-CKcoGZM1.cjs → ColorSchemeSwitch-D5juAHPc.cjs} +1 -1
- package/{ComboBox-BWXJZyOR.js → ComboBox-Cl6jBB-8.js} +85 -85
- package/{ComboBox-B2EmfOyr.cjs → ComboBox-CvD0t2T2.cjs} +1 -1
- package/{DateField-CcQJYDLD.js → DateField-D2IqGDL5.js} +2 -2
- package/{DateField-IpCiF81R.cjs → DateField-DJAQH95Q.cjs} +1 -1
- package/{DateInputDivider-Cf5GZHlM.cjs → DateInputDivider-BnSo_Aox.cjs} +1 -1
- package/{DateInputDivider-CXkUdlzc.js → DateInputDivider-LxS0Kw1H.js} +2 -2
- package/{DateRangePicker-B2BJO1KC.js → DateRangePicker-CNPXbRqx.js} +4 -4
- package/{DateRangePicker-Dfwe9RhJ.cjs → DateRangePicker-CljQy8oD.cjs} +2 -2
- package/{Dialog-P3frHOdq.js → Dialog-COpVrq8B.js} +21 -21
- package/{Dialog-DgJobm71.cjs → Dialog-doGnVsJJ.cjs} +1 -1
- package/{Dropdown-DJ2vWAqk.cjs → Dropdown-C_W6Sizy.cjs} +1 -1
- package/{Dropdown-CIvWpN3v.js → Dropdown-DbeUiGYo.js} +1 -1
- package/{Grid-s8ovKDi8.js → Grid-BmX6arAO.js} +1 -1
- package/{Grid-WbEkSCGh.cjs → Grid-Bn1bCTH8.cjs} +1 -1
- package/GridItem-BtO9kCX9.js +237 -0
- package/GridItem-luVsL9lu.cjs +1 -0
- package/{InfoBanner-CrA8MS3v.js → InfoBanner-CgmPdsH8.js} +1 -1
- package/{InfoBanner-CqjnTYaa.cjs → InfoBanner-Y-f3hKVR.cjs} +1 -1
- package/{Label-BG7G0iyG.js → Label-C5TNJ0Ku.js} +1 -1
- package/{Label-C00qz3kQ.cjs → Label-Dp85Vue3.cjs} +1 -1
- package/{Layout-Bta_Cpq_.cjs → Layout-Bxd0-ao3.cjs} +2 -2
- package/{Layout-CG-Qxr_1.js → Layout-CcXu63hP.js} +133 -133
- package/Link-ePZ3nrAW.cjs +6 -0
- package/{Link-BtxKZ0h3.js → Link-lO-Ke97K.js} +20 -20
- package/{LinkButton-D3EnZ65v.js → LinkButton-CJyZh3BS.js} +26 -26
- package/LinkButton-Cw73pOM2.cjs +6 -0
- package/{ListBoxLoadMoreItem-Ceo73a2q.cjs → ListBoxLoadMoreItem-3jGpi90m.cjs} +1 -1
- package/{ListBoxLoadMoreItem-W11V-Lef.js → ListBoxLoadMoreItem-CIFJ3liN.js} +2 -2
- package/{ListBoxSection-BCPv9H50.js → ListBoxSection-BBY8-t3_.js} +11 -11
- package/{ListBoxSection-Dx75ZinL.cjs → ListBoxSection-BeDwnVZx.cjs} +1 -1
- package/{ProgressBar-CdXHEJh6.js → ProgressBar-BYb9d2kC.js} +1 -1
- package/{ProgressBar-CjuHokVZ.cjs → ProgressBar-CgbE08QT.cjs} +1 -1
- package/{Radio-Bll-7H8O.cjs → Radio-BagVPvJX.cjs} +1 -1
- package/{Radio-DoWx2AE1.js → Radio-C98ly9yx.js} +14 -14
- package/{RangeCalendar-D7eFVAPP.js → RangeCalendar-Bi9jc61A.js} +61 -61
- package/{RangeCalendar-A4WQIG7P.cjs → RangeCalendar-KcJooXYf.cjs} +2 -2
- package/{SearchField-BbrUZpQm.cjs → SearchField-BA-X9dzb.cjs} +2 -2
- package/{SearchField-F2FKgYds.js → SearchField-BevjTbcW.js} +46 -46
- package/{Select-Dpi3LhbI.js → Select-BECa8IyZ.js} +112 -112
- package/Select-xBp51JSl.cjs +1 -0
- package/Skeleton-Iovq135_.js +35 -0
- package/Skeleton-MaBUPqhT.cjs +1 -0
- package/{Spinner-DTKb_LAA.js → Spinner-BZ7i01Kt.js} +13 -13
- package/Spinner-DxWDMW6e.cjs +6 -0
- package/{TabList-D4WwgQY3.cjs → TabList-BMyKYLlY.cjs} +1 -1
- package/{TabList-D9tl2s85.js → TabList-C0mZgIzV.js} +45 -45
- package/{Table-C6k3PiiC.cjs → Table-BHY1uCZ0.cjs} +1 -1
- package/{Table-CkN3y69S.js → Table-DzbfeVO7.js} +1 -1
- package/{Tag-BUJ20HHw.js → Tag-BYUPXbhG.js} +1 -1
- package/{Tag-7dHEMQum.cjs → Tag-BweDKw1v.cjs} +1 -1
- package/{TextArea-h5_oBQH1.js → TextArea-CDoLq124.js} +3 -3
- package/{TextArea-BCikUXaD.cjs → TextArea-DJCtwrqV.cjs} +1 -1
- package/TextField.module-CH39P8ZE.js +13 -0
- package/TextField.module-gJ-ruFra.cjs +1 -0
- package/{Toast-DclaxvZM.cjs → Toast-BN3vRCsH.cjs} +1 -1
- package/{Toast-BBkWczCk.js → Toast-DZnQTLDr.js} +172 -174
- package/{ToggleButtonGroup-BGG64PK1.js → ToggleButtonGroup-CwHPu7w5.js} +1 -1
- package/{ToggleButtonGroup-Da330GRT.cjs → ToggleButtonGroup-DY9S3USc.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/GridItem.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/variables.css +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/index.cjs +1 -1
- package/index.js +36 -36
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +1 -1
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +1 -1
- package/package.json +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +0 -3
- package/theme/generated-tokens.d.ts +0 -3
- package/theme/index.cjs +1 -1
- package/theme/index.js +249 -297
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/Button.module-BNLcvARn.cjs +0 -1
- package/Button.module-Bax2YU6N.js +0 -14
- package/Card-BDDyGAMA.js +0 -131
- package/Card-mj5lCIR4.cjs +0 -1
- package/GridItem-CIVF1fRW.cjs +0 -1
- package/GridItem-D3FZyyO-.js +0 -243
- package/Link-Bx6avHVl.cjs +0 -6
- package/LinkButton-BvXu6vAH.cjs +0 -6
- package/Select-BnbDXwgD.cjs +0 -1
- package/Skeleton-BpYj25p8.js +0 -37
- package/Skeleton-DMOxEwnd.cjs +0 -1
- package/Spinner-D1UBuLy4.cjs +0 -6
- package/TextField.module-C9Zm9unF.js +0 -13
- package/TextField.module-GTQtNO0r.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-DrL5Jv-s.cjs"),a=require("react"),P=require("react-dom"),B=require("./clsx-C11secjj.cjs"),Te=require("./icon-map-9XcghDra.cjs"),g=require("./index-DSFSh2sC.cjs"),k=require("./mergeProps-JhcJ7uJL.cjs"),T=require("./utils-__vrf9VZ.cjs"),_=require("./useHover-DGAmG7jt.cjs"),Le=require("./useFocusWithin-DTnk0e8a.cjs"),A=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),_e=require("./filterDOMProps-RRlKPKX0.cjs"),we=require("./x-rV-nu490.cjs"),F=1,w=Symbol.for("react-aria-landmark-manager");function Be(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[w];return t&&t.version>=F?t:(document[w]=new Ce,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[w])}function ye(){return g.shimExports.useSyncExternalStore(Be,I,I)}class Ce{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var u,i;(i=this.landmarks.find(o=>o.ref.current===e))===null||i===void 0||(u=i.focus)===null||u===void 0||u.call(i,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(i=>i.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(i=>i.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,u=this.landmarks.length-1;for(;n<=u;){let i=Math.floor((n+u)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);!!(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?n=i+1:u=i-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(u=>u.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let u=[...n].filter(i=>!i.label);if(u.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,u.map(i=>i.ref.current));else if(process.env.NODE_ENV!=="production"){let i=[...n].map(r=>r.label);i.filter((r,s)=>i.indexOf(r)!==s).forEach(r=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(i=>[i.ref.current,i])),u=e;for(;u&&!n.has(u)&&u!==document.body&&u.parentElement;)u=u.parentElement;return n.get(u)}getNextLandmark(e,{backward:n}){var u;let i=this.closestLandmark(e),o=n?this.landmarks.length-1:0;i&&(o=this.landmarks.indexOf(i)+(n?-1:1));let r=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(r())return;let s=o;for(;!((u=this.landmarks[o].ref.current)===null||u===void 0)&&u.closest("[aria-hidden=true]");){if(o+=n?-1:1,r())return;if(o===s)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let u=this.getNextLandmark(e,{backward:n});if(!u)return!1;if(u.lastFocused){let i=u.lastFocused;if(document.body.contains(i))return i.focus(),!0}return u.ref.current&&document.contains(u.ref.current)?(this.focusLandmark(u.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let u=e.relatedTarget;if(u){let i=this.closestLandmark(u);i&&i.ref.current===u&&i.blur()}}focusoutHandler(e){let n=e.target,u=e.relatedTarget;if(!u||u===document){let i=this.closestLandmark(n);i&&i.ref.current===n&&i.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,u){let i=(u==null?void 0:u.from)||document.activeElement;return e.navigate(i,n==="backward")},focusNext(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!1)},focusPrevious(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ie(t,e){const{role:n,"aria-label":u,"aria-labelledby":i,focus:o}=t;let r=ye(),s=u||i,[m,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:o||$,blur:p})},[r,s,e,n,o,$,p]),a.useEffect(()=>{var c;m&&((c=e.current)===null||c===void 0||c.focus())},[m,e]),{landmarkProps:{role:n,tabIndex:m?-1:void 0,"aria-label":u,"aria-labelledby":i}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var z={};z={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var M={};M={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var O={};O={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var j={};j={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var H={};H={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var V={};V={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var U={};U={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var q={};q={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var W={};W={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var K={};K={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var Z={};Z={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var G={};G={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var Q={};Q={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var J={};J={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var X={};X={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var Y={};Y={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var ee={};ee={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var te={};te={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ne={};ne={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ie={};ie={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var oe={};oe={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var re={};re={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var se={};se={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ae={};ae={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var ce={};ce={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var le={};le={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var de={};de={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var fe={};fe={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var be={};be={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var y={};y={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":z,"el-GR":M,"en-US":O,"es-ES":j,"et-EE":H,"fi-FI":V,"fr-FR":U,"he-IL":q,"hr-HR":W,"hu-HU":K,"it-IT":Z,"ja-JP":G,"ko-KR":Q,"lt-LT":J,"lv-LV":X,"nb-NO":Y,"nl-NL":ee,"pl-PL":te,"pt-BR":ne,"pt-PT":ue,"ro-RO":ie,"ru-RU":oe,"sk-SK":re,"sl-SI":se,"sr-SP":ae,"sv-SE":ce,"tr-TR":le,"uk-UA":de,"zh-CN":fe,"zh-TW":be};function Pe(t){return t&&t.__esModule?t.default:t}function ge(t,e,n){let{key:u,timer:i,timeout:o}=t.toast;a.useEffect(()=>{if(!(i==null||o==null))return i.reset(o),()=>{i.pause()}},[i,o]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),m=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(y),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{..._e.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":m.format("close"),onPress:()=>e.close(u)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Fe(t,e,n){let u=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(y),"@react-aria/toast"),{landmarkProps:i}=Ie({role:"region","aria-label":t["aria-label"]||u.format("notifications",{count:e.visibleToasts.length})},n),o=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{o.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:m}=_.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{o.current=!0,s()},onHoverEnd:()=>{o.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,h)=>d.key===$.current[h].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,h)=>({...d,i:h,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),L=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(L>-1){var E;if(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,h,v;for(;d<=L;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){h=d-1;break}d++}v===void 0&&h===void 0&&(v=0),v>=0&&v<f.current.length?T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):h>=0&&h<f.current.length&&T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[h])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=Le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(i,m,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let L=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===L)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(i=>t.subscribe(i),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:g.shimExports.useSyncExternalStore(e,n,n),add:(i,o)=>t.add(i,o),close:i=>t.close(i),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class me{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let u="_"+Math.random().toString(36).slice(2),i={...n,content:e,key:u,timer:n.timeout?new Ne(()=>this.close(u),n.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),u}close(e){let n=this.queue.findIndex(o=>o.key===e);if(n>=0){var u,i;(u=(i=this.queue[n]).onClose)===null||u===void 0||u.call(i),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Ne{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Re='"../theme/breakpoints.css"',Se="_toastRegion_1uufz_52",De="_toast_1uufz_52",ze="_success_1uufz_95",Me="_info_1uufz_103",Oe="_important_1uufz_111",je="_warning_1uufz_119",He="_icon_1uufz_127",Ve="_toastContent_1uufz_137",Ue="_toastMessage_1uufz_144",qe="_slideInTop_1uufz_1",We="_slideInEnd_1uufz_1",Ke="_slideOutTop_1uufz_1",Ze="_slideOutEnd_1uufz_1",x={breakpoints:Re,"--midas-breakpoints-md":"(min-width: 768px)",toastRegion:Se,toast:De,success:ze,info:Me,important:Oe,warning:je,icon:He,toastContent:Ve,toastMessage:Ue,slideInTop:qe,slideInEnd:We,slideOutTop:Ke,slideOutEnd:Ze},he={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{P.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,u=a.useMemo(()=>new me({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(u)}const ve=new me(he),Ge=t=>{const e=$e(ve);return e.visibleToasts.length>0?P.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Qe=({children:t,...e})=>{const n=pe(he);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const u=a.useRef(null),{regionProps:i}=Fe(n,t,u);return b.jsx("div",{...i,ref:u,className:B.clsx(x.toastRegion,e),children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,className:e,...n}){const u=a.useRef(null),{toastProps:i,contentProps:o,titleProps:r,closeButtonProps:s}=ge(n,t),m=Te.iconMap[n.toast.content.type];return b.jsxs("div",{...i,ref:u,className:B.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(x.toastContent,o.className),children:[b.jsx(m,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...s,children:b.jsx(we.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Ge;exports.Toast=xe;exports.ToastProvider=Qe;exports.ToastRegion=C;exports.toastQueue=ve;exports.useToastState=pe;
|
|
1
|
+
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-D_tRdPW9.cjs"),a=require("react"),P=require("react-dom"),B=require("./clsx-C11secjj.cjs"),Te=require("./icon-map-9XcghDra.cjs"),g=require("./index-DSFSh2sC.cjs"),k=require("./mergeProps-JhcJ7uJL.cjs"),T=require("./utils-__vrf9VZ.cjs"),L=require("./useHover-DGAmG7jt.cjs"),we=require("./useFocusWithin-DTnk0e8a.cjs"),A=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),Le=require("./filterDOMProps-RRlKPKX0.cjs"),_e=require("./x-rV-nu490.cjs"),F=1,_=Symbol.for("react-aria-landmark-manager");function Be(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[_];return t&&t.version>=F?t:(document[_]=new Ce,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[_])}function ye(){return g.shimExports.useSyncExternalStore(Be,I,I)}class Ce{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var u,i;(i=this.landmarks.find(o=>o.ref.current===e))===null||i===void 0||(u=i.focus)===null||u===void 0||u.call(i,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(i=>i.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(i=>i.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,u=this.landmarks.length-1;for(;n<=u;){let i=Math.floor((n+u)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);!!(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?n=i+1:u=i-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(u=>u.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let u=[...n].filter(i=>!i.label);if(u.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,u.map(i=>i.ref.current));else if(process.env.NODE_ENV!=="production"){let i=[...n].map(r=>r.label);i.filter((r,s)=>i.indexOf(r)!==s).forEach(r=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(i=>[i.ref.current,i])),u=e;for(;u&&!n.has(u)&&u!==document.body&&u.parentElement;)u=u.parentElement;return n.get(u)}getNextLandmark(e,{backward:n}){var u;let i=this.closestLandmark(e),o=n?this.landmarks.length-1:0;i&&(o=this.landmarks.indexOf(i)+(n?-1:1));let r=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(r())return;let s=o;for(;!((u=this.landmarks[o].ref.current)===null||u===void 0)&&u.closest("[aria-hidden=true]");){if(o+=n?-1:1,r())return;if(o===s)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let u=this.getNextLandmark(e,{backward:n});if(!u)return!1;if(u.lastFocused){let i=u.lastFocused;if(document.body.contains(i))return i.focus(),!0}return u.ref.current&&document.contains(u.ref.current)?(this.focusLandmark(u.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let u=e.relatedTarget;if(u){let i=this.closestLandmark(u);i&&i.ref.current===u&&i.blur()}}focusoutHandler(e){let n=e.target,u=e.relatedTarget;if(!u||u===document){let i=this.closestLandmark(n);i&&i.ref.current===n&&i.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,u){let i=(u==null?void 0:u.from)||document.activeElement;return e.navigate(i,n==="backward")},focusNext(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!1)},focusPrevious(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ie(t,e){const{role:n,"aria-label":u,"aria-labelledby":i,focus:o}=t;let r=ye(),s=u||i,[h,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:o||$,blur:p})},[r,s,e,n,o,$,p]),a.useEffect(()=>{var c;h&&((c=e.current)===null||c===void 0||c.focus())},[h,e]),{landmarkProps:{role:n,tabIndex:h?-1:void 0,"aria-label":u,"aria-labelledby":i}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var M={};M={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var O={};O={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var j={};j={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var H={};H={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var V={};V={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var z={};z={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var U={};U={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var q={};q={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var W={};W={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var K={};K={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var Z={};Z={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var G={};G={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var Q={};Q={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var J={};J={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var X={};X={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var Y={};Y={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var ee={};ee={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var te={};te={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ne={};ne={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ie={};ie={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var oe={};oe={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var re={};re={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var se={};se={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ae={};ae={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var ce={};ce={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var le={};le={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var de={};de={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var fe={};fe={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var be={};be={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var y={};y={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":M,"el-GR":O,"en-US":j,"es-ES":H,"et-EE":V,"fi-FI":z,"fr-FR":U,"he-IL":q,"hr-HR":W,"hu-HU":K,"it-IT":Z,"ja-JP":G,"ko-KR":Q,"lt-LT":J,"lv-LV":X,"nb-NO":Y,"nl-NL":ee,"pl-PL":te,"pt-BR":ne,"pt-PT":ue,"ro-RO":ie,"ru-RU":oe,"sk-SK":re,"sl-SI":se,"sr-SP":ae,"sv-SE":ce,"tr-TR":le,"uk-UA":de,"zh-CN":fe,"zh-TW":be};function Pe(t){return t&&t.__esModule?t.default:t}function ge(t,e,n){let{key:u,timer:i,timeout:o}=t.toast;a.useEffect(()=>{if(!(i==null||o==null))return i.reset(o),()=>{i.pause()}},[i,o]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),h=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(y),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{...Le.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":h.format("close"),onPress:()=>e.close(u)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Fe(t,e,n){let u=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(y),"@react-aria/toast"),{landmarkProps:i}=Ie({role:"region","aria-label":t["aria-label"]||u.format("notifications",{count:e.visibleToasts.length})},n),o=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{o.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:h}=L.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{o.current=!0,s()},onHoverEnd:()=>{o.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,m)=>d.key===$.current[m].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,m)=>({...d,i:m,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),w=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(w>-1){var E;if(L.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,m,v;for(;d<=w;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){m=d-1;break}d++}v===void 0&&m===void 0&&(v=0),v>=0&&v<f.current.length?T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):m>=0&&m<f.current.length&&T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[m])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=we.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(L.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(L.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(i,h,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let w=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===w)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(i=>t.subscribe(i),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:g.shimExports.useSyncExternalStore(e,n,n),add:(i,o)=>t.add(i,o),close:i=>t.close(i),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class he{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let u="_"+Math.random().toString(36).slice(2),i={...n,content:e,key:u,timer:n.timeout?new Ne(()=>this.close(u),n.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),u}close(e){let n=this.queue.findIndex(o=>o.key===e);if(n>=0){var u,i;(u=(i=this.queue[n]).onClose)===null||u===void 0||u.call(i),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Ne{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Re="_toastRegion_xhwdf_49",Se="_toast_xhwdf_49",De="_success_xhwdf_92",Me="_info_xhwdf_100",Oe="_important_xhwdf_108",je="_warning_xhwdf_116",He="_icon_xhwdf_124",Ve="_toastContent_xhwdf_134",ze="_toastMessage_xhwdf_141",Ue="_slideInTop_xhwdf_1",qe="_slideInEnd_xhwdf_1",We="_slideOutTop_xhwdf_1",Ke="_slideOutEnd_xhwdf_1",x={toastRegion:Re,toast:Se,success:De,info:Me,important:Oe,warning:je,icon:He,toastContent:Ve,toastMessage:ze,slideInTop:Ue,slideInEnd:qe,slideOutTop:We,slideOutEnd:Ke},me={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{P.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,u=a.useMemo(()=>new he({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(u)}const ve=new he(me),Ze=t=>{const e=$e(ve);return e.visibleToasts.length>0?P.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Ge=({children:t,...e})=>{const n=pe(me);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const u=a.useRef(null),{regionProps:i}=Fe(n,t,u);return b.jsx("div",{...i,ref:u,className:B.clsx(x.toastRegion,e),children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,className:e,...n}){const u=a.useRef(null),{toastProps:i,contentProps:o,titleProps:r,closeButtonProps:s}=ge(n,t),h=Te.iconMap[n.toast.content.type];return b.jsxs("div",{...i,ref:u,className:B.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(x.toastContent,o.className),children:[b.jsx(h,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...s,children:b.jsx(_e.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Ze;exports.Toast=xe;exports.ToastProvider=Ge;exports.ToastRegion=C;exports.toastQueue=ve;exports.useToastState=pe;
|