@mobielnl/elements 0.10.2 → 0.10.3

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.
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var Cg;function gE(){return Cg||(Cg=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=m();if(!d){var v=m();s(b,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:b,getSnapshot:m}});var y=v[0].inst,x=v[1];return l(function(){y.value=b,y.getSnapshot=m,r(y)&&x({inst:y})},[h,b,m]),i(function(){return r(y)&&x({inst:y}),h(function(){r(y)&&x({inst:y})})},[h]),u(b),b}function r(h){var m=h.getSnapshot;h=h.value;try{var b=m();return!s(h,b)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=g,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,c=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Xl.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Xl}var Sg;function bE(){return Sg||(Sg=1,process.env.NODE_ENV==="production"?ha.exports=mE():ha.exports=gE()),ha.exports}var ma=bE();const vE={t:(e,t)=>Mt(t)?t:Er(t)&&Mt(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},yE=()=>()=>{},Oe=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:o}=g.useContext(Yl)||{},s=r||n||Zl();s&&!s.reportNamespaces&&(s.reportNamespaces=new hE),s||da(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=g.useMemo(()=>({...Gl(),...s?.options?.react,...t}),[s,t]),{useSuspense:i,keyPrefix:l}=a,u=o||s?.options?.defaultNS,c=Mt(u)?[u]:u||["translation"],d=g.useMemo(()=>c,c);s?.reportNamespaces?.addUsedNamespaces?.(d);const p=g.useRef(0),h=g.useCallback(_=>{if(!s)return yE;const{bindI18n:A,bindI18nStore:N}=a,M=()=>{p.current+=1,_()};return A&&s.on(A,M),N&&s.store.on(N,M),()=>{A&&A.split(" ").forEach(O=>s.off(O,M)),N&&N.split(" ").forEach(O=>s.store.off(O,M))}},[s,a]),m=g.useRef(),b=g.useCallback(()=>{if(!s)return vE;const _=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(I=>J$(I,s,a)),A=t.lng||s.language,N=p.current,M=m.current;if(M&&M.ready===_&&M.lng===A&&M.keyPrefix===l&&M.revision===N)return M;const L={t:s.getFixedT(A,a.nsMode==="fallback"?d:d[0],l),ready:_,lng:A,keyPrefix:l,revision:N};return m.current=L,L},[s,d,l,a,t.lng]),[v,y]=g.useState(0),{t:x,ready:w}=ma.useSyncExternalStore(h,b,b);g.useEffect(()=>{if(s&&!w&&!i){const _=()=>y(A=>A+1);t.lng?mg(s,t.lng,d,_):Hl(s,d,_)}},[s,t.lng,d,w,i,v]);const C=s||{},S=g.useRef(null),k=g.useRef(),D=_=>{const A=Object.getOwnPropertyDescriptors(_);A.__original&&delete A.__original;const N=Object.create(Object.getPrototypeOf(_),A);if(!Object.prototype.hasOwnProperty.call(N,"__original"))try{Object.defineProperty(N,"__original",{value:_,writable:!1,enumerable:!1,configurable:!1})}catch{}return N},$=g.useMemo(()=>{const _=C,A=_?.language;let N=_;_&&(S.current&&S.current.__original===_?k.current!==A?(N=D(_),S.current=N,k.current=A):N=S.current:(N=D(_),S.current=N,k.current=A));const M=[x,N,w];return M.t=x,M.i18n=N,M.ready=w,M},[x,C,w,C.resolvedLanguage,C.language,C.languages]);if(s&&i&&!w)throw new Promise(_=>{const A=()=>_();t.lng?mg(s,t.lng,d,A):Hl(s,d,A)});return $};function xE({i18n:e,defaultNS:t,children:r}){const n=g.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return g.createElement(Yl.Provider,{value:n},r)}let wE=!1,kg=!1;function ga(){return wE}function CE(){kg=!0}function ba(){return kg}const Pg=g.createContext({shadowRoot:null});CE();function SE({children:e,css:t,cssUrl:r}){const n=g.useRef(null),[o,s]=g.useState(null),[a,i]=g.useState(null);return g.useEffect(()=>{if(n.current&&!n.current.shadowRoot){const l=n.current.attachShadow({mode:"open",delegatesFocus:!0});if(i(l),t){const c=document.createElement("style");c.textContent=t,l.appendChild(c)}if(r){const c=document.createElement("link");c.type="text/css",c.rel="stylesheet",c.href=r,l.appendChild(c)}const u=document.createElement("div");l.appendChild(u),s(u)}},[t,r]),f.jsx("div",{ref:n,children:o&&f.jsx(Pg,{value:{shadowRoot:a},children:Hn.createPortal(e,o)})})}function kE(){return g.useContext(Pg)}const PE={common:{yes:"Yes",no:"No",confirm:"Confirm",cancel:"Cancel",loading:"Loading...",close:"Close",next:"Next",previous:"Previous",select:"Select",save:"Save",back:"Back"},numberPreservation:{title:"Number preservation",description:"Do you want to keep your current number or get a new number?",keepCurrentNumber:"Current 06-number",newNumber:"New 06-number",currentProvider:"Current provider",selectProvider:"Select your current provider",invalidNumber:"Invalid number",subscription:"Subscription",prepaid:"Prepaid",otherProvider:"Other / no provider"},combiDeal:{title:"Customer benefits",description:"Combining subscriptions in your household can provide many benefits.",selectHomeProvider:"Select your home provider",selectOtherSubscriptionsOnAddress:"Select subscriptions on your address",customerBenefit:"Customer benefits",homeInternet:"Home internet",selectOtherSubscriptions:"Select your other providers on your address:",otherSubscriptionsDescription:"and see which benefits apply to you.",otherSubscriptions:"Other providers on your address",movingOption:"None due to relocation",otherProvider:"Other provider"},postcodeCheck:{loading:"Searching for the best deals...",invalidAddressError:"Address and house number do not match",title:"Postal code check",description:"Enter your postal code and check which offer best suits you.",postalCode:"Postcode",houseNumber:"House number",houseNumberAddition:"Addition",homeInternet:"Home internet",selectProvider:"Select your home internet provider"},profile:{personalizeTitle:"Personalize",postcodeCheck:"Postal code check",enterPostcode:"Enter your postal code and house number",numberPreservation:"Number preservation",askNumberPreservation:"Keep your 06-number?",newNumber:"New 06-number",customerBenefit:"Customer benefits"},format:{unlimited:"Unlimited",unlimited_short:"Unltd",gigabyte:"GB",minutes:"minutes",minutes_short:"min",sms:"sms",year:"year",year_other:"years",oneTime:"One-time",monthly:"Monthly",month:"month",month_other:"months",month_short:"mo",month_short_other:"mos",firstMonth:"First month",firstMonth_other:"First {{count}} months",thenMonth:"Then 1 month",thenMonth_other:"Then {{count}} months",afterMonth:"After 1 month",afterMonth_other:"After {{count}} months",hour:"hour",hour_other:"hours",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"From",startingFrom:"From",to:"Up to",for:"for",or:"or",average:"Average",average_short:"avg.",maximum:"Maximum"},labels:{renewWith:"Renew with {{providerName}}",cheapestPhone:"Cheapest phone",budget:"Most affordable",budgetFiber:"Most affordable with fiber",combi:"Customer benefits with {{providerName}}",combiGeneric:"Customer benefits",fastestInternet:"Fastest internet",budgetOwnNetwork:"Most affordable with own network",budgetNetwork:"Most affordable on {{network}}-network",budgetNetworkGeneric:"Most affordable on network"},propositionCard:{availableStockStatus:"In stock",backorderedStockStatus:"Backorder",preOrderStockStatus:"Pre-order",oneTimeFee:"one-time",deviceDiscount:"device discount",urgentText:"Final day",urgentText_other:"Promotion ends in {{days}} days",cta:"View at Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Fiber","kabel-internet":"Cable","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Reset filters",applyFilters:"Show results",chosenFilters:"Chosen filters:",sort:"Sort",sortBy:"Sort by",show:"Show",showMore:"more",showLess:"less"},filterOptions:{brand:"Brand",internal_storage:"Internal storage",color:"Color",data:"Data",minutes:"Minutes",credit_fee:"Maximum device bundle",provider:"Providers",contract_term:"Contract term",package:"Packages",data_speed_down:"Download speed",data_speed_up:"Upload speed",monthly_fee:"Monthly fee",price:"Maximum additional payment",tags_netwerk:"Network",tags_verbinding:"Internet connection",tags_esim:"eSIM",receivers:"TV receivers",network_generation:"Network speed"},sortOptions:{top:"Relevance",relevantie:"Relevance","best-verkocht":"Best-selling","meest-voordelig":"Price low-high",downloadsnelheid:"Download speed",uploadsnelheid:"Upload speed"},productResults:{loadMore:"Loading...",showMoreOffers:"Show more offers",noResultsTitle:"No results found",noResultsDescription:"No products found with your chosen filter combination.",sortBy:"Sort by",topPropositionsTitle:"Best providers for you",allPropositionsTitle:"All providers"},creditInfo:{exampleTitle:"Example calculation of device bundle",creditBundleTitle:"Legally required credit information",offer:"Offer",totalDeviceCost:"Total device cost",oneTimeFee:"One-time fee",totalCreditAmount:"Total credit amount",monthlyPayment:"Monthly payment",contractTerm:"Contract term",fixedInterest:"Fixed interest / JKP",generalDescription:"This table contains a calculation of a device loan and the price per month. The device loan is a revolving goods credit offered by the Finance B.V. of the chosen provider. Read <0>here</0> more about installment payments and the European standard form. Websend B.V. mediates on behalf of various parties and acts as an exempt intermediary for the Finance B.V. of the chosen provider and does not provide advice on the device loan. You must determine for yourself whether the device loan suits your personal circumstances.",creditBundleDescription:"Up to the credit amount {{creditPrice}} there is no income and expense assessment. The device loan is a revolving goods credit offered by {{creditProviderName}} <0>Standard information on consumer credit</0>"},detailsModal:{title:"All about this subscription",renewal:"Renewal",chooseTab:"Choose a tab",general:"General",bundles:"Bundles",conditions:"Conditions",channels:"TV channels",costs:"Costs",specifications:"Specifications",monthlyFee:"Monthly fee",oneTimeFee:"One-time fee",totalCost:"Total cost",provider:"Provider",network:"Network",networkCoverage:"Coverage",networkAdministrator:"Network administrator",networkType:"Network type",subscriptionType:"Subscription type",internet:"Internet",calling:"Calling",sms:"Sms",extras:"Extras",television:"Television",networkGeneration:"Network generation",downloadSpeed:"Download speed",uploadSpeed:"Upload speed",contractTerm:"Contract term",contractTermTerminable:"terminable",subscription:"Subscription",bundle:"Bundle",bundleSpeed:"Speed",termsAndConditions:"Terms and conditions",maximumDownloadSpeed:"Maximum download speed",maximumUploadSpeed:"Maximum upload speed",numberOfChannels:"TV channels",numberOfReceivers:"TV receivers",outsideBundle:"Outside the bundle",subscriptionFlexibility:"Subscription flexibility",abroad:"Abroad",insideEu:"Inside the EU",outsideEu:"Outside the EU",minutesToEu:"Minutes from NL to EU",upgradeBundle:"Upgrade bundle",downgradeBundle:"Downgrade bundle",dataExceedance:"Data exceedance",bundleExceedanceRates:"Out-of-bundle rates",bundleExceedanceRateCeiling:"Cost ceiling",bundleExceedanceWarning:"Credit notification",bundleExceedanceMinutesRounding:"Rounding call minutes",channelsDescription:"You receive the following {{channelsCount}} TV channels with this subscription:",moreInformation:"More information",deviceBundle:"Device bundle",installationFee:"installation fee",activationFee:"activation fee",cashback:"Cashback",priceWithoutSubscription:"Price without subscription",priceWithSubscription:"Price with subscription",devicePrice:"Device surcharge",costPerContractTermTitle:"Average per month",costPerContractTermSubtitle:"Total costs divided by contract term",deviceDiscountTitle:"Device discount",deviceDiscountSubtitle:"Discount compared to separate phone + sim only",totalCostsOverTerm:"Total costs over 1 month",totalCostsOverTerm_other:"Total costs over {{count}} months",totalDeviceDiscount:"Total device discount"},phoneSelector:{phone:"Phone",selectPhone:"Select a phone",selectBrand:"Select a brand",searchPlaceholder:"Search by brand or model",popular:"Popular",allBrands:"All brands",selectVersion:"Select a version",selectColor:"Select a color"},modificationBlocks:{"mobile/odido":"One or more mobile subscriptions","mobile/vodafone":"One or more mobile subscriptions","segment/vodafone/young":"I am younger than 28 years old","segment/vodafone/unlimited":"Vodafone Unlimited subscription at my address","mobile/kpn":"Another mobile subscription from KPN","mobile/ben":"One or more mobile subscriptions","mobile/50plusmobiel":"One or more mobile subscriptions","mobile/hollandsnieuwe":"One or more mobile subscriptions","mobile/budget":"One or more mobile subscriptions","mobile/youfone":"One or more mobile subscriptions","mobile/delta":"One or more mobile subscriptions"}},$E={common:{yes:"Ja",no:"Nee",confirm:"Bevestig",cancel:"Annuleer",loading:"Laden...",close:"Sluiten",next:"Volgende",previous:"Vorige",select:"Selecteer",save:"Opslaan",back:"Terug"},numberPreservation:{title:"Nummerbehoud",description:"Wil je je huidige nummer behouden of een nieuw nummer?",keepCurrentNumber:"Huidig 06-nummer",newNumber:"Nieuw 06-nummer",currentProvider:"Huidige provider",selectProvider:"Kies je huidige provider",invalidNumber:"Ongeldig nummer",subscription:"Abonnement",prepaid:"Prepaid",otherProvider:"Andere / geen provider"},combiDeal:{title:"Klantvoordeel",description:"Combineren met abonnementen in je huishouden kan veel voordeel opleveren.",selectHomeProvider:"Kies je thuisprovider",selectOtherSubscriptionsOnAddress:"Selecteer abonnementen op je adres",customerBenefit:"Klantvoordeel",homeInternet:"Thuis internet",selectOtherSubscriptions:"Selecteer andere abonnementen op jouw adres:",otherSubscriptionsDescription:"en zie welke voordelen voor jou van toepassing zijn.",otherSubscriptions:"Andere abonnementen op jouw adres",movingOption:"Geen i.v.m. verhuizing",otherProvider:"Andere provider"},postcodeCheck:{loading:"Aan het zoeken naar de beste deals...",invalidAddressError:"Adres en huisnummer komen niet overeen",title:"Postcodecheck",description:"Vul je postcode in en check welk pakket het beste bij jou past.",postalCode:"Postcode",houseNumber:"Huisnr.",houseNumberAddition:"Toev.",homeInternet:"Thuis internet",selectProvider:"Kies je thuisprovider"},profile:{personalizeTitle:"Personaliseer",postcodeCheck:"Postcodecheck",enterPostcode:"Vul je postcode en huisnr in",numberPreservation:"Nummerbehoud",askNumberPreservation:"Je 06-nummer behouden?",newNumber:"Nieuw 06-nummer",customerBenefit:"Klantvoordeel"},format:{unlimited:"Onbeperkt",unlimited_short:"Onbp",gigabyte:"GB",minutes:"minuten",minutes_short:"min",sms:"sms",year:"jaar",year_other:"jaar",oneTime:"Eenmalig",monthly:"Maandelijks",month:"maand",month_other:"maanden",month_short:"mnd",month_short_other:"mnd",firstMonth:"Eerste maand",firstMonth_other:"Eerste {{count}} maanden",thenMonth:"Daarna 1 maand",thenMonth_other:"Daarna {{count}} maanden",afterMonth:"Na 1 maand",afterMonth_other:"Na {{count}} maanden",hour:"uur",hour_other:"uur",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"Van",startingFrom:"Vanaf",to:"Tot",for:"voor",or:"of",average:"Gemiddeld",average_short:"gem.",maximum:"Maximaal"},labels:{renewWith:"Verlengen bij {{providerName}}",cheapestPhone:"Hoogste toestelkorting",budget:"Meest voordelig",budgetFiber:"Meest voordelig met glasvezel",combi:"Klantvoordeel bij {{providerName}}",combiGeneric:"Klantvoordeel",fastestInternet:"Snelste internet",budgetOwnNetwork:"Voordeligste met eigen netwerk",budgetNetwork:"Voordeligste op {{network}}-netwerk",budgetNetworkGeneric:"Voordeligste op netwerk"},propositionCard:{availableStockStatus:"Direct leverbaar",backorderedStockStatus:"In bestelling",preOrderStockStatus:"Pre-order",oneTimeFee:"eenmalig",deviceDiscount:"toestelkorting",urgentText:"Laatste dag",urgentText_other:"Actie nog {{days}} dagen",cta:"Bekijk bij Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Glasvezel","kabel-internet":"Kabel","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Wis filters",applyFilters:"Toon resultaten",chosenFilters:"Gekozen filters:",sort:"Sorteren",sortBy:"Sorteer op",show:"Bekijk",showMore:"meer",showLess:"minder"},filterOptions:{brand:"Merk",internal_storage:"Opslagcapaciteit",color:"Kleur",data:"Data",minutes:"Minuten",credit_fee:"Maximale toestelbundel",provider:"Providers",contract_term:"Looptijd van je abonnement",package:"Pakketten",data_speed_down:"Downloadsnelheid",data_speed_up:"Uploadsnelheid",monthly_fee:"Maandprijs",price:"Maximale bijbetaling",tags_netwerk:"Netwerk",tags_verbinding:"Internetverbinding",tags_esim:"eSIM",receivers:"TV-ontvangers",network_generation:"Netwerksnelheid"},sortOptions:{top:"Relevantie",relevantie:"Relevantie","best-verkocht":"Bestverkocht","meest-voordelig":"Prijs laag-hoog",downloadsnelheid:"Downloadsnelheid",uploadsnelheid:"Uploadsnelheid"},productResults:{loadMore:"Laden...",showMoreOffers:"Toon meer aanbiedingen",noResultsTitle:"Geen resultaten gevonden",noResultsDescription:"Er zijn geen producten gevonden met je gekozen filtercombinatie.",sortBy:"Sorteren",topPropositionsTitle:"Beste providers voor jou",allPropositionsTitle:"Alle providers op een rijtje"},creditInfo:{exampleTitle:"Voorbeeldberekening toestelbundel",creditBundleTitle:"Wettelijk verplichte kredietinformatie",offer:"Aanbieding",totalDeviceCost:"Totale toestelkosten",oneTimeFee:"Eenmalige betaling",totalCreditAmount:"Totaal kredietbedrag",monthlyPayment:"Termijnbedrag",contractTerm:"Duur overeenkomst",fixedInterest:"Vaste rente / JKP",generalDescription:"Deze tabel bevat een berekening van een toestellening en de prijs per maand. De toestellening is een aflopend goederenkrediet aangeboden door de Finance B.V. van de gekozen provider. Lees <0>hier</0> meer over gespreid betalen en het Europees standaard formulier. Websend B.V. bemiddelt namens verschillende partijen en treedt op als vrijgestelde bemiddelaar voor de Finance B.V. van de gekozen provider en geeft geen advies over de toestellening. Je dient zelf te bepalen of de toestellening aansluit bij jouw persoonlijke omstandigheden.",creditBundleDescription:"Tot het kredietbedrag {{creditPrice}} vindt er geen inkomens- en lastentoets plaats. Toestellening is een aflopend goederenkrediet aangeboden door {{creditProviderName}} <0>Standaardinformatie inzake consumptief krediet</0>"},detailsModal:{title:"Alles over dit abonnement",renewal:"Verlenging",chooseTab:"Kies een tabblad",general:"Algemeen",bundles:"Bundels",conditions:"Voorwaarden",channels:"Tv-zenders",costs:"Kostenoverzicht",specifications:"Specificaties",monthlyFee:"Maandelijkse kosten",oneTimeFee:"Eenmalige kosten",totalCost:"Totale kosten",provider:"Provider",network:"Netwerk",networkCoverage:"Dekking",networkAdministrator:"Netwerk beheerder",networkType:"Netwerktype",subscriptionType:"Abonnementsvorm",internet:"Internet",calling:"Bellen",sms:"Sms",extras:"Extra's",television:"Televisie",networkGeneration:"Netwerkgeneratie",downloadSpeed:"Downloadsnelheid",uploadSpeed:"Uploadsnelheid",contractTerm:"Contractduur",contractTermTerminable:"opzegbaar",subscription:"Abonnement",bundle:"Bundel",bundleSpeed:"Snelheid",termsAndConditions:"Algemene voorwaarden",maximumDownloadSpeed:"Maximale downloadsnelheid",maximumUploadSpeed:"Maximale uploadsnelheid",numberOfChannels:"Aantal TV-zenders",numberOfReceivers:"Aantal TV-ontvangers",outsideBundle:"Buiten de bundel",subscriptionFlexibility:"Abonnement flexibiliteit",abroad:"In het buitenland",insideEu:"Binnen de EU",outsideEu:"Buiten de EU",minutesToEu:"Minuten van NL naar EU",upgradeBundle:"Bundel verhogen",downgradeBundle:"Bundel verlagen",dataExceedance:"Data overschrijding",bundleExceedanceRates:"Buitenbundeltarieven",bundleExceedanceRateCeiling:"Kostenplafond",bundleExceedanceWarning:"Tegoedmelding",bundleExceedanceMinutesRounding:"Afronding belminuten",channelsDescription:"Je ontvangt de volgende {{channelsCount}} TV-zenders bij dit abonnement:",moreInformation:"Meer informatie",deviceBundle:"Toestelbundel",installationFee:"installatiekosten",activationFee:"aansluitkosten",cashback:"Cashback",priceWithoutSubscription:"Prijs zonder abonnement",priceWithSubscription:"Prijs met abonnement",devicePrice:"Bijbetaling toestel",costPerContractTermTitle:"Gemiddeld per maand",costPerContractTermSubtitle:"Totale kosten gedeeld door contractduur",deviceDiscountTitle:"Toestelkorting",deviceDiscountSubtitle:"Korting t.o.v. losse telefoon + sim only",totalCostsOverTerm:"Totale kosten over 1 maand",totalCostsOverTerm_other:"Totale kosten over {{count}} maanden",totalDeviceDiscount:"Totale toestelkorting"},phoneSelector:{phone:"Telefoon",selectPhone:"Kies een telefoon",selectBrand:"Kies een merk",searchPlaceholder:"Zoek op merk of model",popular:"Populair",allBrands:"Alle merken",selectVersion:"Kies een versie",selectColor:"Kies een kleur"},modificationBlocks:{"mobile/odido":"Één of meer mobiele abonnementen","mobile/vodafone":"Één of meer mobiele abonnementen","segment/vodafone/young":"Ik ben jonger dan 28 jaar","segment/vodafone/unlimited":"Vodafone Unlimited abonnement op mijn adres","mobile/kpn":"Een ander mobiel abonnement van KPN","mobile/ben":"Één of meer mobiele abonnementen","mobile/50plusmobiel":"Één of meer mobiele abonnementen","mobile/hollandsnieuwe":"Één of meer mobiele abonnementen","mobile/budget":"Één of meer mobiele abonnementen","mobile/youfone":"Één of meer mobiele abonnementen","mobile/delta":"Één of meer mobiele abonnementen"}};Q.use(pE).init({resources:{nl:{translation:$E},en:{translation:PE}},lng:"nl",fallbackLng:"nl",interpolation:{escapeValue:!1},react:{useSuspense:!1}});function EE(e){return Q.changeLanguage(e)}function $g(e,t){const r={...e};for(const n in t){const o=t[n];o!==void 0&&typeof o=="object"&&!Array.isArray(o)&&o!==null&&n in e?r[n]=$g(e[n],o):o!==void 0&&(r[n]=o)}return r}function TE(e,t){const r=Q.getResourceBundle(e,"translation")||{},n=$g(r,t);Q.addResourceBundle(e,"translation",n,!0,!0)}function Eg({children:e,className:t,translations:r,locale:n="nl"}){const o=r?JSON.stringify(r):void 0;return g.useEffect(()=>{if(r)for(const[s,a]of Object.entries(r))TE(s,a)},[o]),g.useEffect(()=>{n!==Q.language&&EE(n)},[n]),f.jsx(xE,{i18n:Q,children:f.jsx("div",{className:"mobielnl-elements",children:f.jsx("div",{className:P("bg-background text-foreground antialiased",t),children:e})})})}function DE({withShadowDOM:e,...t}){if(!e)return f.jsx(Eg,{...t});const r=typeof e=="object"?e:void 0;return f.jsx(SE,{css:r?.css,cssUrl:r?.cssUrl,children:f.jsx(Eg,{...t})})}function _E(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function IE(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Ql=typeof window<"u",Tg=function(e){g.useEffect(e,[])},NE=function(e){var t=g.useRef(e);t.current=e,Tg(function(){return function(){return t.current()}})},AE=function(e){var t=g.useRef(0),r=g.useState(e),n=r[0],o=r[1],s=g.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a)})},[]);return NE(function(){cancelAnimationFrame(t.current)}),[n,s]},Dg=function(e){var t={},r=t.initialWidth,n=r===void 0?1/0:r,o=t.initialHeight,s=o===void 0?1/0:o,a=t.onChange,i=AE({width:Ql?window.innerWidth:n,height:Ql?window.innerHeight:s}),l=i[0],u=i[1];return g.useEffect(function(){if(Ql){var c=function(){var d=window.innerWidth,p=window.innerHeight;u({width:d,height:p}),a&&a(d,p)};return _E(window,"resize",c),function(){IE(window,"resize",c)}}},[]),l};function ME({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Right Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14m0 0-6 6m6-6-6-6",stroke:e})]})}function OE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Up Down Icon"}),f.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function jE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Badge Hd Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 15V9m3 6V9m-3 3h3M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm11 2v6h1a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2z",stroke:e})]})}function FE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Broadcast Icon"}),f.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function _g({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Calculator Icon"}),f.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function BE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Down Icon"}),f.jsx("path",{d:"M6 9L12 15L18 9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function zE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Right Icon"}),f.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function LE({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Circle Check Filled Icon"}),f.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function VE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Clock Hour Icon"}),f.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function eu({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Device Mobile Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z"}),f.jsx("path",{d:"M11 4h2"}),f.jsx("path",{d:"M12 17v.01"})]})}function RE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device Remote Icon"}),f.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function KE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device TV Icon"}),f.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function tu({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Discount Icon"}),f.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function WE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Edit Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),f.jsx("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),f.jsx("path",{d:"M16 5l3 3"})]})}function ts({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"External Link Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M11 13l9 -9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M15 4h5v5",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ig({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Filters Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function UE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Gauge Icon"}),f.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ng({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{d:"M19 12H21L12 3L3 12H5V19C5 19.5304 5.21071 20.0391 5.58579 20.4142C5.96086 20.7893 6.46957 21 7 21H12.5M9 21V15C9 14.4696 9.21071 13.9609 9.58579 13.5858C9.96086 13.2107 10.4696 13 11 13H13C13.58 13 14.103 13.247 14.468 13.642M19 18V18.01M21.121 20.1212C21.5406 19.7016 21.8265 19.1671 21.9423 18.5851C22.0581 18.0031 21.9988 17.3999 21.7717 16.8517C21.5447 16.3034 21.1602 15.8348 20.6668 15.5052C20.1734 15.1755 19.5934 14.9995 19 14.9995C18.4066 14.9995 17.8266 15.1755 17.3332 15.5052C16.8398 15.8348 16.4553 16.3034 16.2283 16.8517C16.0012 17.3999 15.9419 18.0031 16.0577 18.5851C16.1735 19.1671 16.4594 19.7016 16.879 20.1212C17.297 20.5402 18.004 21.1662 19 22.0002C20.051 21.1102 20.759 20.4842 21.121 20.1212Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function HE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Move Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m4-3h2l-9-9-9 9h2v7a2 2 0 0 0 2 2h5.5m3.5-2h6m0 0-3-3m3 3-3 3"})]})}function qE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:s,...a,children:[f.jsx("title",{children:"X Icon"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6l-12 12"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 6l12 12"})]})}function Ag({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 18h.01m-2.838-2.828a4 4 0 0 1 5.656 0m-8.485-2.829a8 8 0 0 1 11.314 0M3.515 9.515c4.686-4.687 12.284-4.687 17 0"})]})}function GE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"World Icon"}),f.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}var ZE=()=>f.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[f.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),f.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function bn(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Nt.createContext(void 0);o.displayName=n;function s(){var a;const i=Nt.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,s),l}return i}return[o.Provider,s,o]}function YE(e){return{UNSAFE_getDOMNode(){return e.current}}}function Pe(e){const t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current),t}function JE(e,t){if(e!=null){if(g$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ru(...e){return t=>{e.forEach(r=>JE(r,t))}}function XE(){const e=()=>()=>{};return Nt.useSyncExternalStore(e,()=>!0,()=>!1)}var QE=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),e5=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Mg=/^(data-.*)$/,t5=/^(aria-.*)$/,va=/^(on[A-Z].*)$/;function Fe(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:s,omitEventNames:a,omitDataProps:i,omitEventProps:l}=t,u={};if(!n)return e;for(const c in e)s?.has(c)||a?.has(c)&&va.test(c)||va.test(c)&&!e5.has(c)||i&&Mg.test(c)||l&&va.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(QE.has(c)||r&&t5.test(c)||o?.has(c)||Mg.test(c))||va.test(c))&&(u[c]=e[c]);return u}function nu({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):Nt.createElement(e,t)}var[PR,r5]=bn({name:"AvatarGroupContext",strict:!1}),[$R,tt]=bn({name:"ProviderContext",strict:!1});const n5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function s5(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return n5.has(r.script)}let t=e.split("-")[0];return o5.has(t)}const ya={prefix:String(Math.round(Math.random()*1e10)),current:0},Og=g.createContext(ya),a5=g.createContext(!1);let i5=!!(typeof window<"u"&&window.document&&window.document.createElement),ou=new WeakMap;function l5(e=!1){let t=g.useContext(Og),r=g.useRef(null);if(r.current===null&&!e){var n,o;let s=(o=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(s){let a=ou.get(s);a==null?ou.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,ou.delete(s))}r.current=++t.current}return r.current}function u5(e){let t=g.useContext(Og);t===ya&&!i5&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=l5(!!e),n=t===ya&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function c5(e){let t=g.useId(),[r]=g.useState(Qn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ya.prefix}`;return e||`${n}-${t}`}const d5=typeof g.useId=="function"?c5:u5;function f5(){return!1}function p5(){return!0}function h5(e){return()=>{}}function Qn(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(h5,f5,p5):g.useContext(a5)}const jg=Symbol.for("react-aria.i18n.locale");function Fg(){let e=typeof window<"u"&&window[jg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:s5(e)?"rtl":"ltr"}}let su=Fg(),rs=new Set;function Bg(){su=Fg();for(let e of rs)e(su)}function m5(){let e=Qn(),[t,r]=g.useState(su);return g.useEffect(()=>(rs.size===0&&window.addEventListener("languagechange",Bg),rs.add(r),()=>{rs.delete(r),rs.size===0&&window.removeEventListener("languagechange",Bg)}),[]),e?{locale:typeof window<"u"&&window[jg]||"en-US",direction:"ltr"}:t}const g5=g.createContext(null);function Ot(){let e=m5();return g.useContext(g5)||e}const b5=Symbol.for("react-aria.i18n.locale"),v5=Symbol.for("react-aria.i18n.strings");let eo;class xa{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=y5(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[b5];if(eo===void 0){let o=window[v5];if(!o)return null;eo={};for(let s in o)eo[s]=new xa({[r]:o[s]},r)}let n=eo?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function y5(e,t,r="en-US"){if(t[e])return t[e];let n=x5(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function x5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const zg=new Map,Lg=new Map;class w5{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let s=this.locale+":"+n,a=zg.get(s);a||(a=new Intl.PluralRules(this.locale,{type:n}),zg.set(s,a));let i=a.select(t);return o=r[i]||r.other,typeof o=="function"?o():o}number(t){let r=Lg.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Lg.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const Vg=new WeakMap;function C5(e){let t=Vg.get(e);return t||(t=new xa(e),Vg.set(e,t)),t}function S5(e,t){return t&&xa.getGlobalDictionaryForPackage(t)||C5(e)}function Wr(e,t){let{locale:r}=Ot(),n=S5(e,t);return g.useMemo(()=>new w5(r,n),[r,n])}function k5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P5(e,t,r){k5(e,t),t.set(e,r)}const ze=typeof document<"u"?g.useLayoutEffect:()=>{};function $5(e){let[t,r]=g.useState(e),n=g.useRef(t),o=g.useRef(null),s=g.useRef(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}n.current===i.value?s.current():r(i.value)});ze(()=>{n.current=t,o.current&&s.current()});let a=g.useCallback(i=>{o.current=i(n.current),s.current()},[s]);return[t,a]}let E5=!!(typeof window<"u"&&window.document&&window.document.createElement),to=new Map,ns;typeof FinalizationRegistry<"u"&&(ns=new FinalizationRegistry(e=>{to.delete(e)}));function bt(e){let[t,r]=g.useState(e),n=g.useRef(null),o=d5(t),s=g.useRef(null);if(ns&&ns.register(s,o),E5){const a=to.get(o);a&&!a.includes(n)?a.push(n):to.set(o,[n])}return ze(()=>{let a=o;return()=>{ns&&ns.unregister(s),to.delete(a)}},[o]),g.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function T5(e,t){if(e===t)return e;let r=to.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=to.get(t);return n?(n.forEach(o=>o.current=e),e):t}function os(e=[]){let t=bt(),[r,n]=$5(t),o=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ze(o,[t,o,...e]),r}function Ur(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ne=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},kt=e=>e&&"window"in e&&e.window===e?e:Ne(e).defaultView||window;function D5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function _5(e){return D5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function We(e,t){if(!ba())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:_5(r)?r=r.host:r=r.parentNode}return!1}const xt=(e=document)=>{var t;if(!ba())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function je(e){return ba()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class I5{get currentNode(){return this._currentNode}set currentNode(t){if(!We(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,i=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),n=o=a.host}else n=n.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return We(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let s;if(typeof this.filter=="function"?s=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(s=this.filter.acceptNode(r)),s===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var i;if(typeof this.filter=="function")return this.filter(a);if(!((i=this.filter)===null||i===void 0)&&i.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const s=r.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function N5(e,t,r,n){return ba()?new I5(e,t,r,n):e.createTreeWalker(t,r,n)}function Rg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Rg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function A5(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Rg(e))&&(n&&(n+=" "),n+=t);return n}function Ce(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],a=n[o];typeof s=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ur(s,a):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[o]=A5(s,a):o==="id"&&s&&a?t.id=T5(s,a):t[o]=a!==void 0?a:s}}return t}const M5=new Set(["id"]),O5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),j5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),F5=new Set(["dir","lang","hidden","inert","translate"]),Kg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),B5=/^(data-.*)$/;function Bt(e,t={}){let{labelable:r,isLink:n,global:o,events:s=o,propNames:a}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(M5.has(l)||r&&O5.has(l)||n&&j5.has(l)||o&&F5.has(l)||s&&(Kg.has(l)||l.endsWith("Capture")&&Kg.has(l.slice(0,-7)))||a?.has(l)||B5.test(l))&&(i[l]=e[l]);return i}function Rt(e){if(z5())e.focus({preventScroll:!0});else{let t=L5(e);e.focus(),V5(t)}}let wa=null;function z5(){if(wa==null){wa=!1;try{document.createElement("div").focus({get preventScroll(){return wa=!0,!0}})}catch{}}return wa}function L5(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function V5(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Ca(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function au(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Tr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Hr=Tr(function(){return au(/^Mac/i)}),R5=Tr(function(){return au(/^iPhone/i)}),Wg=Tr(function(){return au(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}),Sa=Tr(function(){return R5()||Wg()}),K5=Tr(function(){return Hr()||Sa()}),iu=Tr(function(){return Ca(/AppleWebKit/i)&&!Ug()}),Ug=Tr(function(){return Ca(/Chrome/i)}),ss=Tr(function(){return Ca(/Android/i)}),W5=Tr(function(){return Ca(/Firefox/i)}),U5=g.createContext({isNative:!0,open:q5,useHref:e=>e});function ka(){return g.useContext(U5)}function Dr(e,t,r=!0){var n,o;let{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}=t;W5()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Hr()?s=!0:a=!0);let u=iu()&&Hr()&&!Wg()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Dr.isOpening=r,Rt(e),e.dispatchEvent(u),Dr.isOpening=!1}Dr.isOpening=!1;function H5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function q5(e,t){H5(e,r=>Dr(r,t))}function G5(e){let t=ka();var r;const n=t.useHref((r=e.href)!==null&&r!==void 0?r:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Hg(e){let t=ka();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let qr=new Map,lu=new Set;function qg(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);o||(o=new Set,qr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),qr.delete(n.target)),qr.size===0)){for(let s of lu)s();lu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?qg():document.addEventListener("DOMContentLoaded",qg));function Z5(){for(const[e]of qr)"isConnected"in e&&!e.isConnected&&qr.delete(e)}function Gg(e){requestAnimationFrame(()=>{Z5(),qr.size===0?e():lu.add(e)})}function vn(){let e=g.useRef(new Map),t=g.useCallback((o,s,a,i)=>{let l=i?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:s,eventTarget:o,fn:l,options:i}),o.addEventListener(s,l,i)},[]),r=g.useCallback((o,s,a,i)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(s,u,i),e.current.delete(a)},[]),n=g.useCallback(()=>{e.current.forEach((o,s)=>{r(o.eventTarget,o.type,s,o.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Pa(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=bt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}var uu;const Y5=(uu=g.useInsertionEffect)!==null&&uu!==void 0?uu:ze;function Pt(e){const t=g.useRef(null);return Y5(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function Zg(e,t){const r=g.useRef(!0),n=g.useRef(null);let o=Pt(e);g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),g.useEffect(()=>{let s=n.current;r.current?r.current=!1:(!s||t.some((a,i)=>!Object.is(a,s[i])))&&o(),n.current=t},t)}function Yg(e,t){const r=g.useRef(!0),n=g.useRef(null);ze(()=>(r.current=!0,()=>{r.current=!1}),[]),ze(()=>{r.current?r.current=!1:(!n.current||t.some((o,s)=>!Object.is(o,n[s])))&&e(),n.current=t},t)}function J5(){return typeof window.ResizeObserver<"u"}function Jg(e){const{ref:t,box:r,onResize:n}=e;let o=Pt(n);g.useEffect(()=>{let s=t?.current;if(s)if(J5()){const a=new window.ResizeObserver(i=>{i.length&&o()});return a.observe(s,{box:r}),()=>{s&&a.unobserve(s)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Xg(e,t){ze(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ro(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Gr(e,t){let r=e;for(ro(r,t)&&(r=r.parentElement);r&&!ro(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function X5(e,t){const r=[];for(;e&&e!==document.documentElement;)ro(e,t)&&r.push(e),e=e.parentElement;return r}function no(e){return Hr()?e.metaKey:e.ctrlKey}const Q5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cu(e){return e instanceof HTMLInputElement&&!Q5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let eT=0;const du=new Map;function $a(e){let[t,r]=g.useState();return ze(()=>{if(!e)return;let n=du.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${eT++}`;r(o);let s=document.createElement("div");s.id=o,s.style.display="none",s.textContent=e,document.body.appendChild(s),n={refCount:0,element:s},du.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),du.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ea(e,t,r,n){let o=Pt(r),s=r==null;g.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,s])}function Qg(e,t){let r=eb(e,t,"left"),n=eb(e,t,"top"),o=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),m=a+parseInt(u,10),b=i+parseInt(l,10),v=m+e.clientWidth,y=b+e.clientHeight,x=parseInt(c,10)||0,w=parseInt(p,10)||0,C=parseInt(d,10)||0,S=parseInt(h,10)||0;r<=a+S?a=r-parseInt(u,10)-S:r+o>v-C&&(a+=r+o-v+C),n<=b+x?i=n-parseInt(l,10)-x:n+s>y-w&&(i+=n+s-y+w),e.scrollLeft=a,e.scrollTop=i}function eb(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Zr(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,i=window.getComputedStyle(a).overflow==="hidden";if(i){let l=X5(e);i||l.push(a);for(let u of l)Qg(u,e)}else{var r;let{left:l,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var n,o,s;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function fu(e){return e.pointerType===""&&e.isTrusted?!0:ss()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tT(e){return!ss()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Ta(e,t,r){let n=Pt(()=>{r&&r(t)});g.useEffect(()=>{var o;let s=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return s?.addEventListener("reset",n),()=>{s?.removeEventListener("reset",n)}},[e])}const rT="react-aria-clear-focus",nT="react-aria-focus",oT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function sT(e){const t=kt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:a,visibility:i}=s(e);o=a!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function aT(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 pu(e,t){return oT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&sT(e)&&aT(e,t)&&(!e.parentElement||pu(e.parentElement,e))}const hu=["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]:not([contenteditable^="false"])',"permission"],iT=hu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";hu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const lT=hu.join(':not([hidden]):not([tabindex="-1"]),');function tb(e){return e.matches(iT)&&pu(e)&&!nb(e)}function rb(e){return e.matches(lT)&&pu(e)&&!nb(e)}function nb(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var mu;const uT=typeof document<"u"?(mu=g.useInsertionEffect)!==null&&mu!==void 0?mu:g.useLayoutEffect:()=>{};function hr(e,t,r){let[n,o]=g.useState(e||t),s=g.useRef(n),a=g.useRef(e!==void 0),i=e!==void 0;g.useEffect(()=>{let d=a.current;d!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let l=i?e:n;uT(()=>{s.current=l});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...p)=>{let h=typeof d=="function"?d(s.current):d;Object.is(s.current,h)||(s.current=h,o(h),u(),r?.(h,...p))},[r]);return[l,c]}function oo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Da(e,t){let r=e,n=0,o=t.toString(),s=o.toLowerCase().indexOf("e-");if(s>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+s;else{let a=o.indexOf(".");a>=0&&(n=o.length-a)}if(n>0){let a=Math.pow(10,n);r=Math.round(r*a)/a}return r}function as(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,s=Da(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(Da(r/n,n))*n):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(Da((r-t)/n,n))*n),s=Da(s,n),s}let gu=new Map,bu=!1;try{bu=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _a=!1;try{_a=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ob={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cT{format(t){let r="";if(!bu&&this.options.signDisplay!=null?r=fT(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!_a){var n;let{unit:o,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!o)return r;let i=(n=ob[o])===null||n===void 0?void 0:n[s];r+=i[a]||i.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!bu&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!_a&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=dT(t,r),this.options=r}}function dT(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!_a){var n;let{unit:a,unitDisplay:i="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=ob[a])===null||n===void 0)&&n[i]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${i}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,i)=>a[0]<i[0]?-1:1).join():"");if(gu.has(o))return gu.get(o);let s=new Intl.NumberFormat(e,t);return gu.set(o,s),s}function fT(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),s=e.format(r),a=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(r)}}function sb(e={}){let{locale:t}=Ot();return g.useMemo(()=>new cT(t,e),[t,e])}let vu=new Map;function Ia(e){let{locale:t}=Ot(),r=t+(e?Object.entries(e).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(vu.has(r))return vu.get(r);let n=new Intl.Collator(t,e);return vu.set(r,n),n}const ab=g.createContext({});function yu(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const xu=typeof window<"u",ib=xu?g.useLayoutEffect:g.useEffect,Na=g.createContext(null);function pT(e,t){e.indexOf(t)===-1&&e.push(t)}function hT(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Yr=(e,t,r)=>r>t?t:r<e?e:r;function wu(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let so=()=>{},Jr=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(so=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(wu(t,r))},Jr=(e,t,r)=>{if(!e)throw new Error(wu(t,r))});const _r={},lb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function mT(e){return typeof e=="object"&&e!==null}const ub=e=>/^0[^.\s]+$/u.test(e);function Cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const ao=e=>e,gT=(e,t)=>r=>t(e(r)),Aa=(...e)=>e.reduce(gT),cb=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class db{constructor(){this.subscriptions=[]}add(t){return pT(this.subscriptions,t),()=>hT(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ir=e=>e*1e3,or=e=>e/1e3;function fb(e,t){return t?e*(1e3/t):0}const pb=new Set;function Su(e,t,r){e||pb.has(t)||(console.warn(wu(t,r)),pb.add(t))}const hb=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,bT=1e-7,vT=12;function yT(e,t,r,n,o){let s,a,i=0;do a=t+(r-t)/2,s=hb(a,n,o)-e,s>0?r=a:t=a;while(Math.abs(s)>bT&&++i<vT);return a}function is(e,t,r,n){if(e===t&&r===n)return ao;const o=s=>yT(s,0,1,e,r);return s=>s===0||s===1?s:hb(o(s),t,n)}const mb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gb=e=>t=>1-e(1-t),bb=is(.33,1.53,.69,.99),ku=gb(bb),vb=mb(ku),yb=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Pu=e=>1-Math.sin(Math.acos(e)),xT=gb(Pu),xb=mb(Pu),wT=is(.42,0,1,1),CT=is(0,0,.58,1),wb=is(.42,0,.58,1),ST=e=>Array.isArray(e)&&typeof e[0]!="number",Cb=e=>Array.isArray(e)&&typeof e[0]=="number",Sb={linear:ao,easeIn:wT,easeInOut:wb,easeOut:CT,circIn:Pu,circInOut:xb,circOut:xT,backIn:ku,backInOut:vb,backOut:bb,anticipate:yb},kT=e=>typeof e=="string",kb=e=>{if(Cb(e)){Jr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return is(t,r,n,o)}else if(kT(e))return Jr(Sb[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Sb[e];return e},Ma=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function PT(e,t){let r=new Set,n=new Set,o=!1,s=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(c){a.has(c)&&(u.schedule(c),e()),c(i)}const u={schedule:(c,d=!1,p=!1)=>{const m=p&&o?r:n;return d&&a.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),a.delete(c)},process:c=>{if(i=c,o){s=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,s&&(s=!1,u.process(c))}};return u}const $T=40;function Pb(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=Ma.reduce((w,C)=>(w[C]=PT(s),w),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:h,postRender:m}=a,b=()=>{const w=_r.useManualTiming?o.timestamp:performance.now();r=!1,_r.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(w-o.timestamp,$T),1)),o.timestamp=w,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),c.process(o),d.process(o),p.process(o),h.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(b))},v=()=>{r=!0,n=!0,o.isProcessing||e(b)};return{schedule:Ma.reduce((w,C)=>{const S=a[C];return w[C]=(k,D=!1,$=!1)=>(r||v(),S.schedule(k,D,$)),w},{}),cancel:w=>{for(let C=0;C<Ma.length;C++)a[Ma[C]].cancel(w)},state:o,steps:a}}const{schedule:sr,cancel:$u,state:Oa}=Pb(typeof requestAnimationFrame<"u"?requestAnimationFrame:ao,!0);let ja;function ET(){ja=void 0}const zt={now:()=>(ja===void 0&&zt.set(Oa.isProcessing||_r.useManualTiming?Oa.timestamp:performance.now()),ja),set:e=>{ja=e,queueMicrotask(ET)}},$b=e=>t=>typeof t=="string"&&t.startsWith(e),Eb=$b("--"),TT=$b("var(--"),Eu=e=>TT(e)?DT.test(e.split("/*")[0].trim()):!1,DT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tb(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const io={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...io,transform:e=>Yr(0,1,e)},Fa={...io,default:1},us=e=>Math.round(e*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _T(e){return e==null}const IT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Du=(e,t)=>r=>!!(typeof r=="string"&&IT.test(r)&&r.startsWith(e)||t&&!_T(r)&&Object.prototype.hasOwnProperty.call(r,t)),Db=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,s,a,i]=n.match(Tu);return{[e]:parseFloat(o),[t]:parseFloat(s),[r]:parseFloat(a),alpha:i!==void 0?parseFloat(i):1}},NT=e=>Yr(0,255,e),_u={...io,transform:e=>Math.round(NT(e))},yn={test:Du("rgb","red"),parse:Db("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+_u.transform(e)+", "+_u.transform(t)+", "+_u.transform(r)+", "+us(ls.transform(n))+")"};function AT(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Iu={test:Du("#"),parse:AT,transform:yn.transform},cs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xr=cs("deg"),lo=cs("%"),le=cs("px"),MT=cs("vh"),OT=cs("vw"),_b={...lo,parse:e=>lo.parse(e)/100,transform:e=>lo.transform(e*100)},uo={test:Du("hsl","hue"),parse:Db("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lo.transform(us(t))+", "+lo.transform(us(r))+", "+us(ls.transform(n))+")"},ot={test:e=>yn.test(e)||Iu.test(e)||uo.test(e),parse:e=>yn.test(e)?yn.parse(e):uo.test(e)?uo.parse(e):Iu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yn.transform(e):uo.transform(e),getAnimatableNone:e=>{const t=ot.parse(e);return t.alpha=0,ot.transform(t)}},jT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FT(e){return isNaN(e)&&typeof e=="string"&&(e.match(Tu)?.length||0)+(e.match(jT)?.length||0)>0}const Ib="number",Nb="color",BT="var",zT="var(",Ab="${}",LT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ds(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let s=0;const i=t.replace(LT,l=>(ot.test(l)?(n.color.push(s),o.push(Nb),r.push(ot.parse(l))):l.startsWith(zT)?(n.var.push(s),o.push(BT),r.push(l)):(n.number.push(s),o.push(Ib),r.push(parseFloat(l))),++s,Ab)).split(Ab);return{values:r,split:i,indexes:n,types:o}}function Mb(e){return ds(e).values}function Ob(e){const{split:t,types:r}=ds(e),n=t.length;return o=>{let s="";for(let a=0;a<n;a++)if(s+=t[a],o[a]!==void 0){const i=r[a];i===Ib?s+=us(o[a]):i===Nb?s+=ot.transform(o[a]):s+=o[a]}return s}}const VT=e=>typeof e=="number"?0:ot.test(e)?ot.getAnimatableNone(e):e;function RT(e){const t=Mb(e);return Ob(e)(t.map(VT))}const Qr={test:FT,parse:Mb,createTransformer:Ob,getAnimatableNone:RT};function Nu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function KT({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,s=0,a=0;if(!t)o=s=a=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=Nu(l,i,e+1/3),s=Nu(l,i,e),a=Nu(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}function Ba(e,t){return r=>r>0?t:e}const fs=(e,t,r)=>e+(t-e)*r,Au=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},WT=[Iu,yn,uo],UT=e=>WT.find(t=>t.test(e));function jb(e){const t=UT(e);if(so(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===uo&&(r=KT(r)),r}const Fb=(e,t)=>{const r=jb(e),n=jb(t);if(!r||!n)return Ba(e,t);const o={...r};return s=>(o.red=Au(r.red,n.red,s),o.green=Au(r.green,n.green,s),o.blue=Au(r.blue,n.blue,s),o.alpha=fs(r.alpha,n.alpha,s),yn.transform(o))},Mu=new Set(["none","hidden"]);function HT(e,t){return Mu.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function qT(e,t){return r=>fs(e,t,r)}function Ou(e){return typeof e=="number"?qT:typeof e=="string"?Eu(e)?Ba:ot.test(e)?Fb:YT:Array.isArray(e)?Bb:typeof e=="object"?ot.test(e)?Fb:GT:Ba}function Bb(e,t){const r=[...e],n=r.length,o=e.map((s,a)=>Ou(s)(s,t[a]));return s=>{for(let a=0;a<n;a++)r[a]=o[a](s);return r}}function GT(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Ou(e[o])(e[o],t[o]));return o=>{for(const s in n)r[s]=n[s](o);return r}}function ZT(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][n[s]],i=e.values[a]??0;r[o]=i,n[s]++}return r}const YT=(e,t)=>{const r=Qr.createTransformer(t),n=ds(e),o=ds(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Mu.has(e)&&!o.values.length||Mu.has(t)&&!n.values.length?HT(e,t):Aa(Bb(ZT(n,o),o.values),r):(so(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ba(e,t))};function zb(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?fs(e,t,r):Ou(e)(e,t)}const JT=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>sr.update(t,r),stop:()=>$u(t),now:()=>Oa.isProcessing?Oa.timestamp:zt.now()}},Lb=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let s=0;s<o;s++)n+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},za=2e4;function ju(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<za;)t+=r,n=e.next(t);return t>=za?1/0:t}function XT(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(ju(n),za);return{type:"keyframes",ease:s=>n.next(o*s).value/t,duration:or(o)}}const QT=5;function Vb(e,t,r){const n=Math.max(t-QT,0);return fb(r-e(n),t-n)}const Ze={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Fu=.001;function e6({duration:e=Ze.duration,bounce:t=Ze.bounce,velocity:r=Ze.velocity,mass:n=Ze.mass}){let o,s;so(e<=Ir(Ze.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Yr(Ze.minDamping,Ze.maxDamping,a),e=Yr(Ze.minDuration,Ze.maxDuration,or(e)),a<1?(o=u=>{const c=u*a,d=c*e,p=c-r,h=Bu(u,a),m=Math.exp(-d);return Fu-p/h*m},s=u=>{const d=u*a*e,p=d*r+r,h=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-d),b=Bu(Math.pow(u,2),a);return(-o(u)+Fu>0?-1:1)*((p-h)*m)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Fu+c*d},s=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const i=5/e,l=r6(o,s,i);if(e=Ir(e),isNaN(l))return{stiffness:Ze.stiffness,damping:Ze.damping,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const t6=12;function r6(e,t,r){let n=r;for(let o=1;o<t6;o++)n=n-e(n)/t(n);return n}function Bu(e,t){return e*Math.sqrt(1-t*t)}const n6=["duration","bounce"],o6=["stiffness","damping","mass"];function Rb(e,t){return t.some(r=>e[r]!==void 0)}function s6(e){let t={velocity:Ze.velocity,stiffness:Ze.stiffness,damping:Ze.damping,mass:Ze.mass,isResolvedFromDuration:!1,...e};if(!Rb(e,o6)&&Rb(e,n6))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,s=2*Yr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ze.mass,stiffness:o,damping:s}}else{const r=e6(e);t={...t,...r,mass:Ze.mass},t.isResolvedFromDuration=!0}return t}function La(e=Ze.visualDuration,t=Ze.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],i={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=s6({...r,velocity:-or(r.velocity||0)}),m=p||0,b=u/(2*Math.sqrt(l*c)),v=a-s,y=or(Math.sqrt(l/c)),x=Math.abs(v)<5;n||(n=x?Ze.restSpeed.granular:Ze.restSpeed.default),o||(o=x?Ze.restDelta.granular:Ze.restDelta.default);let w;if(b<1){const S=Bu(y,b);w=k=>{const D=Math.exp(-b*y*k);return a-D*((m+b*y*v)/S*Math.sin(S*k)+v*Math.cos(S*k))}}else if(b===1)w=S=>a-Math.exp(-y*S)*(v+(m+y*v)*S);else{const S=y*Math.sqrt(b*b-1);w=k=>{const D=Math.exp(-b*y*k),$=Math.min(S*k,300);return a-D*((m+b*y*v)*Math.sinh($)+S*v*Math.cosh($))/S}}const C={calculatedDuration:h&&d||null,next:S=>{const k=w(S);if(h)i.done=S>=d;else{let D=S===0?m:0;b<1&&(D=S===0?Ir(m):Vb(w,S,k));const $=Math.abs(D)<=n,_=Math.abs(a-k)<=o;i.done=$&&_}return i.value=i.done?a:k,i},toString:()=>{const S=Math.min(ju(C),za),k=Lb(D=>C.next(S*D).value,S,30);return S+"ms "+k},toTransition:()=>{}};return C}La.applyToOptions=e=>{const t=XT(e,100,La);return e.ease=t.ease,e.duration=Ir(t.duration),e.type="keyframes",e};function zu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:i,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=$=>i!==void 0&&$<i||l!==void 0&&$>l,m=$=>i===void 0?l:l===void 0||Math.abs(i-$)<Math.abs(l-$)?i:l;let b=r*t;const v=d+b,y=a===void 0?v:a(v);y!==v&&(b=y-d);const x=$=>-b*Math.exp(-$/n),w=$=>y+x($),C=$=>{const _=x($),A=w($);p.done=Math.abs(_)<=u,p.value=p.done?y:A};let S,k;const D=$=>{h(p.value)&&(S=$,k=La({keyframes:[p.value,m(p.value)],velocity:Vb(w,$,p.value),damping:o,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:$=>{let _=!1;return!k&&S===void 0&&(_=!0,C($),D($)),S!==void 0&&$>=S?k.next($-S):(!_&&C($),p)}}}function a6(e,t,r){const n=[],o=r||_r.mix||zb,s=e.length-1;for(let a=0;a<s;a++){let i=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ao:t;i=Aa(l,i)}n.push(i)}return n}function i6(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const s=e.length;if(Jr(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=a6(t,n,o),l=i.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const p=cb(e[d],e[d+1],c);return i[d](p)};return r?c=>u(Yr(e[0],e[s-1],c)):u}function l6(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=cb(0,t,n);e.push(fs(r,1,o))}}function u6(e){const t=[0];return l6(t,e.length-1),t}function c6(e,t){return e.map(r=>r*t)}function d6(e,t){return e.map(()=>t||wb).splice(0,e.length-1)}function co({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=ST(n)?n.map(kb):kb(n),s={done:!1,value:t[0]},a=c6(r&&r.length===t.length?r:u6(t),e),i=i6(a,t,{ease:Array.isArray(o)?o:d6(t,o)});return{calculatedDuration:e,next:l=>(s.value=i(l),s.done=l>=e,s)}}const f6=e=>e!==null;function Lu(e,{repeat:t,repeatType:r="loop"},n,o=1){const s=e.filter(f6),i=o<0||t&&r!=="loop"&&t%2===1?0:s.length-1;return!i||n===void 0?s[i]:n}const p6={decay:zu,inertia:zu,tween:co,keyframes:co,spring:La};function Kb(e){typeof e.type=="string"&&(e.type=p6[e.type])}class Vu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const h6=e=>e/100;class Ru extends Vu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==zt.now()&&this.tick(zt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Kb(t);const{type:r=co,repeat:n=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:i}=t;const l=r||co;process.env.NODE_ENV!=="production"&&l!==co&&Jr(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),l!==co&&typeof i[0]!="number"&&(this.mixKeyframes=Aa(h6,zb(i[0],i[1])),i=[0,100]);const u=l({...t,keyframes:i});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=ju(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=u}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:h,type:m,onUpdate:b,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=n;if(d){const $=Math.min(this.currentTime,o)/i;let _=Math.floor($),A=$%1;!A&&$>=1&&(A=1),A===1&&_--,_=Math.min(_,d+1),!!(_%2)&&(p==="reverse"?(A=1-A,h&&(A-=h/i)):p==="mirror"&&(C=a)),w=Yr(0,1,A)*i}const S=x?{done:!1,value:c[0]}:C.next(w);s&&(S.value=s(S.value));let{done:k}=S;!x&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&m!==zu&&(S.value=Lu(c,this.options,v,this.speed)),b&&b(S.value),D&&this.finish(),S}then(t,r){return this.finished.then(t,r)}get duration(){return or(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(this.currentTime)}set time(t){t=Ir(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(zt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=or(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=JT,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function m6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const xn=e=>e*180/Math.PI,Ku=e=>{const t=xn(Math.atan2(e[1],e[0]));return Wu(t)},g6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ku,rotateZ:Ku,skewX:e=>xn(Math.atan(e[1])),skewY:e=>xn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),Wb=Ku,Ub=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Hb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),b6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ub,scaleY:Hb,scale:e=>(Ub(e)+Hb(e))/2,rotateX:e=>Wu(xn(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(xn(Math.atan2(-e[2],e[0]))),rotateZ:Wb,rotate:Wb,skewX:e=>xn(Math.atan(e[4])),skewY:e=>xn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Uu(e){return e.includes("scale")?1:0}function Hu(e,t){if(!e||e==="none")return Uu(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=b6,o=r;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=g6,o=i}if(!o)return Uu(t);const s=n[t],a=o[1].split(",").map(y6);return typeof s=="function"?s(a):a[s]}const v6=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Hu(r,t)};function y6(e){return parseFloat(e.trim())}const fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],po=new Set(fo),qb=e=>e===io||e===le,x6=new Set(["x","y","z"]),w6=fo.filter(e=>!x6.has(e));function C6(e){const t=[];return w6.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const en={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Hu(t,"x"),y:(e,{transform:t})=>Hu(t,"y")};en.translateX=en.x,en.translateY=en.y;const wn=new Set;let qu=!1,Gu=!1,Zu=!1;function Gb(){if(Gu){const e=Array.from(wn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=C6(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([s,a])=>{n.getValue(s)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Gu=!1,qu=!1,wn.forEach(e=>e.complete(Zu)),wn.clear()}function Zb(){wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function S6(){Zu=!0,Zb(),Gb(),Zu=!1}class Yu{constructor(t,r,n,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(wn.add(this),qu||(qu=!0,sr.read(Zb),sr.resolveKeyframes(Gb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const i=n.readValue(r,a);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}m6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wn.delete(this)}cancel(){this.state==="scheduled"&&(wn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const k6=e=>e.startsWith("--");function P6(e,t,r){k6(t)?e.style.setProperty(t,r):e.style[t]=r}const $6=Cu(()=>window.ScrollTimeline!==void 0),E6={};function T6(e,t){const r=Cu(e);return()=>E6[t]??r()}const Yb=T6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ps=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Jb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ps([0,.65,.55,1]),circOut:ps([.55,0,1,.45]),backIn:ps([.31,.01,.66,-.59]),backOut:ps([.33,1.53,.69,.99])};function Xb(e,t){if(e)return typeof e=="function"?Yb()?Lb(e,t):"ease-out":Cb(e)?ps(e):Array.isArray(e)?e.map(r=>Xb(r,t)||Jb.easeOut):Jb[e]}function D6(e,t,r,{delay:n=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:i="easeOut",times:l}={},u=void 0){const c={[t]:r};l&&(c.offset=l);const d=Xb(i,o);Array.isArray(d)&&(c.easing=d);const p={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(c,p)}function Qb(e){return typeof e=="function"&&"applyToOptions"in e}function _6({type:e,...t}){return Qb(e)&&Yb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class I6 extends Vu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Jr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=_6(t);this.animation=D6(r,n,o,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Lu(o,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):P6(r,n,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return or(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ir(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&$6()?(this.animation.timeline=t,ao):r(this)}}const ev={anticipate:yb,backInOut:vb,circInOut:xb};function N6(e){return e in ev}function A6(e){typeof e.ease=="string"&&N6(e.ease)&&(e.ease=ev[e.ease])}const Ju=10;class M6 extends I6{constructor(t){A6(t),Kb(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:s,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const i=new Ru({...a,autoplay:!1}),l=Math.max(Ju,zt.now()-this.startTime),u=Yr(0,Ju,l-Ju);r.setWithVelocity(i.sample(Math.max(0,l-u)).value,i.sample(l).value,u),i.stop()}}const tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function O6(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function j6(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=tv(o,t),i=tv(s,t);return so(a===i,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!i?!1:O6(e)||(r==="spring"||Qb(r))&&n}function Xu(e){e.duration=0,e.type="keyframes"}const F6=new Set(["opacity","clipPath","filter","transform"]),B6=Cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z6(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return B6()&&r&&F6.has(r)&&(r!=="transform"||!u)&&!l&&!n&&o!=="mirror"&&s!==0&&a!=="inertia"}const L6=40;class V6 extends Vu{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:i,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=zt.now();const p={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},h=c?.KeyframeResolver||Yu;this.keyframeResolver=new h(i,(m,b,v)=>this.onKeyframesResolved(m,b,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:i,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=zt.now(),j6(t,s,a,i)||((_r.instantAnimations||!l)&&c?.(Lu(t,n,r)),t[0]=t[t.length-1],Xu(n),n.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>L6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!u&&z6(p)?new M6({...p,element:p.motionValue.owner.current}):new Ru(p);h.finished.then(()=>this.notifyFinished()).catch(ao),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const R6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K6(e){const t=R6.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const W6=4;function rv(e,t,r=1){Jr(r<=W6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=K6(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const a=s.trim();return lb(a)?parseFloat(a):a}return Eu(o)?rv(o,t,r+1):o}function nv(e,t){return e?.[t]??e?.default??e}const ov=new Set(["width","height","top","left","right","bottom",...fo]),U6={test:e=>e==="auto",parse:e=>e},sv=e=>t=>t.test(e),av=[io,le,lo,Xr,OT,MT,U6],iv=e=>av.find(sv(e));function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}const q6=new Set(["brightness","contrast","saturate","opacity"]);function G6(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Tu)||[];if(!n)return e;const o=r.replace(n,"");let s=q6.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+o+")"}const Z6=/\b([a-z-]*)\(.*?\)/gu,Qu={...Qr,getAnimatableNone:e=>{const t=e.match(Z6);return t?t.map(G6).join(" "):e}},lv={...io,transform:Math.round},ec={borderWidth:le,borderTopWidth:le,borderRightWidth:le,borderBottomWidth:le,borderLeftWidth:le,borderRadius:le,radius:le,borderTopLeftRadius:le,borderTopRightRadius:le,borderBottomRightRadius:le,borderBottomLeftRadius:le,width:le,maxWidth:le,height:le,maxHeight:le,top:le,right:le,bottom:le,left:le,inset:le,insetBlock:le,insetBlockStart:le,insetBlockEnd:le,insetInline:le,insetInlineStart:le,insetInlineEnd:le,padding:le,paddingTop:le,paddingRight:le,paddingBottom:le,paddingLeft:le,paddingBlock:le,paddingBlockStart:le,paddingBlockEnd:le,paddingInline:le,paddingInlineStart:le,paddingInlineEnd:le,margin:le,marginTop:le,marginRight:le,marginBottom:le,marginLeft:le,marginBlock:le,marginBlockStart:le,marginBlockEnd:le,marginInline:le,marginInlineStart:le,marginInlineEnd:le,backgroundPositionX:le,backgroundPositionY:le,...{rotate:Xr,rotateX:Xr,rotateY:Xr,rotateZ:Xr,scale:Fa,scaleX:Fa,scaleY:Fa,scaleZ:Fa,skew:Xr,skewX:Xr,skewY:Xr,distance:le,translateX:le,translateY:le,translateZ:le,x:le,y:le,z:le,perspective:le,transformPerspective:le,opacity:ls,originX:_b,originY:_b,originZ:le},zIndex:lv,fillOpacity:ls,strokeOpacity:ls,numOctaves:lv},Y6={...ec,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Qu,WebkitFilter:Qu},uv=e=>Y6[e];function cv(e,t){let r=uv(e);return r!==Qu&&(r=Qr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const J6=new Set(["auto","none","0"]);function X6(e,t,r){let n=0,o;for(;n<e.length&&!o;){const s=e[n];typeof s=="string"&&!J6.has(s)&&ds(s).values.length&&(o=e[n]),n++}if(o&&r)for(const s of t)e[s]=cv(r,o)}class Q6 extends Yu{constructor(t,r,n,o,s){super(t,r,n,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Eu(d))){const p=rv(d,r.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ov.has(n)||t.length!==2)return;const[o,s]=t,a=iv(o),i=iv(s),l=Tb(o),u=Tb(s);if(l!==u&&en[n]){this.needsMeasurement=!0;return}if(a!==i)if(qb(a)&&qb(i))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else en[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||H6(t[o]))&&n.push(o);n.length&&X6(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=en[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=n.length-1,a=n[s];n[s]=en[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}}function e9(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const dv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fv(e){return mT(e)&&"offsetHeight"in e}const pv=30,t9=e=>!isNaN(parseFloat(e));class r9{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=zt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=zt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=t9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Su(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new db);const n=this.events[t].add(r);return t==="change"?()=>{n(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,pv);return fb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Va(e,t){return new r9(e,t)}const{schedule:n9}=Pb(queueMicrotask,!1),o9={y:!1};function s9(){return o9.y}function hv(e,t){const r=e9(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function mv(e){return!(e.pointerType==="touch"||s9())}function a9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{if(!mv(i))return;const{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;const c=d=>{mv(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return n.forEach(i=>{i.addEventListener("pointerenter",a,o)}),s}const gv=(e,t)=>t?e===t?!0:gv(e,t.parentElement):!1,i9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,l9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function u9(e){return l9.has(e.tagName)||e.isContentEditable===!0}const Ra=new WeakSet;function bv(e){return t=>{t.key==="Enter"&&e(t)}}function tc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const c9=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=bv(()=>{if(Ra.has(r))return;tc(r,"down");const o=bv(()=>{tc(r,"up")}),s=()=>tc(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",s,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function vv(e){return i9(e)&&!0}function d9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{const l=i.currentTarget;if(!vv(i))return;Ra.add(l);const u=t(l,i),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Ra.has(l)&&Ra.delete(l),vv(h)&&typeof u=="function"&&u(h,{success:m})},d=h=>{c(h,l===window||l===document||r.useGlobalTarget||gv(l,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",p,o)};return n.forEach(i=>{(r.useGlobalTarget?window:i).addEventListener("pointerdown",a,o),fv(i)&&(i.addEventListener("focus",u=>c9(u,o)),!u9(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),s}const $t=e=>!!(e&&e.getVelocity),f9=[...av,ot,Qr],p9=e=>f9.find(sv(e)),rc=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function h9(...e){return t=>{let r=!1;const n=e.map(o=>{const s=yv(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():yv(e[o],null)}}}}function m9(...e){return Nt.useCallback(h9(...e),e)}class g9 extends Nt.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=fv(n)&&n.offsetWidth||0,s=this.props.sizeRef.current;s.height=r.offsetHeight||0,s.width=r.offsetWidth||0,s.top=r.offsetTop,s.left=r.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function b9({children:e,isPresent:t,anchorX:r,root:n}){const o=g.useId(),s=g.useRef(null),a=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=g.useContext(rc),l=e.props?.ref??e?.ref,u=m9(s,l);return g.useInsertionEffect(()=>{const{width:c,height:d,top:p,left:h,right:m}=a.current;if(t||!s.current||!c||!d)return;const b=r==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const v=document.createElement("style");i&&(v.nonce=i);const y=n??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
38
+ */var Cg;function gE(){return Cg||(Cg=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=m();if(!d){var v=m();s(b,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:b,getSnapshot:m}});var y=v[0].inst,x=v[1];return l(function(){y.value=b,y.getSnapshot=m,r(y)&&x({inst:y})},[h,b,m]),i(function(){return r(y)&&x({inst:y}),h(function(){r(y)&&x({inst:y})})},[h]),u(b),b}function r(h){var m=h.getSnapshot;h=h.value;try{var b=m();return!s(h,b)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=g,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,c=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Xl.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Xl}var Sg;function bE(){return Sg||(Sg=1,process.env.NODE_ENV==="production"?ha.exports=mE():ha.exports=gE()),ha.exports}var ma=bE();const vE={t:(e,t)=>Mt(t)?t:Er(t)&&Mt(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},yE=()=>()=>{},Oe=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:o}=g.useContext(Yl)||{},s=r||n||Zl();s&&!s.reportNamespaces&&(s.reportNamespaces=new hE),s||da(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=g.useMemo(()=>({...Gl(),...s?.options?.react,...t}),[s,t]),{useSuspense:i,keyPrefix:l}=a,u=o||s?.options?.defaultNS,c=Mt(u)?[u]:u||["translation"],d=g.useMemo(()=>c,c);s?.reportNamespaces?.addUsedNamespaces?.(d);const p=g.useRef(0),h=g.useCallback(_=>{if(!s)return yE;const{bindI18n:A,bindI18nStore:N}=a,M=()=>{p.current+=1,_()};return A&&s.on(A,M),N&&s.store.on(N,M),()=>{A&&A.split(" ").forEach(O=>s.off(O,M)),N&&N.split(" ").forEach(O=>s.store.off(O,M))}},[s,a]),m=g.useRef(),b=g.useCallback(()=>{if(!s)return vE;const _=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(I=>J$(I,s,a)),A=t.lng||s.language,N=p.current,M=m.current;if(M&&M.ready===_&&M.lng===A&&M.keyPrefix===l&&M.revision===N)return M;const L={t:s.getFixedT(A,a.nsMode==="fallback"?d:d[0],l),ready:_,lng:A,keyPrefix:l,revision:N};return m.current=L,L},[s,d,l,a,t.lng]),[v,y]=g.useState(0),{t:x,ready:w}=ma.useSyncExternalStore(h,b,b);g.useEffect(()=>{if(s&&!w&&!i){const _=()=>y(A=>A+1);t.lng?mg(s,t.lng,d,_):Hl(s,d,_)}},[s,t.lng,d,w,i,v]);const C=s||{},S=g.useRef(null),k=g.useRef(),D=_=>{const A=Object.getOwnPropertyDescriptors(_);A.__original&&delete A.__original;const N=Object.create(Object.getPrototypeOf(_),A);if(!Object.prototype.hasOwnProperty.call(N,"__original"))try{Object.defineProperty(N,"__original",{value:_,writable:!1,enumerable:!1,configurable:!1})}catch{}return N},$=g.useMemo(()=>{const _=C,A=_?.language;let N=_;_&&(S.current&&S.current.__original===_?k.current!==A?(N=D(_),S.current=N,k.current=A):N=S.current:(N=D(_),S.current=N,k.current=A));const M=[x,N,w];return M.t=x,M.i18n=N,M.ready=w,M},[x,C,w,C.resolvedLanguage,C.language,C.languages]);if(s&&i&&!w)throw new Promise(_=>{const A=()=>_();t.lng?mg(s,t.lng,d,A):Hl(s,d,A)});return $};function xE({i18n:e,defaultNS:t,children:r}){const n=g.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return g.createElement(Yl.Provider,{value:n},r)}let wE=!1,kg=!1;function ga(){return wE}function CE(){kg=!0}function ba(){return kg}const Pg=g.createContext({shadowRoot:null});CE();function SE({children:e,css:t,cssUrl:r}){const n=g.useRef(null),[o,s]=g.useState(null),[a,i]=g.useState(null);return g.useEffect(()=>{if(n.current&&!n.current.shadowRoot){const l=n.current.attachShadow({mode:"open",delegatesFocus:!0});if(i(l),t){const c=document.createElement("style");c.textContent=t,l.appendChild(c)}if(r){const c=document.createElement("link");c.type="text/css",c.rel="stylesheet",c.href=r,l.appendChild(c)}const u=document.createElement("div");l.appendChild(u),s(u)}},[t,r]),f.jsx("div",{ref:n,children:o&&f.jsx(Pg,{value:{shadowRoot:a},children:Hn.createPortal(e,o)})})}function kE(){return g.useContext(Pg)}const PE={common:{yes:"Yes",no:"No",confirm:"Confirm",cancel:"Cancel",loading:"Loading...",close:"Close",next:"Next",previous:"Previous",select:"Select",save:"Save",back:"Back"},numberPreservation:{title:"Number preservation",description:"Do you want to keep your current number or get a new number?",keepCurrentNumber:"Current 06-number",newNumber:"New 06-number",currentProvider:"Current provider",selectProvider:"Select your current provider",invalidNumber:"Invalid number",subscription:"Subscription",prepaid:"Prepaid",otherProvider:"Other / no provider"},combiDeal:{title:"Customer benefits",description:"Combining subscriptions in your household can provide many benefits.",selectHomeProvider:"Select your home provider",selectOtherSubscriptionsOnAddress:"Select subscriptions on your address",customerBenefit:"Customer benefits",homeInternet:"Home internet",selectOtherSubscriptions:"Select your other providers on your address:",otherSubscriptionsDescription:"and see which benefits apply to you.",otherSubscriptions:"Other providers on your address",movingOption:"None due to relocation",otherProvider:"Other provider"},postcodeCheck:{loading:"Searching for the best deals...",invalidAddressError:"Address and house number do not match",title:"Postal code check",description:"Enter your postal code and check which offer best suits you.",postalCode:"Postcode",houseNumber:"House number",houseNumberAddition:"Addition",homeInternet:"Home internet",selectProvider:"Select your home internet provider"},profile:{personalizeTitle:"Personalize",postcodeCheck:"Postal code check",enterPostcode:"Enter your postal code and house number",numberPreservation:"Number preservation",askNumberPreservation:"Keep your 06-number?",newNumber:"New 06-number",customerBenefit:"Customer benefits"},format:{unlimited:"Unlimited",unlimited_short:"Unltd",gigabyte:"GB",minutes:"minutes",minutes_short:"min",sms:"sms",year:"year",year_other:"years",oneTime:"One-time",monthly:"Monthly",month:"month",month_other:"months",month_short:"mo",month_short_other:"mos",firstMonth:"First month",firstMonth_other:"First {{count}} months",thenMonth:"Then 1 month",thenMonth_other:"Then {{count}} months",afterMonth:"After 1 month",afterMonth_other:"After {{count}} months",hour:"hour",hour_other:"hours",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"From",startingFrom:"From",to:"Up to",for:"for",or:"or",average:"Average",average_short:"avg.",maximum:"Maximum"},labels:{renewWith:"Renew with {{providerName}}",cheapestPhone:"Cheapest phone",budget:"Most affordable",budgetFiber:"Most affordable with fiber",combi:"Customer benefits with {{providerName}}",combiGeneric:"Customer benefits",fastestInternet:"Fastest internet",budgetOwnNetwork:"Most affordable with own network",budgetNetwork:"Most affordable on {{network}}-network",budgetNetworkGeneric:"Most affordable on network"},propositionCard:{availableStockStatus:"In stock",backorderedStockStatus:"Backorder",preOrderStockStatus:"Pre-order",oneTimeFee:"one-time",deviceDiscount:"device discount",urgentText:"Final day",urgentText_other:"Promotion ends in {{days}} days",cta:"View at Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Fiber","kabel-internet":"Cable","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Reset filters",applyFilters:"Show results",chosenFilters:"Chosen filters:",sort:"Sort",sortBy:"Sort by",show:"Show",showMore:"more",showLess:"less"},filterOptions:{brand:"Brand",internal_storage:"Internal storage",color:"Color",data:"Data",minutes:"Minutes",credit_fee:"Maximum device bundle",provider:"Providers",contract_term:"Contract term",package:"Packages",data_speed_down:"Download speed",data_speed_up:"Upload speed",monthly_fee:"Monthly fee",price:"Maximum additional payment",tags_netwerk:"Network",tags_verbinding:"Internet connection",tags_esim:"eSIM",receivers:"TV receivers",network_generation:"Network speed"},sortOptions:{top:"Relevance",relevantie:"Relevance","best-verkocht":"Best-selling","meest-voordelig":"Price low-high",downloadsnelheid:"Download speed",uploadsnelheid:"Upload speed"},productResults:{loadMore:"Loading...",showMoreOffers:"Show more offers",noResultsTitle:"No results found",noResultsDescription:"No products found with your chosen filter combination.",sortBy:"Sort by",topPropositionsTitle:"Best providers for you",allPropositionsTitle:"All providers"},creditInfo:{exampleTitle:"Example calculation of device bundle",creditBundleTitle:"Legally required credit information",offer:"Offer",totalDeviceCost:"Total device cost",oneTimeFee:"One-time fee",totalCreditAmount:"Total credit amount",monthlyPayment:"Monthly payment",contractTerm:"Contract term",fixedInterest:"Fixed interest / JKP",generalDescription:"This table contains a calculation of a device loan and the price per month. The device loan is a revolving goods credit offered by the Finance B.V. of the chosen provider. Read <0>here</0> more about installment payments and the European standard form. Websend B.V. mediates on behalf of various parties and acts as an exempt intermediary for the Finance B.V. of the chosen provider and does not provide advice on the device loan. You must determine for yourself whether the device loan suits your personal circumstances.",creditBundleDescription:"Up to the credit amount {{creditPrice}} there is no income and expense assessment. The device loan is a revolving goods credit offered by {{creditProviderName}} <0>Standard information on consumer credit</0>"},detailsModal:{title:"All about this subscription",renewal:"Renewal",chooseTab:"Choose a tab",general:"General",bundles:"Bundles",conditions:"Conditions",channels:"TV channels",costs:"Costs",specifications:"Specifications",monthlyFee:"Monthly fee",oneTimeFee:"One-time fee",totalCost:"Total cost",provider:"Provider",network:"Network",networkCoverage:"Coverage",networkAdministrator:"Network administrator",networkType:"Network type",subscriptionType:"Subscription type",internet:"Internet",calling:"Calling",sms:"Sms",extras:"Extras",television:"Television",networkGeneration:"Network generation",downloadSpeed:"Download speed",uploadSpeed:"Upload speed",contractTerm:"Contract term",contractTermTerminable:"terminable",subscription:"Subscription",bundle:"Bundle",bundleSpeed:"Speed",termsAndConditions:"Terms and conditions",maximumDownloadSpeed:"Maximum download speed",maximumUploadSpeed:"Maximum upload speed",numberOfChannels:"TV channels",numberOfReceivers:"TV receivers",outsideBundle:"Outside the bundle",subscriptionFlexibility:"Subscription flexibility",abroad:"Abroad",insideEu:"Inside the EU",outsideEu:"Outside the EU",minutesToEu:"Minutes from NL to EU",upgradeBundle:"Upgrade bundle",downgradeBundle:"Downgrade bundle",dataExceedance:"Data exceedance",bundleExceedanceRates:"Out-of-bundle rates",bundleExceedanceRateCeiling:"Cost ceiling",bundleExceedanceWarning:"Credit notification",bundleExceedanceMinutesRounding:"Rounding call minutes",channelsDescription:"You receive the following {{channelsCount}} TV channels with this subscription:",moreInformation:"More information",deviceBundle:"Device bundle",installationFee:"installation fee",activationFee:"activation fee",cashback:"Cashback",priceWithoutSubscription:"Price without subscription",priceWithSubscription:"Price with subscription",devicePrice:"Device surcharge",costPerContractTermTitle:"Average per month",costPerContractTermSubtitle:"Total costs divided by contract term",deviceDiscountTitle:"Device discount",deviceDiscountSubtitle:"Discount compared to separate phone + sim only",totalCostsOverTerm:"Total costs over 1 month",totalCostsOverTerm_other:"Total costs over {{count}} months",totalDeviceDiscount:"Total device discount"},phoneSelector:{phone:"Phone",selectPhone:"Select a phone",selectBrand:"Select a brand",searchPlaceholder:"Search by brand or model",popular:"Popular",allBrands:"All brands",selectVersion:"Select a version",selectColor:"Select a color"},modificationBlocks:{"mobile/odido":"One or more mobile subscriptions","mobile/vodafone":"One or more mobile subscriptions","segment/vodafone/young":"I am younger than 28 years old","segment/vodafone/unlimited":"Vodafone Unlimited subscription at my address","mobile/kpn":"Another mobile subscription from KPN","mobile/ben":"One or more mobile subscriptions","mobile/50plusmobiel":"One or more mobile subscriptions","mobile/hollandsnieuwe":"One or more mobile subscriptions","mobile/budget":"One or more mobile subscriptions","mobile/youfone":"One or more mobile subscriptions","mobile/delta":"One or more mobile subscriptions"}},$E={common:{yes:"Ja",no:"Nee",confirm:"Bevestig",cancel:"Annuleer",loading:"Laden...",close:"Sluiten",next:"Volgende",previous:"Vorige",select:"Selecteer",save:"Opslaan",back:"Terug"},numberPreservation:{title:"Nummerbehoud",description:"Wil je je huidige nummer behouden of een nieuw nummer?",keepCurrentNumber:"Huidig 06-nummer",newNumber:"Nieuw 06-nummer",currentProvider:"Huidige provider",selectProvider:"Kies je huidige provider",invalidNumber:"Ongeldig nummer",subscription:"Abonnement",prepaid:"Prepaid",otherProvider:"Andere / geen provider"},combiDeal:{title:"Klantvoordeel",description:"Combineren met abonnementen in je huishouden kan veel voordeel opleveren.",selectHomeProvider:"Kies je thuisprovider",selectOtherSubscriptionsOnAddress:"Selecteer abonnementen op je adres",customerBenefit:"Klantvoordeel",homeInternet:"Thuis internet",selectOtherSubscriptions:"Selecteer andere abonnementen op jouw adres:",otherSubscriptionsDescription:"en zie welke voordelen voor jou van toepassing zijn.",otherSubscriptions:"Andere abonnementen op jouw adres",movingOption:"Geen i.v.m. verhuizing",otherProvider:"Andere provider"},postcodeCheck:{loading:"Aan het zoeken naar de beste deals...",invalidAddressError:"Adres en huisnummer komen niet overeen",title:"Postcodecheck",description:"Vul je postcode in en check welk pakket het beste bij jou past.",postalCode:"Postcode",houseNumber:"Huisnr.",houseNumberAddition:"Toev.",homeInternet:"Thuis internet",selectProvider:"Kies je thuisprovider"},profile:{personalizeTitle:"Personaliseer",postcodeCheck:"Postcodecheck",enterPostcode:"Vul je postcode en huisnr in",numberPreservation:"Nummerbehoud",askNumberPreservation:"Je 06-nummer behouden?",newNumber:"Nieuw 06-nummer",customerBenefit:"Klantvoordeel"},format:{unlimited:"Onbeperkt",unlimited_short:"Onbp",gigabyte:"GB",minutes:"minuten",minutes_short:"min",sms:"sms",year:"jaar",year_other:"jaar",oneTime:"Eenmalig",monthly:"Maandelijks",month:"maand",month_other:"maanden",month_short:"mnd",month_short_other:"mnd",firstMonth:"Eerste maand",firstMonth_other:"Eerste {{count}} maanden",thenMonth:"Daarna 1 maand",thenMonth_other:"Daarna {{count}} maanden",afterMonth:"Na 1 maand",afterMonth_other:"Na {{count}} maanden",hour:"uur",hour_other:"uur",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"Van",startingFrom:"Vanaf",to:"Tot",for:"voor",or:"of",average:"Gemiddeld",average_short:"gem.",maximum:"Maximaal"},labels:{renewWith:"Verlengen bij {{providerName}}",cheapestPhone:"Hoogste toestelkorting",budget:"Meest voordelig",budgetFiber:"Meest voordelig met glasvezel",combi:"Klantvoordeel bij {{providerName}}",combiGeneric:"Klantvoordeel",fastestInternet:"Snelste internet",budgetOwnNetwork:"Voordeligste met eigen netwerk",budgetNetwork:"Voordeligste op {{network}}-netwerk",budgetNetworkGeneric:"Voordeligste op netwerk"},propositionCard:{availableStockStatus:"Direct leverbaar",backorderedStockStatus:"In bestelling",preOrderStockStatus:"Pre-order",oneTimeFee:"eenmalig",deviceDiscount:"toestelkorting",urgentText:"Laatste dag",urgentText_other:"Actie nog {{days}} dagen",cta:"Bekijk bij Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Glasvezel","kabel-internet":"Kabel","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Wis filters",applyFilters:"Toon resultaten",chosenFilters:"Gekozen filters:",sort:"Sorteren",sortBy:"Sorteer op",show:"Bekijk",showMore:"meer",showLess:"minder"},filterOptions:{brand:"Merk",internal_storage:"Opslagcapaciteit",color:"Kleur",data:"Data",minutes:"Minuten",credit_fee:"Maximale toestelbundel",provider:"Providers",contract_term:"Looptijd van je abonnement",package:"Pakketten",data_speed_down:"Downloadsnelheid",data_speed_up:"Uploadsnelheid",monthly_fee:"Maandprijs",price:"Maximale bijbetaling",tags_netwerk:"Netwerk",tags_verbinding:"Internetverbinding",tags_esim:"eSIM",receivers:"TV-ontvangers",network_generation:"Netwerksnelheid"},sortOptions:{top:"Relevantie",relevantie:"Relevantie","best-verkocht":"Bestverkocht","meest-voordelig":"Prijs laag-hoog",downloadsnelheid:"Downloadsnelheid",uploadsnelheid:"Uploadsnelheid"},productResults:{loadMore:"Laden...",showMoreOffers:"Toon meer aanbiedingen",noResultsTitle:"Geen resultaten gevonden",noResultsDescription:"Er zijn geen producten gevonden met je gekozen filtercombinatie.",sortBy:"Sorteren",topPropositionsTitle:"Beste providers voor jou",allPropositionsTitle:"Alle providers op een rijtje"},creditInfo:{exampleTitle:"Voorbeeldberekening toestelbundel",creditBundleTitle:"Wettelijk verplichte kredietinformatie",offer:"Aanbieding",totalDeviceCost:"Totale toestelkosten",oneTimeFee:"Eenmalige betaling",totalCreditAmount:"Totaal kredietbedrag",monthlyPayment:"Termijnbedrag",contractTerm:"Duur overeenkomst",fixedInterest:"Vaste rente / JKP",generalDescription:"Deze tabel bevat een berekening van een toestellening en de prijs per maand. De toestellening is een aflopend goederenkrediet aangeboden door de Finance B.V. van de gekozen provider. Lees <0>hier</0> meer over gespreid betalen en het Europees standaard formulier. Websend B.V. bemiddelt namens verschillende partijen en treedt op als vrijgestelde bemiddelaar voor de Finance B.V. van de gekozen provider en geeft geen advies over de toestellening. Je dient zelf te bepalen of de toestellening aansluit bij jouw persoonlijke omstandigheden.",creditBundleDescription:"Tot het kredietbedrag {{creditPrice}} vindt er geen inkomens- en lastentoets plaats. Toestellening is een aflopend goederenkrediet aangeboden door {{creditProviderName}} <0>Standaardinformatie inzake consumptief krediet</0>"},detailsModal:{title:"Alles over dit abonnement",renewal:"Verlenging",chooseTab:"Kies een tabblad",general:"Algemeen",bundles:"Bundels",conditions:"Voorwaarden",channels:"Tv-zenders",costs:"Kostenoverzicht",specifications:"Specificaties",monthlyFee:"Maandelijkse kosten",oneTimeFee:"Eenmalige kosten",totalCost:"Totale kosten",provider:"Provider",network:"Netwerk",networkCoverage:"Dekking",networkAdministrator:"Netwerk beheerder",networkType:"Netwerktype",subscriptionType:"Abonnementsvorm",internet:"Internet",calling:"Bellen",sms:"Sms",extras:"Extra's",television:"Televisie",networkGeneration:"Netwerkgeneratie",downloadSpeed:"Downloadsnelheid",uploadSpeed:"Uploadsnelheid",contractTerm:"Contractduur",contractTermTerminable:"opzegbaar",subscription:"Abonnement",bundle:"Bundel",bundleSpeed:"Snelheid",termsAndConditions:"Algemene voorwaarden",maximumDownloadSpeed:"Maximale downloadsnelheid",maximumUploadSpeed:"Maximale uploadsnelheid",numberOfChannels:"Aantal TV-zenders",numberOfReceivers:"Aantal TV-ontvangers",outsideBundle:"Buiten de bundel",subscriptionFlexibility:"Abonnement flexibiliteit",abroad:"In het buitenland",insideEu:"Binnen de EU",outsideEu:"Buiten de EU",minutesToEu:"Minuten van NL naar EU",upgradeBundle:"Bundel verhogen",downgradeBundle:"Bundel verlagen",dataExceedance:"Data overschrijding",bundleExceedanceRates:"Buitenbundeltarieven",bundleExceedanceRateCeiling:"Kostenplafond",bundleExceedanceWarning:"Tegoedmelding",bundleExceedanceMinutesRounding:"Afronding belminuten",channelsDescription:"Je ontvangt de volgende {{channelsCount}} TV-zenders bij dit abonnement:",moreInformation:"Meer informatie",deviceBundle:"Toestelbundel",installationFee:"installatiekosten",activationFee:"aansluitkosten",cashback:"Cashback",priceWithoutSubscription:"Prijs zonder abonnement",priceWithSubscription:"Prijs met abonnement",devicePrice:"Bijbetaling toestel",costPerContractTermTitle:"Gemiddeld per maand",costPerContractTermSubtitle:"Totale kosten gedeeld door contractduur",deviceDiscountTitle:"Toestelkorting",deviceDiscountSubtitle:"Korting t.o.v. losse telefoon + sim only",totalCostsOverTerm:"Totale kosten over 1 maand",totalCostsOverTerm_other:"Totale kosten over {{count}} maanden",totalDeviceDiscount:"Totale toestelkorting"},phoneSelector:{phone:"Telefoon",selectPhone:"Kies een telefoon",selectBrand:"Kies een merk",searchPlaceholder:"Zoek op merk of model",popular:"Populair",allBrands:"Alle merken",selectVersion:"Kies een versie",selectColor:"Kies een kleur"},modificationBlocks:{"mobile/odido":"Één of meer mobiele abonnementen","mobile/vodafone":"Één of meer mobiele abonnementen","segment/vodafone/young":"Ik ben jonger dan 28 jaar","segment/vodafone/unlimited":"Vodafone Unlimited abonnement op mijn adres","mobile/kpn":"Een ander mobiel abonnement van KPN","mobile/ben":"Één of meer mobiele abonnementen","mobile/50plusmobiel":"Één of meer mobiele abonnementen","mobile/hollandsnieuwe":"Één of meer mobiele abonnementen","mobile/budget":"Één of meer mobiele abonnementen","mobile/youfone":"Één of meer mobiele abonnementen","mobile/delta":"Één of meer mobiele abonnementen"}};Q.use(pE).init({resources:{nl:{translation:$E},en:{translation:PE}},lng:"nl",fallbackLng:"nl",interpolation:{escapeValue:!1},react:{useSuspense:!1}});function EE(e){return Q.changeLanguage(e)}function $g(e,t){const r={...e};for(const n in t){const o=t[n];o!==void 0&&typeof o=="object"&&!Array.isArray(o)&&o!==null&&n in e?r[n]=$g(e[n],o):o!==void 0&&(r[n]=o)}return r}function TE(e,t){const r=Q.getResourceBundle(e,"translation")||{},n=$g(r,t);Q.addResourceBundle(e,"translation",n,!0,!0)}function Eg({children:e,className:t,translations:r,locale:n="nl"}){const o=r?JSON.stringify(r):void 0;return g.useEffect(()=>{if(r)for(const[s,a]of Object.entries(r))TE(s,a)},[o]),g.useEffect(()=>{n!==Q.language&&EE(n)},[n]),f.jsx(xE,{i18n:Q,children:f.jsx("div",{className:"mobielnl-elements",children:f.jsx("div",{className:P("bg-background text-foreground antialiased",t),children:e})})})}function DE({withShadowDOM:e,...t}){if(!e)return f.jsx(Eg,{...t});const r=typeof e=="object"?e:void 0;return f.jsx(SE,{css:r?.css,cssUrl:r?.cssUrl,children:f.jsx(Eg,{...t})})}function _E(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function IE(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Ql=typeof window<"u",Tg=function(e){g.useEffect(e,[])},NE=function(e){var t=g.useRef(e);t.current=e,Tg(function(){return function(){return t.current()}})},AE=function(e){var t=g.useRef(0),r=g.useState(e),n=r[0],o=r[1],s=g.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a)})},[]);return NE(function(){cancelAnimationFrame(t.current)}),[n,s]},Dg=function(e){var t={},r=t.initialWidth,n=r===void 0?1/0:r,o=t.initialHeight,s=o===void 0?1/0:o,a=t.onChange,i=AE({width:Ql?window.innerWidth:n,height:Ql?window.innerHeight:s}),l=i[0],u=i[1];return g.useEffect(function(){if(Ql){var c=function(){var d=window.innerWidth,p=window.innerHeight;u({width:d,height:p}),a&&a(d,p)};return _E(window,"resize",c),function(){IE(window,"resize",c)}}},[]),l};function ME({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Right Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14m0 0-6 6m6-6-6-6",stroke:e})]})}function OE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Up Down Icon"}),f.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function jE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Badge Hd Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 15V9m3 6V9m-3 3h3M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm11 2v6h1a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2z",stroke:e})]})}function FE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Broadcast Icon"}),f.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function _g({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Calculator Icon"}),f.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function BE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Down Icon"}),f.jsx("path",{d:"M6 9L12 15L18 9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function zE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Right Icon"}),f.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function LE({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Circle Check Filled Icon"}),f.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function VE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Clock Hour Icon"}),f.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function eu({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Device Mobile Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z"}),f.jsx("path",{d:"M11 4h2"}),f.jsx("path",{d:"M12 17v.01"})]})}function RE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device Remote Icon"}),f.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function KE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device TV Icon"}),f.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function tu({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Discount Icon"}),f.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function WE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Edit Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),f.jsx("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),f.jsx("path",{d:"M16 5l3 3"})]})}function ts({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"External Link Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M11 13l9 -9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M15 4h5v5",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ig({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Filters Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function UE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Gauge Icon"}),f.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ng({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{d:"M19 12H21L12 3L3 12H5V19C5 19.5304 5.21071 20.0391 5.58579 20.4142C5.96086 20.7893 6.46957 21 7 21H12.5M9 21V15C9 14.4696 9.21071 13.9609 9.58579 13.5858C9.96086 13.2107 10.4696 13 11 13H13C13.58 13 14.103 13.247 14.468 13.642M19 18V18.01M21.121 20.1212C21.5406 19.7016 21.8265 19.1671 21.9423 18.5851C22.0581 18.0031 21.9988 17.3999 21.7717 16.8517C21.5447 16.3034 21.1602 15.8348 20.6668 15.5052C20.1734 15.1755 19.5934 14.9995 19 14.9995C18.4066 14.9995 17.8266 15.1755 17.3332 15.5052C16.8398 15.8348 16.4553 16.3034 16.2283 16.8517C16.0012 17.3999 15.9419 18.0031 16.0577 18.5851C16.1735 19.1671 16.4594 19.7016 16.879 20.1212C17.297 20.5402 18.004 21.1662 19 22.0002C20.051 21.1102 20.759 20.4842 21.121 20.1212Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function HE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Move Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m4-3h2l-9-9-9 9h2v7a2 2 0 0 0 2 2h5.5m3.5-2h6m0 0-3-3m3 3-3 3"})]})}function qE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:s,...a,children:[f.jsx("title",{children:"X Icon"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6l-12 12"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 6l12 12"})]})}function Ag({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 18h.01m-2.838-2.828a4 4 0 0 1 5.656 0m-8.485-2.829a8 8 0 0 1 11.314 0M3.515 9.515c4.686-4.687 12.284-4.687 17 0"})]})}function GE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"World Icon"}),f.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}var ZE=()=>f.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[f.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),f.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function bn(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Nt.createContext(void 0);o.displayName=n;function s(){var a;const i=Nt.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,s),l}return i}return[o.Provider,s,o]}function YE(e){return{UNSAFE_getDOMNode(){return e.current}}}function Pe(e){const t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current),t}function JE(e,t){if(e!=null){if(g$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ru(...e){return t=>{e.forEach(r=>JE(r,t))}}function XE(){const e=()=>()=>{};return Nt.useSyncExternalStore(e,()=>!0,()=>!1)}var QE=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),e5=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Mg=/^(data-.*)$/,t5=/^(aria-.*)$/,va=/^(on[A-Z].*)$/;function Fe(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:s,omitEventNames:a,omitDataProps:i,omitEventProps:l}=t,u={};if(!n)return e;for(const c in e)s?.has(c)||a?.has(c)&&va.test(c)||va.test(c)&&!e5.has(c)||i&&Mg.test(c)||l&&va.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(QE.has(c)||r&&t5.test(c)||o?.has(c)||Mg.test(c))||va.test(c))&&(u[c]=e[c]);return u}function nu({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):Nt.createElement(e,t)}var[$R,r5]=bn({name:"AvatarGroupContext",strict:!1}),[ER,tt]=bn({name:"ProviderContext",strict:!1});const n5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function s5(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return n5.has(r.script)}let t=e.split("-")[0];return o5.has(t)}const ya={prefix:String(Math.round(Math.random()*1e10)),current:0},Og=g.createContext(ya),a5=g.createContext(!1);let i5=!!(typeof window<"u"&&window.document&&window.document.createElement),ou=new WeakMap;function l5(e=!1){let t=g.useContext(Og),r=g.useRef(null);if(r.current===null&&!e){var n,o;let s=(o=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(s){let a=ou.get(s);a==null?ou.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,ou.delete(s))}r.current=++t.current}return r.current}function u5(e){let t=g.useContext(Og);t===ya&&!i5&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=l5(!!e),n=t===ya&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function c5(e){let t=g.useId(),[r]=g.useState(Qn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ya.prefix}`;return e||`${n}-${t}`}const d5=typeof g.useId=="function"?c5:u5;function f5(){return!1}function p5(){return!0}function h5(e){return()=>{}}function Qn(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(h5,f5,p5):g.useContext(a5)}const jg=Symbol.for("react-aria.i18n.locale");function Fg(){let e=typeof window<"u"&&window[jg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:s5(e)?"rtl":"ltr"}}let su=Fg(),rs=new Set;function Bg(){su=Fg();for(let e of rs)e(su)}function m5(){let e=Qn(),[t,r]=g.useState(su);return g.useEffect(()=>(rs.size===0&&window.addEventListener("languagechange",Bg),rs.add(r),()=>{rs.delete(r),rs.size===0&&window.removeEventListener("languagechange",Bg)}),[]),e?{locale:typeof window<"u"&&window[jg]||"en-US",direction:"ltr"}:t}const g5=g.createContext(null);function Ot(){let e=m5();return g.useContext(g5)||e}const b5=Symbol.for("react-aria.i18n.locale"),v5=Symbol.for("react-aria.i18n.strings");let eo;class xa{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=y5(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[b5];if(eo===void 0){let o=window[v5];if(!o)return null;eo={};for(let s in o)eo[s]=new xa({[r]:o[s]},r)}let n=eo?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function y5(e,t,r="en-US"){if(t[e])return t[e];let n=x5(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function x5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const zg=new Map,Lg=new Map;class w5{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let s=this.locale+":"+n,a=zg.get(s);a||(a=new Intl.PluralRules(this.locale,{type:n}),zg.set(s,a));let i=a.select(t);return o=r[i]||r.other,typeof o=="function"?o():o}number(t){let r=Lg.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Lg.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const Vg=new WeakMap;function C5(e){let t=Vg.get(e);return t||(t=new xa(e),Vg.set(e,t)),t}function S5(e,t){return t&&xa.getGlobalDictionaryForPackage(t)||C5(e)}function Wr(e,t){let{locale:r}=Ot(),n=S5(e,t);return g.useMemo(()=>new w5(r,n),[r,n])}function k5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P5(e,t,r){k5(e,t),t.set(e,r)}const ze=typeof document<"u"?g.useLayoutEffect:()=>{};function $5(e){let[t,r]=g.useState(e),n=g.useRef(t),o=g.useRef(null),s=g.useRef(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}n.current===i.value?s.current():r(i.value)});ze(()=>{n.current=t,o.current&&s.current()});let a=g.useCallback(i=>{o.current=i(n.current),s.current()},[s]);return[t,a]}let E5=!!(typeof window<"u"&&window.document&&window.document.createElement),to=new Map,ns;typeof FinalizationRegistry<"u"&&(ns=new FinalizationRegistry(e=>{to.delete(e)}));function bt(e){let[t,r]=g.useState(e),n=g.useRef(null),o=d5(t),s=g.useRef(null);if(ns&&ns.register(s,o),E5){const a=to.get(o);a&&!a.includes(n)?a.push(n):to.set(o,[n])}return ze(()=>{let a=o;return()=>{ns&&ns.unregister(s),to.delete(a)}},[o]),g.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function T5(e,t){if(e===t)return e;let r=to.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=to.get(t);return n?(n.forEach(o=>o.current=e),e):t}function os(e=[]){let t=bt(),[r,n]=$5(t),o=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ze(o,[t,o,...e]),r}function Ur(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ne=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},kt=e=>e&&"window"in e&&e.window===e?e:Ne(e).defaultView||window;function D5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function _5(e){return D5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function We(e,t){if(!ba())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:_5(r)?r=r.host:r=r.parentNode}return!1}const xt=(e=document)=>{var t;if(!ba())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function je(e){return ba()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class I5{get currentNode(){return this._currentNode}set currentNode(t){if(!We(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,i=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),n=o=a.host}else n=n.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return We(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let s;if(typeof this.filter=="function"?s=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(s=this.filter.acceptNode(r)),s===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var i;if(typeof this.filter=="function")return this.filter(a);if(!((i=this.filter)===null||i===void 0)&&i.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const s=r.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function N5(e,t,r,n){return ba()?new I5(e,t,r,n):e.createTreeWalker(t,r,n)}function Rg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Rg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function A5(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Rg(e))&&(n&&(n+=" "),n+=t);return n}function Ce(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],a=n[o];typeof s=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ur(s,a):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[o]=A5(s,a):o==="id"&&s&&a?t.id=T5(s,a):t[o]=a!==void 0?a:s}}return t}const M5=new Set(["id"]),O5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),j5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),F5=new Set(["dir","lang","hidden","inert","translate"]),Kg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),B5=/^(data-.*)$/;function Bt(e,t={}){let{labelable:r,isLink:n,global:o,events:s=o,propNames:a}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(M5.has(l)||r&&O5.has(l)||n&&j5.has(l)||o&&F5.has(l)||s&&(Kg.has(l)||l.endsWith("Capture")&&Kg.has(l.slice(0,-7)))||a?.has(l)||B5.test(l))&&(i[l]=e[l]);return i}function Rt(e){if(z5())e.focus({preventScroll:!0});else{let t=L5(e);e.focus(),V5(t)}}let wa=null;function z5(){if(wa==null){wa=!1;try{document.createElement("div").focus({get preventScroll(){return wa=!0,!0}})}catch{}}return wa}function L5(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function V5(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Ca(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function au(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Tr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Hr=Tr(function(){return au(/^Mac/i)}),R5=Tr(function(){return au(/^iPhone/i)}),Wg=Tr(function(){return au(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}),Sa=Tr(function(){return R5()||Wg()}),K5=Tr(function(){return Hr()||Sa()}),iu=Tr(function(){return Ca(/AppleWebKit/i)&&!Ug()}),Ug=Tr(function(){return Ca(/Chrome/i)}),ss=Tr(function(){return Ca(/Android/i)}),W5=Tr(function(){return Ca(/Firefox/i)}),U5=g.createContext({isNative:!0,open:q5,useHref:e=>e});function ka(){return g.useContext(U5)}function Dr(e,t,r=!0){var n,o;let{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}=t;W5()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Hr()?s=!0:a=!0);let u=iu()&&Hr()&&!Wg()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Dr.isOpening=r,Rt(e),e.dispatchEvent(u),Dr.isOpening=!1}Dr.isOpening=!1;function H5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function q5(e,t){H5(e,r=>Dr(r,t))}function G5(e){let t=ka();var r;const n=t.useHref((r=e.href)!==null&&r!==void 0?r:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Hg(e){let t=ka();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let qr=new Map,lu=new Set;function qg(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);o||(o=new Set,qr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),qr.delete(n.target)),qr.size===0)){for(let s of lu)s();lu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?qg():document.addEventListener("DOMContentLoaded",qg));function Z5(){for(const[e]of qr)"isConnected"in e&&!e.isConnected&&qr.delete(e)}function Gg(e){requestAnimationFrame(()=>{Z5(),qr.size===0?e():lu.add(e)})}function vn(){let e=g.useRef(new Map),t=g.useCallback((o,s,a,i)=>{let l=i?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:s,eventTarget:o,fn:l,options:i}),o.addEventListener(s,l,i)},[]),r=g.useCallback((o,s,a,i)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(s,u,i),e.current.delete(a)},[]),n=g.useCallback(()=>{e.current.forEach((o,s)=>{r(o.eventTarget,o.type,s,o.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Pa(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=bt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}var uu;const Y5=(uu=g.useInsertionEffect)!==null&&uu!==void 0?uu:ze;function Pt(e){const t=g.useRef(null);return Y5(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function Zg(e,t){const r=g.useRef(!0),n=g.useRef(null);let o=Pt(e);g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),g.useEffect(()=>{let s=n.current;r.current?r.current=!1:(!s||t.some((a,i)=>!Object.is(a,s[i])))&&o(),n.current=t},t)}function Yg(e,t){const r=g.useRef(!0),n=g.useRef(null);ze(()=>(r.current=!0,()=>{r.current=!1}),[]),ze(()=>{r.current?r.current=!1:(!n.current||t.some((o,s)=>!Object.is(o,n[s])))&&e(),n.current=t},t)}function J5(){return typeof window.ResizeObserver<"u"}function Jg(e){const{ref:t,box:r,onResize:n}=e;let o=Pt(n);g.useEffect(()=>{let s=t?.current;if(s)if(J5()){const a=new window.ResizeObserver(i=>{i.length&&o()});return a.observe(s,{box:r}),()=>{s&&a.unobserve(s)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Xg(e,t){ze(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ro(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Gr(e,t){let r=e;for(ro(r,t)&&(r=r.parentElement);r&&!ro(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function X5(e,t){const r=[];for(;e&&e!==document.documentElement;)ro(e,t)&&r.push(e),e=e.parentElement;return r}function no(e){return Hr()?e.metaKey:e.ctrlKey}const Q5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cu(e){return e instanceof HTMLInputElement&&!Q5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let eT=0;const du=new Map;function $a(e){let[t,r]=g.useState();return ze(()=>{if(!e)return;let n=du.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${eT++}`;r(o);let s=document.createElement("div");s.id=o,s.style.display="none",s.textContent=e,document.body.appendChild(s),n={refCount:0,element:s},du.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),du.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ea(e,t,r,n){let o=Pt(r),s=r==null;g.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,s])}function Qg(e,t){let r=eb(e,t,"left"),n=eb(e,t,"top"),o=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),m=a+parseInt(u,10),b=i+parseInt(l,10),v=m+e.clientWidth,y=b+e.clientHeight,x=parseInt(c,10)||0,w=parseInt(p,10)||0,C=parseInt(d,10)||0,S=parseInt(h,10)||0;r<=a+S?a=r-parseInt(u,10)-S:r+o>v-C&&(a+=r+o-v+C),n<=b+x?i=n-parseInt(l,10)-x:n+s>y-w&&(i+=n+s-y+w),e.scrollLeft=a,e.scrollTop=i}function eb(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Zr(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,i=window.getComputedStyle(a).overflow==="hidden";if(i){let l=X5(e);i||l.push(a);for(let u of l)Qg(u,e)}else{var r;let{left:l,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var n,o,s;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function fu(e){return e.pointerType===""&&e.isTrusted?!0:ss()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tT(e){return!ss()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Ta(e,t,r){let n=Pt(()=>{r&&r(t)});g.useEffect(()=>{var o;let s=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return s?.addEventListener("reset",n),()=>{s?.removeEventListener("reset",n)}},[e])}const rT="react-aria-clear-focus",nT="react-aria-focus",oT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function sT(e){const t=kt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:a,visibility:i}=s(e);o=a!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function aT(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 pu(e,t){return oT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&sT(e)&&aT(e,t)&&(!e.parentElement||pu(e.parentElement,e))}const hu=["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]:not([contenteditable^="false"])',"permission"],iT=hu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";hu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const lT=hu.join(':not([hidden]):not([tabindex="-1"]),');function tb(e){return e.matches(iT)&&pu(e)&&!nb(e)}function rb(e){return e.matches(lT)&&pu(e)&&!nb(e)}function nb(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var mu;const uT=typeof document<"u"?(mu=g.useInsertionEffect)!==null&&mu!==void 0?mu:g.useLayoutEffect:()=>{};function hr(e,t,r){let[n,o]=g.useState(e||t),s=g.useRef(n),a=g.useRef(e!==void 0),i=e!==void 0;g.useEffect(()=>{let d=a.current;d!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let l=i?e:n;uT(()=>{s.current=l});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...p)=>{let h=typeof d=="function"?d(s.current):d;Object.is(s.current,h)||(s.current=h,o(h),u(),r?.(h,...p))},[r]);return[l,c]}function oo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Da(e,t){let r=e,n=0,o=t.toString(),s=o.toLowerCase().indexOf("e-");if(s>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+s;else{let a=o.indexOf(".");a>=0&&(n=o.length-a)}if(n>0){let a=Math.pow(10,n);r=Math.round(r*a)/a}return r}function as(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,s=Da(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(Da(r/n,n))*n):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(Da((r-t)/n,n))*n),s=Da(s,n),s}let gu=new Map,bu=!1;try{bu=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _a=!1;try{_a=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ob={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cT{format(t){let r="";if(!bu&&this.options.signDisplay!=null?r=fT(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!_a){var n;let{unit:o,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!o)return r;let i=(n=ob[o])===null||n===void 0?void 0:n[s];r+=i[a]||i.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!bu&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!_a&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=dT(t,r),this.options=r}}function dT(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!_a){var n;let{unit:a,unitDisplay:i="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=ob[a])===null||n===void 0)&&n[i]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${i}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,i)=>a[0]<i[0]?-1:1).join():"");if(gu.has(o))return gu.get(o);let s=new Intl.NumberFormat(e,t);return gu.set(o,s),s}function fT(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),s=e.format(r),a=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(r)}}function sb(e={}){let{locale:t}=Ot();return g.useMemo(()=>new cT(t,e),[t,e])}let vu=new Map;function Ia(e){let{locale:t}=Ot(),r=t+(e?Object.entries(e).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(vu.has(r))return vu.get(r);let n=new Intl.Collator(t,e);return vu.set(r,n),n}const ab=g.createContext({});function yu(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const xu=typeof window<"u",ib=xu?g.useLayoutEffect:g.useEffect,Na=g.createContext(null);function pT(e,t){e.indexOf(t)===-1&&e.push(t)}function hT(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Yr=(e,t,r)=>r>t?t:r<e?e:r;function wu(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let so=()=>{},Jr=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(so=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(wu(t,r))},Jr=(e,t,r)=>{if(!e)throw new Error(wu(t,r))});const _r={},lb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function mT(e){return typeof e=="object"&&e!==null}const ub=e=>/^0[^.\s]+$/u.test(e);function Cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const ao=e=>e,gT=(e,t)=>r=>t(e(r)),Aa=(...e)=>e.reduce(gT),cb=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class db{constructor(){this.subscriptions=[]}add(t){return pT(this.subscriptions,t),()=>hT(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ir=e=>e*1e3,or=e=>e/1e3;function fb(e,t){return t?e*(1e3/t):0}const pb=new Set;function Su(e,t,r){e||pb.has(t)||(console.warn(wu(t,r)),pb.add(t))}const hb=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,bT=1e-7,vT=12;function yT(e,t,r,n,o){let s,a,i=0;do a=t+(r-t)/2,s=hb(a,n,o)-e,s>0?r=a:t=a;while(Math.abs(s)>bT&&++i<vT);return a}function is(e,t,r,n){if(e===t&&r===n)return ao;const o=s=>yT(s,0,1,e,r);return s=>s===0||s===1?s:hb(o(s),t,n)}const mb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gb=e=>t=>1-e(1-t),bb=is(.33,1.53,.69,.99),ku=gb(bb),vb=mb(ku),yb=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Pu=e=>1-Math.sin(Math.acos(e)),xT=gb(Pu),xb=mb(Pu),wT=is(.42,0,1,1),CT=is(0,0,.58,1),wb=is(.42,0,.58,1),ST=e=>Array.isArray(e)&&typeof e[0]!="number",Cb=e=>Array.isArray(e)&&typeof e[0]=="number",Sb={linear:ao,easeIn:wT,easeInOut:wb,easeOut:CT,circIn:Pu,circInOut:xb,circOut:xT,backIn:ku,backInOut:vb,backOut:bb,anticipate:yb},kT=e=>typeof e=="string",kb=e=>{if(Cb(e)){Jr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return is(t,r,n,o)}else if(kT(e))return Jr(Sb[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Sb[e];return e},Ma=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function PT(e,t){let r=new Set,n=new Set,o=!1,s=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(c){a.has(c)&&(u.schedule(c),e()),c(i)}const u={schedule:(c,d=!1,p=!1)=>{const m=p&&o?r:n;return d&&a.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),a.delete(c)},process:c=>{if(i=c,o){s=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,s&&(s=!1,u.process(c))}};return u}const $T=40;function Pb(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=Ma.reduce((w,C)=>(w[C]=PT(s),w),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:h,postRender:m}=a,b=()=>{const w=_r.useManualTiming?o.timestamp:performance.now();r=!1,_r.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(w-o.timestamp,$T),1)),o.timestamp=w,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),c.process(o),d.process(o),p.process(o),h.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(b))},v=()=>{r=!0,n=!0,o.isProcessing||e(b)};return{schedule:Ma.reduce((w,C)=>{const S=a[C];return w[C]=(k,D=!1,$=!1)=>(r||v(),S.schedule(k,D,$)),w},{}),cancel:w=>{for(let C=0;C<Ma.length;C++)a[Ma[C]].cancel(w)},state:o,steps:a}}const{schedule:sr,cancel:$u,state:Oa}=Pb(typeof requestAnimationFrame<"u"?requestAnimationFrame:ao,!0);let ja;function ET(){ja=void 0}const zt={now:()=>(ja===void 0&&zt.set(Oa.isProcessing||_r.useManualTiming?Oa.timestamp:performance.now()),ja),set:e=>{ja=e,queueMicrotask(ET)}},$b=e=>t=>typeof t=="string"&&t.startsWith(e),Eb=$b("--"),TT=$b("var(--"),Eu=e=>TT(e)?DT.test(e.split("/*")[0].trim()):!1,DT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tb(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const io={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...io,transform:e=>Yr(0,1,e)},Fa={...io,default:1},us=e=>Math.round(e*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _T(e){return e==null}const IT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Du=(e,t)=>r=>!!(typeof r=="string"&&IT.test(r)&&r.startsWith(e)||t&&!_T(r)&&Object.prototype.hasOwnProperty.call(r,t)),Db=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,s,a,i]=n.match(Tu);return{[e]:parseFloat(o),[t]:parseFloat(s),[r]:parseFloat(a),alpha:i!==void 0?parseFloat(i):1}},NT=e=>Yr(0,255,e),_u={...io,transform:e=>Math.round(NT(e))},yn={test:Du("rgb","red"),parse:Db("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+_u.transform(e)+", "+_u.transform(t)+", "+_u.transform(r)+", "+us(ls.transform(n))+")"};function AT(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Iu={test:Du("#"),parse:AT,transform:yn.transform},cs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xr=cs("deg"),lo=cs("%"),le=cs("px"),MT=cs("vh"),OT=cs("vw"),_b={...lo,parse:e=>lo.parse(e)/100,transform:e=>lo.transform(e*100)},uo={test:Du("hsl","hue"),parse:Db("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lo.transform(us(t))+", "+lo.transform(us(r))+", "+us(ls.transform(n))+")"},ot={test:e=>yn.test(e)||Iu.test(e)||uo.test(e),parse:e=>yn.test(e)?yn.parse(e):uo.test(e)?uo.parse(e):Iu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yn.transform(e):uo.transform(e),getAnimatableNone:e=>{const t=ot.parse(e);return t.alpha=0,ot.transform(t)}},jT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FT(e){return isNaN(e)&&typeof e=="string"&&(e.match(Tu)?.length||0)+(e.match(jT)?.length||0)>0}const Ib="number",Nb="color",BT="var",zT="var(",Ab="${}",LT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ds(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let s=0;const i=t.replace(LT,l=>(ot.test(l)?(n.color.push(s),o.push(Nb),r.push(ot.parse(l))):l.startsWith(zT)?(n.var.push(s),o.push(BT),r.push(l)):(n.number.push(s),o.push(Ib),r.push(parseFloat(l))),++s,Ab)).split(Ab);return{values:r,split:i,indexes:n,types:o}}function Mb(e){return ds(e).values}function Ob(e){const{split:t,types:r}=ds(e),n=t.length;return o=>{let s="";for(let a=0;a<n;a++)if(s+=t[a],o[a]!==void 0){const i=r[a];i===Ib?s+=us(o[a]):i===Nb?s+=ot.transform(o[a]):s+=o[a]}return s}}const VT=e=>typeof e=="number"?0:ot.test(e)?ot.getAnimatableNone(e):e;function RT(e){const t=Mb(e);return Ob(e)(t.map(VT))}const Qr={test:FT,parse:Mb,createTransformer:Ob,getAnimatableNone:RT};function Nu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function KT({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,s=0,a=0;if(!t)o=s=a=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=Nu(l,i,e+1/3),s=Nu(l,i,e),a=Nu(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}function Ba(e,t){return r=>r>0?t:e}const fs=(e,t,r)=>e+(t-e)*r,Au=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},WT=[Iu,yn,uo],UT=e=>WT.find(t=>t.test(e));function jb(e){const t=UT(e);if(so(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===uo&&(r=KT(r)),r}const Fb=(e,t)=>{const r=jb(e),n=jb(t);if(!r||!n)return Ba(e,t);const o={...r};return s=>(o.red=Au(r.red,n.red,s),o.green=Au(r.green,n.green,s),o.blue=Au(r.blue,n.blue,s),o.alpha=fs(r.alpha,n.alpha,s),yn.transform(o))},Mu=new Set(["none","hidden"]);function HT(e,t){return Mu.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function qT(e,t){return r=>fs(e,t,r)}function Ou(e){return typeof e=="number"?qT:typeof e=="string"?Eu(e)?Ba:ot.test(e)?Fb:YT:Array.isArray(e)?Bb:typeof e=="object"?ot.test(e)?Fb:GT:Ba}function Bb(e,t){const r=[...e],n=r.length,o=e.map((s,a)=>Ou(s)(s,t[a]));return s=>{for(let a=0;a<n;a++)r[a]=o[a](s);return r}}function GT(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Ou(e[o])(e[o],t[o]));return o=>{for(const s in n)r[s]=n[s](o);return r}}function ZT(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][n[s]],i=e.values[a]??0;r[o]=i,n[s]++}return r}const YT=(e,t)=>{const r=Qr.createTransformer(t),n=ds(e),o=ds(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Mu.has(e)&&!o.values.length||Mu.has(t)&&!n.values.length?HT(e,t):Aa(Bb(ZT(n,o),o.values),r):(so(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ba(e,t))};function zb(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?fs(e,t,r):Ou(e)(e,t)}const JT=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>sr.update(t,r),stop:()=>$u(t),now:()=>Oa.isProcessing?Oa.timestamp:zt.now()}},Lb=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let s=0;s<o;s++)n+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},za=2e4;function ju(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<za;)t+=r,n=e.next(t);return t>=za?1/0:t}function XT(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(ju(n),za);return{type:"keyframes",ease:s=>n.next(o*s).value/t,duration:or(o)}}const QT=5;function Vb(e,t,r){const n=Math.max(t-QT,0);return fb(r-e(n),t-n)}const Ze={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Fu=.001;function e6({duration:e=Ze.duration,bounce:t=Ze.bounce,velocity:r=Ze.velocity,mass:n=Ze.mass}){let o,s;so(e<=Ir(Ze.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Yr(Ze.minDamping,Ze.maxDamping,a),e=Yr(Ze.minDuration,Ze.maxDuration,or(e)),a<1?(o=u=>{const c=u*a,d=c*e,p=c-r,h=Bu(u,a),m=Math.exp(-d);return Fu-p/h*m},s=u=>{const d=u*a*e,p=d*r+r,h=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-d),b=Bu(Math.pow(u,2),a);return(-o(u)+Fu>0?-1:1)*((p-h)*m)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Fu+c*d},s=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const i=5/e,l=r6(o,s,i);if(e=Ir(e),isNaN(l))return{stiffness:Ze.stiffness,damping:Ze.damping,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const t6=12;function r6(e,t,r){let n=r;for(let o=1;o<t6;o++)n=n-e(n)/t(n);return n}function Bu(e,t){return e*Math.sqrt(1-t*t)}const n6=["duration","bounce"],o6=["stiffness","damping","mass"];function Rb(e,t){return t.some(r=>e[r]!==void 0)}function s6(e){let t={velocity:Ze.velocity,stiffness:Ze.stiffness,damping:Ze.damping,mass:Ze.mass,isResolvedFromDuration:!1,...e};if(!Rb(e,o6)&&Rb(e,n6))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,s=2*Yr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ze.mass,stiffness:o,damping:s}}else{const r=e6(e);t={...t,...r,mass:Ze.mass},t.isResolvedFromDuration=!0}return t}function La(e=Ze.visualDuration,t=Ze.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],i={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=s6({...r,velocity:-or(r.velocity||0)}),m=p||0,b=u/(2*Math.sqrt(l*c)),v=a-s,y=or(Math.sqrt(l/c)),x=Math.abs(v)<5;n||(n=x?Ze.restSpeed.granular:Ze.restSpeed.default),o||(o=x?Ze.restDelta.granular:Ze.restDelta.default);let w;if(b<1){const S=Bu(y,b);w=k=>{const D=Math.exp(-b*y*k);return a-D*((m+b*y*v)/S*Math.sin(S*k)+v*Math.cos(S*k))}}else if(b===1)w=S=>a-Math.exp(-y*S)*(v+(m+y*v)*S);else{const S=y*Math.sqrt(b*b-1);w=k=>{const D=Math.exp(-b*y*k),$=Math.min(S*k,300);return a-D*((m+b*y*v)*Math.sinh($)+S*v*Math.cosh($))/S}}const C={calculatedDuration:h&&d||null,next:S=>{const k=w(S);if(h)i.done=S>=d;else{let D=S===0?m:0;b<1&&(D=S===0?Ir(m):Vb(w,S,k));const $=Math.abs(D)<=n,_=Math.abs(a-k)<=o;i.done=$&&_}return i.value=i.done?a:k,i},toString:()=>{const S=Math.min(ju(C),za),k=Lb(D=>C.next(S*D).value,S,30);return S+"ms "+k},toTransition:()=>{}};return C}La.applyToOptions=e=>{const t=XT(e,100,La);return e.ease=t.ease,e.duration=Ir(t.duration),e.type="keyframes",e};function zu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:i,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=$=>i!==void 0&&$<i||l!==void 0&&$>l,m=$=>i===void 0?l:l===void 0||Math.abs(i-$)<Math.abs(l-$)?i:l;let b=r*t;const v=d+b,y=a===void 0?v:a(v);y!==v&&(b=y-d);const x=$=>-b*Math.exp(-$/n),w=$=>y+x($),C=$=>{const _=x($),A=w($);p.done=Math.abs(_)<=u,p.value=p.done?y:A};let S,k;const D=$=>{h(p.value)&&(S=$,k=La({keyframes:[p.value,m(p.value)],velocity:Vb(w,$,p.value),damping:o,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:$=>{let _=!1;return!k&&S===void 0&&(_=!0,C($),D($)),S!==void 0&&$>=S?k.next($-S):(!_&&C($),p)}}}function a6(e,t,r){const n=[],o=r||_r.mix||zb,s=e.length-1;for(let a=0;a<s;a++){let i=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ao:t;i=Aa(l,i)}n.push(i)}return n}function i6(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const s=e.length;if(Jr(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=a6(t,n,o),l=i.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const p=cb(e[d],e[d+1],c);return i[d](p)};return r?c=>u(Yr(e[0],e[s-1],c)):u}function l6(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=cb(0,t,n);e.push(fs(r,1,o))}}function u6(e){const t=[0];return l6(t,e.length-1),t}function c6(e,t){return e.map(r=>r*t)}function d6(e,t){return e.map(()=>t||wb).splice(0,e.length-1)}function co({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=ST(n)?n.map(kb):kb(n),s={done:!1,value:t[0]},a=c6(r&&r.length===t.length?r:u6(t),e),i=i6(a,t,{ease:Array.isArray(o)?o:d6(t,o)});return{calculatedDuration:e,next:l=>(s.value=i(l),s.done=l>=e,s)}}const f6=e=>e!==null;function Lu(e,{repeat:t,repeatType:r="loop"},n,o=1){const s=e.filter(f6),i=o<0||t&&r!=="loop"&&t%2===1?0:s.length-1;return!i||n===void 0?s[i]:n}const p6={decay:zu,inertia:zu,tween:co,keyframes:co,spring:La};function Kb(e){typeof e.type=="string"&&(e.type=p6[e.type])}class Vu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const h6=e=>e/100;class Ru extends Vu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==zt.now()&&this.tick(zt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Kb(t);const{type:r=co,repeat:n=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:i}=t;const l=r||co;process.env.NODE_ENV!=="production"&&l!==co&&Jr(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),l!==co&&typeof i[0]!="number"&&(this.mixKeyframes=Aa(h6,zb(i[0],i[1])),i=[0,100]);const u=l({...t,keyframes:i});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=ju(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=u}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:h,type:m,onUpdate:b,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=n;if(d){const $=Math.min(this.currentTime,o)/i;let _=Math.floor($),A=$%1;!A&&$>=1&&(A=1),A===1&&_--,_=Math.min(_,d+1),!!(_%2)&&(p==="reverse"?(A=1-A,h&&(A-=h/i)):p==="mirror"&&(C=a)),w=Yr(0,1,A)*i}const S=x?{done:!1,value:c[0]}:C.next(w);s&&(S.value=s(S.value));let{done:k}=S;!x&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&m!==zu&&(S.value=Lu(c,this.options,v,this.speed)),b&&b(S.value),D&&this.finish(),S}then(t,r){return this.finished.then(t,r)}get duration(){return or(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(this.currentTime)}set time(t){t=Ir(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(zt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=or(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=JT,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function m6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const xn=e=>e*180/Math.PI,Ku=e=>{const t=xn(Math.atan2(e[1],e[0]));return Wu(t)},g6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ku,rotateZ:Ku,skewX:e=>xn(Math.atan(e[1])),skewY:e=>xn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),Wb=Ku,Ub=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Hb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),b6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ub,scaleY:Hb,scale:e=>(Ub(e)+Hb(e))/2,rotateX:e=>Wu(xn(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(xn(Math.atan2(-e[2],e[0]))),rotateZ:Wb,rotate:Wb,skewX:e=>xn(Math.atan(e[4])),skewY:e=>xn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Uu(e){return e.includes("scale")?1:0}function Hu(e,t){if(!e||e==="none")return Uu(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=b6,o=r;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=g6,o=i}if(!o)return Uu(t);const s=n[t],a=o[1].split(",").map(y6);return typeof s=="function"?s(a):a[s]}const v6=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Hu(r,t)};function y6(e){return parseFloat(e.trim())}const fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],po=new Set(fo),qb=e=>e===io||e===le,x6=new Set(["x","y","z"]),w6=fo.filter(e=>!x6.has(e));function C6(e){const t=[];return w6.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const en={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Hu(t,"x"),y:(e,{transform:t})=>Hu(t,"y")};en.translateX=en.x,en.translateY=en.y;const wn=new Set;let qu=!1,Gu=!1,Zu=!1;function Gb(){if(Gu){const e=Array.from(wn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=C6(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([s,a])=>{n.getValue(s)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Gu=!1,qu=!1,wn.forEach(e=>e.complete(Zu)),wn.clear()}function Zb(){wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function S6(){Zu=!0,Zb(),Gb(),Zu=!1}class Yu{constructor(t,r,n,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(wn.add(this),qu||(qu=!0,sr.read(Zb),sr.resolveKeyframes(Gb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const i=n.readValue(r,a);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}m6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wn.delete(this)}cancel(){this.state==="scheduled"&&(wn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const k6=e=>e.startsWith("--");function P6(e,t,r){k6(t)?e.style.setProperty(t,r):e.style[t]=r}const $6=Cu(()=>window.ScrollTimeline!==void 0),E6={};function T6(e,t){const r=Cu(e);return()=>E6[t]??r()}const Yb=T6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ps=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Jb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ps([0,.65,.55,1]),circOut:ps([.55,0,1,.45]),backIn:ps([.31,.01,.66,-.59]),backOut:ps([.33,1.53,.69,.99])};function Xb(e,t){if(e)return typeof e=="function"?Yb()?Lb(e,t):"ease-out":Cb(e)?ps(e):Array.isArray(e)?e.map(r=>Xb(r,t)||Jb.easeOut):Jb[e]}function D6(e,t,r,{delay:n=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:i="easeOut",times:l}={},u=void 0){const c={[t]:r};l&&(c.offset=l);const d=Xb(i,o);Array.isArray(d)&&(c.easing=d);const p={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(c,p)}function Qb(e){return typeof e=="function"&&"applyToOptions"in e}function _6({type:e,...t}){return Qb(e)&&Yb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class I6 extends Vu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Jr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=_6(t);this.animation=D6(r,n,o,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Lu(o,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):P6(r,n,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return or(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ir(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&$6()?(this.animation.timeline=t,ao):r(this)}}const ev={anticipate:yb,backInOut:vb,circInOut:xb};function N6(e){return e in ev}function A6(e){typeof e.ease=="string"&&N6(e.ease)&&(e.ease=ev[e.ease])}const Ju=10;class M6 extends I6{constructor(t){A6(t),Kb(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:s,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const i=new Ru({...a,autoplay:!1}),l=Math.max(Ju,zt.now()-this.startTime),u=Yr(0,Ju,l-Ju);r.setWithVelocity(i.sample(Math.max(0,l-u)).value,i.sample(l).value,u),i.stop()}}const tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function O6(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function j6(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=tv(o,t),i=tv(s,t);return so(a===i,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!i?!1:O6(e)||(r==="spring"||Qb(r))&&n}function Xu(e){e.duration=0,e.type="keyframes"}const F6=new Set(["opacity","clipPath","filter","transform"]),B6=Cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z6(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return B6()&&r&&F6.has(r)&&(r!=="transform"||!u)&&!l&&!n&&o!=="mirror"&&s!==0&&a!=="inertia"}const L6=40;class V6 extends Vu{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:i,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=zt.now();const p={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},h=c?.KeyframeResolver||Yu;this.keyframeResolver=new h(i,(m,b,v)=>this.onKeyframesResolved(m,b,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:i,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=zt.now(),j6(t,s,a,i)||((_r.instantAnimations||!l)&&c?.(Lu(t,n,r)),t[0]=t[t.length-1],Xu(n),n.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>L6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!u&&z6(p)?new M6({...p,element:p.motionValue.owner.current}):new Ru(p);h.finished.then(()=>this.notifyFinished()).catch(ao),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const R6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K6(e){const t=R6.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const W6=4;function rv(e,t,r=1){Jr(r<=W6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=K6(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const a=s.trim();return lb(a)?parseFloat(a):a}return Eu(o)?rv(o,t,r+1):o}function nv(e,t){return e?.[t]??e?.default??e}const ov=new Set(["width","height","top","left","right","bottom",...fo]),U6={test:e=>e==="auto",parse:e=>e},sv=e=>t=>t.test(e),av=[io,le,lo,Xr,OT,MT,U6],iv=e=>av.find(sv(e));function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}const q6=new Set(["brightness","contrast","saturate","opacity"]);function G6(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Tu)||[];if(!n)return e;const o=r.replace(n,"");let s=q6.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+o+")"}const Z6=/\b([a-z-]*)\(.*?\)/gu,Qu={...Qr,getAnimatableNone:e=>{const t=e.match(Z6);return t?t.map(G6).join(" "):e}},lv={...io,transform:Math.round},ec={borderWidth:le,borderTopWidth:le,borderRightWidth:le,borderBottomWidth:le,borderLeftWidth:le,borderRadius:le,radius:le,borderTopLeftRadius:le,borderTopRightRadius:le,borderBottomRightRadius:le,borderBottomLeftRadius:le,width:le,maxWidth:le,height:le,maxHeight:le,top:le,right:le,bottom:le,left:le,inset:le,insetBlock:le,insetBlockStart:le,insetBlockEnd:le,insetInline:le,insetInlineStart:le,insetInlineEnd:le,padding:le,paddingTop:le,paddingRight:le,paddingBottom:le,paddingLeft:le,paddingBlock:le,paddingBlockStart:le,paddingBlockEnd:le,paddingInline:le,paddingInlineStart:le,paddingInlineEnd:le,margin:le,marginTop:le,marginRight:le,marginBottom:le,marginLeft:le,marginBlock:le,marginBlockStart:le,marginBlockEnd:le,marginInline:le,marginInlineStart:le,marginInlineEnd:le,backgroundPositionX:le,backgroundPositionY:le,...{rotate:Xr,rotateX:Xr,rotateY:Xr,rotateZ:Xr,scale:Fa,scaleX:Fa,scaleY:Fa,scaleZ:Fa,skew:Xr,skewX:Xr,skewY:Xr,distance:le,translateX:le,translateY:le,translateZ:le,x:le,y:le,z:le,perspective:le,transformPerspective:le,opacity:ls,originX:_b,originY:_b,originZ:le},zIndex:lv,fillOpacity:ls,strokeOpacity:ls,numOctaves:lv},Y6={...ec,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Qu,WebkitFilter:Qu},uv=e=>Y6[e];function cv(e,t){let r=uv(e);return r!==Qu&&(r=Qr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const J6=new Set(["auto","none","0"]);function X6(e,t,r){let n=0,o;for(;n<e.length&&!o;){const s=e[n];typeof s=="string"&&!J6.has(s)&&ds(s).values.length&&(o=e[n]),n++}if(o&&r)for(const s of t)e[s]=cv(r,o)}class Q6 extends Yu{constructor(t,r,n,o,s){super(t,r,n,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Eu(d))){const p=rv(d,r.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ov.has(n)||t.length!==2)return;const[o,s]=t,a=iv(o),i=iv(s),l=Tb(o),u=Tb(s);if(l!==u&&en[n]){this.needsMeasurement=!0;return}if(a!==i)if(qb(a)&&qb(i))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else en[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||H6(t[o]))&&n.push(o);n.length&&X6(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=en[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=n.length-1,a=n[s];n[s]=en[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}}function e9(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const dv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fv(e){return mT(e)&&"offsetHeight"in e}const pv=30,t9=e=>!isNaN(parseFloat(e));class r9{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=zt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=zt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=t9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Su(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new db);const n=this.events[t].add(r);return t==="change"?()=>{n(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,pv);return fb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Va(e,t){return new r9(e,t)}const{schedule:n9}=Pb(queueMicrotask,!1),o9={y:!1};function s9(){return o9.y}function hv(e,t){const r=e9(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function mv(e){return!(e.pointerType==="touch"||s9())}function a9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{if(!mv(i))return;const{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;const c=d=>{mv(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return n.forEach(i=>{i.addEventListener("pointerenter",a,o)}),s}const gv=(e,t)=>t?e===t?!0:gv(e,t.parentElement):!1,i9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,l9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function u9(e){return l9.has(e.tagName)||e.isContentEditable===!0}const Ra=new WeakSet;function bv(e){return t=>{t.key==="Enter"&&e(t)}}function tc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const c9=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=bv(()=>{if(Ra.has(r))return;tc(r,"down");const o=bv(()=>{tc(r,"up")}),s=()=>tc(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",s,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function vv(e){return i9(e)&&!0}function d9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{const l=i.currentTarget;if(!vv(i))return;Ra.add(l);const u=t(l,i),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Ra.has(l)&&Ra.delete(l),vv(h)&&typeof u=="function"&&u(h,{success:m})},d=h=>{c(h,l===window||l===document||r.useGlobalTarget||gv(l,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",p,o)};return n.forEach(i=>{(r.useGlobalTarget?window:i).addEventListener("pointerdown",a,o),fv(i)&&(i.addEventListener("focus",u=>c9(u,o)),!u9(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),s}const $t=e=>!!(e&&e.getVelocity),f9=[...av,ot,Qr],p9=e=>f9.find(sv(e)),rc=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function h9(...e){return t=>{let r=!1;const n=e.map(o=>{const s=yv(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():yv(e[o],null)}}}}function m9(...e){return Nt.useCallback(h9(...e),e)}class g9 extends Nt.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=fv(n)&&n.offsetWidth||0,s=this.props.sizeRef.current;s.height=r.offsetHeight||0,s.width=r.offsetWidth||0,s.top=r.offsetTop,s.left=r.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function b9({children:e,isPresent:t,anchorX:r,root:n}){const o=g.useId(),s=g.useRef(null),a=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=g.useContext(rc),l=e.props?.ref??e?.ref,u=m9(s,l);return g.useInsertionEffect(()=>{const{width:c,height:d,top:p,left:h,right:m}=a.current;if(t||!s.current||!c||!d)return;const b=r==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const v=document.createElement("style");i&&(v.nonce=i);const y=n??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
39
39
  [data-motion-pop-id="${o}"] {
40
40
  position: absolute !important;
41
41
  width: ${c}px !important;
@@ -54,7 +54,7 @@ React keys must be passed directly to JSX without using spread:
54
54
  * {
55
55
  overscroll-behavior: contain;
56
56
  }
57
- }`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},s=l=>{let u=l.target,c=l.relatedTarget;if(c&&cu(c))c.focus({preventScroll:!0}),B0(c,cu(u));else if(!c){var d;let p=(d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");p?.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&cu(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&B0(this,u)};let i=Ur(zc(document,"touchstart",r,{passive:!1,capture:!0}),zc(document,"touchmove",o,{passive:!1,capture:!0}),zc(document,"blur",s,!0));return()=>{i(),n.remove(),HTMLElement.prototype.focus=a}}function Bc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function zc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function B0(e,t){t||!ws?z0(e):ws.addEventListener("resize",()=>z0(e),{once:!0})}function z0(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Gr(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(s.top<o.top||s.bottom>o.top+r.clientHeight){let a=o.bottom;ws&&(a=Math.min(a,ws.offsetTop+ws.height));let i=s.top-o.top-((a-o.top)/2-s.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+i)),behavior:"smooth"})}}r=n.parentElement}}const W_=g.createContext({});function L0(){var e;return(e=g.useContext(W_))!==null&&e!==void 0?e:{}}const Lc=g.createContext(null);function U_(e){let{children:t}=e,r=g.useContext(Lc),[n,o]=g.useState(0),s=g.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return g.createElement(Lc.Provider,{value:s},t)}function H_(){let e=g.useContext(Lc);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function q_(e){let{modalProviderProps:t}=H_();return g.createElement("div",{"data-overlay-container":!0,...e,...t})}function G_(e){return g.createElement(U_,null,g.createElement(q_,e))}function V0(e){let t=Qn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=L0();if(!e.portalContainer&&o&&(r=o()),g.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let s=g.createElement(G_,n);return Hn.createPortal(s,r)}var R0={};R0={dismiss:"تجاهل"};var K0={};K0={dismiss:"Отхвърляне"};var W0={};W0={dismiss:"Odstranit"};var U0={};U0={dismiss:"Luk"};var H0={};H0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var G0={};G0={dismiss:"Dismiss"};var Z0={};Z0={dismiss:"Descartar"};var Y0={};Y0={dismiss:"Lõpeta"};var J0={};J0={dismiss:"Hylkää"};var X0={};X0={dismiss:"Rejeter"};var Q0={};Q0={dismiss:"התעלם"};var ey={};ey={dismiss:"Odbaci"};var ty={};ty={dismiss:"Elutasítás"};var ry={};ry={dismiss:"Ignora"};var ny={};ny={dismiss:"閉じる"};var oy={};oy={dismiss:"무시"};var sy={};sy={dismiss:"Atmesti"};var ay={};ay={dismiss:"Nerādīt"};var iy={};iy={dismiss:"Lukk"};var ly={};ly={dismiss:"Negeren"};var uy={};uy={dismiss:"Zignoruj"};var cy={};cy={dismiss:"Descartar"};var dy={};dy={dismiss:"Dispensar"};var fy={};fy={dismiss:"Revocare"};var py={};py={dismiss:"Пропустить"};var hy={};hy={dismiss:"Zrušiť"};var my={};my={dismiss:"Opusti"};var gy={};gy={dismiss:"Odbaci"};var by={};by={dismiss:"Avvisa"};var vy={};vy={dismiss:"Kapat"};var yy={};yy={dismiss:"Скасувати"};var xy={};xy={dismiss:"取消"};var wy={};wy={dismiss:"關閉"};var Cy={};Cy={"ar-AE":R0,"bg-BG":K0,"cs-CZ":W0,"da-DK":U0,"de-DE":H0,"el-GR":q0,"en-US":G0,"es-ES":Z0,"et-EE":Y0,"fi-FI":J0,"fr-FR":X0,"he-IL":Q0,"hr-HR":ey,"hu-HU":ty,"it-IT":ry,"ja-JP":ny,"ko-KR":oy,"lt-LT":sy,"lv-LV":ay,"nb-NO":iy,"nl-NL":ly,"pl-PL":uy,"pt-BR":cy,"pt-PT":dy,"ro-RO":fy,"ru-RU":py,"sk-SK":hy,"sl-SI":my,"sr-SP":gy,"sv-SE":by,"tr-TR":vy,"uk-UA":yy,"zh-CN":xy,"zh-TW":wy};const Sy={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ky(e={}){let{style:t,isFocusable:r}=e,[n,o]=g.useState(!1),{focusWithinProps:s}=Pn({isDisabled:!r,onFocusWithinChange:i=>o(i)}),a=g.useMemo(()=>n?t:t?{...Sy,...t}:Sy,[n]);return{visuallyHiddenProps:{...s,style:a}}}function wo(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...s}=e,{visuallyHiddenProps:a}=ky(e);return g.createElement(r,Ce(s,a),t)}function Z_(e){return e&&e.__esModule?e.default:e}function ci(e){let{onDismiss:t,...r}=e,n=Wr(Z_(Cy),"@react-aria/overlays"),o=Pa(r,n.format("dismiss")),s=()=>{t&&t()};return g.createElement(wo,null,g.createElement("button",{...o,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}const Y_=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Cs=new WeakMap,Ht=[];function J_(e,t){let r=kt(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let s=(o=n?.root)!==null&&o!==void 0?o:document.body,a=n?.shouldUseInert&&Y_,i=new Set(e),l=new Set,u=b=>a&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,v)=>{a&&b instanceof r.HTMLElement?b.inert=v:v?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let w of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(w);let v=w=>{if(l.has(w)||i.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of i)if(w.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},y=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(b);if(x===NodeFilter.FILTER_ACCEPT&&p(b),x!==NodeFilter.FILTER_REJECT){let w=y.nextNode();for(;w!=null;)p(w),w=y.nextNode()}},p=b=>{var v;let y=(v=Cs.get(b))!==null&&v!==void 0?v:0;u(b)&&y===0||(y===0&&c(b,!0),l.add(b),Cs.set(b,y+1))};Ht.length&&Ht[Ht.length-1].disconnect(),d(s);let h=new MutationObserver(b=>{for(let v of b)if(v.type==="childList"&&![...i,...l].some(y=>y.contains(v.target)))for(let y of v.addedNodes)(y instanceof HTMLElement||y instanceof SVGElement)&&(y.dataset.liveAnnouncer==="true"||y.dataset.reactAriaTopLayer==="true")?i.add(y):y instanceof Element&&d(y)});h.observe(s,{childList:!0,subtree:!0});let m={visibleNodes:i,hiddenNodes:l,observe(){h.observe(s,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Ht.push(m),()=>{h.disconnect();for(let b of l){let v=Cs.get(b);v!=null&&(v===1?(c(b,!1),Cs.delete(b)):Cs.set(b,v-1))}m===Ht[Ht.length-1]?(Ht.pop(),Ht.length&&Ht[Ht.length-1].observe()):Ht.splice(Ht.indexOf(m),1)}}const Py=g.createContext(null);function $y(e){let t=Qn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,s]=g.useState(!1),a=g.useMemo(()=>({contain:o,setContain:s}),[o,s]),{getContainer:i}=L0();if(!e.portalContainer&&i&&(r=i()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=g.createElement(N_,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=g.createElement(Py.Provider,{value:a},g.createElement(T_,null,l)),Hn.createPortal(l,r)}function Ey(){let e=g.useContext(Py),t=e?.setContain;ze(()=>{t?.(!0)},[t])}function Ty(e){const t=tt(),r=t?.labelPlacement;return g.useMemo(()=>{var n,o;const s=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,r,e.label])}function Se(e){return g.forwardRef(e)}var pt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,a)=>({...s,[a]:e[a]}),{}),n]:[e,n]},En=globalThis?.document?g.useLayoutEffect:g.useEffect;function Dy(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:s,srcSet:a,sizes:i,loading:l,shouldBypassImageLoad:u=!1}=e,c=XE(),d=g.useRef(c?new Image:null),[p,h]=g.useState("pending");g.useEffect(()=>{d.current&&(d.current.onload=v=>{m(),h("loaded"),t?.(v)},d.current.onerror=v=>{m(),h("failed"),r?.(v)})},[d.current]);const m=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},b=g.useCallback(()=>{if(!o)return"pending";if(n||u)return"loaded";const v=new Image;return v.src=o,s&&(v.crossOrigin=s),a&&(v.srcset=a),i&&(v.sizes=i),l&&(v.loading=l),d.current=v,v.complete&&v.naturalWidth?"loaded":"loading"},[o,s,a,i,t,r,l,u]);return En(()=>{c&&h(b())},[c,b]),n?"loaded":p}function X_(e={}){var t,r,n,o,s,a,i,l;const u=tt(),c=r5(),d=!!c,{as:p,ref:h,src:m,name:b,icon:v,classNames:y,fallback:x,alt:w=b||"avatar",imgRef:C,color:S=(t=c?.color)!=null?t:"default",radius:k=(r=c?.radius)!=null?r:"full",size:D=(n=c?.size)!=null?n:"md",isBordered:$=(o=c?.isBordered)!=null?o:!1,isDisabled:_=(s=c?.isDisabled)!=null?s:!1,isFocusable:A=!1,getInitials:N=y$,ignoreFallback:M=!1,showFallback:O=!1,ImgComponent:L="img",imgProps:I,className:z,onError:F,disableAnimation:B,...U}=e,E=p||"span",j=Pe(h),T=Pe(C),{isFocusVisible:V,isFocused:K,focusProps:G}=nt(),{isHovered:Z,hoverProps:W}=vt({isDisabled:_}),ne=(a=B??u?.disableAnimation)!=null?a:!1,X=(l=typeof L=="object"&&((i=L?.displayName)==null?void 0:i.includes("HeroUI")))!=null?l:!1,ee=Dy({src:m,onError:F,ignoreFallback:M,shouldBypassImageLoad:p!==void 0||L!=="img"&&!X})==="loaded",ue=!X,te=(!m||!ee)&&O,Ee=g.useMemo(()=>{var he;return t$({color:S,radius:k,size:D,isBordered:$,isDisabled:_,isInGroup:d,disableAnimation:ne,isInGridGroup:(he=c?.isGrid)!=null?he:!1})},[S,k,D,$,_,ne,d,c?.isGrid]),ve=P(y?.base,z),oe=g.useMemo(()=>A||p==="button",[A,p]),pe=g.useCallback((he={})=>({ref:j,tabIndex:oe?0:-1,"data-hover":H(Z),"data-focus":H(K),"data-focus-visible":H(V),className:Ee.base({class:P(ve,he?.className)}),...ie(U,W,oe?G:{})}),[oe,Ee,ve,G,U]),xe=g.useCallback((he={})=>({ref:T,src:m,"data-loaded":H(ee),className:Ee.img({class:y?.img}),...ie(I,he,Fe({disableAnimation:ne},{enabled:ue}))}),[Ee,ee,I,ne,m,T,ue]);return{Component:E,ImgComponent:L,src:m,alt:w,icon:v,name:b,imgRef:T,slots:Ee,classNames:y,fallback:x,isImgLoaded:ee,showFallback:te,ignoreFallback:M,getInitials:N,getAvatarProps:pe,getImageProps:xe}}var _y=Se((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:s=f.jsx(ZE,{}),alt:a,classNames:i,slots:l,name:u,showFallback:c,fallback:d,getInitials:p,getAvatarProps:h,getImageProps:m}=X_({...e,ref:t}),b=g.useMemo(()=>!c&&o?null:d?f.jsx("div",{"aria-label":a,className:l.fallback({class:i?.fallback}),role:"img",children:d}):u?f.jsx("span",{"aria-label":a,className:l.name({class:i?.name}),role:"img",children:p(u)}):f.jsx("span",{"aria-label":a,className:l.icon({class:i?.icon}),role:"img",children:s}),[c,o,d,u,i]);return f.jsxs(r,{...h(),children:[o&&f.jsx(n,{...m(),alt:a}),b]})});_y.displayName="HeroUI.Avatar";var Ss=_y;function Q_(e){var t,r;const n=tt(),o=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,[s,a]=pt(e,_m.variantKeys),{as:i,children:l,className:u,content:c,classNames:d,...p}=s,h=i||"span",m=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===1||e?.isOneChar},[c,e?.isOneChar]),b=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===0},[c]),v=P(d?.badge,u),y=g.useMemo(()=>_m({...a,showOutline:e?.disableOutline?!e?.disableOutline:e?.showOutline,isOneChar:m,isDot:b}),[ft(a),m,b]),x=()=>({className:y.badge({class:v}),"data-invisible":e.isInvisible,...p});return{Component:h,children:l,content:c,slots:y,classNames:d,disableAnimation:o,isInvisible:e?.isInvisible,getBadgeProps:x}}var Iy=Se((e,t)=>{const{Component:r,children:n,content:o,slots:s,classNames:a,getBadgeProps:i}=Q_({...e});return f.jsxs("div",{className:s.base({class:a?.base}),children:[n,f.jsx(r,{ref:t,...i(),children:o})]})});Iy.displayName="HeroUI.Badge";var eI=Iy,[_R,tI]=bn({name:"ButtonGroupContext",strict:!1});function di(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,target:h,rel:m,type:b="button",allowTextSelectionOnPress:v}=e,y;r==="button"?y={type:b,disabled:n}:y={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:x,isPressed:w}=jt({onClick:d,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:u,allowTextSelectionOnPress:v,ref:t}),{focusableProps:C}=rn(e,t);c&&(C.tabIndex=n?-1:C.tabIndex);let S=Ce(C,x,Bt(e,{labelable:!0}));return{isPressed:w,buttonProps:Ce(y,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var rI=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),Ny=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:s}=e;return f.jsx(f.Fragment,{children:t.map(a=>{const i=C$(.01*a.size,.2,a.size>100?.75:.5);return f.jsx(mo,{features:rI,children:f.jsx(Wa,{mode:"popLayout",children:f.jsx(go.span,{animate:{transform:`translate(${a.x}px, ${a.y}px) scale(2)`,opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:`translate(${a.x}px, ${a.y}px) scale(0)`,opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,width:`${a.size}px`,height:`${a.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{s(a.key)},...r})})},a.key)})})};Ny.displayName="HeroUI.Ripple";var Ay=Ny;function My(e={}){const[t,r]=g.useState([]),n=g.useCallback(s=>{const a=s.target,i=Math.max(a.clientWidth,a.clientHeight);r(l=>[...l,{key:x$(l.length.toString()),size:i,x:s.x-i/2,y:s.y-i/2}])},[]),o=g.useCallback(s=>{r(a=>a.filter(i=>i.key!==s))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function nI(e){var t,r,n,o,s,a,i,l,u;const c=tI(),d=tt(),p=!!c,{ref:h,as:m,children:b,startContent:v,endContent:y,autoFocus:x,className:w,spinner:C,isLoading:S=!1,disableRipple:k=!1,fullWidth:D=(t=c?.fullWidth)!=null?t:!1,radius:$=c?.radius,size:_=(r=c?.size)!=null?r:"md",color:A=(n=c?.color)!=null?n:"default",variant:N=(o=c?.variant)!=null?o:"solid",disableAnimation:M=(a=(s=c?.disableAnimation)!=null?s:d?.disableAnimation)!=null?a:!1,isDisabled:O=(i=c?.isDisabled)!=null?i:!1,isIconOnly:L=(l=c?.isIconOnly)!=null?l:!1,spinnerPlacement:I="start",onPress:z,onClick:F,...B}=e,U=m||"button",E=typeof U=="string",j=Pe(h),T=(u=k||d?.disableRipple)!=null?u:M,{isFocusVisible:V,isFocused:K,focusProps:G}=nt({autoFocus:x}),Z=O||S,W=g.useMemo(()=>r$({size:_,color:A,variant:N,radius:$,fullWidth:D,isDisabled:Z,isInGroup:p,disableAnimation:M,isIconOnly:L,className:w}),[_,A,N,$,D,Z,p,L,M,w]),{onPress:ne,onClear:X,ripples:q}=My(),ee=g.useCallback(ge=>{T||Z||M||j.current&&ne(ge)},[T,Z,M,j,ne]),{buttonProps:ue,isPressed:te}=di({elementType:m,isDisabled:Z,onPress:nr(z,ee),onClick:F,...B},j),{isHovered:Ee,hoverProps:ve}=vt({isDisabled:Z}),oe=g.useCallback((ge={})=>({"data-disabled":H(Z),"data-focus":H(K),"data-pressed":H(te),"data-focus-visible":H(V),"data-hover":H(Ee),"data-loading":H(S),...ie(ue,G,ve,Fe(B,{enabled:E}),Fe(ge)),className:W}),[S,Z,K,te,E,V,Ee,ue,G,ve,B,W]),pe=ge=>g.isValidElement(ge)?g.cloneElement(ge,{"aria-hidden":!0,focusable:!1}):null,xe=pe(v),he=pe(y),se=g.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[_],[_]),He=g.useCallback(()=>({ripples:q,onClear:X}),[q,X]);return{Component:U,children:b,domRef:j,spinner:C,styles:W,startContent:xe,endContent:he,isLoading:S,spinnerPlacement:I,spinnerSize:se,disableRipple:T,getButtonProps:oe,getRippleProps:He,isIconOnly:L}}function oI(e){var t,r;const[n,o]=pt(e,Bm.variantKeys),s=tt(),a=(r=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?r:"default",{children:i,className:l,classNames:u,label:c,...d}=n,p=g.useMemo(()=>Bm({...o,variant:a}),[ft(o),a]),h=P(u?.base,l),m=c||i,b=g.useMemo(()=>m&&typeof m=="string"?m:d["aria-label"]?"":"Loading",[i,m,d["aria-label"]]),v=g.useCallback(()=>({"aria-label":b,className:p.base({class:h}),...d}),[b,p,h,d]);return{label:m,slots:p,classNames:u,variant:a,getSpinnerProps:v}}var Oy=Se((e,t)=>{const{slots:r,classNames:n,label:o,variant:s,getSpinnerProps:a}=oI({...e});return s==="wave"||s==="dots"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((i,l)=>f.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="simple"?f.jsxs("div",{ref:t,...a(),children:[f.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="spinner"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((i,l)=>f.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):f.jsxs("div",{ref:t,...a(),children:[f.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[f.jsx("i",{className:r.circle1({class:n?.circle1})}),f.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]})});Oy.displayName="HeroUI.Spinner";var jy=Oy,Fy=Se((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:s,spinner:a=f.jsx(jy,{color:"current",size:s}),spinnerPlacement:i,startContent:l,endContent:u,isLoading:c,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:m}=nI({...e,ref:t});return f.jsxs(r,{ref:n,...p(),children:[l,c&&i==="start"&&a,c&&m?null:o,c&&i==="end"&&a,u,!d&&f.jsx(Ay,{...h()})]})});Fy.displayName="HeroUI.Button";var qt=Fy;function By(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",s="mobiel-assets.imgix.net",a="mobiel-frontend.imgix.net",i="?"+Object.keys(t).map(c=>`${c}=${encodeURIComponent(t[c])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${i}`;let l="",u=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return zy(e)?l=r:fi(e)&&u.includes("mobiel-nl-content")?l=n:fi(e)&&u.includes("mobiel-nl-postpaid")?l=o:Ly(e)?l=s:l=a,fi(e)&&(u=u.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${u}${i}`}function zy(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function fi(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function Ly(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Vc(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||zy(e)||Ly(e)||fi(e)||e?.includes("/assets/")&&!e.includes("localhost")}function Vy(e,t="auto",r="auto",n="none"){return Vc(e)?By(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function sI(e,t="auto",r="auto",n="none"){return Vc(e)?[1,2,3,4].map(a=>`${By(e,{w:t,h:r,dpr:a,trim:n,auto:"compress,format",q:95})} ${a}x`).join(", "):""}function Co(){return g.useMemo(()=>[Vy,sI],[])}function Rc(e,t,r,n=6){if(!Vc(e))return e;const o=Math.ceil(r/n),s=Vy(e,t,r),a=s.includes("?")?"&":"?";return`${s}${a}pad-top=${o}&fit=crop&fp-y=0`}function pi({classNames:e,onClick:t,disabled:r=!1,title:n,description:o,imageUrl:s,imageAlt:a,Icon:i,avatarName:l,selected:u=!1}){return f.jsx(qt,{variant:"bordered",radius:"full",fullWidth:!0,disabled:r,disableAnimation:!0,disableRipple:!0,onPress:t,className:P("h-16 border-0 shadow-small bg-white",e?.button),endContent:u?f.jsx(WE,{size:24,className:P("stroke-primary-600",e?.icon)}):f.jsx(zE,{size:24,className:P("text-primary-600",e?.icon)}),children:f.jsxs("div",{className:"flex items-center gap-3 h-full w-full min-w-0",children:[f.jsx("div",{className:"h-full flex items-center justify-center",children:f.jsx(eI,{color:"warning",content:"",shape:"circle",isInvisible:u,className:e?.badge,children:f.jsx(Ss,{alt:a||void 0,src:s?Rc(s,64,64):void 0,size:"md",radius:"full",color:"warning",showFallback:!s,fallback:i&&f.jsx(i,{size:24,className:"stroke-primary"}),name:l,classNames:{...e?.avatar,name:P("text-primary font-bold flex items-center justify-center p-4",e?.avatar?.name),base:P("size-10 bg-primary-100",e?.avatar?.base)}})})}),f.jsxs("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[f.jsx("span",{className:P("font-semibold text-left truncate w-full text-sm",e?.title),children:n}),o&&f.jsx("span",{className:P("text-xs text-foreground-500 text-left truncate w-full",e?.description),children:o})]})]})})}const Ry=g.createContext({});function aI({children:e,classNames:t={}}){return f.jsx(Ry,{value:t,children:e})}function Ye(){return g.useContext(Ry)}var[iI,hi]=bn({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),Ky=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i,bodyId:l,setBodyMounted:u}=hi(),c=Pe(t),d=r||"div";return g.useEffect(()=>(u(!0),()=>u(!1)),[u]),f.jsx(d,{ref:c,className:a.body({class:P(i?.body,o)}),id:l,...s,children:n})});Ky.displayName="HeroUI.ModalBody";var So=Ky,ks={ease:[.36,.66,.4,1]},mi={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ks.ease}},exit:{opacity:0,transition:{duration:.3,ease:ks.ease}}}},lI={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ks.ease},opacity:{duration:.4,ease:ks.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ks.ease}}},uI=e=>f.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:`
57
+ }`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},s=l=>{let u=l.target,c=l.relatedTarget;if(c&&cu(c))c.focus({preventScroll:!0}),B0(c,cu(u));else if(!c){var d;let p=(d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");p?.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&cu(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&B0(this,u)};let i=Ur(zc(document,"touchstart",r,{passive:!1,capture:!0}),zc(document,"touchmove",o,{passive:!1,capture:!0}),zc(document,"blur",s,!0));return()=>{i(),n.remove(),HTMLElement.prototype.focus=a}}function Bc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function zc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function B0(e,t){t||!ws?z0(e):ws.addEventListener("resize",()=>z0(e),{once:!0})}function z0(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Gr(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(s.top<o.top||s.bottom>o.top+r.clientHeight){let a=o.bottom;ws&&(a=Math.min(a,ws.offsetTop+ws.height));let i=s.top-o.top-((a-o.top)/2-s.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+i)),behavior:"smooth"})}}r=n.parentElement}}const W_=g.createContext({});function L0(){var e;return(e=g.useContext(W_))!==null&&e!==void 0?e:{}}const Lc=g.createContext(null);function U_(e){let{children:t}=e,r=g.useContext(Lc),[n,o]=g.useState(0),s=g.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return g.createElement(Lc.Provider,{value:s},t)}function H_(){let e=g.useContext(Lc);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function q_(e){let{modalProviderProps:t}=H_();return g.createElement("div",{"data-overlay-container":!0,...e,...t})}function G_(e){return g.createElement(U_,null,g.createElement(q_,e))}function V0(e){let t=Qn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=L0();if(!e.portalContainer&&o&&(r=o()),g.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let s=g.createElement(G_,n);return Hn.createPortal(s,r)}var R0={};R0={dismiss:"تجاهل"};var K0={};K0={dismiss:"Отхвърляне"};var W0={};W0={dismiss:"Odstranit"};var U0={};U0={dismiss:"Luk"};var H0={};H0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var G0={};G0={dismiss:"Dismiss"};var Z0={};Z0={dismiss:"Descartar"};var Y0={};Y0={dismiss:"Lõpeta"};var J0={};J0={dismiss:"Hylkää"};var X0={};X0={dismiss:"Rejeter"};var Q0={};Q0={dismiss:"התעלם"};var ey={};ey={dismiss:"Odbaci"};var ty={};ty={dismiss:"Elutasítás"};var ry={};ry={dismiss:"Ignora"};var ny={};ny={dismiss:"閉じる"};var oy={};oy={dismiss:"무시"};var sy={};sy={dismiss:"Atmesti"};var ay={};ay={dismiss:"Nerādīt"};var iy={};iy={dismiss:"Lukk"};var ly={};ly={dismiss:"Negeren"};var uy={};uy={dismiss:"Zignoruj"};var cy={};cy={dismiss:"Descartar"};var dy={};dy={dismiss:"Dispensar"};var fy={};fy={dismiss:"Revocare"};var py={};py={dismiss:"Пропустить"};var hy={};hy={dismiss:"Zrušiť"};var my={};my={dismiss:"Opusti"};var gy={};gy={dismiss:"Odbaci"};var by={};by={dismiss:"Avvisa"};var vy={};vy={dismiss:"Kapat"};var yy={};yy={dismiss:"Скасувати"};var xy={};xy={dismiss:"取消"};var wy={};wy={dismiss:"關閉"};var Cy={};Cy={"ar-AE":R0,"bg-BG":K0,"cs-CZ":W0,"da-DK":U0,"de-DE":H0,"el-GR":q0,"en-US":G0,"es-ES":Z0,"et-EE":Y0,"fi-FI":J0,"fr-FR":X0,"he-IL":Q0,"hr-HR":ey,"hu-HU":ty,"it-IT":ry,"ja-JP":ny,"ko-KR":oy,"lt-LT":sy,"lv-LV":ay,"nb-NO":iy,"nl-NL":ly,"pl-PL":uy,"pt-BR":cy,"pt-PT":dy,"ro-RO":fy,"ru-RU":py,"sk-SK":hy,"sl-SI":my,"sr-SP":gy,"sv-SE":by,"tr-TR":vy,"uk-UA":yy,"zh-CN":xy,"zh-TW":wy};const Sy={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ky(e={}){let{style:t,isFocusable:r}=e,[n,o]=g.useState(!1),{focusWithinProps:s}=Pn({isDisabled:!r,onFocusWithinChange:i=>o(i)}),a=g.useMemo(()=>n?t:t?{...Sy,...t}:Sy,[n]);return{visuallyHiddenProps:{...s,style:a}}}function wo(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...s}=e,{visuallyHiddenProps:a}=ky(e);return g.createElement(r,Ce(s,a),t)}function Z_(e){return e&&e.__esModule?e.default:e}function ci(e){let{onDismiss:t,...r}=e,n=Wr(Z_(Cy),"@react-aria/overlays"),o=Pa(r,n.format("dismiss")),s=()=>{t&&t()};return g.createElement(wo,null,g.createElement("button",{...o,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}const Y_=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Cs=new WeakMap,Ht=[];function J_(e,t){let r=kt(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let s=(o=n?.root)!==null&&o!==void 0?o:document.body,a=n?.shouldUseInert&&Y_,i=new Set(e),l=new Set,u=b=>a&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,v)=>{a&&b instanceof r.HTMLElement?b.inert=v:v?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let w of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(w);let v=w=>{if(l.has(w)||i.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of i)if(w.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},y=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(b);if(x===NodeFilter.FILTER_ACCEPT&&p(b),x!==NodeFilter.FILTER_REJECT){let w=y.nextNode();for(;w!=null;)p(w),w=y.nextNode()}},p=b=>{var v;let y=(v=Cs.get(b))!==null&&v!==void 0?v:0;u(b)&&y===0||(y===0&&c(b,!0),l.add(b),Cs.set(b,y+1))};Ht.length&&Ht[Ht.length-1].disconnect(),d(s);let h=new MutationObserver(b=>{for(let v of b)if(v.type==="childList"&&![...i,...l].some(y=>y.contains(v.target)))for(let y of v.addedNodes)(y instanceof HTMLElement||y instanceof SVGElement)&&(y.dataset.liveAnnouncer==="true"||y.dataset.reactAriaTopLayer==="true")?i.add(y):y instanceof Element&&d(y)});h.observe(s,{childList:!0,subtree:!0});let m={visibleNodes:i,hiddenNodes:l,observe(){h.observe(s,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Ht.push(m),()=>{h.disconnect();for(let b of l){let v=Cs.get(b);v!=null&&(v===1?(c(b,!1),Cs.delete(b)):Cs.set(b,v-1))}m===Ht[Ht.length-1]?(Ht.pop(),Ht.length&&Ht[Ht.length-1].observe()):Ht.splice(Ht.indexOf(m),1)}}const Py=g.createContext(null);function $y(e){let t=Qn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,s]=g.useState(!1),a=g.useMemo(()=>({contain:o,setContain:s}),[o,s]),{getContainer:i}=L0();if(!e.portalContainer&&i&&(r=i()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=g.createElement(N_,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=g.createElement(Py.Provider,{value:a},g.createElement(T_,null,l)),Hn.createPortal(l,r)}function Ey(){let e=g.useContext(Py),t=e?.setContain;ze(()=>{t?.(!0)},[t])}function Ty(e){const t=tt(),r=t?.labelPlacement;return g.useMemo(()=>{var n,o;const s=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,r,e.label])}function Se(e){return g.forwardRef(e)}var pt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,a)=>({...s,[a]:e[a]}),{}),n]:[e,n]},En=globalThis?.document?g.useLayoutEffect:g.useEffect;function Dy(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:s,srcSet:a,sizes:i,loading:l,shouldBypassImageLoad:u=!1}=e,c=XE(),d=g.useRef(c?new Image:null),[p,h]=g.useState("pending");g.useEffect(()=>{d.current&&(d.current.onload=v=>{m(),h("loaded"),t?.(v)},d.current.onerror=v=>{m(),h("failed"),r?.(v)})},[d.current]);const m=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},b=g.useCallback(()=>{if(!o)return"pending";if(n||u)return"loaded";const v=new Image;return v.src=o,s&&(v.crossOrigin=s),a&&(v.srcset=a),i&&(v.sizes=i),l&&(v.loading=l),d.current=v,v.complete&&v.naturalWidth?"loaded":"loading"},[o,s,a,i,t,r,l,u]);return En(()=>{c&&h(b())},[c,b]),n?"loaded":p}function X_(e={}){var t,r,n,o,s,a,i,l;const u=tt(),c=r5(),d=!!c,{as:p,ref:h,src:m,name:b,icon:v,classNames:y,fallback:x,alt:w=b||"avatar",imgRef:C,color:S=(t=c?.color)!=null?t:"default",radius:k=(r=c?.radius)!=null?r:"full",size:D=(n=c?.size)!=null?n:"md",isBordered:$=(o=c?.isBordered)!=null?o:!1,isDisabled:_=(s=c?.isDisabled)!=null?s:!1,isFocusable:A=!1,getInitials:N=y$,ignoreFallback:M=!1,showFallback:O=!1,ImgComponent:L="img",imgProps:I,className:z,onError:F,disableAnimation:B,...U}=e,E=p||"span",j=Pe(h),T=Pe(C),{isFocusVisible:V,isFocused:K,focusProps:G}=nt(),{isHovered:Z,hoverProps:W}=vt({isDisabled:_}),ne=(a=B??u?.disableAnimation)!=null?a:!1,X=(l=typeof L=="object"&&((i=L?.displayName)==null?void 0:i.includes("HeroUI")))!=null?l:!1,ee=Dy({src:m,onError:F,ignoreFallback:M,shouldBypassImageLoad:p!==void 0||L!=="img"&&!X})==="loaded",ue=!X,te=(!m||!ee)&&O,Ee=g.useMemo(()=>{var he;return t$({color:S,radius:k,size:D,isBordered:$,isDisabled:_,isInGroup:d,disableAnimation:ne,isInGridGroup:(he=c?.isGrid)!=null?he:!1})},[S,k,D,$,_,ne,d,c?.isGrid]),ve=P(y?.base,z),oe=g.useMemo(()=>A||p==="button",[A,p]),pe=g.useCallback((he={})=>({ref:j,tabIndex:oe?0:-1,"data-hover":H(Z),"data-focus":H(K),"data-focus-visible":H(V),className:Ee.base({class:P(ve,he?.className)}),...ie(U,W,oe?G:{})}),[oe,Ee,ve,G,U]),xe=g.useCallback((he={})=>({ref:T,src:m,"data-loaded":H(ee),className:Ee.img({class:y?.img}),...ie(I,he,Fe({disableAnimation:ne},{enabled:ue}))}),[Ee,ee,I,ne,m,T,ue]);return{Component:E,ImgComponent:L,src:m,alt:w,icon:v,name:b,imgRef:T,slots:Ee,classNames:y,fallback:x,isImgLoaded:ee,showFallback:te,ignoreFallback:M,getInitials:N,getAvatarProps:pe,getImageProps:xe}}var _y=Se((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:s=f.jsx(ZE,{}),alt:a,classNames:i,slots:l,name:u,showFallback:c,fallback:d,getInitials:p,getAvatarProps:h,getImageProps:m}=X_({...e,ref:t}),b=g.useMemo(()=>!c&&o?null:d?f.jsx("div",{"aria-label":a,className:l.fallback({class:i?.fallback}),role:"img",children:d}):u?f.jsx("span",{"aria-label":a,className:l.name({class:i?.name}),role:"img",children:p(u)}):f.jsx("span",{"aria-label":a,className:l.icon({class:i?.icon}),role:"img",children:s}),[c,o,d,u,i]);return f.jsxs(r,{...h(),children:[o&&f.jsx(n,{...m(),alt:a}),b]})});_y.displayName="HeroUI.Avatar";var Ss=_y;function Q_(e){var t,r;const n=tt(),o=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,[s,a]=pt(e,_m.variantKeys),{as:i,children:l,className:u,content:c,classNames:d,...p}=s,h=i||"span",m=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===1||e?.isOneChar},[c,e?.isOneChar]),b=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===0},[c]),v=P(d?.badge,u),y=g.useMemo(()=>_m({...a,showOutline:e?.disableOutline?!e?.disableOutline:e?.showOutline,isOneChar:m,isDot:b}),[ft(a),m,b]),x=()=>({className:y.badge({class:v}),"data-invisible":e.isInvisible,...p});return{Component:h,children:l,content:c,slots:y,classNames:d,disableAnimation:o,isInvisible:e?.isInvisible,getBadgeProps:x}}var Iy=Se((e,t)=>{const{Component:r,children:n,content:o,slots:s,classNames:a,getBadgeProps:i}=Q_({...e});return f.jsxs("div",{className:s.base({class:a?.base}),children:[n,f.jsx(r,{ref:t,...i(),children:o})]})});Iy.displayName="HeroUI.Badge";var eI=Iy,[IR,tI]=bn({name:"ButtonGroupContext",strict:!1});function di(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,target:h,rel:m,type:b="button",allowTextSelectionOnPress:v}=e,y;r==="button"?y={type:b,disabled:n}:y={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:x,isPressed:w}=jt({onClick:d,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:u,allowTextSelectionOnPress:v,ref:t}),{focusableProps:C}=rn(e,t);c&&(C.tabIndex=n?-1:C.tabIndex);let S=Ce(C,x,Bt(e,{labelable:!0}));return{isPressed:w,buttonProps:Ce(y,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var rI=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),Ny=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:s}=e;return f.jsx(f.Fragment,{children:t.map(a=>{const i=C$(.01*a.size,.2,a.size>100?.75:.5);return f.jsx(mo,{features:rI,children:f.jsx(Wa,{mode:"popLayout",children:f.jsx(go.span,{animate:{transform:`translate(${a.x}px, ${a.y}px) scale(2)`,opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:`translate(${a.x}px, ${a.y}px) scale(0)`,opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,width:`${a.size}px`,height:`${a.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{s(a.key)},...r})})},a.key)})})};Ny.displayName="HeroUI.Ripple";var Ay=Ny;function My(e={}){const[t,r]=g.useState([]),n=g.useCallback(s=>{const a=s.target,i=Math.max(a.clientWidth,a.clientHeight);r(l=>[...l,{key:x$(l.length.toString()),size:i,x:s.x-i/2,y:s.y-i/2}])},[]),o=g.useCallback(s=>{r(a=>a.filter(i=>i.key!==s))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function nI(e){var t,r,n,o,s,a,i,l,u;const c=tI(),d=tt(),p=!!c,{ref:h,as:m,children:b,startContent:v,endContent:y,autoFocus:x,className:w,spinner:C,isLoading:S=!1,disableRipple:k=!1,fullWidth:D=(t=c?.fullWidth)!=null?t:!1,radius:$=c?.radius,size:_=(r=c?.size)!=null?r:"md",color:A=(n=c?.color)!=null?n:"default",variant:N=(o=c?.variant)!=null?o:"solid",disableAnimation:M=(a=(s=c?.disableAnimation)!=null?s:d?.disableAnimation)!=null?a:!1,isDisabled:O=(i=c?.isDisabled)!=null?i:!1,isIconOnly:L=(l=c?.isIconOnly)!=null?l:!1,spinnerPlacement:I="start",onPress:z,onClick:F,...B}=e,U=m||"button",E=typeof U=="string",j=Pe(h),T=(u=k||d?.disableRipple)!=null?u:M,{isFocusVisible:V,isFocused:K,focusProps:G}=nt({autoFocus:x}),Z=O||S,W=g.useMemo(()=>r$({size:_,color:A,variant:N,radius:$,fullWidth:D,isDisabled:Z,isInGroup:p,disableAnimation:M,isIconOnly:L,className:w}),[_,A,N,$,D,Z,p,L,M,w]),{onPress:ne,onClear:X,ripples:q}=My(),ee=g.useCallback(ge=>{T||Z||M||j.current&&ne(ge)},[T,Z,M,j,ne]),{buttonProps:ue,isPressed:te}=di({elementType:m,isDisabled:Z,onPress:nr(z,ee),onClick:F,...B},j),{isHovered:Ee,hoverProps:ve}=vt({isDisabled:Z}),oe=g.useCallback((ge={})=>({"data-disabled":H(Z),"data-focus":H(K),"data-pressed":H(te),"data-focus-visible":H(V),"data-hover":H(Ee),"data-loading":H(S),...ie(ue,G,ve,Fe(B,{enabled:E}),Fe(ge)),className:W}),[S,Z,K,te,E,V,Ee,ue,G,ve,B,W]),pe=ge=>g.isValidElement(ge)?g.cloneElement(ge,{"aria-hidden":!0,focusable:!1}):null,xe=pe(v),he=pe(y),se=g.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[_],[_]),He=g.useCallback(()=>({ripples:q,onClear:X}),[q,X]);return{Component:U,children:b,domRef:j,spinner:C,styles:W,startContent:xe,endContent:he,isLoading:S,spinnerPlacement:I,spinnerSize:se,disableRipple:T,getButtonProps:oe,getRippleProps:He,isIconOnly:L}}function oI(e){var t,r;const[n,o]=pt(e,Bm.variantKeys),s=tt(),a=(r=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?r:"default",{children:i,className:l,classNames:u,label:c,...d}=n,p=g.useMemo(()=>Bm({...o,variant:a}),[ft(o),a]),h=P(u?.base,l),m=c||i,b=g.useMemo(()=>m&&typeof m=="string"?m:d["aria-label"]?"":"Loading",[i,m,d["aria-label"]]),v=g.useCallback(()=>({"aria-label":b,className:p.base({class:h}),...d}),[b,p,h,d]);return{label:m,slots:p,classNames:u,variant:a,getSpinnerProps:v}}var Oy=Se((e,t)=>{const{slots:r,classNames:n,label:o,variant:s,getSpinnerProps:a}=oI({...e});return s==="wave"||s==="dots"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((i,l)=>f.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="simple"?f.jsxs("div",{ref:t,...a(),children:[f.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="spinner"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((i,l)=>f.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):f.jsxs("div",{ref:t,...a(),children:[f.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[f.jsx("i",{className:r.circle1({class:n?.circle1})}),f.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]})});Oy.displayName="HeroUI.Spinner";var jy=Oy,Fy=Se((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:s,spinner:a=f.jsx(jy,{color:"current",size:s}),spinnerPlacement:i,startContent:l,endContent:u,isLoading:c,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:m}=nI({...e,ref:t});return f.jsxs(r,{ref:n,...p(),children:[l,c&&i==="start"&&a,c&&m?null:o,c&&i==="end"&&a,u,!d&&f.jsx(Ay,{...h()})]})});Fy.displayName="HeroUI.Button";var qt=Fy;function By(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",s="mobiel-assets.imgix.net",a="mobiel-frontend.imgix.net",i="?"+Object.keys(t).map(c=>`${c}=${encodeURIComponent(t[c])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${i}`;let l="",u=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return zy(e)?l=r:fi(e)&&u.includes("mobiel-nl-content")?l=n:fi(e)&&u.includes("mobiel-nl-postpaid")?l=o:Ly(e)?l=s:l=a,fi(e)&&(u=u.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${u}${i}`}function zy(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function fi(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function Ly(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Vc(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||zy(e)||Ly(e)||fi(e)||e?.includes("/assets/")&&!e.includes("localhost")}function Vy(e,t="auto",r="auto",n="none"){return Vc(e)?By(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function sI(e,t="auto",r="auto",n="none"){return Vc(e)?[1,2,3,4].map(a=>`${By(e,{w:t,h:r,dpr:a,trim:n,auto:"compress,format",q:95})} ${a}x`).join(", "):""}function Co(){return g.useMemo(()=>[Vy,sI],[])}function Rc(e,t,r,n=6){if(!Vc(e))return e;const o=Math.ceil(r/n),s=Vy(e,t,r),a=s.includes("?")?"&":"?";return`${s}${a}pad-top=${o}&fit=crop&fp-y=0`}function pi({classNames:e,onClick:t,disabled:r=!1,title:n,description:o,imageUrl:s,imageAlt:a,Icon:i,avatarName:l,selected:u=!1}){return f.jsx(qt,{variant:"bordered",radius:"full",fullWidth:!0,disabled:r,disableAnimation:!0,disableRipple:!0,onPress:t,className:P("h-16 border-0 shadow-small bg-white",e?.button),endContent:u?f.jsx(WE,{size:24,className:P("stroke-primary-600",e?.icon)}):f.jsx(zE,{size:24,className:P("text-primary-600",e?.icon)}),children:f.jsxs("div",{className:"flex items-center gap-3 h-full w-full min-w-0",children:[f.jsx("div",{className:"h-full flex items-center justify-center",children:f.jsx(eI,{color:"warning",content:"",shape:"circle",isInvisible:u,className:e?.badge,children:f.jsx(Ss,{alt:a||void 0,src:s?Rc(s,64,64):void 0,size:"md",radius:"full",color:"warning",showFallback:!s,fallback:i&&f.jsx(i,{size:24,className:"stroke-primary"}),name:l,classNames:{...e?.avatar,name:P("text-primary font-bold flex items-center justify-center p-4",e?.avatar?.name),base:P("size-10 bg-primary-100",e?.avatar?.base)}})})}),f.jsxs("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[f.jsx("span",{className:P("font-semibold text-left truncate w-full text-sm",e?.title),children:n}),o&&f.jsx("span",{className:P("text-xs text-foreground-500 text-left truncate w-full",e?.description),children:o})]})]})})}const Ry=g.createContext({});function aI({children:e,classNames:t={}}){return f.jsx(Ry,{value:t,children:e})}function Ye(){return g.useContext(Ry)}var[iI,hi]=bn({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),Ky=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i,bodyId:l,setBodyMounted:u}=hi(),c=Pe(t),d=r||"div";return g.useEffect(()=>(u(!0),()=>u(!1)),[u]),f.jsx(d,{ref:c,className:a.body({class:P(i?.body,o)}),id:l,...s,children:n})});Ky.displayName="HeroUI.ModalBody";var So=Ky,ks={ease:[.36,.66,.4,1]},mi={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ks.ease}},exit:{opacity:0,transition:{duration:.3,ease:ks.ease}}}},lI={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ks.ease},opacity:{duration:.4,ease:ks.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ks.ease}}},uI=e=>f.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:`
58
58
  M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2Z
59
59
  M16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54
60
60
  C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64
@@ -227,7 +227,7 @@ ${String(e)}`)}catch(t){return t}},jx=e=>{if(typeof e!="object"||e===null)throw
227
227
  `;function tA(){const{data:e,error:t,isLoading:r}=ln([QN],{use:[vr],fetcher:Vt}),{data:n,error:o,isLoading:s}=ln([eA],{use:[vr],fetcher:Vt}),a=e?.searchBrands.records.sort((l,u)=>l.rankingConnected-u.rankingConnected)||[];return{popularPhones:n?.searchProducts?.records||[],brands:a,isLoading:r||s,error:t||o}}const Kx=new WeakMap;function $i(e,t,r){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let n=Kx.get(e);return process.env.NODE_ENV!=="production"&&!n&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${n}-${r}-${t}`}function wd(e){return K5()?e.altKey:e.ctrlKey}function Ei(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,s=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return s&&(o=`[data-collection="${CSS.escape(s)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const Wx=new WeakMap;function rA(e){let t=bt();return Wx.set(e,t),t}function nA(e){return Wx.get(e)}const oA=1e3;function Ux(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=g.useRef({search:"",timeout:void 0}).current,s=a=>{let i=sA(a.key);if(!(!i||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&i===" ")){if(i===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=i,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},oA)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function sA(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Cd(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:i=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:m=n,linkBehavior:b="action"}=e,{direction:v}=Ot(),y=ka(),x=I=>{var z;if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!(!((z=n.current)===null||z===void 0)&&z.contains(I.target)))return;const F=(q,ee)=>{if(q!=null){if(t.isLink(q)&&b==="selection"&&u&&!wd(I)){Hn.flushSync(()=>{t.setFocusedKey(q,ee)});let ue=Ei(n,q),te=t.getItemProps(q);ue&&y.open(ue,I,te.href,te.routerOptions);return}if(t.setFocusedKey(q,ee),t.isLink(q)&&b==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&!wd(I)&&t.replaceSelection(q)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var B,U,E;let q=t.focusedKey!=null?(B=r.getKeyBelow)===null||B===void 0?void 0:B.call(r,t.focusedKey):(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r);q==null&&s&&(q=(E=r.getFirstKey)===null||E===void 0?void 0:E.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q))}break;case"ArrowUp":if(r.getKeyAbove){var j,T,V;let q=t.focusedKey!=null?(j=r.getKeyAbove)===null||j===void 0?void 0:j.call(r,t.focusedKey):(T=r.getLastKey)===null||T===void 0?void 0:T.call(r);q==null&&s&&(q=(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var K,G,Z;let q=t.focusedKey!=null?(K=r.getKeyLeftOf)===null||K===void 0?void 0:K.call(r,t.focusedKey):null;q==null&&s&&(q=v==="rtl"?(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r,t.focusedKey):(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var W,ne,X;let q=t.focusedKey!=null?(W=r.getKeyRightOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;q==null&&s&&(q=v==="rtl"?(ne=r.getLastKey)===null||ne===void 0?void 0:ne.call(r,t.focusedKey):(X=r.getFirstKey)===null||X===void 0?void 0:X.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let q=r.getFirstKey(t.focusedKey,no(I));t.setFocusedKey(q),q!=null&&(no(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let q=r.getLastKey(t.focusedKey,no(I));t.setFocusedKey(q),q!=null&&(no(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(I.preventDefault(),F(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(I.preventDefault(),F(q))}break;case"a":no(I)&&t.selectionMode==="multiple"&&i!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(I.stopPropagation(),I.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(I.shiftKey)n.current.focus();else{let q=Lt(n.current,{tabbable:!0}),ee,ue;do ue=q.lastChild(),ue&&(ee=ue);while(ue);ee&&(!ee.contains(document.activeElement)||document.activeElement&&!rb(document.activeElement))&&Rt(ee)}break}}},w=g.useRef({top:0,left:0});Ea(m,"scroll",h?void 0:()=>{var I,z,F,B;w.current={top:(F=(I=m.current)===null||I===void 0?void 0:I.scrollTop)!==null&&F!==void 0?F:0,left:(B=(z=m.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&B!==void 0?B:0}});let C=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){var z,F;let E=T=>{T!=null&&(t.setFocusedKey(T),u&&!t.isSelected(T)&&t.replaceSelection(T))},j=I.relatedTarget;var B,U;j&&I.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?E((B=t.lastSelectedKey)!==null&&B!==void 0?B:(z=r.getLastKey)===null||z===void 0?void 0:z.call(r)):E((U=t.firstSelectedKey)!==null&&U!==void 0?U:(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))}else!h&&m.current&&(m.current.scrollTop=w.current.top,m.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&m.current){let E=Ei(n,t.focusedKey);E instanceof HTMLElement&&(!E.contains(document.activeElement)&&!d&&Rt(E),ys()==="keyboard"&&Zr(E,{containingElement:n.current}))}}},S=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)},k=g.useRef(!1);Ea(n,nT,d?I=>{let{detail:z}=I;I.stopPropagation(),t.setFocused(!0),z?.focusStrategy==="first"&&(k.current=!0)}:void 0),Yg(()=>{if(k.current){var I,z;let F=(z=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&z!==void 0?z:null;if(F==null){let B=xt();O0(n.current),j0(B,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(F),k.current=!1}},[t.collection]),Yg(()=>{t.collection.size>0&&(k.current=!1)},[t.focusedKey]),Ea(n,rT,d?I=>{var z;I.stopPropagation(),t.setFocused(!1),!((z=I.detail)===null||z===void 0)&&z.clearFocusKey&&t.setFocusedKey(null)}:void 0);const D=g.useRef(o),$=g.useRef(!1);g.useEffect(()=>{if(D.current){var I,z;let U=null;var F;o==="first"&&(U=(F=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&F!==void 0?F:null);var B;o==="last"&&(U=(B=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r))!==null&&B!==void 0?B:null);let E=t.selectedKeys;if(E.size){for(let j of E)if(t.canSelectItem(j)){U=j;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!d&&n.current&&Et(n.current),t.collection.size>0&&(D.current=!1,$.current=!0)}});let _=g.useRef(t.focusedKey),A=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||$.current)&&m.current&&n.current){let I=ys(),z=Ei(n,t.focusedKey);if(!(z instanceof HTMLElement))return;(I==="keyboard"||$.current)&&(A.current&&cancelAnimationFrame(A.current),A.current=requestAnimationFrame(()=>{m.current&&(Qg(m.current,z),I!=="virtual"&&Zr(z,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Et(n.current),_.current=t.focusedKey,$.current=!1}),g.useEffect(()=>()=>{A.current&&cancelAnimationFrame(A.current)},[]),Ea(n,"react-aria-focus-scope-restore",I=>{I.preventDefault(),t.setFocused(!0)});let N={onKeyDown:x,onFocus:C,onBlur:S,onMouseDown(I){m.current===I.target&&I.preventDefault()}},{typeSelectProps:M}=Ux({keyboardDelegate:r,selectionManager:t});c||(N=Ce(M,N));let O;d||(O=t.focusedKey==null?0:-1);let L=rA(t.collection);return{collectionProps:Ce(N,{tabIndex:O,"data-collection":L})}}function Ti(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:i,isDisabled:l,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=ka();t=bt(t);let h=E=>{if(E.pointerType==="keyboard"&&wd(E))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let j=r.getItemProps(n);p.open(o.current,E,j.href,j.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):E&&E.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||E&&(no(E)||E.pointerType==="touch"||E.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?O0(o.current):i?i():document.activeElement!==o.current&&o.current&&Et(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),l=l||r.isDisabled(n);let m={};!a&&!l?m={tabIndex:n===r.focusedKey?0:-1,onFocus(E){E.target===o.current&&r.setFocusedKey(n)}}:l&&(m.onMouseDown=E=>{E.preventDefault()});let b=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",y=r.isLink(n)&&d!=="selection"&&d!=="none",x=!l&&r.canSelectItem(n)&&!b&&!v,w=(u||y)&&!l,C=w&&(r.selectionBehavior==="replace"?!x:!x||r.isEmpty),S=w&&x&&r.selectionBehavior==="replace",k=C||S,D=g.useRef(null),$=k&&x,_=g.useRef(!1),A=g.useRef(!1),N=r.getItemProps(n),M=E=>{if(u){var j;u(),(j=o.current)===null||j===void 0||j.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}y&&o.current&&p.open(o.current,E,N.href,N.routerOptions)},O={ref:o};if(s?(O.onPressStart=E=>{D.current=E.pointerType,_.current=$,E.pointerType==="keyboard"&&(!k||qx())&&h(E)},c?(O.onPressUp=C?void 0:E=>{E.pointerType==="mouse"&&x&&h(E)},O.onPress=C?M:E=>{E.pointerType!=="keyboard"&&E.pointerType!=="mouse"&&x&&h(E)}):O.onPress=E=>{if(C||S&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!Hx())return;M(E)}else E.pointerType!=="keyboard"&&x&&h(E)}):(O.onPressStart=E=>{D.current=E.pointerType,_.current=$,A.current=C,x&&(E.pointerType==="mouse"&&!C||E.pointerType==="keyboard"&&(!w||qx()))&&h(E)},O.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&k&&Hx()||E.pointerType==="mouse"&&A.current)&&(k?M(E):x&&h(E))}),m["data-collection"]=nA(r.collection),m["data-key"]=n,O.preventFocusOnPress=a,a&&(O=Ce(O,{onPressStart(E){E.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(E){E.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),N)for(let E of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[E]&&(O[E]=Ur(O[E],N[E]));let{pressProps:L,isPressed:I}=jt(O),z=S?E=>{D.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),M(E))}:void 0,{longPressProps:F}=T0({isDisabled:!$,onLongPress(E){E.pointerType==="touch"&&(h(E),r.setSelectionBehavior("toggle"))}}),B=E=>{D.current==="touch"&&_.current&&E.preventDefault()},U=d!=="none"&&r.isLink(n)?E=>{Dr.isOpening||E.preventDefault()}:void 0;return{itemProps:Ce(m,x||C||a&&!l?L:{},$?F:{},{onDoubleClick:z,onDragStartCapture:B,onClick:U,id:t},a?{onMouseDown:E=>E.preventDefault()}:void 0),isPressed:I,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:x,hasAction:k}}function Hx(){let e=window.event;return e?.key==="Enter"}function qx(){let e=window.event;return e?.key===" "||e?.code==="Space"}class Sd{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?Ei(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),s=n.getBoundingClientRect();return{x:s.left-o.left-r.clientLeft+r.scrollLeft,y:s.top-o.top-r.clientTop+r.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,s;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(s=t?.clientHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class Gx{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,s=this.layoutDelegate.getItemRect(o);if(!s||o==null)return null;let a=s;do{if(o=r(o),o==null)break;s=this.layoutDelegate.getItemRect(o)}while(s&&n(a,s)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!ro(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let s=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!ro(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let s=n.getItem(o);if(!s)return null;let a=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new Sd(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Sd(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function aA(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:s,layoutDelegate:a}=e,i=Ia({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=g.useMemo(()=>s||new Gx({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:i,layoutDelegate:a}),[s,a,r,n,o,i,l]),{collectionProps:c}=Cd({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function iA(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:s}=e,{selectionManager:a,selectedKey:i}=t,l=n===i,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=Ti({selectionManager:a,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),p=$i(t,n,"tab"),h=$i(t,n,"tabpanel"),{tabIndex:m}=c,b=t.collection.getItem(n),v=Bt(b?.props,{labelable:!0});delete v.id;let y=Hg(b?.props),{focusableProps:x}=rn({isDisabled:u},r);return{tabProps:Ce(v,x,y,c,{id:p,"aria-selected":l,"aria-disabled":u||void 0,"aria-controls":l?h:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:l,isDisabled:u,isPressed:d}}function lA(e,t,r){let n=M0(r)?void 0:0;var o;const s=$i(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),a=Pa({...e,id:s,"aria-labelledby":$i(t,t?.selectedKey,"tab")});return{tabPanelProps:Ce(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class uA{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){var r,n;return this.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let r=t;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r));return r}getPreviousKey(t){let r=t;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r));return r}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o,this.tabDirection=n==="horizontal"}}function cA(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:s,selectionManager:a,disabledKeys:i}=t,{direction:l}=Ot(),u=g.useMemo(()=>new uA(s,l,n,i),[s,i,n,l]),{collectionProps:c}=Cd({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=bt();Kx.set(t,d);let p=Pa({...e,id:d});return{tabListProps:{...Ce(c,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Zx=Se((e,t)=>{var r,n;const{as:o,tabKey:s,destroyInactiveTabPanel:a,state:i,className:l,slots:u,classNames:c,...d}=e,p=o||"div",h=Pe(t),{tabPanelProps:m}=lA({...e,id:String(s)},i,h),{focusProps:b,isFocused:v,isFocusVisible:y}=nt(),x=i.selectedItem,w=i.collection.getItem(s).props.children,C=P(c?.panel,l,(r=x?.props)==null?void 0:r.className),S=s===x?.key;return!w||!S&&a?null:f.jsx(p,{ref:h,"data-focus":v,"data-focus-visible":y,"data-inert":S?void 0:"true",inert:p$(!S),...S&&ie(m,b,d),className:(n=u.panel)==null?void 0:n.call(u,{class:C}),"data-slot":"panel",children:w})});Zx.displayName="HeroUI.TabPanel";var dA=Zx;const Yx=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Jx=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Di=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Jx(r.overflowY,t)||Jx(r.overflowX,t)||(n=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},_i=(e,t,r,n,o,s,a,i)=>s<e&&a>t||s>e&&a<t?0:s<=e&&i<=r||a>=t&&i>=r?s-e-n:a>t&&i<r||s<e&&i>r?a-t+o:0,fA=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Xx=(e,t)=>{var r,n,o,s;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:z=>z!==u;if(!Yx(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;Yx(m)&&d(m);){if(m=fA(m),m===p){h.push(m);break}m!=null&&m===document.body&&Di(m)&&!Di(document.documentElement)||m!=null&&Di(m,c)&&h.push(m)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,v=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:y,scrollY:x}=window,{height:w,width:C,top:S,right:k,bottom:D,left:$}=e.getBoundingClientRect(),{top:_,right:A,bottom:N,left:M}=(z=>{const F=window.getComputedStyle(z);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let O=i==="start"||i==="nearest"?S-_:i==="end"?D+N:S+w/2-_+N,L=l==="center"?$+C/2-M+A:l==="end"?k+A:$-M;const I=[];for(let z=0;z<h.length;z++){const F=h[z],{height:B,width:U,top:E,right:j,bottom:T,left:V}=F.getBoundingClientRect();if(a==="if-needed"&&S>=0&&$>=0&&D<=v&&k<=b&&(F===p&&!Di(F)||S>=E&&D<=T&&$>=V&&k<=j))return I;const K=getComputedStyle(F),G=parseInt(K.borderLeftWidth,10),Z=parseInt(K.borderTopWidth,10),W=parseInt(K.borderRightWidth,10),ne=parseInt(K.borderBottomWidth,10);let X=0,q=0;const ee="offsetWidth"in F?F.offsetWidth-F.clientWidth-G-W:0,ue="offsetHeight"in F?F.offsetHeight-F.clientHeight-Z-ne:0,te="offsetWidth"in F?F.offsetWidth===0?0:U/F.offsetWidth:0,Ee="offsetHeight"in F?F.offsetHeight===0?0:B/F.offsetHeight:0;if(p===F)X=i==="start"?O:i==="end"?O-v:i==="nearest"?_i(x,x+v,v,Z,ne,x+O,x+O+w,w):O-v/2,q=l==="start"?L:l==="center"?L-b/2:l==="end"?L-b:_i(y,y+b,b,G,W,y+L,y+L+C,C),X=Math.max(0,X+x),q=Math.max(0,q+y);else{X=i==="start"?O-E-Z:i==="end"?O-T+ne+ue:i==="nearest"?_i(E,T,B,Z,ne+ue,O,O+w,w):O-(E+B/2)+ue/2,q=l==="start"?L-V-G:l==="center"?L-(V+U/2)+ee/2:l==="end"?L-j+W+ee:_i(V,j,U,G,W+ee,L,L+C,C);const{scrollLeft:ve,scrollTop:oe}=F;X=Ee===0?0:Math.max(0,Math.min(oe+X/Ee,F.scrollHeight-B/Ee+ue)),q=te===0?0:Math.max(0,Math.min(ve+q/te,F.scrollWidth-U/te+ee)),O+=oe-X,L+=ve-q}I.push({el:F,top:X,left:q})}return I},pA=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function hA(e,t){if(!e.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;if((n=>typeof n=="object"&&typeof n.behavior=="function")(t))return t.behavior(Xx(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:n,top:o,left:s}of Xx(e,pA(t)))n.scroll({top:o,left:s,behavior:r})}var Qx=Se((e,t)=>{var r;const{className:n,as:o,item:s,state:a,classNames:i,isDisabled:l,listRef:u,slots:c,shouldSelectOnPressUp:d,tabRef:p,...h}=e,{key:m}=s,b=Pe(t),v=o||(e.href?"a":"button"),y=typeof v=="string",{tabProps:x,isSelected:w,isDisabled:C,isPressed:S}=iA({key:m,isDisabled:l,shouldSelectOnPressUp:d},a,b);e.children==null&&delete x["aria-controls"];const k=l||C,{focusProps:D,isFocused:$,isFocusVisible:_}=nt(),{hoverProps:A,isHovered:N}=vt({isDisabled:k}),M=P(i?.tab,n),O=()=>{!b?.current||!u?.current||hA(b.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:u?.current})};return f.jsx(v,{ref:ru(b,p),"data-disabled":H(C),"data-focus":H($),"data-focus-visible":H(_),"data-hover":H(N),"data-hover-unselected":H((N||S)&&!w),"data-key":m,"data-pressed":H(S),"data-selected":H(w),"data-slot":"tab",...ie(x,k?{}:{...D,...A},Fe(h,{enabled:y,omitPropNames:new Set(["title"]),omitEventNames:new Set(["onClick"])}),{onClick:nr(O,x.onClick)}),className:(r=c.tab)==null?void 0:r.call(c,{class:M}),title:h?.titleValue,type:v==="button"?"button":void 0,children:f.jsx("div",{className:c.tabContent({class:i?.tabContent}),"data-slot":"tabContent",children:s.rendered})})});Qx.displayName="HeroUI.Tab";var mA=Qx;class e1{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)r(l)};for(let i of t)r(i);let n=null,o=0,s=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&s++,n=l,n.nextKey=void 0;this._size=s;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}}class lr extends Set{constructor(t,r,n){super(t),t instanceof lr?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function gA(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function t1(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:s="all"}=e,a=g.useRef(!1),[,i]=g.useState(!1),l=g.useRef(null),u=g.useRef(null),[,c]=g.useState(null),d=g.useMemo(()=>r1(e.selectedKeys),[e.selectedKeys]),p=g.useMemo(()=>r1(e.defaultSelectedKeys,new lr),[e.defaultSelectedKeys]),[h,m]=hr(d,p,e.onSelectionChange),b=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,y]=g.useState(o);o==="replace"&&v==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let x=g.useRef(o);return g.useEffect(()=>{o!==x.current&&(y(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(w){a.current=w,i(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,C="first"){l.current=w,u.current=C,c(w)},selectedKeys:h,setSelectedKeys(w){(n||!gA(w,h))&&m(w)},disabledKeys:b,disabledBehavior:s}}function r1(e,t){return e?e==="all"?"all":new lr(e):t}function n1(e){return null}n1.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:s}=t,a=t.title||t.children,i=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!i&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:i,"aria-label":t["aria-label"],hasChildNodes:bA(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];g.Children.forEach(s,u=>{l.push({type:"item",element:u})}),yield*l}}}};function bA(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&g.Children.count(e.children)>0)}let o1=n1;class vA{build(t,r){return this.context=r,s1(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(g.isValidElement(r)&&r.type===g.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let s of n)yield*this.getFullNode({value:s,index:o},{renderer:r}),o++}else{let o=[];g.Children.forEach(r,a=>{a&&o.push(a)});let s=0;for(let a of o){let i=this.getFullNode({element:a,index:s},{});for(let l of i)s++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let s=r.value;if(s!=null){var a;let i=(a=s.key)!==null&&a!==void 0?a:s.id;if(i==null)throw new Error("No key found for item");return i}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(g.isValidElement(t.element)&&t.element.type===g.Fragment){let v=[];g.Children.forEach(t.element.props.children,x=>{v.push(x)});var s;let y=(s=t.index)!==null&&s!==void 0?s:0;for(const x of v)yield*this.getFullNode({element:x,index:y++},r,n,o);return}let a=t.element;if(!a&&t.value&&r&&r.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=r.renderer(t.value)}if(g.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let C=a.type;throw new Error(`Unknown element <${C}> in collection.`)}let y=v.getCollectionNode(a.props,this.context);var i;let x=(i=t.index)!==null&&i!==void 0?i:0,w=y.next();for(;!w.done&&w.value;){let C=w.value;t.index=x;var l;let S=(l=C.key)!==null&&l!==void 0?l:null;S==null&&(S=C.element?null:this.getKey(a,t,r,n));let D=[...this.getFullNode({...C,key:S,index:x,wrapper:yA(t.wrapper,C.wrapper)},this.getChildState(r,C),n?`${n}${a.key}`:a.key,o)];for(let $ of D){var u,c;$.value=(c=(u=C.value)!==null&&u!==void 0?u:t.value)!==null&&c!==void 0?c:null,$.value&&this.cache.set($.value,$);var d;if(t.type&&$.type!==t.type)throw new Error(`Unsupported type <${kd($.type)}> in <${kd((d=o?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${kd(t.type)}> is supported.`);x++,yield $}w=y.next(D)}return}if(t.key==null||t.type==null)return;let p=this;var h,m;let b={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:s1(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let y of t.childNodes()){y.key!=null&&(y.key=`${b.key}${y.key}`);let x=p.getFullNode({...y,index:v},p.getChildState(r,y),b.key,b);for(let w of x)v++,yield w}})};yield b}constructor(){this.cache=new WeakMap}}function s1(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function yA(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function kd(e){return e[0].toUpperCase()+e.slice(1)}function a1(e,t,r){let n=g.useMemo(()=>new vA,[]),{children:o,items:s,collection:a}=e;return g.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:s},r);return t(l)},[n,o,s,a,r,t])}function ht(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function jr(e){return _s(e,0)}function _s(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function un(e){let t;for(let r of e)t=r;return t}function Pd(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...i1(e,t),t],o=[...i1(e,r),r],s=n.slice(0,o.length).findIndex((a,i)=>a!==o[i]);return s!==-1?(t=n[s],r=o[s],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function i1(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const l1=new WeakMap;function xA(e){let t=l1.get(e);if(t!=null)return t;let r=0,n=o=>{for(let s of o)s.type==="section"?n(ht(s,e)):s.type==="item"&&r++};return n(e),l1.set(e,r),r}class Ii{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Pd(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Pd(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new lr([r],r,r);else{let a=this.state.selectedKeys;var o;let i=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new lr(a,i,r);var s;for(let l of this.getKeyRange(i,(s=a.currentKey)!==null&&s!==void 0?s:r))n.delete(l);for(let l of this.getKeyRange(r,i))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Pd(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],s=t;for(;s!=null;){let a=this.collection.getItem(s);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(s),s===r)return o;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new lr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new lr([r],r,r):new lr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new lr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);a?.type==="item"&&t.push(n);var s;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((s=(o=jr(ht(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new lr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new Ii(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}function $d(e){let{filter:t,layoutDelegate:r}=e,n=t1(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=g.useCallback(u=>t?new e1(t(u)):new e1(u),[t]),a=g.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=a1(e,s,a),l=g.useMemo(()=>new Ii(i,n,{layoutDelegate:r}),[i,n,r]);return wA(i,l),{collection:i,disabledKeys:o,selectionManager:l}}function wA(e,t){const r=g.useRef(null);g.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(y=>{const x=r.current.getItem(y);return x?.type==="item"?x:null}).filter(y=>y!==null),p=[...e.getKeys()].map(y=>{const x=e.getItem(y);return x?.type==="item"?x:null}).filter(y=>y!==null);var n,o;const h=((n=d?.length)!==null&&n!==void 0?n:0)-((o=p?.length)!==null&&o!==void 0?o:0);var s,a,i;let m=Math.min(h>1?Math.max(((s=c?.index)!==null&&s!==void 0?s:0)-h+1,0):(a=c?.index)!==null&&a!==void 0?a:0,((i=p?.length)!==null&&i!==void 0?i:0)-1),b=null,v=!1;for(;m>=0;){if(!t.isDisabled(p[m].key)){b=p[m];break}if(m<p.length-1&&!v)m++;else{v=!0;var l,u;m>((l=c?.index)!==null&&l!==void 0?l:0)&&(m=(u=c?.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(b?b.key:null)}r.current=e},[e,t])}function CA(e){var t;let[r,n]=hr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=g.useMemo(()=>r!=null?[r]:[],[r]),{collection:s,disabledKeys:a,selectionManager:i}=$d({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?s.getItem(r):null;return{collection:s,disabledKeys:a,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function SA(e){var t,r;let n=CA({...e,onSelectionChange:e.onSelectionChange?l=>{var u;l!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,l))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:u1(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:s,selectedKey:a}=n,i=g.useRef(a);return g.useEffect(()=>{let l=a;e.selectedKey==null&&(o.isEmpty||l==null||!s.getItem(l))&&(l=u1(s,n.disabledKeys),l!=null&&o.setSelectedKeys([l])),(l!=null&&o.focusedKey==null||!o.isFocused&&l!==i.current)&&o.setFocusedKey(l),i.current=l}),{...n,isDisabled:e.isDisabled||!1}}function u1(e,t){let r=null;if(e){var n,o,s,a;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(s=a.props)===null||s===void 0)&&s.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function kA(e){var t,r,n;const o=tt(),[s,a]=pt(e,Mm.variantKeys),{ref:i,as:l,className:u,classNames:c,children:d,disableCursorAnimation:p,isVertical:h=!1,shouldSelectOnPressUp:m=!0,destroyInactiveTabPanel:b=!0,...v}=s,y=l||"div",x=typeof y=="string",w=Pe(i),C=(r=(t=e?.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,S=(n=a.placement)!=null?n:h?"start":"top",k=h||S==="start"||S==="end"?"vertical":"horizontal",D=SA({children:d,...v}),{tabListProps:$}=cA({...v,orientation:k},D,w),_=g.useMemo(()=>Mm({...a,disableAnimation:C,...h?{placement:"start"}:{}}),[ft(a),C,h]),A=P(c?.base,u),N=g.useMemo(()=>({state:D,slots:_,classNames:c,disableAnimation:C,listRef:w,shouldSelectOnPressUp:m,disableCursorAnimation:p,isDisabled:e?.isDisabled}),[D,_,w,C,p,m,e?.isDisabled,c]),M=g.useCallback(z=>({"data-slot":"base",className:_.base({class:P(A,z?.className)}),...ie(Fe(v,{enabled:x}),z)}),[A,v,_]),O=g.useCallback(z=>({"data-slot":"tabWrapper",className:_.tabWrapper({class:P(c?.tabWrapper,z?.className)}),"data-placement":S,"data-vertical":h||S==="start"||S==="end"?"vertical":"horizontal"}),[c,_,S,h]),L=g.useCallback(z=>({ref:w,"data-slot":"tabList",className:_.tabList({class:P(c?.tabList,z?.className)}),...ie($,z)}),[w,$,c,_]),I=g.useCallback(z=>({"data-slot":"cursor",className:_.cursor({class:P(c?.cursor,z?.className)})}),[c,_]);return{Component:y,domRef:w,state:D,values:N,destroyInactiveTabPanel:b,getBaseProps:M,getTabListProps:L,getWrapperProps:O,getTabCursorProps:I}}var PA=Se(function(t,r){const{Component:n,values:o,state:s,domRef:a,destroyInactiveTabPanel:i,getBaseProps:l,getTabListProps:u,getWrapperProps:c,getTabCursorProps:d}=kA({...t,ref:r}),p={state:s,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,shouldSelectOnPressUp:o.shouldSelectOnPressUp},h=[...s.collection].map(M=>f.jsx(mA,{item:M,...p,...M.props},M.key)),m=t?.variant,b=g.useRef(void 0),v=t?.isVertical,y=g.useRef(void 0),x=t?.placement,w=g.useRef(void 0),C=g.useRef(null),S=s.selectedItem,k=S?.key,D=g.useCallback(M=>m==="underlined"?{left:`${M.left+M.width*.1}px`,top:`${M.top+M.height-2}px`,width:`${M.width*.8}px`,height:""}:{left:`${M.left}px`,top:`${M.top}px`,width:`${M.width}px`,height:`${M.height}px`},[m]),$=g.useCallback(M=>{var O;(m!==b.current||v!==y.current||x!==w.current)&&((O=C.current)==null||O.removeAttribute("data-animated")),M(),b.current=m,y.current=v,w.current=x,requestAnimationFrame(()=>{var L,I;(L=C.current)==null||L.setAttribute("data-animated","true"),(I=C.current)==null||I.setAttribute("data-initialized","true")})},[v,m,x]),_=g.useCallback(M=>{if(!C.current)return;const O={width:M.offsetWidth,height:M.offsetHeight,left:M.offsetLeft,top:M.offsetTop},L=D(O);$(()=>{C.current.style.left=L.left,C.current.style.top=L.top,C.current.style.width=L.width,C.current.style.height=L.height})},[C.current,D,$]),A=g.useCallback(M=>{const O=M[0].contentRect;O.width===0&&O.height===0||_(M[0].target)},[_]);g.useEffect(()=>{var M;const O=(M=a.current)==null?void 0:M.querySelector(`[data-key="${k}"]`);if(!O)return;const L=new ResizeObserver(A);return L.observe(O),()=>L.disconnect()},[a.current,A,k]);const N=g.useMemo(()=>f.jsxs(f.Fragment,{children:[f.jsx("div",{...l(),children:f.jsxs(n,{...u(),children:[!o.disableAnimation&&!o.disableCursorAnimation&&k!=null&&f.jsx("span",{...d(),ref:C}),h]})}),[...s.collection].map(M=>f.jsx(dA,{classNames:o.classNames,destroyInactiveTabPanel:i,slots:o.slots,state:o.state,tabKey:M.key},M.key))]}),[n,l,u,d,h,k,s.collection,o.disableAnimation,o.disableCursorAnimation,o.classNames,o.slots,o.state,i,a,C,m,v]);return"placement"in t||"isVertical"in t?f.jsx("div",{...c(),children:N}):N}),c1=PA,d1=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},f1=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],$A=(e,t)=>{if(t.includes("-")){const[r]=t.split("-");if(r.includes(e))return!1}return!0},Ni=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},Is=new WeakMap,Ft=[];function EA(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(p);let u=p=>{if(r.has(p)||p.parentElement&&n.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of r)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&s(l),d!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)s(p),p=c.nextNode()}},s=l=>{var u;let c=(u=Is.get(l))!=null?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),n.add(l),Is.set(l,c+1))};Ft.length&&Ft[Ft.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...r,...n].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(r.delete(c),n.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?r.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let i={visibleNodes:r,hiddenNodes:n,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Ft.push(i),()=>{a.disconnect();for(let l of n){let u=Is.get(l);u!=null&&(u===1?(l.removeAttribute("aria-hidden"),Is.delete(l)):Is.set(l,u-1))}i===Ft[Ft.length-1]?(Ft.pop(),Ft.length&&Ft[Ft.length-1].observe()):Ft.splice(Ft.indexOf(i),1)}}function TA(e){let t=Ft[Ft.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var DA=o1,Io=DA;function _A({brands:e,selectedBrandSlug:t,onBrandChange:r,classNames:n}){const{t:o}=Oe(),[s,a]=g.useState(t);function i(l){a(l),r(l)}return f.jsxs(c1,{selectedKey:s,color:"primary",size:"sm","aria-label":o("phoneSelector.selectBrand"),classNames:{base:P("w-full",n?.base),...n},children:[f.jsx(Io,{title:o("phoneSelector.popular"),onClick:()=>i("popular")},"popular"),e.map(l=>f.jsx(Io,{title:l.name,onClick:()=>i(l.slug)},l.slug))]})}var IA=o1,_n=IA;const Ed=new WeakMap;function NA(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function AA(e,t){let r=Ed.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${NA(t)}`}function Ai(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:s="label"}=e;t=bt(t);let a=bt(),i={};r?(n=n?`${a} ${n}`:a,i={id:a,htmlFor:s==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Pa({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:l}}function Mi(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:s,fieldProps:a}=Ai(e),i=os([!!t,!!r,n,o]),l=os([!!t,!!r,n,o]);return a=Ce(a,{"aria-describedby":[i,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:i},errorMessageProps:{id:l}}}function MA(e,t,r){let n=Bt(e,{labelable:!0}),o=e.selectionBehavior||"toggle",s=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&s==="action"&&(s="override");let{listProps:a}=aA({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:i}=Pn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=bt(e.id);Ed.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:c}=Ai({...e,id:l,labelElementType:"span"});return{labelProps:u,listBoxProps:Ce(n,i,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ce(c,a)})}}function OA(e,t,r){var n,o;let{key:s}=e,a=Ed.get(t);var i;let l=(i=e.isDisabled)!==null&&i!==void 0?i:t.selectionManager.isDisabled(s);var u;let c=(u=e.isSelected)!==null&&u!==void 0?u:t.selectionManager.isSelected(s);var d;let p=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:a?.shouldSelectOnPressUp;var h;let m=(h=e.shouldFocusOnHover)!==null&&h!==void 0?h:a?.shouldFocusOnHover;var b;let v=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:a?.shouldUseVirtualFocus;var y;let x=(y=e.isVirtualized)!==null&&y!==void 0?y:a?.isVirtualized,w=os(),C=os(),S={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Hr()&&iu()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=w,S["aria-describedby"]=C);let k=t.collection.getItem(s);if(x){let F=Number(k?.index);S["aria-posinset"]=Number.isNaN(F)?void 0:F+1,S["aria-setsize"]=xA(t.collection)}let D=a?.onAction?()=>{var F;return a==null||(F=a.onAction)===null||F===void 0?void 0:F.call(a,s)}:void 0,$=AA(t,s),{itemProps:_,isPressed:A,isFocused:N,hasAction:M,allowsSelection:O}=Ti({selectionManager:t.selectionManager,key:s,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&m,isVirtualized:x,shouldUseVirtualFocus:v,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?Ur(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:a?.linkBehavior,UNSTABLE_itemBehavior:a?.UNSTABLE_itemBehavior,id:$}),{hoverProps:L}=vt({isDisabled:l||!m,onHoverStart(){xo()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),I=Bt(k?.props);delete I.id;let z=Hg(k?.props);return{optionProps:{...S,...Ce(I,_,L,z),id:$},labelProps:{id:w},descriptionProps:{id:C},isFocused:N,isFocusVisible:N&&t.selectionManager.isFocused&&xo(),isSelected:c,isDisabled:l,isPressed:A,allowsSelection:O,hasAction:M}}function jA(e){let{heading:t,"aria-label":r}=e,n=bt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function FA(e){var t;const r=tt(),{ref:n,as:o,state:s,variant:a,color:i,onAction:l,children:u,onSelectionChange:c,disableAnimation:d=(t=r?.disableAnimation)!=null?t:!1,itemClasses:p,className:h,topContent:m,bottomContent:b,emptyContent:v="No items.",hideSelectedIcon:y=!1,hideEmptyContent:x=!1,shouldHighlightOnFocus:w=!1,classNames:C,...S}=e,k=o||"ul",D=typeof k=="string",$=Pe(n),_=$d({...e,children:u,onSelectionChange:c}),A=s||_,{listBoxProps:N}=MA({...e,onAction:l},A,$),M=g.useMemo(()=>i$(),[]),O=P(C?.base,h);return{Component:k,state:A,variant:a,color:i,slots:M,classNames:C,topContent:m,bottomContent:b,emptyContent:v,hideEmptyContent:x,shouldHighlightOnFocus:w,hideSelectedIcon:y,disableAnimation:d,className:h,itemClasses:p,getBaseProps:(F={})=>({ref:$,"data-slot":"base",className:M.base({class:O}),...Fe(S,{enabled:D}),...F}),getListProps:(F={})=>({"data-slot":"list",className:M.list({class:C?.list}),...N,...F}),getEmptyContentProps:(F={})=>({"data-slot":"empty-content",children:v,className:M.emptyContent({class:C?.emptyContent}),...F})}}function BA(e){const{isSelected:t,disableAnimation:r,...n}=e;return f.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:f.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var zA=700;function LA(){return Qn()||typeof window>"u"?!1:window.screen.width<=zA}function VA(e){var t,r;const n=tt(),[o,s]=pt(e,jm.variantKeys),{as:a,item:i,state:l,description:u,startContent:c,endContent:d,isVirtualized:p,selectedIcon:h,className:m,classNames:b,autoFocus:v,onPress:y,onPressUp:x,onPressStart:w,onPressEnd:C,onPressChange:S,onClick:k,shouldHighlightOnFocus:D,hideSelectedIcon:$=!1,isReadOnly:_=!1,...A}=o,N=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,M=g.useRef(null),O=a||(e.href?"a":"li"),L=typeof O=="string",{rendered:I,key:z}=i,F=l.disabledKeys.has(z)||e.isDisabled,B=l.selectionManager.selectionMode!=="none",U=LA(),{pressProps:E,isPressed:j}=jt({ref:M,isDisabled:F,onClick:k,onPress:y,onPressUp:x,onPressStart:w,onPressEnd:C,onPressChange:S}),{isHovered:T,hoverProps:V}=vt({isDisabled:F}),{isFocusVisible:K,focusProps:G}=nt({autoFocus:v}),{isFocused:Z,isSelected:W,optionProps:ne,labelProps:X,descriptionProps:q}=OA({key:z,isDisabled:F,"aria-label":o["aria-label"],isVirtualized:p},l,M);let ee=ne;const ue=g.useMemo(()=>jm({...s,isDisabled:F,disableAnimation:N,hasTitleTextChild:typeof I=="string",hasDescriptionTextChild:typeof u=="string"}),[ft(s),F,N,I,u]),te=P(b?.base,m);_&&(ee=w$(ee));const Ee=D&&Z||(U?T||j:T||Z&&!K),ve=(se={})=>({ref:M,...ie(ee,_?{}:ie(G,E),V,Fe(A,{enabled:L}),se),"data-selectable":H(B),"data-focus":H(Z),"data-hover":H(Ee),"data-disabled":H(F),"data-selected":H(W),"data-pressed":H(j),"data-focus-visible":H(K),className:ue.base({class:P(te,se.className)})}),oe=(se={})=>({...ie(X,se),"data-label":H(!0),className:ue.title({class:b?.title})}),pe=(se={})=>({...ie(q,se),className:ue.description({class:b?.description})}),xe=(se={})=>({...ie(se),className:ue.wrapper({class:b?.wrapper})}),he=g.useCallback((se={})=>({"aria-hidden":H(!0),"data-disabled":H(F),className:ue.selectedIcon({class:b?.selectedIcon}),...se}),[F,ue,b]);return{Component:O,domRef:M,slots:ue,classNames:b,isSelectable:B,isSelected:W,isDisabled:F,rendered:I,description:u,startContent:c,endContent:d,selectedIcon:h,hideSelectedIcon:$,disableAnimation:N,getItemProps:ve,getLabelProps:oe,getWrapperProps:xe,getDescriptionProps:pe,getSelectedIconProps:he}}var p1=e=>{const{Component:t,rendered:r,description:n,isSelectable:o,isSelected:s,isDisabled:a,selectedIcon:i,startContent:l,endContent:u,hideSelectedIcon:c,disableAnimation:d,getItemProps:p,getLabelProps:h,getWrapperProps:m,getDescriptionProps:b,getSelectedIconProps:v}=VA(e),y=g.useMemo(()=>{const x=f.jsx(BA,{disableAnimation:d,isSelected:s});return typeof i=="function"?i({icon:x,isSelected:s,isDisabled:a}):i||x},[i,s,a,d]);return f.jsxs(t,{...p(),children:[l,n?f.jsxs("div",{...m(),children:[f.jsx("span",{...h(),children:r}),f.jsx("span",{...b(),children:n})]}):f.jsx("span",{...h(),children:r}),o&&!c&&f.jsx("span",{...v(),children:y}),u]})};p1.displayName="HeroUI.ListboxItem";var Td=p1;function RA(e){let t=Fe(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function KA(e){const{as:t,className:r,orientation:n,...o}=e;let s=t||"hr";s==="hr"&&n==="vertical"&&(s="div");const{separatorProps:a}=RA({elementType:typeof s=="string"?s:"hr",orientation:n}),i=g.useMemo(()=>f$({orientation:n,className:r}),[n,r]),l=g.useCallback((u={})=>({className:i,role:"separator","data-orientation":n,...a,...o,...u}),[i,n,a,o]);return{Component:s,getDividerProps:l}}var h1=Se((e,t)=>{const{Component:r,getDividerProps:n}=KA({...e});return f.jsx(r,{ref:t,...n()})});h1.displayName="HeroUI.Divider";var No=h1,m1=Se(({item:e,state:t,as:r,variant:n,color:o,disableAnimation:s,className:a,classNames:i,hideSelectedIcon:l,showDivider:u=!1,dividerProps:c={},itemClasses:d,title:p,items:h,...m},b)=>{const v=r||"li",y=g.useMemo(()=>l$(),[]),x=P(i?.base,a),w=P(i?.divider,c?.className),{itemProps:C,headingProps:S,groupProps:k}=jA({heading:e.rendered,"aria-label":e["aria-label"]});return f.jsxs(v,{"data-slot":"base",...ie(C,m),className:y.base({class:x}),children:[e.rendered&&f.jsx("span",{...S,className:y.heading({class:i?.heading}),"data-slot":"heading",children:e.rendered}),f.jsxs("ul",{...k,className:y.group({class:i?.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(D=>{const{key:$,props:_}=D;let A=f.jsx(Td,{classNames:d,color:o,disableAnimation:s,hideSelectedIcon:l,item:D,state:t,variant:n,..._},$);return D.wrapper&&(A=D.wrapper(A)),A}),u&&f.jsx(No,{as:"li",className:y.divider({class:w}),...c})]})]},e.key)});m1.displayName="HeroUI.ListboxSection";var g1=m1;function Ao(e,t,r){let n=r.initialDeps??[],o;return()=>{var s,a,i,l;let u;r.key&&((s=r.debug)!=null&&s.call(r))&&(u=Date.now());const c=e();if(!(c.length!==n.length||c.some((h,m)=>n[m]!==h)))return o;n=c;let p;if(r.key&&((a=r.debug)!=null&&a.call(r))&&(p=Date.now()),o=t(...c),r.key&&((i=r.debug)!=null&&i.call(r))){const h=Math.round((Date.now()-u)*100)/100,m=Math.round((Date.now()-p)*100)/100,b=m/16,v=(y,x)=>{for(y=String(y);y.length<x;)y=" "+y;return y};console.info(`%c⏱ ${v(m,5)} /${v(h,5)} ms`,`
228
228
  font-size: .6rem;
229
229
  font-weight: bold;
230
- color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Dd(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const WA=(e,t)=>Math.abs(e-t)<1,UA=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},HA=e=>e,qA=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},GA=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:i,height:l}=a;t({width:Math.round(i),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(a=>{const i=a[0];if(i?.borderBoxSize){const l=i.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},b1={passive:!0},ZA=typeof window>"u"?!0:"onscrollend"in window,YA=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const s=e.options.useScrollendEvent&&ZA?()=>{}:UA(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,s(),t(o,u)},i=a(!0),l=a(!1);return l(),r.addEventListener("scroll",i,b1),r.addEventListener("scrollend",l,b1),()=>{r.removeEventListener("scroll",i),r.removeEventListener("scrollend",l)}},JA=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},XA=(e,{adjustments:t=0,behavior:r},n)=>{var o,s;const a=e+t;(s=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class QA{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var s;return(s=n())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=n())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:HA,rangeExtractor:qA,onChange:()=>{},measureElement:JA,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=Ao(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,s=new Map;for(let a=n-1;a>=0;a--){const i=r[a];if(o.has(i.lane))continue;const l=s.get(i.lane);if(l==null||i.end>l.end?s.set(i.lane,i):i.end<l.end&&o.set(i.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,i)=>a.end===i.end?a.index-i.index:a.end-i.end)[0]:void 0},this.getMeasurementOptions=Ao(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=Ao(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a},i)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<r;c++){const d=s(c),p=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=p?p.end+this.options.gap:n+o,m=i.get(d),b=typeof m=="number"?m:this.options.estimateSize(c),v=h+b,y=p?p.lane:c%this.options.lanes;u[c]={index:c,start:h,size:b,end:v,key:d,lane:y}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Ao(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?e7({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Ao(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,s,a)=>s===null||a===null?[]:r({startIndex:s,endIndex:a,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),s=this.measurementsCache[o];if(!s)return;const a=s.key,i=this.elementsCache.get(a);i!==r&&(i&&this.observer.unobserve(i),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const s=this.itemSizeCache.get(o.key)??o.size,a=n-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",a),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=Ao(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let s=0,a=r.length;s<a;s++){const i=r[s],l=n[i];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Dd(n[v1(0,n.length-1,o=>Dd(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),s=this.getScrollOffset();n==="auto"&&r>=s+o&&(n="end"),n==="end"&&(r-=o);const a=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const s=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+s-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const i=o.start-this.options.scrollPaddingStart+(o.size-s)/2;switch(n){case"center":return[this.getOffsetForAlignment(i,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(r,n);if(!s)return;const[a,i]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=Dd(this.getOffsetForIndex(r,i));WA(u,this.getScrollOffset())||this.scrollToIndex(r,{align:i,behavior:o})}else this.scrollToIndex(r,{align:i,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const v1=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,s=r(o);if(s<n)e=o+1;else if(s>n)t=o-1;else return o}return e>0?e-1:0};function e7({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,s=v1(0,n,i=>e[i].start,r);let a=s;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:s,endIndex:a}}const y1=typeof document<"u"?Nt.useLayoutEffect:Nt.useEffect;function t7(e){const t=Nt.useReducer(()=>({}),{})[1],r={...e,onChange:(o,s)=>{var a;s?Hn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,s)}},[n]=Nt.useState(()=>new QA(r));return n.setOptions(r),y1(()=>n._didMount(),[]),y1(()=>n._willUpdate()),n}function x1(e){return t7({observeElementRect:GA,observeElementOffset:YA,scrollToFn:XA,...e})}function r7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function n7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);r7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var o7=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},s7=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},a7=e=>{var t;const{Component:r,state:n,color:o,variant:s,itemClasses:a,getBaseProps:i,topContent:l,bottomContent:u,hideEmptyContent:c,hideSelectedIcon:d,shouldHighlightOnFocus:p,disableAnimation:h,getEmptyContentProps:m,getListProps:b,scrollShadowProps:v}=e,{virtualization:y}=e;if(!y||!Kr(y)&&!y.maxListboxHeight&&!y.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:x,itemHeight:w}=y,C=Math.min(x,w*n.collection.size),S=g.useRef(null),k=g.useMemo(()=>o7([...n.collection],w),[n.collection,w]),D=x1({count:[...n.collection].length,getScrollElement:()=>S.current,estimateSize:I=>k[I]}),$=D.getVirtualItems(),_=D.getTotalSize(),{getBaseProps:A}=n7({...v}),N=I=>{var z;const F=[...n.collection][I.index];if(!F)return null;const B={color:o,item:F,state:n,variant:s,disableAnimation:h,hideSelectedIcon:d,...F.props},U={position:"absolute",top:0,left:0,width:"100%",height:`${I.size}px`,transform:`translateY(${I.start}px)`};if(F.type==="section")return f.jsx(g1,{...B,itemClasses:a,style:{...U,...B.style}},F.key);let E=f.jsx(Td,{...B,classNames:ie(a,(z=F.props)==null?void 0:z.classNames),shouldHighlightOnFocus:p,style:{...U,...B.style}},F.key);return F.wrapper&&(E=F.wrapper(E)),E},[M,O]=g.useState({isTop:!1,isBottom:!0,isMiddle:!1}),L=f.jsxs(r,{...b(),"data-virtual-scroll-height":_,"data-virtual-scroll-top":(t=S?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!c&&f.jsx("li",{children:f.jsx("div",{...m()})}),f.jsx("div",{...Fe(A()),ref:S,style:{height:x,overflow:"auto"},onScroll:I=>{O(s7(I.target))},children:C>0&&w>0&&f.jsx("div",{style:{height:`${_}px`,width:"100%",position:"relative"},children:$.map(I=>N(I))})})]});return f.jsxs("div",{...i(),children:[l,L,u]})},i7=a7,l7=Se(function(t,r){const{isVirtualized:n,...o}=t,s=FA({...o,ref:r}),{Component:a,state:i,color:l,variant:u,itemClasses:c,getBaseProps:d,topContent:p,bottomContent:h,hideEmptyContent:m,hideSelectedIcon:b,shouldHighlightOnFocus:v,disableAnimation:y,getEmptyContentProps:x,getListProps:w}=s;if(n)return f.jsx(i7,{...t,...s});const C=f.jsxs(a,{...w(),children:[!i.collection.size&&!m&&f.jsx("li",{children:f.jsx("div",{...x()})}),[...i.collection].map(S=>{var k;const D={color:l,item:S,state:i,variant:u,disableAnimation:y,hideSelectedIcon:b,...S.props};if(S.type==="section")return f.jsx(g1,{...D,itemClasses:c},S.key);let $=f.jsx(Td,{...D,classNames:ie(c,(k=S.props)==null?void 0:k.classNames),shouldHighlightOnFocus:v},S.key);return S.wrapper&&($=S.wrapper($)),$})]});return f.jsxs("div",{...d(),children:[p,C,h]})}),_d=l7;function u7(e){var t,r;const n=tt(),[o,s]=pt(e,zm.variantKeys),{as:a,children:i,isLoaded:l=!1,className:u,classNames:c,...d}=o,p=a||"div",h=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,m=g.useMemo(()=>zm({...s,disableAnimation:h}),[ft(s),h,i]),b=P(c?.base,u);return{Component:p,children:i,slots:m,classNames:c,getSkeletonProps:(x={})=>({"data-loaded":H(l),className:m.base({class:P(b,x?.className)}),...d}),getContentProps:(x={})=>({className:m.content({class:P(c?.content,x?.className)})})}}var w1=Se((e,t)=>{const{Component:r,children:n,getSkeletonProps:o,getContentProps:s}=u7({...e});return f.jsx(r,{ref:t,...o(),children:f.jsx("div",{...s(),children:n})})});w1.displayName="HeroUI.Skeleton";var Id=w1;function c7({isLoading:e,phones:t,selectedPhoneSlug:r,onPhoneSelect:n,classNames:o}){const s=g.useCallback(a=>{if(a!=="all"){const i=Array.from(a)[0];i&&n(i)}},[n]);return e?f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx("ul",{className:"w-full flex flex-col gap-0.5",children:Array.from({length:10},(a,i)=>f.jsxs("li",{className:"px-2 py-1.5 w-full h-full flex items-center gap-3 rounded-lg",children:[f.jsx(Id,{className:"rounded-full shrink-0 bg-primary-100 w-10 h-10"}),f.jsx(Id,{className:"rounded-lg h-4 w-40 bg-content2"})]},`skeleton-${i}`))})}):f.jsx(_d,{selectionMode:"single",variant:"flat","aria-label":"Kies een telefoon",selectedKeys:r?[r]:[],onSelectionChange:s,classNames:{base:P("flex-1 min-h-0 overflow-y-auto p-0",o?.base),...o},children:t.map(a=>f.jsx(_n,{textValue:a.fullName,children:f.jsxs("div",{className:"flex items-center gap-3",children:[a.productVersion?.media?.main?.url?f.jsx(Ss,{alt:a.productVersion.media.main.altText||a.fullName,src:Rc(a.productVersion.media.main.url,64,64),size:"md",radius:"full",color:"primary",classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}):f.jsx(Ss,{size:"md",radius:"full",color:"primary",showFallback:!0,fallback:f.jsx(eu,{size:24,className:"text-primary"}),classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}),f.jsx("span",{className:"text-sm font-medium",children:a.fullName})]})},a.slug))})}var[d7,Nd]=bn({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),C1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Nd(),d=P(c?.body,o);return f.jsx(i,{ref:l,className:(r=u.body)==null?void 0:r.call(u,{class:d}),...a,children:s})});C1.displayName="HeroUI.CardBody";var S1=C1,k1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Nd(),d=P(c?.footer,o);return f.jsx(i,{ref:l,className:(r=u.footer)==null?void 0:r.call(u,{class:d}),...a,children:s})});k1.displayName="HeroUI.CardFooter";var f7=k1,P1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Nd(),d=P(c?.header,o);return f.jsx(i,{ref:l,className:(r=u.header)==null?void 0:r.call(u,{class:d}),...a,children:s})});P1.displayName="HeroUI.CardHeader";var p7=P1;function h7(e){var t,r,n,o;const s=tt(),[a,i]=pt(e,Tm.variantKeys),{ref:l,as:u,children:c,onClick:d,onPress:p,autoFocus:h,className:m,classNames:b,allowTextSelectionOnPress:v=!0,...y}=a,x=Pe(l),w=u||(e.isPressable?"button":"div"),C=typeof w=="string",S=(r=(t=e.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:s?.disableRipple)!=null?o:!1,D=P(b?.base,m),{onClear:$,onPress:_,ripples:A}=My(),N=g.useCallback(V=>{k||S||x.current&&_(V)},[k,S,x,_]),{buttonProps:M,isPressed:O}=di({onPress:nr(p,N),elementType:u,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:v,...y},x),{hoverProps:L,isHovered:I}=vt({isDisabled:!e.isHoverable,...y}),{isFocusVisible:z,isFocused:F,focusProps:B}=nt({autoFocus:h}),U=g.useMemo(()=>Tm({...i,disableAnimation:S}),[ft(i),S]),E=g.useMemo(()=>({slots:U,classNames:b,disableAnimation:S,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[U,b,e.isDisabled,e.isFooterBlurred,S,e.fullWidth]),j=g.useCallback((V={})=>({ref:x,className:U.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":H(I),"data-pressed":H(O),"data-focus":H(F),"data-focus-visible":H(z),"data-disabled":H(e.isDisabled),...ie(e.isPressable?{...M,...B,role:"button"}:{},e.isHoverable?L:{},Fe(y,{enabled:C}),Fe(V))}),[x,U,D,C,e.isPressable,e.isHoverable,e.isDisabled,I,O,z,M,B,L,y]),T=g.useCallback(()=>({ripples:A,onClear:$}),[A,$]);return{context:E,domRef:x,Component:w,classNames:b,children:c,isHovered:I,isPressed:O,disableAnimation:S,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:N,isFocusVisible:z,getCardProps:j,getRippleProps:T}}var $1=Se((e,t)=>{const{children:r,context:n,Component:o,isPressable:s,disableAnimation:a,disableRipple:i,getCardProps:l,getRippleProps:u}=h7({...e,ref:t});return f.jsxs(o,{...l(),children:[f.jsx(d7,{value:n,children:r}),s&&!a&&!i&&f.jsx(Ay,{...u()})]})});$1.displayName="HeroUI.Card";var Ad=$1;function m7(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:s,selectionMode:a}}=$d(e),i=g.useMemo(()=>!e.isLoading&&s.size!==0?Array.from(s).filter(Boolean).filter(u=>!t.getItem(u)):[],[s,t]),l=s.size!==0?Array.from(s).map(u=>t.getItem(u)).filter(Boolean):null;return i.length&&console.warn(`Select: Keys "${i.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:a,selectedKeys:s,setSelectedKeys:o.bind(n),selectedItems:l}}function g7(e){let t=gi(e),[r,n]=g.useState(null),[o,s]=g.useState([]),a=()=>{s([]),t.close()};return{focusStrategy:r,...t,open(u=null){n(u),t.open()},toggle(u=null){n(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,c)=>{s(d=>c>d.length?d:[...d.slice(0,c),u])},closeSubmenu:(u,c)=>{s(d=>d[c]===u?d.slice(0,c):d)}}}const Md={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},E1={...Md,customError:!0,valid:!1},Mo={isInvalid:!1,validationDetails:Md,validationErrors:[]},T1=g.createContext({}),Oi="__formValidationState"+Date.now();function Oo(e){if(e[Oi]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}=e[Oi];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}}return b7(e)}function b7(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:s,validate:a,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:E1}:null,u=g.useMemo(()=>{if(!a||o==null)return null;let A=v7(a,o);return D1(A)},[a,o]);s?.validationDetails.valid&&(s=void 0);let c=g.useContext(T1),d=g.useMemo(()=>n?Array.isArray(n)?n.flatMap(A=>Od(c[A])):Od(c[n]):[],[c,n]),[p,h]=g.useState(c),[m,b]=g.useState(!1);c!==p&&(h(c),b(!1));let v=g.useMemo(()=>D1(m?[]:d),[m,d]),y=g.useRef(Mo),[x,w]=g.useState(Mo),C=g.useRef(Mo),S=()=>{if(!k)return;D(!1);let A=u||s||y.current;jd(A,C.current)||(C.current=A,w(A))},[k,D]=g.useState(!1);return g.useEffect(S),{realtimeValidation:l||v||u||s||Mo,displayValidation:i==="native"?l||v||x:l||v||u||s||x,updateValidation(A){i==="aria"&&!jd(x,A)?w(A):y.current=A},resetValidation(){let A=Mo;jd(A,C.current)||(C.current=A,w(A)),i==="native"&&D(!1),b(!0)},commitValidation(){i==="native"&&D(!0),b(!0)}}}function Od(e){return e?Array.isArray(e)?e:[e]:[]}function v7(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Od(r)}return[]}function D1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:E1}:null}function jd(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function y7(...e){let t=new Set,r=!1,n={...Md};for(let a of e){var o,s;for(let i of a.validationErrors)t.add(i);r||(r=a.isInvalid);for(let i in n)(o=n)[s=i]||(o[s]=a.validationDetails[i])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function x7({validate:e,validationBehavior:t,...r}){const[n,o]=g.useState(!1),[s,a]=g.useState(null),i=g7(r),l=m7({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&i.close()}}),u=Oo({...r,validationBehavior:t,validate:d=>{if(!e)return;const p=Array.from(d);return e(r.selectionMode==="single"?p[0]:p)},value:l.selectedKeys}),c=l.collection.size===0&&r.hideEmptyContent;return{...u,...l,...i,focusStrategy:s,close(){i.close()},open(d=null){c||(a(d),i.open())},toggle(d=null){c||(a(d),i.toggle())},isFocused:n,setFocused:o}}var _1={};_1={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var I1={};I1={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var N1={};N1={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var A1={};A1={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var M1={};M1={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var O1={};O1={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var j1={};j1={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var F1={};F1={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var B1={};B1={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var z1={};z1={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var L1={};L1={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var V1={};V1={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var R1={};R1={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var K1={};K1={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W1={};W1={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var U1={};U1={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var H1={};H1={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q1={};q1={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var G1={};G1={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z1={};Z1={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Y1={};Y1={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var J1={};J1={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var X1={};X1={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Q1={};Q1={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ew={};ew={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var tw={};tw={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rw={};rw={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var nw={};nw={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var ow={};ow={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var sw={};sw={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var aw={};aw={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var iw={};iw={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lw={};lw={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var uw={};uw={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var cw={};cw={"ar-AE":_1,"bg-BG":I1,"cs-CZ":N1,"da-DK":A1,"de-DE":M1,"el-GR":O1,"en-US":j1,"es-ES":F1,"et-EE":B1,"fi-FI":z1,"fr-FR":L1,"he-IL":V1,"hr-HR":R1,"hu-HU":K1,"it-IT":W1,"ja-JP":U1,"ko-KR":H1,"lt-LT":q1,"lv-LV":G1,"nb-NO":Z1,"nl-NL":Y1,"pl-PL":J1,"pt-BR":X1,"pt-PT":Q1,"ro-RO":ew,"ru-RU":tw,"sk-SK":rw,"sl-SI":nw,"sr-SP":ow,"sv-SE":sw,"tr-TR":aw,"uk-UA":iw,"zh-CN":lw,"zh-TW":uw};function w7(e){return e&&e.__esModule?e.default:e}function C7(e,t,r){let{type:n="menu",isDisabled:o,trigger:s="press"}=e,a=bt(),{triggerProps:i,overlayProps:l}=F0({type:n},t,r),u=h=>{if(!o&&!(s==="longPress"&&!h.altKey)&&r&&r.current)switch(h.key){case"Enter":case" ":if(s==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=Wr(w7(cw),"@react-aria/menu"),{longPressProps:d}=T0({isDisabled:o||s!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&(Rt(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!o&&(Rt(h.target),t.toggle())}};return delete i.onPress,{menuTriggerProps:{...i,...s==="press"?p:d,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function S7(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,s=Ia({usage:"search",sensitivity:"base"}),a=g.useMemo(()=>new Gx(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:i,menuProps:l}=C7({isDisabled:o,type:"listbox"},t,r),u=S=>{if(t.selectionMode==="single")switch(S.key){case"ArrowLeft":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:c}=Ux({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(S){t.setSelectedKeys([S])}}),{isInvalid:d,validationErrors:p,validationDetails:h}=t.displayValidation,{labelProps:m,fieldProps:b,descriptionProps:v,errorMessageProps:y}=Mi({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||p});c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture,i.onPressStart=S=>{S.pointerType!=="touch"&&S.pointerType!=="keyboard"&&!o&&t.toggle(S.pointerType==="virtual"?"first":null)};const x=Bt(e,{labelable:!0}),w=Ce(c,i,b),C=bt();return{labelProps:{...m,onClick:()=>{var S;e.isDisabled||((S=r.current)==null||S.focus(),_c("keyboard"))}},triggerProps:Ce(x,{...w,onKeyDown:Ur(w.onKeyDown,u,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[C,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].join(" "),onFocus(S){t.isFocused||(e.onFocus&&e.onFocus(S),t.setFocused(!0))},onBlur(S){t.isOpen||(e.onBlur&&e.onBlur(S),t.setFocused(!1))}}),valueProps:{id:C},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||(e.onBlur&&e.onBlur(S),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[b["aria-labelledby"],w["aria-label"]&&!b["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:y,isInvalid:d,validationErrors:p,validationDetails:h}}var dw=Symbol("default");function k7(e){const t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(o=>{if(typeof e=="function"){const s=e,a=s(o);return()=>{typeof a=="function"?a():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function jo(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`));if(!t&&!r.slots[dw])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||dw;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function P7(e,t,r){let n=jo(r,e.slot)||{},{ref:o,...s}=n,a=k7(g.useMemo(()=>Ll(t,o),[t,o])),i=ie(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?i.style=l=>{let u=typeof s.style=="function"?s.style(l):s.style,c={...l.defaultStyle,...u},d=typeof e.style=="function"?e.style({...l,defaultStyle:c}):e.style;return{...c,...d}}:i.style={...s.style,...e.style}),[i,a]}var In=g.createContext(null);g.forwardRef(function(t,r){[t,r]=P7(t,r,In);let{validationErrors:n,validationBehavior:o="native",children:s,className:a,...i}=t;const l=g.useMemo(()=>d$({className:a}),[a]);return f.jsx("form",{noValidate:o!=="native",...i,ref:r,className:l,children:f.jsx(In.Provider,{value:{...t,validationBehavior:o},children:f.jsx(T1.Provider,{value:n??{},children:s})})})});var fw=new WeakMap;function $7(e){var t,r,n,o,s,a;const i=tt(),{validationBehavior:l}=jo(In)||{},[u,c]=pt(e,Om.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,{ref:p,as:h,label:m,name:b,isLoading:v,selectorIcon:y,isOpen:x,defaultOpen:w,onOpenChange:C,startContent:S,endContent:k,description:D,renderValue:$,onSelectionChange:_,placeholder:A,isVirtualized:N,itemHeight:M=36,maxListboxHeight:O=256,children:L,disallowEmptySelection:I=!1,selectionMode:z="single",spinnerRef:F,scrollRef:B,popoverProps:U={},scrollShadowProps:E={},listboxProps:j={},spinnerProps:T={},validationState:V,onChange:K,onClose:G,className:Z,classNames:W,validationBehavior:ne=(n=l??i?.validationBehavior)!=null?n:"native",hideEmptyContent:X=!1,onClear:q,...ee}=u,ue=Pe(B),te={popoverProps:ie({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},U),scrollShadowProps:ie({ref:ue,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},E),listboxProps:ie({disableAnimation:d},j)},Ee=h||"button",ve=typeof Ee=="string",oe=Pe(p),pe=g.useRef(null),xe=g.useRef(null),he=g.useRef(null);let se=x7({...u,isOpen:x,selectionMode:z,disallowEmptySelection:I,validationBehavior:ne,children:L,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:w,hideEmptyContent:X,onOpenChange:re=>{C?.(re),re||G?.()},onSelectionChange:re=>{_?.(re),K&&typeof K=="function"&&K({target:{...oe.current&&{...oe.current,name:oe.current.name},value:Array.from(re).join(",")}}),se.commitValidation()}});se={...se,...e.isDisabled&&{disabledKeys:new Set([...se.collection.getKeys()])}},En(()=>{var re;(re=oe.current)!=null&&re.value&&se.setSelectedKeys(new Set([...se.selectedKeys,oe.current.value]))},[oe.current]);const{labelProps:He,triggerProps:ge,valueProps:_e,menuProps:Ke,descriptionProps:qe,errorMessageProps:wt,isInvalid:Ct,validationErrors:Ge,validationDetails:Ae}=S7({...u,disallowEmptySelection:I,isDisabled:e.isDisabled},se,pe),mt=g.useCallback(()=>{var re;se.setSelectedKeys(new Set([])),q?.(),(re=pe.current)==null||re.focus()},[q,se]),{pressProps:St}=jt({isDisabled:!!e?.isDisabled,onPress:mt}),gt=e.isInvalid||V==="invalid"||Ct,{isPressed:er,buttonProps:Xe}=di(ge,pe),{focusProps:Kn,isFocused:Lr,isFocusVisible:Wo}=nt(),{focusProps:dr,isFocusVisible:Ie}=nt(),{isHovered:Qe,hoverProps:tr}=vt({isDisabled:e.isDisabled}),It=Ty({labelPlacement:e.labelPlacement,label:m}),Vr=!!A,Sl=It==="outside-left"||It==="outside"||It==="outside-top",Uo=It==="inside",rr=It==="outside-left",kl=e.isClearable,Pl=se.isOpen||Vr||!!((s=se.selectedItems)!=null&&s.length)||!!S||!!k||!!e.isMultiline,et=!!((a=se.selectedItems)!=null&&a.length),Ks=!!m,$l=Ks&&(rr||Sl&&Vr),Ws=P(W?.base,Z),Me=g.useMemo(()=>Om({...c,isInvalid:gt,isClearable:kl,labelPlacement:It,disableAnimation:d}),[ft(c),gt,It,d]);Fc({isDisabled:!se.isOpen});const El=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:gt,validationErrors:Ge,validationDetails:Ae}):u.errorMessage||Ge?.join(" "),Us=!!D||!!El,Jh=!!k;g.useEffect(()=>{if(se.isOpen&&he.current&&pe.current){let re=pe.current.getBoundingClientRect(),Un=he.current;Un.style.width=re.width+"px"}},[se.isOpen]);const Xh=g.useCallback((re={})=>({"data-slot":"base","data-filled":H(Pl),"data-has-value":H(et),"data-has-label":H(Ks),"data-has-helper":H(Us),"data-has-end-content":H(Jh),"data-invalid":H(gt),"data-has-label-outside":H($l),className:Me.base({class:P(Ws,re.className)}),...re}),[Me,Us,et,Ks,$l,Pl,Ws]),Qh=g.useCallback((re={})=>({ref:pe,"data-slot":"trigger","data-open":H(se.isOpen),"data-disabled":H(e?.isDisabled),"data-focus":H(Lr),"data-pressed":H(er),"data-focus-visible":H(Wo),"data-hover":H(Qe),className:Me.trigger({class:W?.trigger}),...ie(Xe,Kn,tr,Fe(ee,{enabled:ve}),Fe(re))}),[Me,pe,se.isOpen,W?.trigger,e?.isDisabled,Lr,er,Wo,Qe,Xe,Kn,tr,ee,ve]),em=g.useCallback((re={})=>({state:se,triggerRef:pe,selectRef:oe,selectionMode:z,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:K,...re}),[se,z,e?.label,e?.autoComplete,e?.name,e?.isDisabled,pe]),tm=g.useCallback((re={})=>({"data-slot":"label",className:Me.label({class:P(W?.label,re.className)}),...He,...re}),[Me,W?.label,He]),$e=g.useCallback((re={})=>({"data-slot":"value",className:Me.value({class:P(W?.value,re.className)}),..._e,...re}),[Me,W?.value,_e]),Wn=g.useCallback((re={})=>({"data-slot":"listboxWrapper",className:Me.listboxWrapper({class:P(W?.listboxWrapper,re?.className)}),style:{maxHeight:O??256,...re.style},...ie(te.scrollShadowProps,re)}),[Me.listboxWrapper,W?.listboxWrapper,te.scrollShadowProps,O]),dR=(re={})=>{const Un=N??se.collection.size>50;return{state:se,ref:xe,isVirtualized:Un,virtualization:Un?{maxListboxHeight:O,itemHeight:M}:void 0,"data-slot":"listbox",className:Me.listbox({class:P(W?.listbox,re?.className)}),scrollShadowProps:te.scrollShadowProps,...ie(te.listboxProps,re,Ke)}},fR=g.useCallback((re={})=>{var Un,Bk;const SR=ie(te.popoverProps,re);return{state:se,triggerRef:pe,ref:he,"data-slot":"popover",scrollRef:xe,triggerType:"listbox",classNames:{content:Me.popoverContent({class:P(W?.popoverContent,re.className)})},...SR,offset:se.selectedItems&&se.selectedItems.length>0?se.selectedItems.length*1e-8+(((Un=te.popoverProps)==null?void 0:Un.offset)||0):(Bk=te.popoverProps)==null?void 0:Bk.offset}},[Me,W?.popoverContent,te.popoverProps,pe,se,se.selectedItems]),pR=g.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":H(!0),"data-open":H(se.isOpen),className:Me.selectorIcon({class:W?.selectorIcon})}),[Me,W?.selectorIcon,se.isOpen]),hR=g.useCallback((re={})=>({...re,"data-slot":"innerWrapper",className:Me.innerWrapper({class:P(W?.innerWrapper,re?.className)})}),[Me,W?.innerWrapper]),mR=g.useCallback((re={})=>({...re,"data-slot":"helperWrapper",className:Me.helperWrapper({class:P(W?.helperWrapper,re?.className)})}),[Me,W?.helperWrapper]),gR=g.useCallback((re={})=>({...re,...qe,"data-slot":"description",className:Me.description({class:P(W?.description,re?.className)})}),[Me,W?.description]),bR=g.useCallback((re={})=>({...re,"data-slot":"mainWrapper",className:Me.mainWrapper({class:P(W?.mainWrapper,re?.className)})}),[Me,W?.mainWrapper]),vR=g.useCallback((re={})=>({...re,"data-slot":"end-wrapper",className:Me.endWrapper({class:P(W?.endWrapper,re?.className)})}),[Me,W?.endWrapper]),yR=g.useCallback((re={})=>({...re,"data-slot":"end-content",className:Me.endContent({class:P(W?.endContent,re?.className)})}),[Me,W?.endContent]),xR=g.useCallback((re={})=>({...re,...wt,"data-slot":"error-message",className:Me.errorMessage({class:P(W?.errorMessage,re?.className)})}),[Me,wt,W?.errorMessage]),wR=g.useCallback((re={})=>({"aria-hidden":H(!0),"data-slot":"spinner",color:"current",size:"sm",...T,...re,ref:F,className:Me.spinner({class:P(W?.spinner,re?.className)})}),[Me,F,T,W?.spinner]),CR=g.useCallback((re={})=>({...re,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":H(Ie),className:Me.clearButton({class:P(W?.clearButton,re?.className)}),...ie(St,dr)}),[Me,Ie,St,dr,W?.clearButton]);return fw.set(se,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:gt,validationBehavior:ne}),{Component:Ee,domRef:oe,state:se,label:m,name:b,triggerRef:pe,isLoading:v,placeholder:A,startContent:S,endContent:k,description:D,selectorIcon:y,hasHelper:Us,labelPlacement:It,hasPlaceholder:Vr,renderValue:$,selectionMode:z,disableAnimation:d,isOutsideLeft:rr,shouldLabelBeOutside:Sl,shouldLabelBeInside:Uo,isInvalid:gt,errorMessage:El,isClearable:kl,getClearButtonProps:CR,getBaseProps:Xh,getTriggerProps:Qh,getLabelProps:tm,getValueProps:$e,getListboxProps:dR,getPopoverProps:fR,getSpinnerProps:wR,getMainWrapperProps:bR,getListboxWrapperProps:Wn,getHiddenSelectProps:em,getInnerWrapperProps:hR,getHelperWrapperProps:mR,getDescriptionProps:gR,getErrorMessageProps:xR,getSelectorIconProps:pR,getEndWrapperProps:vR,getEndContentProps:yR}}var E7=typeof document<"u"?g.useLayoutEffect:()=>{};function T7(e){const t=g.useRef(null);return E7(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function D7(e,t,r){let n=g.useRef(t),o=T7(()=>{r&&r(n.current)});g.useEffect(()=>{var s;let a=(s=e?.current)==null?void 0:s.form;return a?.addEventListener("reset",o),()=>{a?.removeEventListener("reset",o)}},[e,o])}function ji(e,t,r){let{validationBehavior:n,focus:o}=e;ze(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(I7(r.current))}});let s=g.useRef(!1),a=Pt(()=>{s.current||t.resetValidation()}),i=Pt(u=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&r&&d&&N7(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),_c("keyboard")}u.preventDefault()}),l=Pt(()=>{t.commitValidation()});g.useEffect(()=>{let u=r?.current;if(!u)return;let c=u.form,d=c?.reset;return c&&(c.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(c),s.current=!1}),u.addEventListener("invalid",i),u.addEventListener("change",l),c?.addEventListener("reset",a),()=>{u.removeEventListener("invalid",i),u.removeEventListener("change",l),c?.removeEventListener("reset",a),c&&(c.reset=d)}},[r,n])}function _7(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function I7(e){return{isInvalid:!e.validity.valid,validationDetails:_7(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function N7(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function A7(e,t,r){var n;let o=fw.get(t)||{},{autoComplete:s,name:a=o.name,isDisabled:i=o.isDisabled,selectionMode:l,onChange:u,form:c}=e,{validationBehavior:d,isRequired:p,isInvalid:h}=o,{visuallyHiddenProps:m}=ky();return D7(e.selectRef,t.selectedKeys,t.setSelectedKeys),ji({validationBehavior:d,focus:()=>{var b;return(b=r.current)==null?void 0:b.focus()}},t,e.selectRef),{containerProps:{...m,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:c,autoComplete:s,disabled:i,"aria-invalid":h||void 0,"aria-required":p&&d==="aria"||void 0,required:p&&d==="native",name:a,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(b=>String(b)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:b=>{t.setSelectedKeys(b.target.value),u?.(b)}}}}function M7(e){var t;let{state:r,triggerRef:n,selectRef:o,label:s,name:a,isDisabled:i,form:l}=e,{containerProps:u,selectProps:c}=A7({...e,selectRef:o},r,n);return r.collection.size<=300?f.jsx("div",{...u,"data-testid":"hidden-select-container",children:f.jsxs("label",{children:[s,f.jsxs("select",{...c,ref:o,children:[f.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let p=r.collection.getItem(d);if(p?.type==="item")return f.jsx("option",{value:p.key,children:p.textValue},p.key)})]})]})}):a?f.jsx("input",{autoComplete:c.autoComplete,disabled:i,form:l,name:a,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}function O7(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:s,offset:a=7,crossOffset:i=0,scrollRef:l,shouldFlip:u,boundaryElement:c,isDismissable:d=!0,shouldCloseOnBlur:p=!0,shouldCloseOnScroll:h=!0,placement:m="top",containerPadding:b,shouldCloseOnInteractOutside:v,isNonModal:y,isKeyboardDismissDisabled:x,updatePositionDeps:w=[],...C}=e,S=y??!0,k=C.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:$}=Wc({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:p,isDismissable:d||k,isKeyboardDismissDisabled:x,shouldCloseOnInteractOutside:v||(L=>{var I;return!((I=n.current)!=null&&I.contains(L))}),disableOutsideEvents:!S},o),{overlayProps:_,arrowProps:A,placement:N,updatePosition:M,triggerAnchorPoint:O}=a0({...C,shouldFlip:u,crossOffset:i,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:c,containerPadding:b,placement:f1(m),offset:s?a+3:a,onClose:S&&!k&&h?t.close:()=>{}});return En(()=>{w.length&&M()},w),g.useEffect(()=>{var L,I;if(t.isOpen&&o.current)return S?TA((L=r?.current)!=null?L:o.current):EA([(I=r?.current)!=null?I:o.current])},[S,t.isOpen,o,r]),{popoverProps:ie(D,_),arrowProps:A,underlayProps:$,placement:N,triggerAnchorPoint:O}}var j7="top";function F7(e){var t,r,n;const o=tt(),[s,a]=pt(e,ta.variantKeys),{as:i,ref:l,children:u,state:c,triggerRef:d,scrollRef:p,defaultOpen:h,onOpenChange:m,isOpen:b,isNonModal:v=!0,shouldFlip:y=!0,containerPadding:x=12,shouldBlockScroll:w=!1,isDismissable:C=!0,shouldCloseOnBlur:S,portalContainer:k,updatePositionDeps:D,dialogProps:$,placement:_=j7,triggerType:A="dialog",showArrow:N=!1,offset:M=7,crossOffset:O=0,boundaryElement:L,isKeyboardDismissDisabled:I,shouldCloseOnInteractOutside:z,shouldCloseOnScroll:F,triggerAnchorPoint:B,motionProps:U,className:E,classNames:j,onClose:T,...V}=s,K=i||"div",G=Pe(l),Z=g.useRef(null),W=g.useRef(!1),ne=d||Z,X=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,q=gi({isOpen:b,defaultOpen:h,onOpenChange:Ae=>{m?.(Ae),Ae||T?.()}}),ee=c||q,{popoverProps:ue,underlayProps:te,placement:Ee}=O7({triggerRef:ne,isNonModal:v,popoverRef:G,placement:_,offset:M,scrollRef:p,isDismissable:C,shouldCloseOnBlur:S,boundaryElement:L,crossOffset:O,shouldFlip:y,containerPadding:x,updatePositionDeps:D,isKeyboardDismissDisabled:I,shouldCloseOnScroll:F,shouldCloseOnInteractOutside:z,triggerAnchorPoint:B},ee),ve=g.useMemo(()=>Ee?$A(Ee,_)?Ee:_:null,[Ee,_]),{triggerProps:oe}=F0({type:A},ee,ne),{isFocusVisible:pe,isFocused:xe,focusProps:he}=nt(),se=g.useMemo(()=>ta({...a}),[ft(a)]),He=P(j?.base,E),ge={"--trigger-anchor-point":B?`${B.x}px ${B.y}px`:void 0};Fc({isDisabled:!(w&&ee.isOpen)});const _e=(Ae={})=>({ref:G,...ie(ue,V,Ae),style:ie(ue.style,V.style,Ae.style)}),Ke=(Ae={})=>({"data-slot":"base","data-open":H(ee.isOpen),"data-focus":H(xe),"data-arrow":H(N),"data-focus-visible":H(pe),"data-placement":Ee?Ni(Ee,_):void 0,...ie(he,$,Ae),className:se.base({class:P(He)}),style:{outline:"none",...ge}}),qe=g.useCallback((Ae={})=>({"data-slot":"content","data-open":H(ee.isOpen),"data-arrow":H(N),"data-placement":Ee?Ni(Ee,_):void 0,className:se.content({class:P(j?.content,Ae.className)})}),[se,ee.isOpen,N,ve,_,j,Ee]),wt=g.useCallback(Ae=>{var mt;let St;return Ae.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?St=setTimeout(()=>{W.current=!0},100):W.current=!0,(mt=oe.onPress)==null||mt.call(oe,Ae),()=>{clearTimeout(St)}},[oe?.onPress]),Ct=g.useCallback((Ae={},mt=null)=>{const{isDisabled:St,...gt}=Ae;return{"data-slot":"trigger",...ie({"aria-haspopup":"dialog"},oe,gt),onPress:wt,isDisabled:St,className:se.trigger({class:P(j?.trigger,Ae.className),isTriggerDisabled:St}),ref:Ll(mt,ne)}},[ee,oe,wt,ne]),Ge=g.useCallback((Ae={})=>({"data-slot":"backdrop",className:se.backdrop({class:j?.backdrop}),onClick:mt=>{if(!W.current){mt.preventDefault();return}ee.close(),W.current=!1},...te,...Ae}),[se,ee.isOpen,j,te]);return{state:ee,Component:K,children:u,classNames:j,showArrow:N,triggerRef:ne,placement:ve,isNonModal:v,popoverRef:G,portalContainer:k,isOpen:ee.isOpen,onClose:ee.close,disableAnimation:X,shouldBlockScroll:w,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:U,getBackdropProps:Ge,getPopoverProps:_e,getTriggerProps:Ct,getDialogProps:Ke,getContentProps:qe}}var pw=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),hw=Se(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:s={},...a},i)=>{let l=o;return s.originX!==void 0||s.originY!==void 0?l={...l,transformOrigin:s}:r&&(l={...l,...d1(r==="center"?"top":r)}),n?f.jsx("div",{...a,ref:i,children:e}):f.jsx(mo,{features:pw,children:f.jsx(go.div,{ref:i,animate:"enter",exit:"exit",initial:"initial",style:l,variants:mi.scaleSpringOpacity,...ie(a,t),children:e})})});hw.displayName="HeroUI.FreeSoloPopoverWrapper";var mw=Se(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:s,state:a,placement:i,backdrop:l,portalContainer:u,disableAnimation:c,motionProps:d,isNonModal:p,getPopoverProps:h,getBackdropProps:m,getDialogProps:b,getContentProps:v}=F7({...n,ref:o}),y=Nt.useRef(null),{dialogProps:x,titleProps:w}=qy({},y),C=b({...!r&&{ref:y},...x}),S=Nt.useMemo(()=>l==="transparent"?null:c?f.jsx("div",{...m()}):f.jsx(mo,{features:pw,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.fade,...m()})}),[l,c,m]);return f.jsxs($y,{portalContainer:u,children:[!p&&S,f.jsx(s,{...h(),children:f.jsxs(hw,{disableAnimation:c,motionProps:d,placement:i,tabIndex:-1,transformOrigin:t,...C,children:[!p&&f.jsx(ci,{onDismiss:a.close}),f.jsx("div",{...v(),children:typeof e=="function"?e(w):e}),f.jsx(ci,{onDismiss:a.close})]})})]})});mw.displayName="HeroUI.FreeSoloPopover";var B7=mw;function z7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function L7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);z7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var gw=Se((e,t)=>{const{Component:r,children:n,getBaseProps:o}=L7({...e,ref:t});return f.jsx(r,{...o(),children:n})});gw.displayName="HeroUI.ScrollShadow";var Fd=gw,V7=Se(function(t,r){var n;const{Component:o,state:s,label:a,hasHelper:i,isLoading:l,triggerRef:u,selectorIcon:c=f.jsx(Hy,{}),description:d,errorMessage:p,isInvalid:h,startContent:m,endContent:b,placeholder:v,renderValue:y,shouldLabelBeOutside:x,disableAnimation:w,getBaseProps:C,getLabelProps:S,getTriggerProps:k,getValueProps:D,getListboxProps:$,getPopoverProps:_,getSpinnerProps:A,getMainWrapperProps:N,getInnerWrapperProps:M,getHiddenSelectProps:O,getHelperWrapperProps:L,getListboxWrapperProps:I,getDescriptionProps:z,getErrorMessageProps:F,getSelectorIconProps:B,isClearable:U,getClearButtonProps:E,getEndWrapperProps:j,getEndContentProps:T}=$7({...t,ref:r}),V=a?f.jsx("label",{...S(),children:a}):null,K=g.cloneElement(c,B()),G=g.useMemo(()=>{var ee;return U&&((ee=s.selectedItems)!=null&&ee.length)?f.jsx("span",{...E(),children:f.jsx(Kc,{})}):null},[U,E,(n=s.selectedItems)==null?void 0:n.length]),Z=g.useMemo(()=>G?f.jsxs("div",{...j(),children:[G,b&&f.jsx("span",{...T(),children:b})]}):b&&f.jsx("span",{...T(),children:b}),[G,b,j,T]),W=g.useMemo(()=>{const ee=h&&p;return!i||!(ee||d)?null:f.jsx("div",{...L(),children:ee?f.jsx("div",{...F(),children:p}):f.jsx("div",{...z(),children:d})})},[i,h,p,d,L,F,z]),ne=g.useMemo(()=>{var ee;if(!((ee=s.selectedItems)!=null&&ee.length))return v;if(y&&typeof y=="function"){const ue=[...s.selectedItems].map(te=>({key:te.key,data:te.value,type:te.type,props:te.props,textValue:te.textValue,rendered:te.rendered,"aria-label":te["aria-label"]}));return y(ue)}return s.selectedItems.map(ue=>ue.textValue).join(", ")},[s.selectedItems,y,v]),X=g.useMemo(()=>l?f.jsx(jy,{...A()}):K,[l,K,A]),q=g.useMemo(()=>s.isOpen?f.jsx(B7,{..._(),children:f.jsx(Fd,{...I(),children:f.jsx(_d,{...$()})})}):null,[s.isOpen,_,s,u,I,$]);return f.jsxs("div",{...C(),children:[f.jsx(M7,{...O()}),x?V:null,f.jsxs("div",{...N(),children:[f.jsxs(o,{...k(),children:[x?null:V,f.jsxs("div",{...M(),children:[m,f.jsx("span",{...D(),children:ne}),b&&s.selectedItems&&f.jsx(wo,{elementType:"span",children:","}),Z]}),X]}),W]}),w?q:f.jsx(Wa,{children:q})]})}),Ns=V7;const R7=Be`
230
+ color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Dd(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const WA=(e,t)=>Math.abs(e-t)<1,UA=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},HA=e=>e,qA=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},GA=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:i,height:l}=a;t({width:Math.round(i),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(a=>{const i=a[0];if(i?.borderBoxSize){const l=i.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},b1={passive:!0},ZA=typeof window>"u"?!0:"onscrollend"in window,YA=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const s=e.options.useScrollendEvent&&ZA?()=>{}:UA(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,s(),t(o,u)},i=a(!0),l=a(!1);return l(),r.addEventListener("scroll",i,b1),r.addEventListener("scrollend",l,b1),()=>{r.removeEventListener("scroll",i),r.removeEventListener("scrollend",l)}},JA=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},XA=(e,{adjustments:t=0,behavior:r},n)=>{var o,s;const a=e+t;(s=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class QA{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var s;return(s=n())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=n())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:HA,rangeExtractor:qA,onChange:()=>{},measureElement:JA,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=Ao(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,s=new Map;for(let a=n-1;a>=0;a--){const i=r[a];if(o.has(i.lane))continue;const l=s.get(i.lane);if(l==null||i.end>l.end?s.set(i.lane,i):i.end<l.end&&o.set(i.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,i)=>a.end===i.end?a.index-i.index:a.end-i.end)[0]:void 0},this.getMeasurementOptions=Ao(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=Ao(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a},i)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<r;c++){const d=s(c),p=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=p?p.end+this.options.gap:n+o,m=i.get(d),b=typeof m=="number"?m:this.options.estimateSize(c),v=h+b,y=p?p.lane:c%this.options.lanes;u[c]={index:c,start:h,size:b,end:v,key:d,lane:y}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Ao(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?e7({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Ao(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,s,a)=>s===null||a===null?[]:r({startIndex:s,endIndex:a,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),s=this.measurementsCache[o];if(!s)return;const a=s.key,i=this.elementsCache.get(a);i!==r&&(i&&this.observer.unobserve(i),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const s=this.itemSizeCache.get(o.key)??o.size,a=n-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",a),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=Ao(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let s=0,a=r.length;s<a;s++){const i=r[s],l=n[i];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Dd(n[v1(0,n.length-1,o=>Dd(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),s=this.getScrollOffset();n==="auto"&&r>=s+o&&(n="end"),n==="end"&&(r-=o);const a=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const s=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+s-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const i=o.start-this.options.scrollPaddingStart+(o.size-s)/2;switch(n){case"center":return[this.getOffsetForAlignment(i,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(r,n);if(!s)return;const[a,i]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=Dd(this.getOffsetForIndex(r,i));WA(u,this.getScrollOffset())||this.scrollToIndex(r,{align:i,behavior:o})}else this.scrollToIndex(r,{align:i,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const v1=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,s=r(o);if(s<n)e=o+1;else if(s>n)t=o-1;else return o}return e>0?e-1:0};function e7({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,s=v1(0,n,i=>e[i].start,r);let a=s;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:s,endIndex:a}}const y1=typeof document<"u"?Nt.useLayoutEffect:Nt.useEffect;function t7(e){const t=Nt.useReducer(()=>({}),{})[1],r={...e,onChange:(o,s)=>{var a;s?Hn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,s)}},[n]=Nt.useState(()=>new QA(r));return n.setOptions(r),y1(()=>n._didMount(),[]),y1(()=>n._willUpdate()),n}function x1(e){return t7({observeElementRect:GA,observeElementOffset:YA,scrollToFn:XA,...e})}function r7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function n7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);r7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var o7=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},s7=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},a7=e=>{var t;const{Component:r,state:n,color:o,variant:s,itemClasses:a,getBaseProps:i,topContent:l,bottomContent:u,hideEmptyContent:c,hideSelectedIcon:d,shouldHighlightOnFocus:p,disableAnimation:h,getEmptyContentProps:m,getListProps:b,scrollShadowProps:v}=e,{virtualization:y}=e;if(!y||!Kr(y)&&!y.maxListboxHeight&&!y.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:x,itemHeight:w}=y,C=Math.min(x,w*n.collection.size),S=g.useRef(null),k=g.useMemo(()=>o7([...n.collection],w),[n.collection,w]),D=x1({count:[...n.collection].length,getScrollElement:()=>S.current,estimateSize:I=>k[I]}),$=D.getVirtualItems(),_=D.getTotalSize(),{getBaseProps:A}=n7({...v}),N=I=>{var z;const F=[...n.collection][I.index];if(!F)return null;const B={color:o,item:F,state:n,variant:s,disableAnimation:h,hideSelectedIcon:d,...F.props},U={position:"absolute",top:0,left:0,width:"100%",height:`${I.size}px`,transform:`translateY(${I.start}px)`};if(F.type==="section")return f.jsx(g1,{...B,itemClasses:a,style:{...U,...B.style}},F.key);let E=f.jsx(Td,{...B,classNames:ie(a,(z=F.props)==null?void 0:z.classNames),shouldHighlightOnFocus:p,style:{...U,...B.style}},F.key);return F.wrapper&&(E=F.wrapper(E)),E},[M,O]=g.useState({isTop:!1,isBottom:!0,isMiddle:!1}),L=f.jsxs(r,{...b(),"data-virtual-scroll-height":_,"data-virtual-scroll-top":(t=S?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!c&&f.jsx("li",{children:f.jsx("div",{...m()})}),f.jsx("div",{...Fe(A()),ref:S,style:{height:x,overflow:"auto"},onScroll:I=>{O(s7(I.target))},children:C>0&&w>0&&f.jsx("div",{style:{height:`${_}px`,width:"100%",position:"relative"},children:$.map(I=>N(I))})})]});return f.jsxs("div",{...i(),children:[l,L,u]})},i7=a7,l7=Se(function(t,r){const{isVirtualized:n,...o}=t,s=FA({...o,ref:r}),{Component:a,state:i,color:l,variant:u,itemClasses:c,getBaseProps:d,topContent:p,bottomContent:h,hideEmptyContent:m,hideSelectedIcon:b,shouldHighlightOnFocus:v,disableAnimation:y,getEmptyContentProps:x,getListProps:w}=s;if(n)return f.jsx(i7,{...t,...s});const C=f.jsxs(a,{...w(),children:[!i.collection.size&&!m&&f.jsx("li",{children:f.jsx("div",{...x()})}),[...i.collection].map(S=>{var k;const D={color:l,item:S,state:i,variant:u,disableAnimation:y,hideSelectedIcon:b,...S.props};if(S.type==="section")return f.jsx(g1,{...D,itemClasses:c},S.key);let $=f.jsx(Td,{...D,classNames:ie(c,(k=S.props)==null?void 0:k.classNames),shouldHighlightOnFocus:v},S.key);return S.wrapper&&($=S.wrapper($)),$})]});return f.jsxs("div",{...d(),children:[p,C,h]})}),_d=l7;function u7(e){var t,r;const n=tt(),[o,s]=pt(e,zm.variantKeys),{as:a,children:i,isLoaded:l=!1,className:u,classNames:c,...d}=o,p=a||"div",h=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,m=g.useMemo(()=>zm({...s,disableAnimation:h}),[ft(s),h,i]),b=P(c?.base,u);return{Component:p,children:i,slots:m,classNames:c,getSkeletonProps:(x={})=>({"data-loaded":H(l),className:m.base({class:P(b,x?.className)}),...d}),getContentProps:(x={})=>({className:m.content({class:P(c?.content,x?.className)})})}}var w1=Se((e,t)=>{const{Component:r,children:n,getSkeletonProps:o,getContentProps:s}=u7({...e});return f.jsx(r,{ref:t,...o(),children:f.jsx("div",{...s(),children:n})})});w1.displayName="HeroUI.Skeleton";var Id=w1;function c7({isLoading:e,phones:t,selectedPhoneSlug:r,onPhoneSelect:n,classNames:o}){const s=g.useCallback(a=>{if(a!=="all"){const i=Array.from(a)[0];i&&n(i)}},[n]);return e?f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx("ul",{className:"w-full flex flex-col gap-0.5",children:Array.from({length:10},(a,i)=>f.jsxs("li",{className:"px-2 py-1.5 w-full h-full flex items-center gap-3 rounded-lg",children:[f.jsx(Id,{className:"rounded-full shrink-0 bg-primary-100 w-10 h-10"}),f.jsx(Id,{className:"rounded-lg h-4 w-40 bg-content2"})]},`skeleton-${i}`))})}):f.jsx(_d,{selectionMode:"single",variant:"flat","aria-label":"Kies een telefoon",selectedKeys:r?[r]:[],onSelectionChange:s,classNames:{base:P("flex-1 min-h-0 overflow-y-auto p-0",o?.base),...o},children:t.map(a=>f.jsx(_n,{textValue:a.fullName,children:f.jsxs("div",{className:"flex items-center gap-3",children:[a.productVersion?.media?.main?.url?f.jsx(Ss,{alt:a.productVersion.media.main.altText||a.fullName,src:Rc(a.productVersion.media.main.url,64,64),size:"md",radius:"full",color:"primary",classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}):f.jsx(Ss,{size:"md",radius:"full",color:"primary",showFallback:!0,fallback:f.jsx(eu,{size:24,className:"text-primary"}),classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}),f.jsx("span",{className:"text-sm font-medium",children:a.fullName})]})},a.slug))})}var[d7,Nd]=bn({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),C1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Nd(),d=P(c?.body,o);return f.jsx(i,{ref:l,className:(r=u.body)==null?void 0:r.call(u,{class:d}),...a,children:s})});C1.displayName="HeroUI.CardBody";var S1=C1,k1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Nd(),d=P(c?.footer,o);return f.jsx(i,{ref:l,className:(r=u.footer)==null?void 0:r.call(u,{class:d}),...a,children:s})});k1.displayName="HeroUI.CardFooter";var f7=k1,P1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Nd(),d=P(c?.header,o);return f.jsx(i,{ref:l,className:(r=u.header)==null?void 0:r.call(u,{class:d}),...a,children:s})});P1.displayName="HeroUI.CardHeader";var p7=P1;function h7(e){var t,r,n,o;const s=tt(),[a,i]=pt(e,Tm.variantKeys),{ref:l,as:u,children:c,onClick:d,onPress:p,autoFocus:h,className:m,classNames:b,allowTextSelectionOnPress:v=!0,...y}=a,x=Pe(l),w=u||(e.isPressable?"button":"div"),C=typeof w=="string",S=(r=(t=e.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:s?.disableRipple)!=null?o:!1,D=P(b?.base,m),{onClear:$,onPress:_,ripples:A}=My(),N=g.useCallback(V=>{k||S||x.current&&_(V)},[k,S,x,_]),{buttonProps:M,isPressed:O}=di({onPress:nr(p,N),elementType:u,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:v,...y},x),{hoverProps:L,isHovered:I}=vt({isDisabled:!e.isHoverable,...y}),{isFocusVisible:z,isFocused:F,focusProps:B}=nt({autoFocus:h}),U=g.useMemo(()=>Tm({...i,disableAnimation:S}),[ft(i),S]),E=g.useMemo(()=>({slots:U,classNames:b,disableAnimation:S,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[U,b,e.isDisabled,e.isFooterBlurred,S,e.fullWidth]),j=g.useCallback((V={})=>({ref:x,className:U.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":H(I),"data-pressed":H(O),"data-focus":H(F),"data-focus-visible":H(z),"data-disabled":H(e.isDisabled),...ie(e.isPressable?{...M,...B,role:"button"}:{},e.isHoverable?L:{},Fe(y,{enabled:C}),Fe(V))}),[x,U,D,C,e.isPressable,e.isHoverable,e.isDisabled,I,O,z,M,B,L,y]),T=g.useCallback(()=>({ripples:A,onClear:$}),[A,$]);return{context:E,domRef:x,Component:w,classNames:b,children:c,isHovered:I,isPressed:O,disableAnimation:S,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:N,isFocusVisible:z,getCardProps:j,getRippleProps:T}}var $1=Se((e,t)=>{const{children:r,context:n,Component:o,isPressable:s,disableAnimation:a,disableRipple:i,getCardProps:l,getRippleProps:u}=h7({...e,ref:t});return f.jsxs(o,{...l(),children:[f.jsx(d7,{value:n,children:r}),s&&!a&&!i&&f.jsx(Ay,{...u()})]})});$1.displayName="HeroUI.Card";var Ad=$1;function m7(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:s,selectionMode:a}}=$d(e),i=g.useMemo(()=>!e.isLoading&&s.size!==0?Array.from(s).filter(Boolean).filter(u=>!t.getItem(u)):[],[s,t]),l=s.size!==0?Array.from(s).map(u=>t.getItem(u)).filter(Boolean):null;return i.length&&console.warn(`Select: Keys "${i.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:a,selectedKeys:s,setSelectedKeys:o.bind(n),selectedItems:l}}function g7(e){let t=gi(e),[r,n]=g.useState(null),[o,s]=g.useState([]),a=()=>{s([]),t.close()};return{focusStrategy:r,...t,open(u=null){n(u),t.open()},toggle(u=null){n(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,c)=>{s(d=>c>d.length?d:[...d.slice(0,c),u])},closeSubmenu:(u,c)=>{s(d=>d[c]===u?d.slice(0,c):d)}}}const Md={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},E1={...Md,customError:!0,valid:!1},Mo={isInvalid:!1,validationDetails:Md,validationErrors:[]},T1=g.createContext({}),Oi="__formValidationState"+Date.now();function Oo(e){if(e[Oi]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}=e[Oi];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}}return b7(e)}function b7(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:s,validate:a,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:E1}:null,u=g.useMemo(()=>{if(!a||o==null)return null;let A=v7(a,o);return D1(A)},[a,o]);s?.validationDetails.valid&&(s=void 0);let c=g.useContext(T1),d=g.useMemo(()=>n?Array.isArray(n)?n.flatMap(A=>Od(c[A])):Od(c[n]):[],[c,n]),[p,h]=g.useState(c),[m,b]=g.useState(!1);c!==p&&(h(c),b(!1));let v=g.useMemo(()=>D1(m?[]:d),[m,d]),y=g.useRef(Mo),[x,w]=g.useState(Mo),C=g.useRef(Mo),S=()=>{if(!k)return;D(!1);let A=u||s||y.current;jd(A,C.current)||(C.current=A,w(A))},[k,D]=g.useState(!1);return g.useEffect(S),{realtimeValidation:l||v||u||s||Mo,displayValidation:i==="native"?l||v||x:l||v||u||s||x,updateValidation(A){i==="aria"&&!jd(x,A)?w(A):y.current=A},resetValidation(){let A=Mo;jd(A,C.current)||(C.current=A,w(A)),i==="native"&&D(!1),b(!0)},commitValidation(){i==="native"&&D(!0),b(!0)}}}function Od(e){return e?Array.isArray(e)?e:[e]:[]}function v7(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Od(r)}return[]}function D1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:E1}:null}function jd(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function y7(...e){let t=new Set,r=!1,n={...Md};for(let a of e){var o,s;for(let i of a.validationErrors)t.add(i);r||(r=a.isInvalid);for(let i in n)(o=n)[s=i]||(o[s]=a.validationDetails[i])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function x7({validate:e,validationBehavior:t,...r}){const[n,o]=g.useState(!1),[s,a]=g.useState(null),i=g7(r),l=m7({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&i.close()}}),u=Oo({...r,validationBehavior:t,validate:d=>{if(!e)return;const p=Array.from(d);return e(r.selectionMode==="single"?p[0]:p)},value:l.selectedKeys}),c=l.collection.size===0&&r.hideEmptyContent;return{...u,...l,...i,focusStrategy:s,close(){i.close()},open(d=null){c||(a(d),i.open())},toggle(d=null){c||(a(d),i.toggle())},isFocused:n,setFocused:o}}var _1={};_1={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var I1={};I1={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var N1={};N1={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var A1={};A1={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var M1={};M1={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var O1={};O1={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var j1={};j1={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var F1={};F1={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var B1={};B1={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var z1={};z1={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var L1={};L1={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var V1={};V1={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var R1={};R1={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var K1={};K1={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W1={};W1={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var U1={};U1={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var H1={};H1={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q1={};q1={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var G1={};G1={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z1={};Z1={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Y1={};Y1={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var J1={};J1={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var X1={};X1={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Q1={};Q1={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ew={};ew={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var tw={};tw={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rw={};rw={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var nw={};nw={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var ow={};ow={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var sw={};sw={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var aw={};aw={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var iw={};iw={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lw={};lw={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var uw={};uw={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var cw={};cw={"ar-AE":_1,"bg-BG":I1,"cs-CZ":N1,"da-DK":A1,"de-DE":M1,"el-GR":O1,"en-US":j1,"es-ES":F1,"et-EE":B1,"fi-FI":z1,"fr-FR":L1,"he-IL":V1,"hr-HR":R1,"hu-HU":K1,"it-IT":W1,"ja-JP":U1,"ko-KR":H1,"lt-LT":q1,"lv-LV":G1,"nb-NO":Z1,"nl-NL":Y1,"pl-PL":J1,"pt-BR":X1,"pt-PT":Q1,"ro-RO":ew,"ru-RU":tw,"sk-SK":rw,"sl-SI":nw,"sr-SP":ow,"sv-SE":sw,"tr-TR":aw,"uk-UA":iw,"zh-CN":lw,"zh-TW":uw};function w7(e){return e&&e.__esModule?e.default:e}function C7(e,t,r){let{type:n="menu",isDisabled:o,trigger:s="press"}=e,a=bt(),{triggerProps:i,overlayProps:l}=F0({type:n},t,r),u=h=>{if(!o&&!(s==="longPress"&&!h.altKey)&&r&&r.current)switch(h.key){case"Enter":case" ":if(s==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=Wr(w7(cw),"@react-aria/menu"),{longPressProps:d}=T0({isDisabled:o||s!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&(Rt(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!o&&(Rt(h.target),t.toggle())}};return delete i.onPress,{menuTriggerProps:{...i,...s==="press"?p:d,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function S7(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,s=Ia({usage:"search",sensitivity:"base"}),a=g.useMemo(()=>new Gx(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:i,menuProps:l}=C7({isDisabled:o,type:"listbox"},t,r),u=S=>{if(t.selectionMode==="single")switch(S.key){case"ArrowLeft":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:c}=Ux({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(S){t.setSelectedKeys([S])}}),{isInvalid:d,validationErrors:p,validationDetails:h}=t.displayValidation,{labelProps:m,fieldProps:b,descriptionProps:v,errorMessageProps:y}=Mi({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||p});c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture,i.onPressStart=S=>{S.pointerType!=="touch"&&S.pointerType!=="keyboard"&&!o&&t.toggle(S.pointerType==="virtual"?"first":null)};const x=Bt(e,{labelable:!0}),w=Ce(c,i,b),C=bt();return{labelProps:{...m,onClick:()=>{var S;e.isDisabled||((S=r.current)==null||S.focus(),_c("keyboard"))}},triggerProps:Ce(x,{...w,onKeyDown:Ur(w.onKeyDown,u,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[C,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].join(" "),onFocus(S){t.isFocused||(e.onFocus&&e.onFocus(S),t.setFocused(!0))},onBlur(S){t.isOpen||(e.onBlur&&e.onBlur(S),t.setFocused(!1))}}),valueProps:{id:C},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||(e.onBlur&&e.onBlur(S),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[b["aria-labelledby"],w["aria-label"]&&!b["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:y,isInvalid:d,validationErrors:p,validationDetails:h}}var dw=Symbol("default");function k7(e){const t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(o=>{if(typeof e=="function"){const s=e,a=s(o);return()=>{typeof a=="function"?a():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function jo(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`));if(!t&&!r.slots[dw])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||dw;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function P7(e,t,r){let n=jo(r,e.slot)||{},{ref:o,...s}=n,a=k7(g.useMemo(()=>Ll(t,o),[t,o])),i=ie(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?i.style=l=>{let u=typeof s.style=="function"?s.style(l):s.style,c={...l.defaultStyle,...u},d=typeof e.style=="function"?e.style({...l,defaultStyle:c}):e.style;return{...c,...d}}:i.style={...s.style,...e.style}),[i,a]}var In=g.createContext(null);g.forwardRef(function(t,r){[t,r]=P7(t,r,In);let{validationErrors:n,validationBehavior:o="native",children:s,className:a,...i}=t;const l=g.useMemo(()=>d$({className:a}),[a]);return f.jsx("form",{noValidate:o!=="native",...i,ref:r,className:l,children:f.jsx(In.Provider,{value:{...t,validationBehavior:o},children:f.jsx(T1.Provider,{value:n??{},children:s})})})});var fw=new WeakMap;function $7(e){var t,r,n,o,s,a;const i=tt(),{validationBehavior:l}=jo(In)||{},[u,c]=pt(e,Om.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,{ref:p,as:h,label:m,name:b,isLoading:v,selectorIcon:y,isOpen:x,defaultOpen:w,onOpenChange:C,startContent:S,endContent:k,description:D,renderValue:$,onSelectionChange:_,placeholder:A,isVirtualized:N,itemHeight:M=36,maxListboxHeight:O=256,children:L,disallowEmptySelection:I=!1,selectionMode:z="single",spinnerRef:F,scrollRef:B,popoverProps:U={},scrollShadowProps:E={},listboxProps:j={},spinnerProps:T={},validationState:V,onChange:K,onClose:G,className:Z,classNames:W,validationBehavior:ne=(n=l??i?.validationBehavior)!=null?n:"native",hideEmptyContent:X=!1,onClear:q,...ee}=u,ue=Pe(B),te={popoverProps:ie({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},U),scrollShadowProps:ie({ref:ue,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},E),listboxProps:ie({disableAnimation:d},j)},Ee=h||"button",ve=typeof Ee=="string",oe=Pe(p),pe=g.useRef(null),xe=g.useRef(null),he=g.useRef(null);let se=x7({...u,isOpen:x,selectionMode:z,disallowEmptySelection:I,validationBehavior:ne,children:L,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:w,hideEmptyContent:X,onOpenChange:re=>{C?.(re),re||G?.()},onSelectionChange:re=>{_?.(re),K&&typeof K=="function"&&K({target:{...oe.current&&{...oe.current,name:oe.current.name},value:Array.from(re).join(",")}}),se.commitValidation()}});se={...se,...e.isDisabled&&{disabledKeys:new Set([...se.collection.getKeys()])}},En(()=>{var re;(re=oe.current)!=null&&re.value&&se.setSelectedKeys(new Set([...se.selectedKeys,oe.current.value]))},[oe.current]);const{labelProps:He,triggerProps:ge,valueProps:_e,menuProps:Ke,descriptionProps:qe,errorMessageProps:wt,isInvalid:Ct,validationErrors:Ge,validationDetails:Ae}=S7({...u,disallowEmptySelection:I,isDisabled:e.isDisabled},se,pe),mt=g.useCallback(()=>{var re;se.setSelectedKeys(new Set([])),q?.(),(re=pe.current)==null||re.focus()},[q,se]),{pressProps:St}=jt({isDisabled:!!e?.isDisabled,onPress:mt}),gt=e.isInvalid||V==="invalid"||Ct,{isPressed:er,buttonProps:Xe}=di(ge,pe),{focusProps:Kn,isFocused:Lr,isFocusVisible:Wo}=nt(),{focusProps:dr,isFocusVisible:Ie}=nt(),{isHovered:Qe,hoverProps:tr}=vt({isDisabled:e.isDisabled}),It=Ty({labelPlacement:e.labelPlacement,label:m}),Vr=!!A,Sl=It==="outside-left"||It==="outside"||It==="outside-top",Uo=It==="inside",rr=It==="outside-left",kl=e.isClearable,Pl=se.isOpen||Vr||!!((s=se.selectedItems)!=null&&s.length)||!!S||!!k||!!e.isMultiline,et=!!((a=se.selectedItems)!=null&&a.length),Ks=!!m,$l=Ks&&(rr||Sl&&Vr),Ws=P(W?.base,Z),Me=g.useMemo(()=>Om({...c,isInvalid:gt,isClearable:kl,labelPlacement:It,disableAnimation:d}),[ft(c),gt,It,d]);Fc({isDisabled:!se.isOpen});const El=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:gt,validationErrors:Ge,validationDetails:Ae}):u.errorMessage||Ge?.join(" "),Us=!!D||!!El,Jh=!!k;g.useEffect(()=>{if(se.isOpen&&he.current&&pe.current){let re=pe.current.getBoundingClientRect(),Un=he.current;Un.style.width=re.width+"px"}},[se.isOpen]);const Xh=g.useCallback((re={})=>({"data-slot":"base","data-filled":H(Pl),"data-has-value":H(et),"data-has-label":H(Ks),"data-has-helper":H(Us),"data-has-end-content":H(Jh),"data-invalid":H(gt),"data-has-label-outside":H($l),className:Me.base({class:P(Ws,re.className)}),...re}),[Me,Us,et,Ks,$l,Pl,Ws]),Qh=g.useCallback((re={})=>({ref:pe,"data-slot":"trigger","data-open":H(se.isOpen),"data-disabled":H(e?.isDisabled),"data-focus":H(Lr),"data-pressed":H(er),"data-focus-visible":H(Wo),"data-hover":H(Qe),className:Me.trigger({class:W?.trigger}),...ie(Xe,Kn,tr,Fe(ee,{enabled:ve}),Fe(re))}),[Me,pe,se.isOpen,W?.trigger,e?.isDisabled,Lr,er,Wo,Qe,Xe,Kn,tr,ee,ve]),em=g.useCallback((re={})=>({state:se,triggerRef:pe,selectRef:oe,selectionMode:z,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:K,...re}),[se,z,e?.label,e?.autoComplete,e?.name,e?.isDisabled,pe]),tm=g.useCallback((re={})=>({"data-slot":"label",className:Me.label({class:P(W?.label,re.className)}),...He,...re}),[Me,W?.label,He]),$e=g.useCallback((re={})=>({"data-slot":"value",className:Me.value({class:P(W?.value,re.className)}),..._e,...re}),[Me,W?.value,_e]),Wn=g.useCallback((re={})=>({"data-slot":"listboxWrapper",className:Me.listboxWrapper({class:P(W?.listboxWrapper,re?.className)}),style:{maxHeight:O??256,...re.style},...ie(te.scrollShadowProps,re)}),[Me.listboxWrapper,W?.listboxWrapper,te.scrollShadowProps,O]),fR=(re={})=>{const Un=N??se.collection.size>50;return{state:se,ref:xe,isVirtualized:Un,virtualization:Un?{maxListboxHeight:O,itemHeight:M}:void 0,"data-slot":"listbox",className:Me.listbox({class:P(W?.listbox,re?.className)}),scrollShadowProps:te.scrollShadowProps,...ie(te.listboxProps,re,Ke)}},pR=g.useCallback((re={})=>{var Un,Bk;const kR=ie(te.popoverProps,re);return{state:se,triggerRef:pe,ref:he,"data-slot":"popover",scrollRef:xe,triggerType:"listbox",classNames:{content:Me.popoverContent({class:P(W?.popoverContent,re.className)})},...kR,offset:se.selectedItems&&se.selectedItems.length>0?se.selectedItems.length*1e-8+(((Un=te.popoverProps)==null?void 0:Un.offset)||0):(Bk=te.popoverProps)==null?void 0:Bk.offset}},[Me,W?.popoverContent,te.popoverProps,pe,se,se.selectedItems]),hR=g.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":H(!0),"data-open":H(se.isOpen),className:Me.selectorIcon({class:W?.selectorIcon})}),[Me,W?.selectorIcon,se.isOpen]),mR=g.useCallback((re={})=>({...re,"data-slot":"innerWrapper",className:Me.innerWrapper({class:P(W?.innerWrapper,re?.className)})}),[Me,W?.innerWrapper]),gR=g.useCallback((re={})=>({...re,"data-slot":"helperWrapper",className:Me.helperWrapper({class:P(W?.helperWrapper,re?.className)})}),[Me,W?.helperWrapper]),bR=g.useCallback((re={})=>({...re,...qe,"data-slot":"description",className:Me.description({class:P(W?.description,re?.className)})}),[Me,W?.description]),vR=g.useCallback((re={})=>({...re,"data-slot":"mainWrapper",className:Me.mainWrapper({class:P(W?.mainWrapper,re?.className)})}),[Me,W?.mainWrapper]),yR=g.useCallback((re={})=>({...re,"data-slot":"end-wrapper",className:Me.endWrapper({class:P(W?.endWrapper,re?.className)})}),[Me,W?.endWrapper]),xR=g.useCallback((re={})=>({...re,"data-slot":"end-content",className:Me.endContent({class:P(W?.endContent,re?.className)})}),[Me,W?.endContent]),wR=g.useCallback((re={})=>({...re,...wt,"data-slot":"error-message",className:Me.errorMessage({class:P(W?.errorMessage,re?.className)})}),[Me,wt,W?.errorMessage]),CR=g.useCallback((re={})=>({"aria-hidden":H(!0),"data-slot":"spinner",color:"current",size:"sm",...T,...re,ref:F,className:Me.spinner({class:P(W?.spinner,re?.className)})}),[Me,F,T,W?.spinner]),SR=g.useCallback((re={})=>({...re,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":H(Ie),className:Me.clearButton({class:P(W?.clearButton,re?.className)}),...ie(St,dr)}),[Me,Ie,St,dr,W?.clearButton]);return fw.set(se,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:gt,validationBehavior:ne}),{Component:Ee,domRef:oe,state:se,label:m,name:b,triggerRef:pe,isLoading:v,placeholder:A,startContent:S,endContent:k,description:D,selectorIcon:y,hasHelper:Us,labelPlacement:It,hasPlaceholder:Vr,renderValue:$,selectionMode:z,disableAnimation:d,isOutsideLeft:rr,shouldLabelBeOutside:Sl,shouldLabelBeInside:Uo,isInvalid:gt,errorMessage:El,isClearable:kl,getClearButtonProps:SR,getBaseProps:Xh,getTriggerProps:Qh,getLabelProps:tm,getValueProps:$e,getListboxProps:fR,getPopoverProps:pR,getSpinnerProps:CR,getMainWrapperProps:vR,getListboxWrapperProps:Wn,getHiddenSelectProps:em,getInnerWrapperProps:mR,getHelperWrapperProps:gR,getDescriptionProps:bR,getErrorMessageProps:wR,getSelectorIconProps:hR,getEndWrapperProps:yR,getEndContentProps:xR}}var E7=typeof document<"u"?g.useLayoutEffect:()=>{};function T7(e){const t=g.useRef(null);return E7(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function D7(e,t,r){let n=g.useRef(t),o=T7(()=>{r&&r(n.current)});g.useEffect(()=>{var s;let a=(s=e?.current)==null?void 0:s.form;return a?.addEventListener("reset",o),()=>{a?.removeEventListener("reset",o)}},[e,o])}function ji(e,t,r){let{validationBehavior:n,focus:o}=e;ze(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(I7(r.current))}});let s=g.useRef(!1),a=Pt(()=>{s.current||t.resetValidation()}),i=Pt(u=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&r&&d&&N7(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),_c("keyboard")}u.preventDefault()}),l=Pt(()=>{t.commitValidation()});g.useEffect(()=>{let u=r?.current;if(!u)return;let c=u.form,d=c?.reset;return c&&(c.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(c),s.current=!1}),u.addEventListener("invalid",i),u.addEventListener("change",l),c?.addEventListener("reset",a),()=>{u.removeEventListener("invalid",i),u.removeEventListener("change",l),c?.removeEventListener("reset",a),c&&(c.reset=d)}},[r,n])}function _7(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function I7(e){return{isInvalid:!e.validity.valid,validationDetails:_7(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function N7(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function A7(e,t,r){var n;let o=fw.get(t)||{},{autoComplete:s,name:a=o.name,isDisabled:i=o.isDisabled,selectionMode:l,onChange:u,form:c}=e,{validationBehavior:d,isRequired:p,isInvalid:h}=o,{visuallyHiddenProps:m}=ky();return D7(e.selectRef,t.selectedKeys,t.setSelectedKeys),ji({validationBehavior:d,focus:()=>{var b;return(b=r.current)==null?void 0:b.focus()}},t,e.selectRef),{containerProps:{...m,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:c,autoComplete:s,disabled:i,"aria-invalid":h||void 0,"aria-required":p&&d==="aria"||void 0,required:p&&d==="native",name:a,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(b=>String(b)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:b=>{t.setSelectedKeys(b.target.value),u?.(b)}}}}function M7(e){var t;let{state:r,triggerRef:n,selectRef:o,label:s,name:a,isDisabled:i,form:l}=e,{containerProps:u,selectProps:c}=A7({...e,selectRef:o},r,n);return r.collection.size<=300?f.jsx("div",{...u,"data-testid":"hidden-select-container",children:f.jsxs("label",{children:[s,f.jsxs("select",{...c,ref:o,children:[f.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let p=r.collection.getItem(d);if(p?.type==="item")return f.jsx("option",{value:p.key,children:p.textValue},p.key)})]})]})}):a?f.jsx("input",{autoComplete:c.autoComplete,disabled:i,form:l,name:a,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}function O7(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:s,offset:a=7,crossOffset:i=0,scrollRef:l,shouldFlip:u,boundaryElement:c,isDismissable:d=!0,shouldCloseOnBlur:p=!0,shouldCloseOnScroll:h=!0,placement:m="top",containerPadding:b,shouldCloseOnInteractOutside:v,isNonModal:y,isKeyboardDismissDisabled:x,updatePositionDeps:w=[],...C}=e,S=y??!0,k=C.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:$}=Wc({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:p,isDismissable:d||k,isKeyboardDismissDisabled:x,shouldCloseOnInteractOutside:v||(L=>{var I;return!((I=n.current)!=null&&I.contains(L))}),disableOutsideEvents:!S},o),{overlayProps:_,arrowProps:A,placement:N,updatePosition:M,triggerAnchorPoint:O}=a0({...C,shouldFlip:u,crossOffset:i,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:c,containerPadding:b,placement:f1(m),offset:s?a+3:a,onClose:S&&!k&&h?t.close:()=>{}});return En(()=>{w.length&&M()},w),g.useEffect(()=>{var L,I;if(t.isOpen&&o.current)return S?TA((L=r?.current)!=null?L:o.current):EA([(I=r?.current)!=null?I:o.current])},[S,t.isOpen,o,r]),{popoverProps:ie(D,_),arrowProps:A,underlayProps:$,placement:N,triggerAnchorPoint:O}}var j7="top";function F7(e){var t,r,n;const o=tt(),[s,a]=pt(e,ta.variantKeys),{as:i,ref:l,children:u,state:c,triggerRef:d,scrollRef:p,defaultOpen:h,onOpenChange:m,isOpen:b,isNonModal:v=!0,shouldFlip:y=!0,containerPadding:x=12,shouldBlockScroll:w=!1,isDismissable:C=!0,shouldCloseOnBlur:S,portalContainer:k,updatePositionDeps:D,dialogProps:$,placement:_=j7,triggerType:A="dialog",showArrow:N=!1,offset:M=7,crossOffset:O=0,boundaryElement:L,isKeyboardDismissDisabled:I,shouldCloseOnInteractOutside:z,shouldCloseOnScroll:F,triggerAnchorPoint:B,motionProps:U,className:E,classNames:j,onClose:T,...V}=s,K=i||"div",G=Pe(l),Z=g.useRef(null),W=g.useRef(!1),ne=d||Z,X=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,q=gi({isOpen:b,defaultOpen:h,onOpenChange:Ae=>{m?.(Ae),Ae||T?.()}}),ee=c||q,{popoverProps:ue,underlayProps:te,placement:Ee}=O7({triggerRef:ne,isNonModal:v,popoverRef:G,placement:_,offset:M,scrollRef:p,isDismissable:C,shouldCloseOnBlur:S,boundaryElement:L,crossOffset:O,shouldFlip:y,containerPadding:x,updatePositionDeps:D,isKeyboardDismissDisabled:I,shouldCloseOnScroll:F,shouldCloseOnInteractOutside:z,triggerAnchorPoint:B},ee),ve=g.useMemo(()=>Ee?$A(Ee,_)?Ee:_:null,[Ee,_]),{triggerProps:oe}=F0({type:A},ee,ne),{isFocusVisible:pe,isFocused:xe,focusProps:he}=nt(),se=g.useMemo(()=>ta({...a}),[ft(a)]),He=P(j?.base,E),ge={"--trigger-anchor-point":B?`${B.x}px ${B.y}px`:void 0};Fc({isDisabled:!(w&&ee.isOpen)});const _e=(Ae={})=>({ref:G,...ie(ue,V,Ae),style:ie(ue.style,V.style,Ae.style)}),Ke=(Ae={})=>({"data-slot":"base","data-open":H(ee.isOpen),"data-focus":H(xe),"data-arrow":H(N),"data-focus-visible":H(pe),"data-placement":Ee?Ni(Ee,_):void 0,...ie(he,$,Ae),className:se.base({class:P(He)}),style:{outline:"none",...ge}}),qe=g.useCallback((Ae={})=>({"data-slot":"content","data-open":H(ee.isOpen),"data-arrow":H(N),"data-placement":Ee?Ni(Ee,_):void 0,className:se.content({class:P(j?.content,Ae.className)})}),[se,ee.isOpen,N,ve,_,j,Ee]),wt=g.useCallback(Ae=>{var mt;let St;return Ae.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?St=setTimeout(()=>{W.current=!0},100):W.current=!0,(mt=oe.onPress)==null||mt.call(oe,Ae),()=>{clearTimeout(St)}},[oe?.onPress]),Ct=g.useCallback((Ae={},mt=null)=>{const{isDisabled:St,...gt}=Ae;return{"data-slot":"trigger",...ie({"aria-haspopup":"dialog"},oe,gt),onPress:wt,isDisabled:St,className:se.trigger({class:P(j?.trigger,Ae.className),isTriggerDisabled:St}),ref:Ll(mt,ne)}},[ee,oe,wt,ne]),Ge=g.useCallback((Ae={})=>({"data-slot":"backdrop",className:se.backdrop({class:j?.backdrop}),onClick:mt=>{if(!W.current){mt.preventDefault();return}ee.close(),W.current=!1},...te,...Ae}),[se,ee.isOpen,j,te]);return{state:ee,Component:K,children:u,classNames:j,showArrow:N,triggerRef:ne,placement:ve,isNonModal:v,popoverRef:G,portalContainer:k,isOpen:ee.isOpen,onClose:ee.close,disableAnimation:X,shouldBlockScroll:w,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:U,getBackdropProps:Ge,getPopoverProps:_e,getTriggerProps:Ct,getDialogProps:Ke,getContentProps:qe}}var pw=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),hw=Se(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:s={},...a},i)=>{let l=o;return s.originX!==void 0||s.originY!==void 0?l={...l,transformOrigin:s}:r&&(l={...l,...d1(r==="center"?"top":r)}),n?f.jsx("div",{...a,ref:i,children:e}):f.jsx(mo,{features:pw,children:f.jsx(go.div,{ref:i,animate:"enter",exit:"exit",initial:"initial",style:l,variants:mi.scaleSpringOpacity,...ie(a,t),children:e})})});hw.displayName="HeroUI.FreeSoloPopoverWrapper";var mw=Se(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:s,state:a,placement:i,backdrop:l,portalContainer:u,disableAnimation:c,motionProps:d,isNonModal:p,getPopoverProps:h,getBackdropProps:m,getDialogProps:b,getContentProps:v}=F7({...n,ref:o}),y=Nt.useRef(null),{dialogProps:x,titleProps:w}=qy({},y),C=b({...!r&&{ref:y},...x}),S=Nt.useMemo(()=>l==="transparent"?null:c?f.jsx("div",{...m()}):f.jsx(mo,{features:pw,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.fade,...m()})}),[l,c,m]);return f.jsxs($y,{portalContainer:u,children:[!p&&S,f.jsx(s,{...h(),children:f.jsxs(hw,{disableAnimation:c,motionProps:d,placement:i,tabIndex:-1,transformOrigin:t,...C,children:[!p&&f.jsx(ci,{onDismiss:a.close}),f.jsx("div",{...v(),children:typeof e=="function"?e(w):e}),f.jsx(ci,{onDismiss:a.close})]})})]})});mw.displayName="HeroUI.FreeSoloPopover";var B7=mw;function z7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function L7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);z7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var gw=Se((e,t)=>{const{Component:r,children:n,getBaseProps:o}=L7({...e,ref:t});return f.jsx(r,{...o(),children:n})});gw.displayName="HeroUI.ScrollShadow";var Fd=gw,V7=Se(function(t,r){var n;const{Component:o,state:s,label:a,hasHelper:i,isLoading:l,triggerRef:u,selectorIcon:c=f.jsx(Hy,{}),description:d,errorMessage:p,isInvalid:h,startContent:m,endContent:b,placeholder:v,renderValue:y,shouldLabelBeOutside:x,disableAnimation:w,getBaseProps:C,getLabelProps:S,getTriggerProps:k,getValueProps:D,getListboxProps:$,getPopoverProps:_,getSpinnerProps:A,getMainWrapperProps:N,getInnerWrapperProps:M,getHiddenSelectProps:O,getHelperWrapperProps:L,getListboxWrapperProps:I,getDescriptionProps:z,getErrorMessageProps:F,getSelectorIconProps:B,isClearable:U,getClearButtonProps:E,getEndWrapperProps:j,getEndContentProps:T}=$7({...t,ref:r}),V=a?f.jsx("label",{...S(),children:a}):null,K=g.cloneElement(c,B()),G=g.useMemo(()=>{var ee;return U&&((ee=s.selectedItems)!=null&&ee.length)?f.jsx("span",{...E(),children:f.jsx(Kc,{})}):null},[U,E,(n=s.selectedItems)==null?void 0:n.length]),Z=g.useMemo(()=>G?f.jsxs("div",{...j(),children:[G,b&&f.jsx("span",{...T(),children:b})]}):b&&f.jsx("span",{...T(),children:b}),[G,b,j,T]),W=g.useMemo(()=>{const ee=h&&p;return!i||!(ee||d)?null:f.jsx("div",{...L(),children:ee?f.jsx("div",{...F(),children:p}):f.jsx("div",{...z(),children:d})})},[i,h,p,d,L,F,z]),ne=g.useMemo(()=>{var ee;if(!((ee=s.selectedItems)!=null&&ee.length))return v;if(y&&typeof y=="function"){const ue=[...s.selectedItems].map(te=>({key:te.key,data:te.value,type:te.type,props:te.props,textValue:te.textValue,rendered:te.rendered,"aria-label":te["aria-label"]}));return y(ue)}return s.selectedItems.map(ue=>ue.textValue).join(", ")},[s.selectedItems,y,v]),X=g.useMemo(()=>l?f.jsx(jy,{...A()}):K,[l,K,A]),q=g.useMemo(()=>s.isOpen?f.jsx(B7,{..._(),children:f.jsx(Fd,{...I(),children:f.jsx(_d,{...$()})})}):null,[s.isOpen,_,s,u,I,$]);return f.jsxs("div",{...C(),children:[f.jsx(M7,{...O()}),x?V:null,f.jsxs("div",{...N(),children:[f.jsxs(o,{...k(),children:[x?null:V,f.jsxs("div",{...M(),children:[m,f.jsx("span",{...D(),children:ne}),b&&s.selectedItems&&f.jsx(wo,{elementType:"span",children:","}),Z]}),X]}),W]}),w?q:f.jsx(Wa,{children:q})]})}),Ns=V7;const R7=Be`
231
231
  query phoneSelectorDefaultProductVersion($slug: String!) {
232
232
  product(slug: $slug) {
233
233
  fullName
@@ -632,7 +632,7 @@ ${String(e)}`)}catch(t){return t}},jx=e=>{if(typeof e!="object"||e===null)throw
632
632
  }
633
633
  }
634
634
  ${u2}`,Be`
635
- query phoneSelectorProductVersion($slug: String!, $properties: [InputDistinctProperty]) {
635
+ query phoneSelectorProductVersion($slug: String!, $properties: [InputDistinctProperty!]!) {
636
636
  product(slug: $slug) {
637
637
  fullName
638
638
  brand {
@@ -962,7 +962,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
962
962
  mutation addPartnerProfile($data: InputPartnerProfile!) {
963
963
  addPartnerProfile(data: $data)
964
964
  }
965
- `;async function xL(e){return(await Vx(yL,{data:e}).catch(()=>{}))?.addPartnerProfile}async function Ih(e){const r={..._h(),...e};if(!vL(r))return;const{address:n,currentMsisdn:o}=r,s=await xL({address:n?{postcode:n.postcode,number:n.number,numberAddon:n.numberAddon&&n.numberAddon.length>0?n.numberAddon:void 0}:void 0,currentMsisdn:o});if(s)return vh("mobielnl-ppt",{token:s},{expires:15/1440}),s}function wL(e,t){const r=!e.includes("fixed"),n=r?t.currentProviderSlug:t.currentFixedProviderScope?.split("/")[1];if(!(n==="other"||n==="none"||n===void 0)&&!(r&&!t.keepCurrentMsisdn)&&!(r&&t.currentSubscriptionType==="prepaid"))return n}function CL(e,t,r,n){const o=t.map(u=>u.name).join(" & "),s=o?` • ${o}`:"";if(n)return o.length>0?o:Q.t("combiDeal.selectOtherSubscriptionsOnAddress");if(r==="other")return`${Q.t("combiDeal.otherProvider")}${s}`;const a=r?.split("/")[1],i=e.find(u=>u.slug===a);if(!a||!i)return Q.t("combiDeal.selectHomeProvider");const l=a.includes("internet")?"":` ${Q.t("format.internet")}`;return`${i.name}${l}${s}`}async function SL(){const e=bh("mobielnl-ppt")?.token;return e||Ih()}function kL(e,t){if(!e||e.length===0||!t||t.length===0)return[];const r=new Set(e.map(n=>n.scope));return t.filter(n=>r.has(n.scope)).map(n=>({name:n.provider.name}))}function nl(e,t){return[{amount:1,scope:e.includes("fixed")?"fixed/*":"mobile/*"},{amount:1,scope:t.currentFixedProviderScope},{amount:1,scope:t.customerSegment},...(t.currentMobileProviders||[]).map(({scope:r,value:n})=>({amount:parseInt(n),scope:r}))].filter(r=>!!r.scope&&r.amount>0)}const P3=g.createContext({profile:{},setProfile:e=>{}}),$3=30;function PL(e){const t=k3.safeParse(e);return t.success?(vh("mobielnl-profile",t.data,{expires:$3}),t.data):e}function $L({children:e,initialProfile:t,onProfileChange:r}){const{onAction:n}=Bo(),[o,s]=g.useState({...t,..._h()});Mr(()=>{s({...t,..._h()})},[JSON.stringify(t)]);const{profile:a}=g.useMemo(()=>({profile:o}),[o]),i=g.useCallback(l=>{s(u=>{const c={...u,...l};return r?.(c),PL(c),n({type:"profile_changed",from:u,to:c}),c})},[r,n]);return f.jsx(P3,{value:{profile:a,setProfile:i},children:e})}function zr(){return g.useContext(P3)}function EL(){const[e,t]=g.useState(!1);return Tg(()=>{bh("mobielnl-attribution-tracked")?.tracked===!0||t(!0)}),e?f.jsx("img",{src:`https://www.mobiel.nl/api/pixel?landing-page=${window.location.pathname}`,alt:"",width:1,height:1,className:"invisible",hidden:!0,"aria-hidden":"true",onLoad:()=>vh("mobielnl-attribution-tracked",{tracked:!0},{expires:$3})}):null}function E3(e,t){const r=e.map(n=>({slug:n.scope,name:n.provider.name,imageUrl:n.provider.imageUrl,Icon:void 0}));return[...t==="fixed"?[{name:Q.t("combiDeal.movingOption"),slug:"other/moving",Icon:HE,imageUrl:void 0}]:[],...r,{name:Q.t("combiDeal.otherProvider"),slug:"other",Icon:Ag,imageUrl:void 0}]}const TL=Be`
965
+ `;async function xL(e){return(await Vx(yL,{data:e}).catch(()=>{}))?.addPartnerProfile}async function Ih(e){const r={..._h(),...e};if(!vL(r))return;const{address:n,currentMsisdn:o}=r,s=await xL({address:n?{postcode:n.postcode,number:n.number,numberAddon:n.numberAddon&&n.numberAddon.length>0?n.numberAddon:void 0}:void 0,currentMsisdn:o});if(s)return vh("mobielnl-ppt",{token:s},{expires:15/1440}),s}function wL(e,t){const r=!e.includes("fixed"),n=r?t.currentProviderSlug:t.currentFixedProviderScope?.split("/")[1];if(!(n==="other"||n==="none"||n===void 0)&&!(r&&!t.keepCurrentMsisdn)&&!(r&&t.currentSubscriptionType==="prepaid"))return n}function CL(e,t,r,n){const o=t.map(u=>u.name).join(" & "),s=o?` • ${o}`:"";if(n)return o.length>0?o:Q.t("combiDeal.selectOtherSubscriptionsOnAddress");if(r==="other")return`${Q.t("combiDeal.otherProvider")}${s}`;const a=r?.split("/")[1],i=e.find(u=>u.slug===a);if(!a||!i)return Q.t("combiDeal.selectHomeProvider");const l=a.includes("internet")?"":` ${Q.t("format.internet")}`;return`${i.name}${l}${s}`}function SL(e,t){if(e.keepCurrentMsisdn===void 0)return Q.t("profile.askNumberPreservation");if(!e.keepCurrentMsisdn)return Q.t("profile.newNumber");const r=e.currentMsisdn?`${e.currentMsisdn} • `:"",n=t.find(o=>o.slug===e.currentProviderSlug)?.name||Q.t("numberPreservation.otherProvider");return`${r}${n}`}async function kL(){const e=bh("mobielnl-ppt")?.token;return e||Ih()}function PL(e,t){if(!e||e.length===0||!t||t.length===0)return[];const r=new Set(e.map(n=>n.scope));return t.filter(n=>r.has(n.scope)).map(n=>({name:n.provider.name}))}function nl(e,t){return[{amount:1,scope:e.includes("fixed")?"fixed/*":"mobile/*"},{amount:1,scope:t.currentFixedProviderScope},{amount:1,scope:t.customerSegment},...(t.currentMobileProviders||[]).map(({scope:r,value:n})=>({amount:parseInt(n),scope:r}))].filter(r=>!!r.scope&&r.amount>0)}const P3=g.createContext({profile:{},setProfile:e=>{}}),$3=30;function $L(e){const t=k3.safeParse(e);return t.success?(vh("mobielnl-profile",t.data,{expires:$3}),t.data):e}function EL({children:e,initialProfile:t,onProfileChange:r}){const{onAction:n}=Bo(),[o,s]=g.useState({...t,..._h()});Mr(()=>{s({...t,..._h()})},[JSON.stringify(t)]);const{profile:a}=g.useMemo(()=>({profile:o}),[o]),i=g.useCallback(l=>{s(u=>{const c={...u,...l};return r?.(c),$L(c),n({type:"profile_changed",from:u,to:c}),c})},[r,n]);return f.jsx(P3,{value:{profile:a,setProfile:i},children:e})}function zr(){return g.useContext(P3)}function TL(){const[e,t]=g.useState(!1);return Tg(()=>{bh("mobielnl-attribution-tracked")?.tracked===!0||t(!0)}),e?f.jsx("img",{src:`https://www.mobiel.nl/api/pixel?landing-page=${window.location.pathname}`,alt:"",width:1,height:1,className:"invisible",hidden:!0,"aria-hidden":"true",onLoad:()=>vh("mobielnl-attribution-tracked",{tracked:!0},{expires:$3})}):null}function E3(e,t){const r=e.map(n=>({slug:n.scope,name:n.provider.name,imageUrl:n.provider.imageUrl,Icon:void 0}));return[...t==="fixed"?[{name:Q.t("combiDeal.movingOption"),slug:"other/moving",Icon:HE,imageUrl:void 0}]:[],...r,{name:Q.t("combiDeal.otherProvider"),slug:"other",Icon:Ag,imageUrl:void 0}]}const DL=Be`
966
966
  query getAllProviders {
967
967
  providers {
968
968
  slug
@@ -974,7 +974,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
974
974
  fixedRank
975
975
  }
976
976
  }
977
- `;function T3(e=!0,t=[]){const{data:r}=ln(e?[TL]:null,{fetcher:Vt});return r?r.providers.filter(n=>n.hasMobile&&!t.includes(n.slug)).sort((n,o)=>n.mobileRank-o.mobileRank):[]}const DL=Be`
977
+ `;function T3(e=!0,t=[]){const{data:r}=ln(e?[DL]:null,{fetcher:Vt});return r?r.providers.filter(n=>n.hasMobile&&!t.includes(n.slug)).sort((n,o)=>n.mobileRank-o.mobileRank):[]}const _L=Be`
978
978
  query getModificationBlocks($version: String!, $productType: String!) {
979
979
  modificationConfig(version: $version) {
980
980
  fixedBlocks: blocks(types: ["fixed"], interface: $productType) {
@@ -998,7 +998,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
998
998
  }
999
999
  }
1000
1000
  }
1001
- `;function Nh(e,t=!0){const{data:r}=ln(t?[DL,{version:"release",productType:e}]:null,{fetcher:Vt});return r?.modificationConfig?{fixedBlocks:r.modificationConfig.fixedBlocks.sort((n,o)=>n.provider.rank-o.provider.rank),otherBlocks:r.modificationConfig.otherBlocks.sort((n,o)=>n.provider.rank-o.provider.rank)}:{fixedBlocks:[],otherBlocks:[]}}function _L(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function IL({street:e,city:t,number:r,numberAddon:n}){if(!(!e||!r||!t))return`${e} ${_L(r,n)}, ${t}`}function NL(e){var t,r;const n=tt(),[o,s]=pt(e,Lm.variantKeys),{ref:a,as:i,src:l,className:u,classNames:c,loading:d,isBlurred:p,fallbackSrc:h,isLoading:m,disableSkeleton:b=!!h,removeWrapper:v=!1,onError:y,onLoad:x,srcSet:w,sizes:C,crossOrigin:S,...k}=o,D=Dy({src:l,loading:d,onError:y,onLoad:x,ignoreFallback:!1,srcSet:w,sizes:C,crossOrigin:S,shouldBypassImageLoad:i!==void 0}),$=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,_=D==="loaded"&&!m,A=D==="loading"||m,N=e.isZoomed,M=i||"img",O=Pe(a),{w:L,h:I}=g.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),z=(!l||!_)&&!!h,F=A&&!b,B=g.useMemo(()=>Lm({...s,disableAnimation:$,showSkeleton:F}),[ft(s),$,F]),U=P(u,c?.img),E=(V={})=>{const K=P(U,V?.className);return{src:l,ref:O,"data-loaded":H(_),className:B.img({class:K}),loading:d,srcSet:w,sizes:C,crossOrigin:S,...k,style:{...k?.height&&{height:I},...V.style,...k.style}}},j=g.useCallback(()=>{const V=z?{backgroundImage:`url(${h})`}:{};return{className:B.wrapper({class:c?.wrapper}),style:{...V,maxWidth:L}}},[B,z,h,c?.wrapper,L]),T=g.useCallback(()=>({src:l,"aria-hidden":H(!0),className:B.blurredImg({class:c?.blurredImg})}),[B,l,c?.blurredImg]);return{Component:M,domRef:O,slots:B,classNames:c,isBlurred:p,disableSkeleton:b,fallbackSrc:h,removeWrapper:v,isZoomed:N,isLoading:A,getImgProps:E,getWrapperProps:j,getBlurredImgProps:T}}var D3=Se((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:s,isBlurred:a,isZoomed:i,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:p,getBlurredImgProps:h}=NL({...e,ref:t}),m=f.jsx(r,{ref:n,...d()});if(u)return m;const b=f.jsx("div",{className:o.zoomedWrapper({class:s?.zoomedWrapper}),children:m});return a?f.jsxs("div",{...p(),children:[i?b:m,g.cloneElement(m,h())]}):i||!c||l?f.jsxs("div",{...p(),children:[" ",i?b:m]}):m});D3.displayName="HeroUI.Image";var Jt=D3;function AL({productCategory:e}){const{t}=Oe(),{combiDealModal:r}=Ye(),{profile:n,setProfile:o}=zr(),{popoverProps:s}=on(),[a]=Co(),{isOpen:i,setModal:l}=Wi("combi-deal"),u=e==="fixed-proposition"?"fixed":"mobile",c=Nh(u),[d,p]=g.useState(!1),h=g.useMemo(()=>E3(c.fixedBlocks,u),[c.fixedBlocks.length]),m=t("format.internet"),b=g.useCallback(({slug:v,name:y})=>v.startsWith("other")||y.toLowerCase().includes("internet")?y:`${y} ${m}`,[m]);return f.jsx($o,{isOpen:i,onOpenChange:v=>l(v?"combi-deal":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:s.portalContainer,classNames:{backdrop:P(r?.modal?.backdrop),wrapper:P(r?.modal?.wrapper),base:P(r?.modal?.base),header:P(r?.modal?.header),body:P(r?.modal?.body),footer:P(r?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",r?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:t("combiDeal.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",r?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",r?.header?.iconWrapper),children:f.jsx(tu,{size:48,className:P("stroke-primary",r?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",r?.header?.title),children:t("combiDeal.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1 max-w-xs",r?.header?.description),children:t("combiDeal.description")})]}),u==="mobile"&&f.jsxs(f.Fragment,{children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.providerSelection?.title),children:t("combiDeal.homeInternet")}),f.jsx(Ns,{variant:"bordered","aria-label":t("combiDeal.homeInternet"),placeholder:t("combiDeal.selectHomeProvider"),isOpen:d,onOpenChange:v=>v!==d&&p(v),popoverProps:s,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:n.currentFixedProviderScope?[n.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:v=>{const y=h.find(x=>x.slug===v[0]?.key);return y?f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[y.imageUrl&&f.jsx(Jt,{src:a(y.imageUrl,120,60),alt:y.name,width:60,height:30,radius:"none"}),y.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(y.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(y)]}):null},classNames:{...r?.providerSelection?.select,trigger:P("cursor-pointer border-small",r?.providerSelection?.select?.trigger)},children:h.map(v=>f.jsx(_n,{variant:"flat",textValue:v.name,onClick:()=>{o({currentFixedProviderScope:v.slug}),p(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[v.imageUrl&&f.jsx(Jt,{src:a(v.imageUrl,120,60),alt:v.name,width:60,height:30,radius:"none"}),v.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(v.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(v)]})},v.slug))})]}),f.jsxs("div",{className:P("mt-3",r?.otherSubscriptions?.container),children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.otherSubscriptions?.label),children:t("combiDeal.selectOtherSubscriptions")}),f.jsx("p",{className:P("text-sm text-foreground",r?.otherSubscriptions?.description),children:t("combiDeal.otherSubscriptionsDescription")})]}),f.jsx("div",{className:P("w-full border-small px-1 py-2 rounded-small border-default-200",r?.otherSubscriptions?.listboxContainer),children:f.jsx(_d,{selectedKeys:n.currentMobileProviders?.map(v=>v.scope)??[],selectionMode:"multiple",variant:"flat","aria-label":t("combiDeal.otherSubscriptions"),onSelectionChange:v=>o({currentMobileProviders:Array.from(v).map(y=>({scope:y.toString(),value:"1"}))}),classNames:{list:P(r?.otherSubscriptions?.listboxList)},children:c.otherBlocks.map(v=>f.jsx(_n,{title:v.provider.name,description:t(`modificationBlocks.${v.scope}`,{defaultValue:v.description}),startContent:f.jsx(Jt,{src:a(v.provider.imageUrl,120,60),alt:v.provider.name,width:60,height:30,radius:"none",classNames:{wrapper:P("aspect-2/1 shrink-0",r?.otherSubscriptions?.listboxItem?.image)}}),classNames:{base:P(r?.otherSubscriptions?.listboxItem?.base),wrapper:P(r?.otherSubscriptions?.listboxItem?.wrapper),title:P("text-sm font-semibold",r?.otherSubscriptions?.listboxItem?.title),description:P("text-xs",r?.otherSubscriptions?.listboxItem?.description),selectedIcon:P(r?.otherSubscriptions?.listboxItem?.selectedIcon)}},v.scope))})})]}),f.jsx(Ps,{children:f.jsx(qt,{className:P("font-medium",r?.submitButton),onPress:()=>l(null),color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("common.confirm")})})]})})}function ML(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:s=!1,type:a="text",validationBehavior:i="aria"}=e,[l,u]=hr(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rn(e,t),d=Oo({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=d.displayValidation,{labelProps:b,fieldProps:v,descriptionProps:y,errorMessageProps:x}=Mi({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=Bt(e,{labelable:!0});const C={type:a,pattern:e.pattern};let[S]=g.useState(l);var k;return Ta(t,(k=e.defaultValue)!==null&&k!==void 0?k:S,u),ji(e,d,t),{labelProps:b,inputProps:Ce(w,r==="input"?C:void 0,{disabled:n,readOnly:s,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>u(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...v}),descriptionProps:y,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:m}}function OL(e){var t,r,n,o,s,a,i;const l=tt(),{validationBehavior:u}=jo(In)||{},[c,d]=pt(e,Im.variantKeys),{ref:p,as:h,type:m,label:b,baseRef:v,wrapperRef:y,description:x,className:w,classNames:C,autoFocus:S,startContent:k,endContent:D,onClear:$,onChange:_,validationState:A,validationBehavior:N=(t=u??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:O=()=>{},...L}=c,I=g.useCallback($e=>{O($e??"")},[O]),[z,F]=g.useState(!1),B=h||"div",U=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,E=Pe(p),j=Pe(v),T=Pe(y),V=Pe(M),[K,G]=hr(c.value,(o=c.defaultValue)!=null?o:"",I),Z=m==="file",W=((i=(a=(s=E?.current)==null?void 0:s.files)==null?void 0:a.length)!=null?i:0)>0,ne=["date","time","month","week","range"].includes(m),X=!Kr(K)||ne||W,q=X||z,ee=m==="hidden",ue=e.isMultiline,te=P(C?.base,w,X?"is-filled":""),Ee=g.useCallback(()=>{var $e;Z?E.current.value="":G(""),$?.(),($e=E.current)==null||$e.focus()},[G,$,Z]);En(()=>{E.current&&G(E.current.value)},[E.current]);const{labelProps:ve,inputProps:oe,isInvalid:pe,validationErrors:xe,validationDetails:he,descriptionProps:se,errorMessageProps:He}=ML({...e,validationBehavior:N,autoCapitalize:e.autoCapitalize,value:K,"aria-label":e.label?e["aria-label"]:na(e["aria-label"],e.placeholder),inputElementType:ue?"textarea":"input",onChange:G},E);Z&&(delete oe.value,delete oe.onChange);const{isFocusVisible:ge,isFocused:_e,focusProps:Ke}=nt({autoFocus:S,isTextInput:!0}),{isHovered:qe,hoverProps:wt}=vt({isDisabled:!!e?.isDisabled}),{isHovered:Ct,hoverProps:Ge}=vt({isDisabled:!!e?.isDisabled}),{focusProps:Ae,isFocusVisible:mt}=nt(),{focusWithinProps:St}=Pn({onFocusWithinChange:F}),{pressProps:gt}=jt({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:Ee}),er=A==="invalid"||pe,Xe=Ty({labelPlacement:e.labelPlacement,label:b}),Kn=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:er,validationErrors:xe,validationDetails:he}):c.errorMessage||xe?.join(" "),Lr=!!$||e.isClearable,Wo=!!b||!!x||!!Kn,dr=!!c.placeholder,Ie=!!b,Qe=!!x||!!Kn,tr=Xe==="outside-left",It=Xe==="outside-top",Vr=Xe==="outside"||tr||It,Sl=Xe==="inside",Uo=E.current?(!E.current.value||E.current.value===""||!K||K==="")&&dr:!1,rr=!!k,kl=Vr?tr||It||dr||Xe==="outside"&&rr:!1,Pl=Xe==="outside"&&!dr&&!rr,et=g.useMemo(()=>Im({...d,isInvalid:er,labelPlacement:Xe,isClearable:Lr,disableAnimation:U}),[ft(d),er,Xe,Lr,rr,U]),Ks=g.useCallback(($e={})=>({ref:j,className:et.base({class:te}),"data-slot":"base","data-filled":H(X||dr||rr||Uo||Z),"data-filled-within":H(q||dr||rr||Uo||Z),"data-focus-within":H(z),"data-focus-visible":H(ge),"data-readonly":H(e.isReadOnly),"data-focus":H(_e),"data-hover":H(qe||Ct),"data-required":H(e.isRequired),"data-invalid":H(er),"data-disabled":H(e.isDisabled),"data-has-elements":H(Wo),"data-has-helper":H(Qe),"data-has-label":H(Ie),"data-has-value":H(!Uo),"data-hidden":H(ee),...St,...$e}),[et,te,X,_e,qe,Ct,er,Qe,Ie,Wo,Uo,rr,z,ge,q,dr,St,ee,e.isReadOnly,e.isRequired,e.isDisabled]),$l=g.useCallback(($e={})=>({"data-slot":"label",className:et.label({class:C?.label}),...ie(ve,Ge,$e)}),[et,Ct,ve,C?.label]),Ws=g.useCallback($e=>{$e.key==="Escape"&&K&&(Lr||$)&&!e.isReadOnly&&(G(""),$?.())},[K,G,$,Lr,e.isReadOnly]),Me=g.useCallback(($e={})=>({"data-slot":"input","data-filled":H(X),"data-filled-within":H(q),"data-has-start-content":H(rr),"data-has-end-content":H(!!D),"data-type":m,className:et.input({class:P(C?.input,X?"is-filled":"",ue?"pe-0":"",m==="password"?"[&::-ms-reveal]:hidden":"")}),...ie(Ke,oe,Fe(L,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(oe))}),$e),"aria-readonly":H(e.isReadOnly),onChange:nr(oe.onChange,_),onKeyDown:nr(oe.onKeyDown,$e.onKeyDown,Ws),ref:E}),[et,K,Ke,oe,L,X,q,rr,D,C?.input,e.isReadOnly,e.isRequired,_,Ws]),El=g.useCallback(($e={})=>({ref:T,"data-slot":"input-wrapper","data-hover":H(qe||Ct),"data-focus-visible":H(ge),"data-focus":H(_e),className:et.inputWrapper({class:P(C?.inputWrapper,X?"is-filled":"")}),...ie($e,wt),onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},style:{cursor:"text",...$e.style}}),[et,qe,Ct,ge,_e,K,C?.inputWrapper]),Us=g.useCallback(($e={})=>({...$e,ref:V,"data-slot":"inner-wrapper",onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},className:et.innerWrapper({class:P(C?.innerWrapper,$e?.className)})}),[et,C?.innerWrapper]),Jh=g.useCallback(($e={})=>({...$e,"data-slot":"main-wrapper",className:et.mainWrapper({class:P(C?.mainWrapper,$e?.className)})}),[et,C?.mainWrapper]),Xh=g.useCallback(($e={})=>({...$e,"data-slot":"helper-wrapper",className:et.helperWrapper({class:P(C?.helperWrapper,$e?.className)})}),[et,C?.helperWrapper]),Qh=g.useCallback(($e={})=>({...$e,...se,"data-slot":"description",className:et.description({class:P(C?.description,$e?.className)})}),[et,C?.description]),em=g.useCallback(($e={})=>({...$e,...He,"data-slot":"error-message",className:et.errorMessage({class:P(C?.errorMessage,$e?.className)})}),[et,He,C?.errorMessage]),tm=g.useCallback(($e={})=>({...$e,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":H(mt),className:et.clearButton({class:P(C?.clearButton,$e?.className)}),...ie(gt,Ae)}),[et,mt,gt,Ae,C?.clearButton]);return{Component:B,classNames:C,domRef:E,label:b,description:x,startContent:k,endContent:D,labelPlacement:Xe,isClearable:Lr,hasHelper:Qe,hasStartContent:rr,isLabelOutside:kl,isOutsideLeft:tr,isOutsideTop:It,isLabelOutsideAsPlaceholder:Pl,shouldLabelBeOutside:Vr,shouldLabelBeInside:Sl,hasPlaceholder:dr,isInvalid:er,errorMessage:Kn,getBaseProps:Ks,getLabelProps:$l,getInputProps:Me,getMainWrapperProps:Jh,getInputWrapperProps:El,getInnerWrapperProps:Us,getHelperWrapperProps:Xh,getDescriptionProps:Qh,getErrorMessageProps:em,getClearButtonProps:tm}}var _3=Se((e,t)=>{const{Component:r,label:n,description:o,isClearable:s,startContent:a,endContent:i,labelPlacement:l,hasHelper:u,isOutsideLeft:c,isOutsideTop:d,shouldLabelBeOutside:p,errorMessage:h,isInvalid:m,getBaseProps:b,getLabelProps:v,getInputProps:y,getInnerWrapperProps:x,getInputWrapperProps:w,getMainWrapperProps:C,getHelperWrapperProps:S,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:$}=OL({...e,ref:t}),_=n?f.jsx("label",{...v(),children:n}):null,A=g.useMemo(()=>s?f.jsx("button",{...$(),children:i||f.jsx(Kc,{})}):i,[s,$]),N=g.useMemo(()=>{const L=m&&h;return!u||!(L||o)?null:f.jsx("div",{...S(),children:L?f.jsx("div",{...D(),children:h}):f.jsx("div",{...k(),children:o})})},[u,m,h,o,S,D,k]),M=g.useMemo(()=>f.jsxs("div",{...x(),children:[a,f.jsx("input",{...y()}),A]}),[a,A,y,x]),O=g.useMemo(()=>p?f.jsxs("div",{...C(),children:[f.jsxs("div",{...w(),children:[!c&&!d?_:null,M]}),N]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{...w(),children:[_,M]}),N]}),[l,N,p,_,M,h,o,C,w,D,k]);return f.jsxs(r,{...b(),children:[c||d?_:null,O]})});_3.displayName="HeroUI.Input";var ol=_3;function jL(){const{t:e}=Oe(),{numberPreservationModal:t}=Ye(),{isOpen:r,setModal:n}=Wi("number-preservation"),{popoverProps:o,isShadowRoot:s}=on(),[a]=Co(),{profile:i,setProfile:l}=zr(),[u,c]=g.useState(i.currentMsisdn??""),[d,p]=g.useState(),[h,m]=g.useState(!1),b=T3(),y=/^(\+31|0|0031)((6{1}[1-9]{1}[0-9]{7})|97([0-9]{9}))$/.test(u)||u.length===0||u==="",x=e("numberPreservation.otherProvider"),w=g.useMemo(()=>[...b.map(D=>({slug:D.slug,name:D.name,imageUrl:D.imageUrl,Icon:void 0})),{name:x,slug:"other",Icon:Ag,imageUrl:void 0}],[b.length,x]),C=g.useCallback(()=>{u!==i.currentMsisdn&&(Ih({currentMsisdn:u}),l({currentMsisdn:u}))},[u,l,i.currentMsisdn]);g.useEffect(()=>{!i.keepCurrentMsisdn||i.currentSubscriptionType||l({currentSubscriptionType:"subscription"})},[i.keepCurrentMsisdn,i.currentSubscriptionType,l]);const S={base:P("inline-flex m-0 items-center justify-between border-medium border-default-200 hover:border-default-400","flex-row-reverse cursor-pointer rounded-large px-2 sm:px-4 py-3 @max-sm:min-w-full min-w-[calc(50%-0.25rem)] data-[selected=true]:border-primary",t?.options?.button),label:P("font-semibold",t?.options?.buttonLabel),description:P("text-sm",t?.options?.buttonDescription)};return f.jsx($o,{isOpen:r,onOpenChange:k=>n(k?"number-preservation":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("numberPreservation.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx("div",{className:"text-primary text-4xl font-bold size-12 flex items-center justify-center",children:"06"})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("numberPreservation.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("numberPreservation.description")})]}),f.jsxs(ph,{orientation:"horizontal",value:i.keepCurrentMsisdn===void 0?void 0:i.keepCurrentMsisdn?"true":"false",onValueChange:k=>l({keepCurrentMsisdn:k==="true"}),classNames:{wrapper:P("@container",t?.options?.container)},children:[f.jsx(Bs,{value:"true",description:e("numberPreservation.keepCurrentNumber"),classNames:S,children:e("common.yes")}),f.jsx(Bs,{value:"false",description:e("numberPreservation.newNumber"),classNames:S,children:e("common.no")})]}),i.keepCurrentMsisdn&&f.jsxs("div",{className:"mt-3",children:[f.jsx(Ns,{variant:"bordered","aria-label":e("numberPreservation.currentProvider"),placeholder:e("numberPreservation.selectProvider"),isOpen:h,onOpenChange:k=>k!==h&&m(k),size:"lg",radius:"sm",popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i.currentProviderSlug?[i.currentProviderSlug]:void 0,classNames:{...t?.provider?.select,trigger:P("border-small cursor-pointer",t?.provider?.select?.trigger)},renderValue:k=>{const D=w.find($=>$.slug===k[0]?.key);return D?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[D.imageUrl&&f.jsx(Jt,{src:a(D.imageUrl,120,60),alt:D.name,width:60,height:30,radius:"none"}),D.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(D.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),D.name]}):null},children:w.map(k=>f.jsx(_n,{variant:"flat",textValue:k.name,onClick:()=>{l({currentProviderSlug:k.slug}),m(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[k.imageUrl&&f.jsx(Jt,{src:a(k.imageUrl,120,60),alt:k.name,width:60,height:30,radius:"none"}),k.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(k.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),k.name]})},k.slug))}),f.jsx("div",{className:P("flex flex-col gap-2 my-2",t?.form?.container),children:f.jsx(ol,{variant:"bordered",placeholder:"0612345678",size:"lg",radius:"sm",type:"text",name:"msisdn",color:d?"danger":"default",value:u,onValueChange:k=>{c(k),d&&p(void 0)},onBlur:()=>{if(!y)return p(e("numberPreservation.invalidNumber"));C()},isInvalid:!!d,errorMessage:d,classNames:{inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P(t?.form?.input?.input)}})}),f.jsxs(ph,{orientation:"horizontal",value:i.currentSubscriptionType,onValueChange:k=>l({currentSubscriptionType:k==="subscription"?"subscription":"prepaid"}),size:"sm",classNames:{base:P("justify-between",t?.radioGroup?.base),wrapper:P(t?.radioGroup?.wrapper),label:P(t?.radioGroup?.label),description:P(t?.radioGroup?.description),errorMessage:P(t?.radioGroup?.errorMessage)},children:[f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"subscription",children:e("numberPreservation.subscription")}),f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"prepaid",children:e("numberPreservation.prepaid")})]})]})]}),f.jsx(Ps,{children:f.jsx(qt,{className:P("font-medium",t?.submitButton),onPress:()=>{if(i.keepCurrentMsisdn&&!y)return p(e("numberPreservation.invalidNumber"));s&&C(),n(null)},color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}const FL=Be`
1001
+ `;function Nh(e,t=!0){const{data:r}=ln(t?[_L,{version:"release",productType:e}]:null,{fetcher:Vt});return r?.modificationConfig?{fixedBlocks:r.modificationConfig.fixedBlocks.sort((n,o)=>n.provider.rank-o.provider.rank),otherBlocks:r.modificationConfig.otherBlocks.sort((n,o)=>n.provider.rank-o.provider.rank)}:{fixedBlocks:[],otherBlocks:[]}}function IL(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function NL({street:e,city:t,number:r,numberAddon:n}){if(!(!e||!r||!t))return`${e} ${IL(r,n)}, ${t}`}function AL(e){var t,r;const n=tt(),[o,s]=pt(e,Lm.variantKeys),{ref:a,as:i,src:l,className:u,classNames:c,loading:d,isBlurred:p,fallbackSrc:h,isLoading:m,disableSkeleton:b=!!h,removeWrapper:v=!1,onError:y,onLoad:x,srcSet:w,sizes:C,crossOrigin:S,...k}=o,D=Dy({src:l,loading:d,onError:y,onLoad:x,ignoreFallback:!1,srcSet:w,sizes:C,crossOrigin:S,shouldBypassImageLoad:i!==void 0}),$=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,_=D==="loaded"&&!m,A=D==="loading"||m,N=e.isZoomed,M=i||"img",O=Pe(a),{w:L,h:I}=g.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),z=(!l||!_)&&!!h,F=A&&!b,B=g.useMemo(()=>Lm({...s,disableAnimation:$,showSkeleton:F}),[ft(s),$,F]),U=P(u,c?.img),E=(V={})=>{const K=P(U,V?.className);return{src:l,ref:O,"data-loaded":H(_),className:B.img({class:K}),loading:d,srcSet:w,sizes:C,crossOrigin:S,...k,style:{...k?.height&&{height:I},...V.style,...k.style}}},j=g.useCallback(()=>{const V=z?{backgroundImage:`url(${h})`}:{};return{className:B.wrapper({class:c?.wrapper}),style:{...V,maxWidth:L}}},[B,z,h,c?.wrapper,L]),T=g.useCallback(()=>({src:l,"aria-hidden":H(!0),className:B.blurredImg({class:c?.blurredImg})}),[B,l,c?.blurredImg]);return{Component:M,domRef:O,slots:B,classNames:c,isBlurred:p,disableSkeleton:b,fallbackSrc:h,removeWrapper:v,isZoomed:N,isLoading:A,getImgProps:E,getWrapperProps:j,getBlurredImgProps:T}}var D3=Se((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:s,isBlurred:a,isZoomed:i,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:p,getBlurredImgProps:h}=AL({...e,ref:t}),m=f.jsx(r,{ref:n,...d()});if(u)return m;const b=f.jsx("div",{className:o.zoomedWrapper({class:s?.zoomedWrapper}),children:m});return a?f.jsxs("div",{...p(),children:[i?b:m,g.cloneElement(m,h())]}):i||!c||l?f.jsxs("div",{...p(),children:[" ",i?b:m]}):m});D3.displayName="HeroUI.Image";var Jt=D3;function ML({productCategory:e}){const{t}=Oe(),{combiDealModal:r}=Ye(),{profile:n,setProfile:o}=zr(),{popoverProps:s}=on(),[a]=Co(),{isOpen:i,setModal:l}=Wi("combi-deal"),u=e==="fixed-proposition"?"fixed":"mobile",c=Nh(u),[d,p]=g.useState(!1),h=g.useMemo(()=>E3(c.fixedBlocks,u),[c.fixedBlocks.length]),m=t("format.internet"),b=g.useCallback(({slug:v,name:y})=>v.startsWith("other")||y.toLowerCase().includes("internet")?y:`${y} ${m}`,[m]);return f.jsx($o,{isOpen:i,onOpenChange:v=>l(v?"combi-deal":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:s.portalContainer,classNames:{backdrop:P(r?.modal?.backdrop),wrapper:P(r?.modal?.wrapper),base:P(r?.modal?.base),header:P(r?.modal?.header),body:P(r?.modal?.body),footer:P(r?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",r?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:t("combiDeal.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",r?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",r?.header?.iconWrapper),children:f.jsx(tu,{size:48,className:P("stroke-primary",r?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",r?.header?.title),children:t("combiDeal.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1 max-w-xs",r?.header?.description),children:t("combiDeal.description")})]}),u==="mobile"&&f.jsxs(f.Fragment,{children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.providerSelection?.title),children:t("combiDeal.homeInternet")}),f.jsx(Ns,{variant:"bordered","aria-label":t("combiDeal.homeInternet"),placeholder:t("combiDeal.selectHomeProvider"),isOpen:d,onOpenChange:v=>v!==d&&p(v),popoverProps:s,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:n.currentFixedProviderScope?[n.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:v=>{const y=h.find(x=>x.slug===v[0]?.key);return y?f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[y.imageUrl&&f.jsx(Jt,{src:a(y.imageUrl,120,60),alt:y.name,width:60,height:30,radius:"none"}),y.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(y.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(y)]}):null},classNames:{...r?.providerSelection?.select,trigger:P("cursor-pointer border-small",r?.providerSelection?.select?.trigger)},children:h.map(v=>f.jsx(_n,{variant:"flat",textValue:v.name,onClick:()=>{o({currentFixedProviderScope:v.slug}),p(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[v.imageUrl&&f.jsx(Jt,{src:a(v.imageUrl,120,60),alt:v.name,width:60,height:30,radius:"none"}),v.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(v.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(v)]})},v.slug))})]}),f.jsxs("div",{className:P("mt-3",r?.otherSubscriptions?.container),children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.otherSubscriptions?.label),children:t("combiDeal.selectOtherSubscriptions")}),f.jsx("p",{className:P("text-sm text-foreground",r?.otherSubscriptions?.description),children:t("combiDeal.otherSubscriptionsDescription")})]}),f.jsx("div",{className:P("w-full border-small px-1 py-2 rounded-small border-default-200",r?.otherSubscriptions?.listboxContainer),children:f.jsx(_d,{selectedKeys:n.currentMobileProviders?.map(v=>v.scope)??[],selectionMode:"multiple",variant:"flat","aria-label":t("combiDeal.otherSubscriptions"),onSelectionChange:v=>o({currentMobileProviders:Array.from(v).map(y=>({scope:y.toString(),value:"1"}))}),classNames:{list:P(r?.otherSubscriptions?.listboxList)},children:c.otherBlocks.map(v=>f.jsx(_n,{title:v.provider.name,description:t(`modificationBlocks.${v.scope}`,{defaultValue:v.description}),startContent:f.jsx(Jt,{src:a(v.provider.imageUrl,120,60),alt:v.provider.name,width:60,height:30,radius:"none",classNames:{wrapper:P("aspect-2/1 shrink-0",r?.otherSubscriptions?.listboxItem?.image)}}),classNames:{base:P(r?.otherSubscriptions?.listboxItem?.base),wrapper:P(r?.otherSubscriptions?.listboxItem?.wrapper),title:P("text-sm font-semibold",r?.otherSubscriptions?.listboxItem?.title),description:P("text-xs",r?.otherSubscriptions?.listboxItem?.description),selectedIcon:P(r?.otherSubscriptions?.listboxItem?.selectedIcon)}},v.scope))})})]}),f.jsx(Ps,{children:f.jsx(qt,{className:P("font-medium",r?.submitButton),onPress:()=>l(null),color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("common.confirm")})})]})})}function OL(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:s=!1,type:a="text",validationBehavior:i="aria"}=e,[l,u]=hr(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rn(e,t),d=Oo({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=d.displayValidation,{labelProps:b,fieldProps:v,descriptionProps:y,errorMessageProps:x}=Mi({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=Bt(e,{labelable:!0});const C={type:a,pattern:e.pattern};let[S]=g.useState(l);var k;return Ta(t,(k=e.defaultValue)!==null&&k!==void 0?k:S,u),ji(e,d,t),{labelProps:b,inputProps:Ce(w,r==="input"?C:void 0,{disabled:n,readOnly:s,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>u(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...v}),descriptionProps:y,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:m}}function jL(e){var t,r,n,o,s,a,i;const l=tt(),{validationBehavior:u}=jo(In)||{},[c,d]=pt(e,Im.variantKeys),{ref:p,as:h,type:m,label:b,baseRef:v,wrapperRef:y,description:x,className:w,classNames:C,autoFocus:S,startContent:k,endContent:D,onClear:$,onChange:_,validationState:A,validationBehavior:N=(t=u??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:O=()=>{},...L}=c,I=g.useCallback($e=>{O($e??"")},[O]),[z,F]=g.useState(!1),B=h||"div",U=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,E=Pe(p),j=Pe(v),T=Pe(y),V=Pe(M),[K,G]=hr(c.value,(o=c.defaultValue)!=null?o:"",I),Z=m==="file",W=((i=(a=(s=E?.current)==null?void 0:s.files)==null?void 0:a.length)!=null?i:0)>0,ne=["date","time","month","week","range"].includes(m),X=!Kr(K)||ne||W,q=X||z,ee=m==="hidden",ue=e.isMultiline,te=P(C?.base,w,X?"is-filled":""),Ee=g.useCallback(()=>{var $e;Z?E.current.value="":G(""),$?.(),($e=E.current)==null||$e.focus()},[G,$,Z]);En(()=>{E.current&&G(E.current.value)},[E.current]);const{labelProps:ve,inputProps:oe,isInvalid:pe,validationErrors:xe,validationDetails:he,descriptionProps:se,errorMessageProps:He}=OL({...e,validationBehavior:N,autoCapitalize:e.autoCapitalize,value:K,"aria-label":e.label?e["aria-label"]:na(e["aria-label"],e.placeholder),inputElementType:ue?"textarea":"input",onChange:G},E);Z&&(delete oe.value,delete oe.onChange);const{isFocusVisible:ge,isFocused:_e,focusProps:Ke}=nt({autoFocus:S,isTextInput:!0}),{isHovered:qe,hoverProps:wt}=vt({isDisabled:!!e?.isDisabled}),{isHovered:Ct,hoverProps:Ge}=vt({isDisabled:!!e?.isDisabled}),{focusProps:Ae,isFocusVisible:mt}=nt(),{focusWithinProps:St}=Pn({onFocusWithinChange:F}),{pressProps:gt}=jt({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:Ee}),er=A==="invalid"||pe,Xe=Ty({labelPlacement:e.labelPlacement,label:b}),Kn=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:er,validationErrors:xe,validationDetails:he}):c.errorMessage||xe?.join(" "),Lr=!!$||e.isClearable,Wo=!!b||!!x||!!Kn,dr=!!c.placeholder,Ie=!!b,Qe=!!x||!!Kn,tr=Xe==="outside-left",It=Xe==="outside-top",Vr=Xe==="outside"||tr||It,Sl=Xe==="inside",Uo=E.current?(!E.current.value||E.current.value===""||!K||K==="")&&dr:!1,rr=!!k,kl=Vr?tr||It||dr||Xe==="outside"&&rr:!1,Pl=Xe==="outside"&&!dr&&!rr,et=g.useMemo(()=>Im({...d,isInvalid:er,labelPlacement:Xe,isClearable:Lr,disableAnimation:U}),[ft(d),er,Xe,Lr,rr,U]),Ks=g.useCallback(($e={})=>({ref:j,className:et.base({class:te}),"data-slot":"base","data-filled":H(X||dr||rr||Uo||Z),"data-filled-within":H(q||dr||rr||Uo||Z),"data-focus-within":H(z),"data-focus-visible":H(ge),"data-readonly":H(e.isReadOnly),"data-focus":H(_e),"data-hover":H(qe||Ct),"data-required":H(e.isRequired),"data-invalid":H(er),"data-disabled":H(e.isDisabled),"data-has-elements":H(Wo),"data-has-helper":H(Qe),"data-has-label":H(Ie),"data-has-value":H(!Uo),"data-hidden":H(ee),...St,...$e}),[et,te,X,_e,qe,Ct,er,Qe,Ie,Wo,Uo,rr,z,ge,q,dr,St,ee,e.isReadOnly,e.isRequired,e.isDisabled]),$l=g.useCallback(($e={})=>({"data-slot":"label",className:et.label({class:C?.label}),...ie(ve,Ge,$e)}),[et,Ct,ve,C?.label]),Ws=g.useCallback($e=>{$e.key==="Escape"&&K&&(Lr||$)&&!e.isReadOnly&&(G(""),$?.())},[K,G,$,Lr,e.isReadOnly]),Me=g.useCallback(($e={})=>({"data-slot":"input","data-filled":H(X),"data-filled-within":H(q),"data-has-start-content":H(rr),"data-has-end-content":H(!!D),"data-type":m,className:et.input({class:P(C?.input,X?"is-filled":"",ue?"pe-0":"",m==="password"?"[&::-ms-reveal]:hidden":"")}),...ie(Ke,oe,Fe(L,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(oe))}),$e),"aria-readonly":H(e.isReadOnly),onChange:nr(oe.onChange,_),onKeyDown:nr(oe.onKeyDown,$e.onKeyDown,Ws),ref:E}),[et,K,Ke,oe,L,X,q,rr,D,C?.input,e.isReadOnly,e.isRequired,_,Ws]),El=g.useCallback(($e={})=>({ref:T,"data-slot":"input-wrapper","data-hover":H(qe||Ct),"data-focus-visible":H(ge),"data-focus":H(_e),className:et.inputWrapper({class:P(C?.inputWrapper,X?"is-filled":"")}),...ie($e,wt),onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},style:{cursor:"text",...$e.style}}),[et,qe,Ct,ge,_e,K,C?.inputWrapper]),Us=g.useCallback(($e={})=>({...$e,ref:V,"data-slot":"inner-wrapper",onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},className:et.innerWrapper({class:P(C?.innerWrapper,$e?.className)})}),[et,C?.innerWrapper]),Jh=g.useCallback(($e={})=>({...$e,"data-slot":"main-wrapper",className:et.mainWrapper({class:P(C?.mainWrapper,$e?.className)})}),[et,C?.mainWrapper]),Xh=g.useCallback(($e={})=>({...$e,"data-slot":"helper-wrapper",className:et.helperWrapper({class:P(C?.helperWrapper,$e?.className)})}),[et,C?.helperWrapper]),Qh=g.useCallback(($e={})=>({...$e,...se,"data-slot":"description",className:et.description({class:P(C?.description,$e?.className)})}),[et,C?.description]),em=g.useCallback(($e={})=>({...$e,...He,"data-slot":"error-message",className:et.errorMessage({class:P(C?.errorMessage,$e?.className)})}),[et,He,C?.errorMessage]),tm=g.useCallback(($e={})=>({...$e,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":H(mt),className:et.clearButton({class:P(C?.clearButton,$e?.className)}),...ie(gt,Ae)}),[et,mt,gt,Ae,C?.clearButton]);return{Component:B,classNames:C,domRef:E,label:b,description:x,startContent:k,endContent:D,labelPlacement:Xe,isClearable:Lr,hasHelper:Qe,hasStartContent:rr,isLabelOutside:kl,isOutsideLeft:tr,isOutsideTop:It,isLabelOutsideAsPlaceholder:Pl,shouldLabelBeOutside:Vr,shouldLabelBeInside:Sl,hasPlaceholder:dr,isInvalid:er,errorMessage:Kn,getBaseProps:Ks,getLabelProps:$l,getInputProps:Me,getMainWrapperProps:Jh,getInputWrapperProps:El,getInnerWrapperProps:Us,getHelperWrapperProps:Xh,getDescriptionProps:Qh,getErrorMessageProps:em,getClearButtonProps:tm}}var _3=Se((e,t)=>{const{Component:r,label:n,description:o,isClearable:s,startContent:a,endContent:i,labelPlacement:l,hasHelper:u,isOutsideLeft:c,isOutsideTop:d,shouldLabelBeOutside:p,errorMessage:h,isInvalid:m,getBaseProps:b,getLabelProps:v,getInputProps:y,getInnerWrapperProps:x,getInputWrapperProps:w,getMainWrapperProps:C,getHelperWrapperProps:S,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:$}=jL({...e,ref:t}),_=n?f.jsx("label",{...v(),children:n}):null,A=g.useMemo(()=>s?f.jsx("button",{...$(),children:i||f.jsx(Kc,{})}):i,[s,$]),N=g.useMemo(()=>{const L=m&&h;return!u||!(L||o)?null:f.jsx("div",{...S(),children:L?f.jsx("div",{...D(),children:h}):f.jsx("div",{...k(),children:o})})},[u,m,h,o,S,D,k]),M=g.useMemo(()=>f.jsxs("div",{...x(),children:[a,f.jsx("input",{...y()}),A]}),[a,A,y,x]),O=g.useMemo(()=>p?f.jsxs("div",{...C(),children:[f.jsxs("div",{...w(),children:[!c&&!d?_:null,M]}),N]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{...w(),children:[_,M]}),N]}),[l,N,p,_,M,h,o,C,w,D,k]);return f.jsxs(r,{...b(),children:[c||d?_:null,O]})});_3.displayName="HeroUI.Input";var ol=_3;function FL(){const{t:e}=Oe(),{numberPreservationModal:t}=Ye(),{isOpen:r,setModal:n}=Wi("number-preservation"),{popoverProps:o,isShadowRoot:s}=on(),[a]=Co(),{profile:i,setProfile:l}=zr(),[u,c]=g.useState(i.currentMsisdn??""),[d,p]=g.useState(),[h,m]=g.useState(!1),b=T3(),y=/^(\+31|0|0031)((6{1}[1-9]{1}[0-9]{7})|97([0-9]{9}))$/.test(u)||u.length===0||u==="",x=e("numberPreservation.otherProvider"),w=g.useMemo(()=>[...b.map(D=>({slug:D.slug,name:D.name,imageUrl:D.imageUrl,Icon:void 0})),{name:x,slug:"other",Icon:Ag,imageUrl:void 0}],[b.length,x]),C=g.useCallback(()=>{u!==i.currentMsisdn&&(Ih({currentMsisdn:u}),l({currentMsisdn:u}))},[u,l,i.currentMsisdn]);g.useEffect(()=>{!i.keepCurrentMsisdn||i.currentSubscriptionType||l({currentSubscriptionType:"subscription"})},[i.keepCurrentMsisdn,i.currentSubscriptionType,l]);const S={base:P("inline-flex m-0 items-center justify-between border-medium border-default-200 hover:border-default-400","flex-row-reverse cursor-pointer rounded-large px-2 sm:px-4 py-3 @max-sm:min-w-full min-w-[calc(50%-0.25rem)] data-[selected=true]:border-primary",t?.options?.button),label:P("font-semibold",t?.options?.buttonLabel),description:P("text-sm",t?.options?.buttonDescription)};return f.jsx($o,{isOpen:r,onOpenChange:k=>n(k?"number-preservation":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("numberPreservation.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx("div",{className:"text-primary text-4xl font-bold size-12 flex items-center justify-center",children:"06"})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("numberPreservation.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("numberPreservation.description")})]}),f.jsxs(ph,{orientation:"horizontal",value:i.keepCurrentMsisdn===void 0?void 0:i.keepCurrentMsisdn?"true":"false",onValueChange:k=>l({keepCurrentMsisdn:k==="true"}),classNames:{wrapper:P("@container",t?.options?.container)},children:[f.jsx(Bs,{value:"true",description:e("numberPreservation.keepCurrentNumber"),classNames:S,children:e("common.yes")}),f.jsx(Bs,{value:"false",description:e("numberPreservation.newNumber"),classNames:S,children:e("common.no")})]}),i.keepCurrentMsisdn&&f.jsxs("div",{className:"mt-3",children:[f.jsx(Ns,{variant:"bordered","aria-label":e("numberPreservation.currentProvider"),placeholder:e("numberPreservation.selectProvider"),isOpen:h,onOpenChange:k=>k!==h&&m(k),size:"lg",radius:"sm",popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i.currentProviderSlug?[i.currentProviderSlug]:void 0,classNames:{...t?.provider?.select,trigger:P("border-small cursor-pointer",t?.provider?.select?.trigger)},renderValue:k=>{const D=w.find($=>$.slug===k[0]?.key);return D?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[D.imageUrl&&f.jsx(Jt,{src:a(D.imageUrl,120,60),alt:D.name,width:60,height:30,radius:"none"}),D.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(D.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),D.name]}):null},children:w.map(k=>f.jsx(_n,{variant:"flat",textValue:k.name,onClick:()=>{l({currentProviderSlug:k.slug}),m(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[k.imageUrl&&f.jsx(Jt,{src:a(k.imageUrl,120,60),alt:k.name,width:60,height:30,radius:"none"}),k.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(k.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),k.name]})},k.slug))}),f.jsx("div",{className:P("flex flex-col gap-2 my-2",t?.form?.container),children:f.jsx(ol,{variant:"bordered",placeholder:"0612345678",size:"lg",radius:"sm",type:"text",name:"msisdn",color:d?"danger":"default",value:u,onValueChange:k=>{c(k),d&&p(void 0)},onBlur:()=>{if(!y)return p(e("numberPreservation.invalidNumber"));C()},isInvalid:!!d,errorMessage:d,classNames:{inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P(t?.form?.input?.input)}})}),f.jsxs(ph,{orientation:"horizontal",value:i.currentSubscriptionType,onValueChange:k=>l({currentSubscriptionType:k==="subscription"?"subscription":"prepaid"}),size:"sm",classNames:{base:P("justify-between",t?.radioGroup?.base),wrapper:P(t?.radioGroup?.wrapper),label:P(t?.radioGroup?.label),description:P(t?.radioGroup?.description),errorMessage:P(t?.radioGroup?.errorMessage)},children:[f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"subscription",children:e("numberPreservation.subscription")}),f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"prepaid",children:e("numberPreservation.prepaid")})]})]})]}),f.jsx(Ps,{children:f.jsx(qt,{className:P("font-medium",t?.submitButton),onPress:()=>{if(i.keepCurrentMsisdn&&!y)return p(e("numberPreservation.invalidNumber"));s&&C(),n(null)},color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}const BL=Be`
1002
1002
  query postcodeCheck($postcode: String!, $number: Int!, $numberAddon: String!) {
1003
1003
  postcode(postcode: $postcode, number: $number, numberAddon: $numberAddon) {
1004
1004
  address {
@@ -1007,4 +1007,4 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1007
1007
  }
1008
1008
  }
1009
1009
  }
1010
- `;function Ah(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}function BL(e,t,r,n="",o=!1){const[s,a]=g.useState(o),i=Ah(t,500),l=Ah(r,500),u=Ah(n,500),{data:c,isValidating:d,error:p}=ad(i&&l?[FL,{postcode:i,number:parseInt(l,10),numberAddon:u||""}]:null,Vt,{revalidateIfStale:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1}),[h,m]=g.useState(null),b=g.useRef(e);return g.useEffect(()=>{b.current=e},[e]),g.useEffect(()=>{d&&m(null)},[d]),Mr(()=>{if(!(d||!i||!l)){if(p?.response?.errors?.length){if(p.response.errors[0]?.message==="postnl_api_error"){m(Q.t("postcodeCheck.invalidAddressError"));return}m(Q.t("postcodeCheck.invalidAddressError"));return}if(c?.postcode?.address){b.current(c.postcode.address),a(!1),m(null);return}!d&&i&&l&&!p&&!c?.postcode?.address&&m(Q.t("postcodeCheck.invalidAddressError"))}},[c,p,d,i,l]),{manual:s,isLoading:d&&!!i&&!!l,error:h}}function zL(e){const t=e.replace(/[^0-9a-zA-Z]/g,"").toUpperCase();let r="",n="";for(const o of t)/\d/.test(o)&&r.length<4?r+=o:/[A-Z]/.test(o)&&r.length===4&&n.length<2&&(n+=o);return r+n}function LL(){const{t:e}=Oe(),{postcodeCheckModal:t}=Ye(),{profile:r,setProfile:n}=zr(),{popoverProps:o}=on(),[s]=Co(),{isOpen:a,setModal:i}=Wi("postcode-check"),[l,u]=g.useState(r.address?.postcode||""),[c,d]=g.useState(r.address?.number||""),[p,h]=g.useState(r.address?.numberAddon||""),[m,b]=g.useState(r.address?.street||""),[v,y]=g.useState(r.address?.city||""),[x,w]=g.useState(!1),C=g.useRef(!!(r.address?.street&&r.address?.city)),S=Nh("fixed"),k=g.useCallback(O=>{O.street!==void 0&&b(O.street),O.city!==void 0&&y(O.city)},[]);Mr(()=>{const O=r.address;u(O?.postcode||""),d(O?.number||""),h(O?.numberAddon||""),b(O?.street||""),y(O?.city||""),C.current=!!(O?.street&&O?.city)},[r.address]);const{manual:D,error:$}=BL(k,l,c,p,C.current);Mr(()=>{!D&&(!l||!c)&&(b(""),y(""))},[l,c,D]);const _=g.useMemo(()=>E3(S.fixedBlocks,"fixed"),[S.fixedBlocks.length]),A={inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P("absolute bottom-1.5",t?.form?.input?.input),label:P("top-1.5",t?.form?.input?.label)},N=g.useCallback(O=>{O.preventDefault();const L=new FormData(O.target),I={...Object.fromEntries(L.entries()),street:m,city:v},{success:z,data:F}=S3.safeParse(I);z&&(Ih({address:F}),n({address:F}),i(null))},[m,v,n,i]),M=g.useCallback(({slug:O,name:L})=>O.startsWith("other")||L.toLowerCase().includes("internet")?L:`${L} Internet`,[]);return f.jsx($o,{isOpen:a,onOpenChange:O=>i(O?"postcode-check":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("postcodeCheck.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx(Ng,{size:48,className:P("stroke-primary",t?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("postcodeCheck.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("postcodeCheck.description")})]}),f.jsxs("form",{id:"postcode-check-form",className:P("flex flex-col gap-2 mb-3",t?.form?.container),onSubmit:N,children:[f.jsx("p",{className:P("text-base font-bold text-foreground",t?.form?.addressLabel),children:"Adres"}),f.jsxs("div",{className:P("flex flex-row gap-2",t?.form?.inputsContainer),children:[f.jsx(ol,{variant:"bordered",placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",value:l,onValueChange:O=>u(zL(O)),classNames:A,maxLength:6,label:e("postcodeCheck.postalCode"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"1",radius:"sm",type:"text",name:"number",value:c,onValueChange:O=>d(O.replace(/\D/g,"")),classNames:A,label:e("postcodeCheck.houseNumber"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"A",radius:"sm",type:"text",name:"numberAddon",value:p,onValueChange:O=>h(O.toUpperCase()),classNames:A,label:e("postcodeCheck.houseNumberAddition")})]}),$&&f.jsx(lh,{color:"danger",variant:"faded",title:$,hideIconWrapper:!0,classNames:t?.form?.errorAlert})]}),f.jsx("p",{className:P("text-base font-bold text-foreground",t?.provider?.label),children:e("postcodeCheck.homeInternet")}),f.jsx(Ns,{variant:"bordered","aria-label":e("postcodeCheck.homeInternet"),placeholder:e("postcodeCheck.selectProvider"),isOpen:x,onOpenChange:O=>O!==x&&w(O),popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:r.currentFixedProviderScope?[r.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:O=>{const L=_.find(I=>I.slug===O[0]?.key);return L?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[L.imageUrl&&f.jsx(Jt,{src:s(L.imageUrl,120,60),alt:L.name,width:60,height:30,radius:"none"}),L.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(L.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(L)]}):null},classNames:{...t?.provider?.select,trigger:P("cursor-pointer border-small",t?.provider?.select?.trigger)},children:_.map(O=>f.jsx(_n,{variant:"flat",textValue:O.name,onClick:()=>{n({currentFixedProviderScope:O.slug}),w(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[O.imageUrl&&f.jsx(Jt,{src:s(O.imageUrl,120,60),alt:O.name,width:60,height:30,radius:"none"}),O.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(O.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(O)]})},O.slug))})]}),f.jsx(Ps,{children:f.jsx(qt,{className:P("font-medium",t?.submitButton),type:"submit",form:"postcode-check-form",color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}function I3({productCategory:e}){const{t}=Oe(),{profile:r}=zr(),{setModal:n}=Wi(),{profileButton:o}=Ye(),s=T3(),a=Nh(e==="fixed-proposition"?"fixed":"mobile"),i=kL(r.currentMobileProviders,a.otherBlocks);return f.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[f.jsx("div",{className:"text-base font-bold text-foreground",children:t("profile.personalizeTitle")}),e==="fixed-proposition"?f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.postcodeCheck"),description:r.address?IL(r.address):t("profile.enterPostcode"),selected:r.address!==void 0,onClick:()=>n("postcode-check"),Icon:Ng,classNames:o}),f.jsx(LL,{})]}):f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.numberPreservation"),description:r.keepCurrentMsisdn===void 0?t("profile.askNumberPreservation"):r.keepCurrentMsisdn&&r.currentMsisdn?`${r.currentMsisdn} • ${s.find(l=>l.slug===r.currentProviderSlug)?.name||t("numberPreservation.otherProvider")}`:t("profile.newNumber"),selected:r.keepCurrentMsisdn!==void 0,onClick:()=>n("number-preservation"),avatarName:"0 6",classNames:o}),f.jsx(jL,{})]}),f.jsx(pi,{title:t("profile.customerBenefit"),description:CL(a.fixedBlocks.map(l=>({slug:l.provider.slug,name:l.provider.name})),i,r.currentFixedProviderScope,e==="fixed-proposition"),selected:e==="fixed-proposition"?r.currentMobileProviders?.some(l=>a.otherBlocks.some(u=>u.scope===l.scope)):a.fixedBlocks.some(l=>l.scope===r.currentFixedProviderScope)||r.currentFixedProviderScope==="other",onClick:()=>n("combi-deal"),Icon:tu,classNames:o}),f.jsx(AL,{productCategory:e})]})}function VL(){const{t:e}=Oe(),[t,r]=g.useState(!1),{sortSelect:n}=Ye(),{popoverContent:o,listbox:s,...a}=n||{},{sortOptions:i,handleFilterChange:l,getActiveFilterValue:u}=xr(),{popoverProps:c}=on({classNames:o});return f.jsx(Ns,{variant:"bordered","aria-label":e("filters.sort"),placeholder:e("filters.sort"),popoverProps:c,selectionMode:"single",disallowEmptySelection:!0,isOpen:t,onOpenChange:d=>d!==t&&r(d),selectedKeys:u("sorteren"),radius:"sm",listboxProps:{itemClasses:s},classNames:{...a,base:P("min-w-1/2 lg:min-w-auto lg:w-[200px]",a?.base),trigger:P("cursor-pointer border-small bg-white",a?.trigger)},children:i.map(d=>f.jsx(_n,{variant:"flat",onClick:()=>{l({slug:"sorteren",value:d.value}),r(!1)},children:e(`sortOptions.${d.value}`,{defaultValue:d.name})},d.value))})}function RL(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function me(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function Mh(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return me(r,{dashed:!0})}function Fn(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`${Q.t("format.from")} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`:`${e[0].term} ${Q.t("format.month_short",{count:e[0].term})} ${Q.t("format.from").toLowerCase()} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`}function Oh(e){switch(e){case Gt:return Q.t("format.unlimited_short");case 0:return"-";default:return e}}function Rs(e,t){const r=e.minutes!==0?`${Oh(e.minutes)} ${e.minutes===Gt?Q.t("format.minutes_short"):Q.t("format.minutes")}`:void 0,n=e.sms!==0?e.sms===e.minutes?Q.t("format.sms"):`${Oh(e.sms)} ${Q.t("format.sms")}`:void 0,o=e.minutes===Gt&&e.sms===Gt||["minutes","sms"].every(a=>e.sharedCredits?.includes(a)),s=o?" / ":" + ";return!r&&!n?"":o?[r,Q.t("format.sms")].join(s):[r,n].join(s)}function sl(e){switch(e){case 24:return`2 ${Q.t("format.year",{count:2})}`;case 12:return`1 ${Q.t("format.year")}`;case 1:return Q.t("format.monthly");default:return""}}function N3(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function Bn(e){const t=sl(e.planVariant.contractTerm);if(e.productType==="fixed"){const s=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} ${Q.t("format.megabitPerSecond")}`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"}];const a=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`;return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"},{title:a,slug:"channels"}]}const r=`${e.content.dataSpeedDown/1e3} ${Q.t("format.megabitPerSecond")}`,n=`${(e.provider.network||"").replace("-netwerk","")} ${N3(e.content.networkGeneration)}`,o=e.content.dataEu?"EU":"NL";return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function Xt(e,t){if(e===Gt)return`${Q.t("format.unlimited_short")} ${t}`;const r=(e/1e3).toString().replace(".",",");return`${t===Q.t("format.gigabyte")?r:e} ${t}`}const jh=["kpn","vodafone","odido"],KL=[{type:"isRetention",rank:1,color:"primary",getDisplayName:e=>Q.t("labels.renewWith",{providerName:e.provider.name}),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&e.planVariant?.contractType==="retention",sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isCheapestPhone",rank:2,color:"primary",getDisplayName:()=>Q.t("labels.cheapestPhone"),isApplicable:(e,t)=>t.isSmartphone&&Number.isFinite(e.creditFee+e.price),sortValue:e=>e.creditFee+e.price,limit:1,sortDirection:"asc"},{type:"isBudget",rank:3,color:"primary",getDisplayName:()=>Q.t("labels.budget"),isApplicable:e=>Number.isFinite(e.tcoPerMonth),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetFiber",rank:4,color:"primary",getDisplayName:()=>Q.t("labels.budgetFiber"),isApplicable:(e,t)=>t.isFixed&&(e.tags.find(r=>r.type==="internet")?.slug||"").includes("glasvezel"),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isCombi",rank:5,color:"primary",getDisplayName:e=>e.provider?.name?Q.t("labels.combi",{providerName:e.provider.name}):Q.t("labels.combiGeneric"),isApplicable:e=>e.key.includes("m"),sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isFastestInternet",rank:6,color:"primary",getDisplayName:()=>Q.t("labels.fastestInternet"),isApplicable:e=>Number.isFinite(e.content?.dataSpeedDown),sortValue:e=>e.content?.dataSpeedDown??0,limit:1,sortDirection:"desc"},{type:"isBudgetOwnNetwork",rank:7,color:"primary",getDisplayName:()=>Q.t("labels.budgetOwnNetwork"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&jh.includes(e.provider?.slug||""),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetNetwork",rank:8,color:"primary",getDisplayName:e=>e.provider?.network?Q.t("labels.budgetNetwork",{network:e.provider.network.replace("-netwerk","")}):Q.t("labels.budgetNetworkGeneric"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&t.budgetNetworkPropositionKeys.includes(e.key),sortValue:e=>e.tcoPerMonth,limit:jh.length,sortDirection:"asc"}];function Fh({propositions:e,productCategory:t,labelColorConfig:r}){const n=t==="fixed-proposition",o=t==="sim-only-proposition",s=t==="smartphone-proposition",a={isFixed:n,isSimOnly:o,isSmartphone:s,budgetNetworkPropositionKeys:o||s?WL(e):[]},i=new Map;for(const u of KL){const c=e.filter(h=>u.isApplicable(h,a));if(c.length===0)continue;const d=[...c].sort((h,m)=>{const b=u.sortValue(h),v=u.sortValue(m);return b===v?0:u.sortDirection==="asc"?b-v:v-b}),p=u.limit==="unlimited"?d.length:u.limit;d.slice(0,p).forEach(h=>{i.has(h.key)||i.set(h.key,{type:u.type,displayName:u.getDisplayName(h),rank:u.rank,color:r[u.type]??u.color})})}return{top:Array.from(i.entries()).map(([u,c])=>{const d=e.find(p=>p.key===u);return d?{...d,label:c}:void 0}).filter(u=>!!u).sort((u,c)=>u.label.rank-c.label.rank).slice(0,3),all:e.map(u=>({...u,label:i.get(u.key)}))}}function WL(e){return jh.map(t=>[...e].filter(r=>(r.provider?.network||"").replace("-netwerk","").toLowerCase()===t).sort((r,n)=>r.tcoPerMonth-n.tcoPerMonth)[0]?.key).filter(t=>!!t)}function UL({channels:e,hdChannels:t,classNames:r}){const{t:n}=Oe();return f.jsxs("div",{className:P("pb-4",r?.base),children:[f.jsx("div",{className:P(r?.description),children:n("detailsModal.channelsDescription",{channelsCount:e?.length})}),f.jsx("ul",{className:P("list-disc list-outside pl-6",r?.list),children:e.map(o=>f.jsx("li",{className:P("list-item",r?.listItem),children:f.jsxs("span",{className:P("flex items-center gap-2",r?.channelContainer),children:[o,t?.includes(o)&&f.jsx(jE,{size:24,className:P("stroke-foreground",r?.hdIcon)})]})},o))})]})}const Bh=new WeakMap;function zh(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function HL(e,t){let r=Bh.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${zh(t)}`}function A3(e,t,r){let n=Bh.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${zh(t)}-${zh(r)}`}function M3(e,t){return[...e.collection.rowHeaderColumnKeys].map(r=>A3(e,t,r)).join(" ")}var O3={};O3={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var j3={};j3={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var F3={};F3={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var B3={};B3={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var z3={};z3={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var L3={};L3={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var V3={};V3={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var R3={};R3={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var K3={};K3={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var W3={};W3={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var U3={};U3={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var H3={};H3={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var q3={};q3={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var G3={};G3={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Z3={};Z3={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Y3={};Y3={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var J3={};J3={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var X3={};X3={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Q3={};Q3={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var eS={};eS={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var tS={};tS={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var rS={};rS={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var nS={};nS={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var oS={};oS={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var sS={};sS={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var aS={};aS={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var iS={};iS={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var lS={};lS={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var uS={};uS={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var cS={};cS={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var dS={};dS={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var fS={};fS={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var pS={};pS={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var hS={};hS={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var al={};al={"ar-AE":O3,"bg-BG":j3,"cs-CZ":F3,"da-DK":B3,"de-DE":z3,"el-GR":L3,"en-US":V3,"es-ES":R3,"et-EE":K3,"fi-FI":W3,"fr-FR":U3,"he-IL":H3,"hr-HR":q3,"hu-HU":G3,"it-IT":Z3,"ja-JP":Y3,"ko-KR":J3,"lt-LT":X3,"lv-LV":Q3,"nb-NO":eS,"nl-NL":tS,"pl-PL":rS,"pt-BR":nS,"pt-PT":oS,"ro-RO":sS,"ru-RU":aS,"sk-SK":iS,"sl-SI":lS,"sr-SP":uS,"sv-SE":cS,"tr-TR":dS,"uk-UA":fS,"zh-CN":pS,"zh-TW":hS};class mS{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findPreviousKey(t,r){let n=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(t,r){let n=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(t,r=0){if(r<0)return null;let n=this.collection.getItem(t);if(!n)return null;let o=0;for(let i of ht(n,this.collection)){var s;if(i.colSpan&&i.colSpan+o>r)return(s=i.key)!==null&&s!==void 0?s:null;i.colSpan&&(o=o+i.colSpan-1);var a;if(o===r)return(a=i.key)!==null&&a!==void 0?a:null;o++}return null}getKeyBelow(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findNextKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyAbove(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findPreviousKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=un(c))===null||n===void 0?void 0:n.key:(o=jr(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index-1):_s(d,r.index+1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))!==null&&u!==void 0?u:null}return null}getKeyLeftOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=jr(c))===null||n===void 0?void 0:n.key:(o=un(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index+1):_s(d,r.index-1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))!==null&&u!==void 0?u:null}return null}getFirstKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;var a;return(a=(s=jr(ht(u,this.collection)))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findNextKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;var l;n=(l=(i=jr(ht(u,this.collection)))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getLastKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;let c=ht(u,this.collection);var a;return(a=(s=un(c))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findPreviousKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;let c=ht(u,this.collection);var l;n=(l=(i=un(c))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getKeyPageAbove(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&r!=null;){var s;if(r=(s=this.getKeyAbove(r))!==null&&s!==void 0?s:null,r==null)break;n=this.layoutDelegate.getItemRect(r)}return r}getKeyPageBelow(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=this.layoutDelegate.getVisibleRect().height,s=Math.min(this.layoutDelegate.getContentSize().height,n.y+o);for(;n&&n.y+n.height<s;){let a=this.getKeyBelow(r);if(a==null)break;n=this.layoutDelegate.getItemRect(a),r=a}return r}getKeyForSearch(t,r){let n=r??null;if(!this.collator)return null;let o=this.collection;if(n=r??this.getFirstKey(),n==null)return null;let s=o.getItem(n);if(!s)return null;var a;s.type==="cell"&&(n=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;n!=null;){let c=o.getItem(n);if(!c)return null;if(c.textValue){let d=c.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){var l,u;return this.isRow(c)&&this.focusMode==="cell"?(u=(l=jr(ht(c,this.collection)))===null||l===void 0?void 0:l.key)!==null&&u!==void 0?u:null:c.key}}n=this.findNextKey(n,d=>d.type==="item"),n==null&&!i&&(n=this.getFirstKey(),i=!0)}return null}constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new qL(t.layout):new Sd(t.ref));var r;this.focusMode=(r=t.focusMode)!==null&&r!==void 0?r:"row"}}class qL{getContentSize(){return this.layout.getContentSize()}getItemRect(t){var r;return((r=this.layout.getLayoutInfo(t))===null||r===void 0?void 0:r.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(t){this.layout=t}}const Lh=new WeakMap;var gS={};gS={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var bS={};bS={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var vS={};vS={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var yS={};yS={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var xS={};xS={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var wS={};wS={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var CS={};CS={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var SS={};SS={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var kS={};kS={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var PS={};PS={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var $S={};$S={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var ES={};ES={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var TS={};TS={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var DS={};DS={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var _S={};_S={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var IS={};IS={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var NS={};NS={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var AS={};AS={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var MS={};MS={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var OS={};OS={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var jS={};jS={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var FS={};FS={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var BS={};BS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var zS={};zS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var LS={};LS={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var VS={};VS={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var RS={};RS={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var KS={};KS={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var WS={};WS={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var US={};US={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var HS={};HS={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var qS={};qS={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var GS={};GS={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var ZS={};ZS={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var il={};il={"ar-AE":gS,"bg-BG":bS,"cs-CZ":vS,"da-DK":yS,"de-DE":xS,"el-GR":wS,"en-US":CS,"es-ES":SS,"et-EE":kS,"fi-FI":PS,"fr-FR":$S,"he-IL":ES,"hr-HR":TS,"hu-HU":DS,"it-IT":_S,"ja-JP":IS,"ko-KR":NS,"lt-LT":AS,"lv-LV":MS,"nb-NO":OS,"nl-NL":jS,"pl-PL":FS,"pt-BR":BS,"pt-PT":zS,"ro-RO":LS,"ru-RU":VS,"sk-SK":RS,"sl-SI":KS,"sr-SP":WS,"sv-SE":US,"tr-TR":HS,"uk-UA":qS,"zh-CN":GS,"zh-TW":ZS};const YS=7e3;let Cr=null;function JS(e,t="assertive",r=YS){Cr?Cr.announce(e,t,r):(Cr=new GL,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Cr.announce(e,t,r):setTimeout(()=>{Cr?.isAttached()&&Cr?.announce(e,t,r)},100))}class GL{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=YS){var o,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(s=this.politeLog)===null||s===void 0||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function ZL(e){return e&&e.__esModule?e.default:e}function YL(e,t){let{getRowText:r=i=>{var l,u,c,d;return(d=(l=(u=t.collection).getTextValue)===null||l===void 0?void 0:l.call(u,i))!==null&&d!==void 0?d:(c=t.collection.getItem(i))===null||c===void 0?void 0:c.textValue}}=e,n=Wr(ZL(il),"@react-aria/grid"),o=t.selectionManager.rawSelection,s=g.useRef(o),a=g.useCallback(()=>{var i;if(!t.selectionManager.isFocused||o===s.current){s.current=o;return}let l=XS(o,s.current),u=XS(s.current,o),c=t.selectionManager.selectionBehavior==="replace",d=[];if(t.selectionManager.selectedKeys.size===1&&c){let p=t.selectionManager.selectedKeys.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(l.size===1&&u.size===0){let p=l.keys().next().value;if(p!=null){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(u.size===1&&l.size===0){let p=u.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("deselectedItem",{item:h}))}}t.selectionManager.selectionMode==="multiple"&&(d.length===0||o==="all"||o.size>1||s.current==="all"||((i=s.current)===null||i===void 0?void 0:i.size)>1)&&d.push(o==="all"?n.format("selectedAll"):n.format("selectedCount",{count:o.size})),d.length>0&&JS(d.join(" ")),s.current=o},[o,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,n]);Zg(()=>{if(t.selectionManager.isFocused)a();else{let i=requestAnimationFrame(a);return()=>cancelAnimationFrame(i)}},[o,t.selectionManager.isFocused])}function XS(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function JL(e){return e&&e.__esModule?e.default:e}function XL(e){let t=Wr(JL(il),"@react-aria/grid"),r=C_(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,o=g.useMemo(()=>{let a=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior,l;return n&&(l=t.format("longPressToSelect")),i==="replace"&&a!=="none"&&e.hasItemActions?l:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return $a(o)}function QL(e,t,r){let{isVirtualized:n,disallowTypeAhead:o,keyboardDelegate:s,focusMode:a,scrollRef:i,getRowText:l,onRowAction:u,onCellAction:c,escapeKeyBehavior:d="clearSelection",shouldSelectOnPressUp:p}=e,{selectionManager:h}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=Ia({usage:"search",sensitivity:"base"}),{direction:b}=Ot(),v=t.selectionManager.disabledBehavior,y=g.useMemo(()=>s||new mS({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:v,ref:r,direction:b,collator:m,focusMode:a}),[s,t.collection,t.disabledKeys,v,r,b,m,a]),{collectionProps:x}=Cd({ref:r,selectionManager:h,keyboardDelegate:y,isVirtualized:n,scrollRef:i,disallowTypeAhead:o,escapeKeyBehavior:d}),w=bt(e.id);Lh.set(t,{keyboardDelegate:y,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:p});let C=XL({selectionManager:h,hasItemActions:!!(u||c)}),S=Bt(e,{labelable:!0}),k=g.useCallback(A=>{if(h.isFocused){A.currentTarget.contains(A.target)||h.setFocused(!1);return}A.currentTarget.contains(A.target)&&h.setFocused(!0)},[h]),D=g.useMemo(()=>({onBlur:x.onBlur,onFocus:k}),[k,x.onBlur]),$=M0(r,{isDisabled:t.collection.size!==0}),_=Ce(S,{role:"grid",id:w,"aria-multiselectable":h.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?D:x,t.collection.size===0&&{tabIndex:$?-1:0}||void 0,C);return n&&(_["aria-rowcount"]=t.collection.size,_["aria-colcount"]=t.collection.columnCount),YL({getRowText:l},t),{gridProps:_}}function eV(){return{rowGroupProps:{role:"rowgroup"}}}function tV(e,t,r){var n,o;let{node:s,isVirtualized:a,shouldSelectOnPressUp:i,onAction:l}=e,{actions:u,shouldSelectOnPressUp:c}=Lh.get(t),d=u.onRowAction?()=>{var v;return(v=u.onRowAction)===null||v===void 0?void 0:v.call(u,s.key)}:l,{itemProps:p,...h}=Ti({selectionManager:t.selectionManager,key:s.key,ref:r,isVirtualized:a,shouldSelectOnPressUp:c||i,onAction:d||!(s==null||(n=s.props)===null||n===void 0)&&n.onAction?Ur(s==null||(o=s.props)===null||o===void 0?void 0:o.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(s.key),b={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":h.isDisabled||void 0,...p};return a&&(b["aria-rowindex"]=s.index+1),{rowProps:b,...h}}function QS(e,t,r){let{node:n,isVirtualized:o,focusMode:s="child",shouldSelectOnPressUp:a,onAction:i}=e,{direction:l}=Ot(),{keyboardDelegate:u,actions:{onCellAction:c}}=Lh.get(t),d=g.useRef(null),p=()=>{if(r.current){let w=Lt(r.current);if(s==="child"){if(r.current.contains(document.activeElement)&&r.current!==document.activeElement)return;let C=t.selectionManager.childFocusStrategy==="last"?Vh(w):w.firstChild();if(C){Et(C);return}}(d.current!=null&&n.key!==d.current||!r.current.contains(document.activeElement))&&Et(r.current)}},{itemProps:h,isPressed:m}=Ti({selectionManager:t.selectionManager,key:n.key,ref:r,isVirtualized:o,focus:p,shouldSelectOnPressUp:a,onAction:c?()=>c(n.key):i,isDisabled:t.collection.size===0}),b=w=>{if(!w.currentTarget.contains(w.target)||t.isKeyboardNavigationDisabled||!r.current||!document.activeElement)return;let C=Lt(r.current);switch(C.currentNode=document.activeElement,w.key){case"ArrowLeft":{let A=l==="rtl"?C.nextNode():C.previousNode();if(s==="child"&&A===r.current&&(A=null),w.preventDefault(),w.stopPropagation(),A)Et(A),Zr(A,{containingElement:Gr(r.current)});else{var S;if(((S=u.getKeyLeftOf)===null||S===void 0?void 0:S.call(u,n.key))!==n.key){var k;(k=r.current.parentElement)===null||k===void 0||k.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="rtl"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,A=l==="rtl"?C.firstChild():Vh(C),A&&(Et(A),Zr(A,{containingElement:Gr(r.current)})))}break}case"ArrowRight":{let A=l==="rtl"?C.previousNode():C.nextNode();if(s==="child"&&A===r.current&&(A=null),w.preventDefault(),w.stopPropagation(),A)Et(A),Zr(A,{containingElement:Gr(r.current)});else{var D;if(((D=u.getKeyRightOf)===null||D===void 0?void 0:D.call(u,n.key))!==n.key){var $;($=r.current.parentElement)===null||$===void 0||$.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="ltr"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,A=l==="rtl"?Vh(C):C.firstChild(),A&&(Et(A),Zr(A,{containingElement:Gr(r.current)})))}break}case"ArrowUp":case"ArrowDown":if(!w.altKey&&r.current.contains(w.target)){var _;w.stopPropagation(),w.preventDefault(),(_=r.current.parentElement)===null||_===void 0||_.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent))}break}},v=w=>{if(d.current=n.key,w.target!==r.current){xo()||t.selectionManager.setFocusedKey(n.key);return}requestAnimationFrame(()=>{s==="child"&&document.activeElement===r.current&&p()})},y=Ce(h,{role:"gridcell",onKeyDownCapture:b,"aria-colspan":n.colSpan,"aria-colindex":n.colIndex!=null?n.colIndex+1:void 0,colSpan:o?void 0:n.colSpan,onFocus:v});var x;return o&&(y["aria-colindex"]=((x=n.colIndex)!==null&&x!==void 0?x:n.index)+1),a&&y.tabIndex!=null&&y.onPointerDown==null&&(y.onPointerDown=w=>{let C=w.currentTarget,S=C.getAttribute("tabindex");C.removeAttribute("tabindex"),requestAnimationFrame(()=>{S!=null&&C.setAttribute("tabindex",S)})}),{gridCellProps:y,isPressed:m}}function Vh(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function rV(e){return e&&e.__esModule?e.default:e}function nV(e,t){let{key:r}=e,n=t.selectionManager,o=bt(),s=!t.selectionManager.canSelectItem(r),a=t.selectionManager.isSelected(r),i=()=>n.toggleSelection(r);const l=Wr(rV(il),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":l.format("select"),isSelected:a,isDisabled:s,onChange:i}}}class oV extends mS{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let n=jr(ht(r,this.collection));if(n)return n.key;let o=this.getFirstKey();return o==null||!this.collection.getItem(o)?null:super.getKeyForItemInRowByIndex(o,r.index)}return super.getKeyBelow(t)}getKeyAbove(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let s=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return s&&s.type==="column"?s.key:null}let n=super.getKeyAbove(t),o=n!=null?this.collection.getItem(n):null;return o&&o.type!=="headerrow"?n:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let r=this.findNextKey(t.key,o=>o.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level];for(let o of ht(n,this.collection))if(o.type==="column")return o.key;return null}findPreviousColumnKey(t){let r=this.findPreviousKey(t.key,s=>s.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level],o=[...ht(n,this.collection)];for(let s=o.length-1;s>=0;s--){let a=o[s];if(a.type==="column")return a.key}return null}getKeyRightOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(r):this.findNextColumnKey(r):super.getKeyRightOf(t):null}getKeyLeftOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findNextColumnKey(r):this.findPreviousColumnKey(r):super.getKeyLeftOf(t):null}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r??this.getFirstKey();if(o==null)return null;let s=n.getItem(o);var a;s?.type==="cell"&&(o=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;o!=null;){let l=n.getItem(o);if(!l)return null;if(l.textValue){let u=l.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0)return l.key}for(let u of ht(l,this.collection)){let c=n.columns[u.index];if(n.rowHeaderColumnKeys.has(c.key)&&u.textValue){let d=u.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){let p=r!=null?n.getItem(r):s;return p?.type==="cell"?u.key:l.key}}}o=this.getKeyBelow(o),o==null&&!i&&(o=this.getFirstKey(),i=!0)}return null}}function sV(e){return e&&e.__esModule?e.default:e}function aV(e,t,r){let{keyboardDelegate:n,isVirtualized:o,layoutDelegate:s,layout:a}=e,i=Ia({usage:"search",sensitivity:"base"}),{direction:l}=Ot(),u=t.selectionManager.disabledBehavior,c=g.useMemo(()=>n||new oV({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:u,ref:r,direction:l,collator:i,layoutDelegate:s,layout:a}),[n,t.collection,t.disabledKeys,u,r,l,i,s,a]),d=bt(e.id);Bh.set(t,d);let{gridProps:p}=QL({...e,id:d,keyboardDelegate:c},t,r);o&&(p["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),ga()&&"expandedKeys"in t&&(p.role="treegrid");let{column:h,direction:m}=t.sortDescriptor||{},b=Wr(sV(al),"@react-aria/table"),v=g.useMemo(()=>{var x,w;let C=(w=(x=t.collection.columns.find(S=>S.key===h))===null||x===void 0?void 0:x.textValue)!==null&&w!==void 0?w:"";return m&&h?b.format(`${m}Sort`,{columnName:C}):void 0},[m,h,t.collection.columns]),y=$a(v);return Zg(()=>{v&&JS(v,"assertive",500)},[v]),{gridProps:Ce(p,y,{"aria-describedby":[y["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function iV(e){return e&&e.__esModule?e.default:e}function ek(e,t,r){var n,o;let{node:s}=e,a=s.props.allowsSorting,{gridCellProps:i}=QS({...e,focusMode:"child"},t,r),l=s.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:u,isPressed:c}=jt({isDisabled:!a||l,onPress(){t.sort(s.key)},ref:r}),{focusableProps:d}=rn({},r),p,h=((n=t.sortDescriptor)===null||n===void 0?void 0:n.column)===s.key,m=(o=t.sortDescriptor)===null||o===void 0?void 0:o.direction;s.props.allowsSorting&&!ss()&&(p=h?m:"none");let b=Wr(iV(al),"@react-aria/table"),v;a&&(v=`${b.format("sortable")}`,h&&m&&ss()&&(v=`${v}, ${b.format(m)}`));let y=$a(v),x=t.collection.size===0;return g.useEffect(()=>{x&&t.selectionManager.focusedKey===s.key&&t.selectionManager.setFocusedKey(null)},[x,t.selectionManager,s.key]),{columnHeaderProps:{...Ce(d,i,u,y,x?{tabIndex:-1}:null),role:"columnheader",id:HL(t,s.key),"aria-colspan":s.colSpan&&s.colSpan>1?s.colSpan:void 0,"aria-sort":p},isPressed:c}}const tk={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function lV(e,t,r){let{node:n,isVirtualized:o}=e,{rowProps:s,...a}=tV(e,t,r),{direction:i}=Ot();o&&!(ga()&&"expandedKeys"in t)?s["aria-rowindex"]=n.index+1+t.collection.headerRows.length:delete s["aria-rowindex"];let l={};if(ga()&&"expandedKeys"in t){let S=t.keyMap.get(n.key);if(S!=null){var u,c,d,p,h,m;let k=((u=S.props)===null||u===void 0?void 0:u.UNSTABLE_childItems)||((d=S.props)===null||d===void 0||(c=d.children)===null||c===void 0?void 0:c.length)>t.userColumnCount;var b,v,y,x;l={onKeyDown:D=>{(D.key===tk.expand[i]&&t.selectionManager.focusedKey===S.key&&k&&t.expandedKeys!=="all"&&!t.expandedKeys.has(S.key)||D.key===tk.collapse[i]&&t.selectionManager.focusedKey===S.key&&k&&(t.expandedKeys==="all"||t.expandedKeys.has(S.key)))&&(t.toggleKey(S.key),D.stopPropagation())},"aria-expanded":k?t.expandedKeys==="all"||t.expandedKeys.has(n.key):void 0,"aria-level":S.level,"aria-posinset":((b=S.indexOfType)!==null&&b!==void 0?b:0)+1,"aria-setsize":S.level>1?((y=(p=un((v=(h=t.keyMap.get(S.parentKey))===null||h===void 0?void 0:h.childNodes)!==null&&v!==void 0?v:[]))===null||p===void 0?void 0:p.indexOfType)!==null&&y!==void 0?y:0)+1:((x=(m=un(t.collection.body.childNodes))===null||m===void 0?void 0:m.indexOfType)!==null&&x!==void 0?x:0)+1}}}let w=G5(n.props),C=a.hasAction?w:{};return{rowProps:{...Ce(s,l,C),"aria-labelledby":M3(t,n.key)},...a}}function uV(e,t,r){let{node:n,isVirtualized:o}=e,s={role:"row"};return o&&!(ga()&&"expandedKeys"in t)&&(s["aria-rowindex"]=n.index+1),{rowProps:s}}function rk(e,t,r){var n;let{gridCellProps:o,isPressed:s}=QS(e,t,r),a=(n=e.node.column)===null||n===void 0?void 0:n.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(o.role="rowheader",o.id=A3(t,e.node.parentKey,a)),{gridCellProps:o,isPressed:s}}function cV(e){return e&&e.__esModule?e.default:e}function dV(e,t){let{key:r}=e;const{checkboxProps:n}=nV(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${M3(t,r)}`}}}function fV(e){let{isEmpty:t,isSelectAll:r,selectionMode:n}=e.selectionManager;return{checkboxProps:{"aria-label":Wr(cV(al),"@react-aria/table").format(n==="single"?"select":"selectAll"),isSelected:r,isDisabled:n!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Rh(){return eV()}var nk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,slots:i,state:l,selectionMode:u,color:c,checkboxesProps:d,disableAnimation:p,classNames:h,...m}=e,b=o||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:a},l,y),{isFocusVisible:w,focusProps:C}=nt(),{checkboxProps:S}=fV(l),k=P(h?.th,s,(r=a.props)==null?void 0:r.className),D=u==="single",{onChange:$,..._}=S;return f.jsx(b,{ref:y,"data-focus-visible":H(w),...ie(x,C,Fe(a.props,{enabled:v}),Fe(m,{enabled:v})),className:(n=i.th)==null?void 0:n.call(i,{class:k}),children:D?f.jsx(wo,{children:S["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:p,onValueChange:$,...ie(d,_)})})});nk.displayName="HeroUI.TableSelectAllCheckbox";var ok=nk;function pV(e){let{collection:t,focusMode:r}=e,n=e.UNSAFE_selectionState||t1(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=n.setFocusedKey;n.setFocusedKey=(l,u)=>{if(r==="cell"&&l!=null){let m=t.getItem(l);if(m?.type==="item"){var c,d;let b=ht(m,t);var p,h;u==="last"?l=(p=(c=un(b))===null||c===void 0?void 0:c.key)!==null&&p!==void 0?p:null:l=(h=(d=jr(b))===null||d===void 0?void 0:d.key)!==null&&h!==void 0?h:null}}s(l,u)};let a=g.useMemo(()=>new Ii(t,n),[t,n]);const i=g.useRef(null);return g.useEffect(()=>{if(n.focusedKey!=null&&i.current&&!t.getItem(n.focusedKey)){const l=i.current.getItem(n.focusedKey),u=l?.parentKey!=null&&(l.type==="cell"||l.type==="rowheader"||l.type==="column")?i.current.getItem(l.parentKey):l;if(!u){n.setFocusedKey(null);return}const c=i.current.rows,d=t.rows,p=c.length-d.length;let h=Math.min(p>1?Math.max(u.index-p+1,0):u.index,d.length-1),m=null;for(;h>=0;){if(!a.isDisabled(d[h].key)&&d[h].type!=="headerrow"){m=d[h];break}h<d.length-1?h++:(h>u.index&&(h=u.index),h--)}if(m){const b=m.hasChildNodes?[...ht(m,t)]:[],v=m.hasChildNodes&&u!==l&&l&&l.index<b.length?b[l.index].key:m.key;n.setFocusedKey(v)}else n.setFocusedKey(null)}i.current=t},[t,a,n,n.focusedKey]),{collection:t,disabledKeys:o,isKeyboardNavigationDisabled:!1,selectionManager:a}}class hV{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t;return(t=[...this.rows][0])===null||t===void 0?void 0:t.key}getLastKey(){var t;let r=[...this.rows];return(t=r[r.length-1])===null||t===void 0?void 0:t.key}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let r=d=>{let p=this.keyMap.get(d.key);t.visitNode&&(d=t.visitNode(d)),this.keyMap.set(d.key,d);let h=new Set,m=null,b=!1;if(d.type==="item"){var v;for(let S of d.childNodes)if(((v=S.props)===null||v===void 0?void 0:v.colSpan)!==void 0){b=!0;break}}for(let S of d.childNodes){if(S.type==="cell"&&b){var y,x;S.colspan=(y=S.props)===null||y===void 0?void 0:y.colSpan,S.colSpan=(x=S.props)===null||x===void 0?void 0:x.colSpan;var w,C;S.colIndex=m?((w=m.colIndex)!==null&&w!==void 0?w:m.index)+((C=m.colSpan)!==null&&C!==void 0?C:1):S.index}S.type==="cell"&&S.parentKey==null&&(S.parentKey=d.key),h.add(S.key),m?(m.nextKey=S.key,S.prevKey=m.key):S.prevKey=null,r(S),m=S}if(m&&(m.nextKey=null),p)for(let S of p.childNodes)h.has(S.key)||n(S)},n=d=>{this.keyMap.delete(d.key);for(let p of d.childNodes)this.keyMap.get(p.key)===p&&n(p)},o=null;for(let[d,p]of t.items.entries()){var s,a,i,l,u,c;let h={...p,level:(s=p.level)!==null&&s!==void 0?s:0,key:(a=p.key)!==null&&a!==void 0?a:"row-"+d,type:(i=p.type)!==null&&i!==void 0?i:"row",value:(l=p.value)!==null&&l!==void 0?l:null,hasChildNodes:!0,childNodes:[...p.childNodes],rendered:p.rendered,textValue:(u=p.textValue)!==null&&u!==void 0?u:"",index:(c=p.index)!==null&&c!==void 0?c:d};o?(o.nextKey=h.key,h.prevKey=o.key):h.prevKey=null,this.rows.push(h),r(h),o=h}o&&(o.nextKey=null)}}const sk="row-header-column-"+Math.random().toString(36).slice(2);let Kh="row-header-column-"+Math.random().toString(36).slice(2);for(;sk===Kh;)Kh="row-header-column-"+Math.random().toString(36).slice(2);function mV(e,t){if(t.length===0)return[];let r=[],n=new Map;for(let c of t){let d=c.parentKey,p=[c];for(;d;){let h=e.get(d);if(!h)break;if(n.has(h)){var o,s;(s=(o=h).colSpan)!==null&&s!==void 0||(o.colSpan=0),h.colSpan++,h.colspan=h.colSpan;let{column:m,index:b}=n.get(h);if(b>p.length)break;for(let v=b;v<p.length;v++)m.splice(v,0,null);for(let v=p.length;v<m.length;v++)m[v]&&n.has(m[v])&&(n.get(m[v]).index=v)}else h.colSpan=1,h.colspan=1,p.push(h),n.set(h,{column:p,index:p.length-1});d=h.parentKey}r.push(p),c.index=r.length-1}let a=Math.max(...r.map(c=>c.length)),i=Array(a).fill(0).map(()=>[]),l=0;for(let c of r){let d=a-1;for(let p of c){if(p){let h=i[d],m=h.reduce((b,v)=>{var y;return b+((y=v.colSpan)!==null&&y!==void 0?y:1)},0);if(m<l){let b={type:"placeholder",key:"placeholder-"+p.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};h.length>0&&(h[h.length-1].nextKey=b.key,b.prevKey=h[h.length-1].key),h.push(b)}h.length>0&&(h[h.length-1].nextKey=p.key,p.prevKey=h[h.length-1].key),p.level=d,p.colIndex=l,h.push(p)}d--}l++}let u=0;for(let c of i){let d=c.reduce((p,h)=>{var m;return p+((m=h.colSpan)!==null&&m!==void 0?m:1)},0);if(d<t.length){let p={type:"placeholder",key:"placeholder-"+c[c.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:u,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:c[c.length-1].key};c.push(p)}u++}return i.map((c,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:c,textValue:""}))}class gV extends hV{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return(n=r?.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return(n=r?.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t,r;return(r=(t=jr(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getLastKey(){var t,r;return(r=(t=un(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return t===this.body.key?this.body.childNodes:super.getChildren(t)}getTextValue(t){let r=this.getItem(t);if(!r)return"";if(r.textValue)return r.textValue;let n=this.rowHeaderColumnKeys;if(n){let o=[];for(let s of r.childNodes){let a=this.columns[s.index];if(n.has(a.key)&&s.textValue&&o.push(s.textValue),o.length===n.size)break}return o.join(" ")}return""}constructor(t,r,n){let o=new Set,s=null,a=[];if(n?.showSelectionCheckboxes){let d={type:"column",key:sk,value:null,textValue:"",level:0,index:n?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};a.unshift(d)}if(n?.showDragButtons){let d={type:"column",key:Kh,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};a.unshift(d)}let i=[],l=new Map,u=d=>{switch(d.type){case"body":s=d;break;case"column":l.set(d.key,d),d.hasChildNodes||(a.push(d),d.props.isRowHeader&&o.add(d.key));break;case"item":i.push(d);return}for(let p of d.childNodes)u(p)};for(let d of t)u(d);let c=mV(l,a);if(c.forEach((d,p)=>i.splice(p,0,d)),super({columnCount:a.length,items:i,visitNode:d=>(d.column=a[d.index],d)}),this._size=0,this.columns=a,this.rowHeaderColumnKeys=o,this.body=s,this.headerRows=c,this._size=[...s.childNodes].length,this.rowHeaderColumnKeys.size===0){let d=this.columns.find(p=>{var h,m;return!(!((h=p.props)===null||h===void 0)&&h.isDragButtonCell)&&!(!((m=p.props)===null||m===void 0)&&m.isSelectionCell)});d&&this.rowHeaderColumnKeys.add(d.key)}}}const bV={ascending:"descending",descending:"ascending"};function vV(e){let[t,r]=g.useState(!1),{selectionMode:n="none",showSelectionCheckboxes:o,showDragButtons:s}=e,a=g.useMemo(()=>({showSelectionCheckboxes:o&&n!=="none",showDragButtons:s,selectionMode:n,columns:[]}),[e.children,o,n,s]),i=a1(e,g.useCallback(d=>new gV(d,null,a),[a]),a),{disabledKeys:l,selectionManager:u}=pV({...e,collection:i,disabledBehavior:e.disabledBehavior||"selection"});var c;return{collection:i,disabledKeys:l,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:(c=e.sortDescriptor)!==null&&c!==void 0?c:null,isKeyboardNavigationDisabled:i.size===0||t,setKeyboardNavigationDisabled:r,sort(d,p){var h,m;(m=e.onSortChange)===null||m===void 0||m.call(e,{column:d,direction:p??(((h=e.sortDescriptor)===null||h===void 0?void 0:h.column)===d?bV[e.sortDescriptor.direction]:"ascending")})}}}function ak(e){return null}ak.getCollectionNode=function*(t,r){let{children:n,columns:o}=t;if(r.columns=[],typeof n=="function"){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let s of o)yield{type:"column",value:s,renderer:n}}else{let s=[];g.Children.forEach(n,a=>{s.push({type:"column",element:a})}),yield*s}};let yV=ak;function ik(e){return null}ik.getCollectionNode=function*(t){let{children:r,items:n}=t;yield{type:"body",hasChildNodes:!0,props:t,*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of n)yield{type:"item",value:o,renderer:r}}else{let o=[];g.Children.forEach(r,s=>{o.push({type:"item",element:s})}),yield*o}}}};let xV=ik;function lk(e){return null}lk.getCollectionNode=function*(t,r){let{title:n,children:o,childColumns:s}=t,a=n||o,i=t.textValue||(typeof a=="string"?a:"")||t["aria-label"],l=yield{type:"column",hasChildNodes:!!s||!!n&&g.Children.count(o)>0,rendered:a,textValue:i,props:t,*childNodes(){if(s)for(let c of s)yield{type:"column",value:c};else if(n){let c=[];g.Children.forEach(o,d=>{c.push({type:"column",element:d})}),yield*c}},shouldInvalidate(c){return u(c),!1}},u=c=>{for(let d of l)d.hasChildNodes||c.columns.push(d)};u(r)};let wV=lk;function Wh(e){return null}Wh.getCollectionNode=function*(t,r){let{children:n,textValue:o,UNSTABLE_childItems:s}=t;yield{type:"item",props:t,textValue:o,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(r.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),r.showSelectionCheckboxes&&r.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof n=="function"){for(let a of r.columns)yield{type:"cell",element:n(a.key),key:a.key};if(s)for(let a of s)yield{type:"item",value:a}}else{let a=[],i=[],l=0;if(g.Children.forEach(n,u=>{if(u.type===Wh){if(a.length<r.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");i.push({type:"item",element:u})}else{a.push({type:"cell",element:u});var c;l+=(c=u.props.colSpan)!==null&&c!==void 0?c:1}}),l!==r.columns.length)throw new Error(`Cell count must match column count. Found ${l} cells and ${r.columns.length} columns.`);yield*a,yield*i}},shouldInvalidate(a){return a.columns.length!==r.columns.length||a.columns.some((i,l)=>i.key!==r.columns[l].key)||a.showSelectionCheckboxes!==r.showSelectionCheckboxes||a.showDragButtons!==r.showDragButtons||a.selectionMode!==r.selectionMode}}};let CV=Wh;function uk(e){return null}uk.getCollectionNode=function*(t){let{children:r}=t,n=t.textValue||(typeof r=="string"?r:"")||t["aria-label"]||"";yield{type:"cell",props:t,rendered:r,textValue:n,"aria-label":t["aria-label"],hasChildNodes:!1}};let SV=uk;function ck(e){var t;const r=tt(),[n,o]=pt(e,Am.variantKeys),{ref:s,as:a,baseRef:i,children:l,className:u,classNames:c,removeWrapper:d=!1,disableAnimation:p=(t=r?.disableAnimation)!=null?t:!1,isKeyboardNavigationDisabled:h=!1,selectionMode:m="none",topContentPlacement:b="inside",bottomContentPlacement:v="inside",selectionBehavior:y=m==="none"?null:"toggle",disabledBehavior:x="selection",showSelectionCheckboxes:w=m==="multiple"&&y!=="replace",BaseComponent:C="div",checkboxesProps:S,topContent:k,bottomContent:D,sortIcon:$,onRowAction:_,onCellAction:A,...N}=n,M=a||"table",O=typeof M=="string",L=Pe(s),I=Pe(i),z=vV({...e,children:l,showSelectionCheckboxes:w});h&&!z.isKeyboardNavigationDisabled&&z.setKeyboardNavigationDisabled(!0);const{collection:F}=z,{layout:B,...U}=e,{gridProps:E}=aV({...U},z,L),j=m!=="none",T=m==="multiple",V=g.useMemo(()=>Am({...o,isSelectable:j,isMultiSelectable:T}),[ft(o),j,T]),K=P(c?.base,u),G=g.useMemo(()=>{var X;return{state:z,slots:V,isSelectable:j,collection:F,classNames:c,color:e?.color,disableAnimation:p,checkboxesProps:S,isHeaderSticky:(X=e?.isHeaderSticky)!=null?X:!1,selectionMode:m,selectionBehavior:y,disabledBehavior:x,showSelectionCheckboxes:w,onRowAction:_,onCellAction:A}},[V,z,F,j,c,m,y,S,x,p,w,e?.color,e?.isHeaderSticky,_,A]),Z=g.useCallback(X=>({...X,ref:I,className:V.base({class:P(K,X?.className)})}),[K,V]),W=g.useCallback(X=>({...X,ref:I,className:V.wrapper({class:P(c?.wrapper,X?.className)})}),[c?.wrapper,V]),ne=g.useCallback(X=>({...ie(E,Fe(N,{enabled:O}),X),onKeyDownCapture:void 0,ref:L,className:V.table({class:P(c?.table,X?.className)})}),[c?.table,O,V,E,N]);return{BaseComponent:C,Component:M,children:l,state:z,collection:F,values:G,topContent:k,bottomContent:D,removeWrapper:d,topContentPlacement:b,bottomContentPlacement:v,sortIcon:$,getBaseProps:Z,getWrapperProps:W,getTableProps:ne}}var dk=Se((e,t)=>{var r,n,o;const{as:s,className:a,node:i,rowKey:l,slots:u,state:c,classNames:d,...p}=e,h=s||"td",m=typeof h=="string",b=Pe(t),{gridCellProps:v}=rk({node:i},c,b),y=P(d?.td,a,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=nt(),C=c.selectionManager.isSelected(l),S=g.useMemo(()=>{const D=typeof i.rendered;return D!=="object"&&D!=="function"?f.jsx("span",{children:i.rendered}):i.rendered},[i.rendered]),k=((n=i.column)==null?void 0:n.props)||{};return f.jsx(h,{ref:b,"data-focus-visible":H(x),"data-selected":H(C),...ie(v,w,Fe(i.props,{enabled:m}),p),className:(o=u.td)==null?void 0:o.call(u,{align:k.align,class:y}),children:S})});dk.displayName="HeroUI.TableCell";var fk=dk,pk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,rowKey:i,slots:l,state:u,color:c,disableAnimation:d,checkboxesProps:p,selectionMode:h,classNames:m,...b}=e,v=o||"td",y=typeof v=="string",x=Pe(t),{gridCellProps:w}=rk({node:a},u,x),{isFocusVisible:C,focusProps:S}=nt(),{checkboxProps:k}=dV({key:a?.parentKey||a.key},u),D=P(m?.td,s,(r=a.props)==null?void 0:r.className),$=h==="single",{onChange:_,...A}=k,N=u.selectionManager.isSelected(i);return f.jsx(v,{ref:x,"data-focus-visible":H(C),"data-selected":H(N),...ie(w,S,Fe(a.props,{enabled:y}),b),className:(n=l.td)==null?void 0:n.call(l,{class:D}),children:$?f.jsx(wo,{children:k["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:d,onValueChange:_,...ie(p,A)})})});pk.displayName="HeroUI.TableCheckboxCell";var hk=pk,mk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,state:u,isSelectable:c,classNames:d,...p}=e,h=o||(e?.href?"a":"tr"),m=typeof h=="string",b=Pe(t),{rowProps:v}=lV({node:i},u,b),y=P(d?.tr,s,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=nt(),C=u.disabledKeys.has(i.key),S=u.selectionManager.isSelected(i.key),{isHovered:k,hoverProps:D}=vt({isDisabled:C}),{isFirst:$,isLast:_,isMiddle:A,isOdd:N}=g.useMemo(()=>{const M=i.key===u.collection.getFirstKey(),O=i.key===u.collection.getLastKey(),L=!M&&!O,I=i?.index?(i.index+1)%2===0:!1;return{isFirst:M,isLast:O,isMiddle:L,isOdd:I}},[i,u.collection]);return f.jsx(h,{ref:b,"data-disabled":H(C),"data-first":H($),"data-focus-visible":H(x),"data-hover":H(k),"data-last":H(_),"data-middle":H(A),"data-odd":H(N),"data-selected":H(S),...ie(v,w,c?D:{},Fe(i.props,{enabled:m}),p),className:(n=l.tr)==null?void 0:n.call(l,{class:y}),children:a})});mk.displayName="HeroUI.TableRow";var gk=mk,bk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,rowVirtualizer:m,...b}=e,v=n||"tbody",y=typeof v=="string",x=Pe(t),{rowGroupProps:w}=Rh(),C=P(h?.tbody,o),S=i?.body.props,k=S?.isLoading||S?.loadingState==="loading"||S?.loadingState==="loadingMore",D=[...i.body.childNodes],$=m.getVirtualItems();let _,A;return i.size===0&&S.emptyContent&&(_=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!k&&S.emptyContent})})),k&&S.loadingContent&&(A=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:S.loadingContent}),!_&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(v,{ref:x,...ie(w,Fe(S,{enabled:y}),b),className:(r=s.tbody)==null?void 0:r.call(s,{class:C}),"data-empty":H(i.size===0),"data-loading":H(k),children:[$.map((N,M)=>{const O=D[N.index];return O?f.jsx(gk,{classNames:h,isSelectable:l,node:O,slots:s,state:a,style:{transform:`translateY(${N.start-M*N.size}px)`,height:`${N.size}px`},children:[...O.childNodes].map(L=>L.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:L,rowKey:O.key,selectionMode:p,slots:s,state:a},String(L.key)):f.jsx(fk,{classNames:h,node:L,rowKey:O.key,slots:s,state:a},String(L.key)))},String(O.key)):null}),A,_]})});bk.displayName="HeroUI.VirtualizedTableBody";var kV=bk,Uh=e=>typeof e=="number"?`${e}px`:e,vk=Se((e,t)=>{var r,n,o,s,a;const{as:i,className:l,state:u,node:c,slots:d,classNames:p,sortIcon:h,...m}=e,b=i||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:c},u,y),w=P(p?.th,l,(r=c.props)==null?void 0:r.className),{isFocusVisible:C,focusProps:S}=nt(),{isHovered:k,hoverProps:D}=vt({}),{hideHeader:$,align:_,width:A,minWidth:N,maxWidth:M,...O}=c.props,L=O.allowsSorting,I={};A&&(I.width=Uh(A)),N&&(I.minWidth=Uh(N)),M&&(I.maxWidth=Uh(M));const z={"aria-hidden":!0,"data-direction":(n=u.sortDescriptor)==null?void 0:n.direction,"data-visible":H(((o=u.sortDescriptor)==null?void 0:o.column)===c.key),className:(s=d.sortIcon)==null?void 0:s.call(d,{class:p?.sortIcon})},F=typeof h=="function"?h(z):g.isValidElement(h)&&g.cloneElement(h,z);return f.jsxs(b,{ref:y,colSpan:c.colspan,"data-focus-visible":H(C),"data-hover":H(k),"data-sortable":H(L),style:I,...ie(x,S,Fe(O,{enabled:v}),L?D:{},m),className:(a=d.th)==null?void 0:a.call(d,{align:_,class:w}),children:[$?f.jsx(wo,{children:c.rendered}):c.rendered,L&&(F||f.jsx(Hy,{strokeWidth:3,...z}))]})});vk.displayName="HeroUI.TableColumnHeader";var yk=vk,xk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,classNames:u,state:c,...d}=e,p=o||"tr",h=typeof p=="string",m=Pe(t),{rowProps:b}=uV({node:i},c),v=P(u?.tr,s,(r=i.props)==null?void 0:r.className);return f.jsx(p,{ref:m,...ie(b,Fe(i.props,{enabled:h}),d),className:(n=l.tr)==null?void 0:n.call(l,{class:v}),children:a})});xk.displayName="HeroUI.TableHeaderRow";var wk=xk,Ck=g.forwardRef((e,t)=>{var r;const{as:n,className:o,children:s,slots:a,classNames:i,...l}=e,u=n||"thead",c=Pe(t),{rowGroupProps:d}=Rh(),p=P(i?.thead,o);return f.jsx(u,{ref:c,className:(r=a.thead)==null?void 0:r.call(a,{class:p}),...ie(d,l),children:s})});Ck.displayName="HeroUI.TableRowGroup";var Sk=Ck,kk=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,getBaseProps:c,getWrapperProps:d,getTableProps:p}=ck({...e,ref:t}),{rowHeight:h=40,maxTableHeight:m=600}=e,b=g.useCallback(({children:$})=>f.jsx(r,{...d(),ref:x,style:{height:m,display:"block"},children:$}),[d,m]),y=[...o.body.childNodes].length,x=g.useRef(null),[w,C]=g.useState(0),S=g.useRef(null);g.useLayoutEffect(()=>{S.current&&C(S.current.getBoundingClientRect().height)},[S]);const k=x1({count:y,getScrollElement:()=>x.current,estimateSize:()=>h,overscan:5}),D=p();return f.jsxs("div",{...c(),children:[i==="outside"&&a,f.jsx(b,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...D,style:{height:`calc(${k.getTotalSize()+w}px)`,...D.style},children:[f.jsx(Sk,{ref:S,classNames:s.classNames,slots:s.slots,children:o.headerRows.map($=>f.jsx(wk,{classNames:s.classNames,node:$,slots:s.slots,state:s.state,children:[...$.childNodes].map(_=>{var A;return(A=_?.props)!=null&&A.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:_,selectionMode:s.selectionMode,slots:s.slots,state:s.state},_?.key):f.jsx(yk,{classNames:s.classNames,node:_,slots:s.slots,state:s.state},_?.key)})},$?.key))}),f.jsx(kV,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,rowVirtualizer:k,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});kk.displayName="HeroUI.VirtualizedTable";var PV=kk,Pk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,...m}=e,b=n||"tbody",v=typeof b=="string",y=Pe(t),{rowGroupProps:x}=Rh(),w=P(h?.tbody,o),C=i?.body.props,S=C?.isLoading||C?.loadingState==="loading"||C?.loadingState==="loadingMore",k=g.useMemo(()=>[...i.body.childNodes].map(_=>f.jsx(gk,{classNames:h,isSelectable:l,node:_,slots:s,state:a,children:[..._.childNodes].map(A=>A.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:A,rowKey:_.key,selectionMode:p,slots:s,state:a},A.key):f.jsx(fk,{classNames:h,node:A,rowKey:_.key,slots:s,state:a},A.key))},_.key)),[i.body.childNodes,h,l,s,a]);let D,$;return i.size===0&&C.emptyContent&&(D=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!S&&C.emptyContent})})),S&&C.loadingContent&&($=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:C.loadingContent}),!D&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(b,{ref:y,...ie(x,Fe(C,{enabled:v}),m),className:(r=s.tbody)==null?void 0:r.call(s,{class:w}),"data-empty":H(i.size===0),"data-loading":H(S),children:[k,$,D]})});Pk.displayName="HeroUI.TableBody";var $V=Pk,$k=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,removeWrapper:c,sortIcon:d,getBaseProps:p,getWrapperProps:h,getTableProps:m}=ck({...e,ref:t}),{isVirtualized:b,rowHeight:v=40,maxTableHeight:y=600}=e,x=b,w=g.useCallback(({children:C})=>c?C:f.jsx(r,{...h(),children:C}),[c,h]);return x?f.jsx(PV,{...e,ref:t,maxTableHeight:y,rowHeight:v}):f.jsxs("div",{...p(),children:[i==="outside"&&a,f.jsx(w,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...m(),children:[f.jsx(Sk,{classNames:s.classNames,slots:s.slots,children:o.headerRows.map(C=>f.jsx(wk,{classNames:s.classNames,node:C,slots:s.slots,state:s.state,children:[...C.childNodes].map(S=>{var k;return(k=S?.props)!=null&&k.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:S,selectionMode:s.selectionMode,slots:s.slots,state:s.state},S?.key):f.jsx(yk,{classNames:s.classNames,node:S,slots:s.slots,sortIcon:d,state:s.state},S?.key)})},C?.key))}),f.jsx($V,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});$k.displayName="HeroUI.Table";var ll=$k,EV=wV,Dt=EV,TV=yV,ul=TV,DV=CV,cl=DV,_V=xV,dl=_V,IV=SV,_t=IV;function NV({proposition:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=Ye();function o(s){return{base:P(s,n?.table?.base),wrapper:P(n?.table?.wrapper),table:P("table-fixed border-collapse",n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent p-0 px-0.5",n?.table?.th),td:P("first:pl-0 py-0 px-0.5 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)}}return f.jsxs("div",{className:P("mt-1 border-small border-default-200 rounded-medium p-2",n?.base),children:[f.jsxs(Fd,{orientation:"horizontal",hideScrollBar:!0,children:[f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o(),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.price+e.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(e.price,{symbol:"€"})}),f.jsx(_t,{children:me(e.creditFee,{symbol:"€"})})]})})]}),f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o("mt-4"),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[e.planVariant.contractTerm," ",r("format.month",{count:e.planVariant.contractTerm})]}),f.jsx(_t,{textValue:"0%",children:"0%"})]})})]})]}),f.jsxs("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:[f.jsx(xg,{i18nKey:"creditInfo.creditBundleDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-credit-bundle-description-link")],values:{creditPrice:me(250,{symbol:"€",dashed:!0}),creditProviderName:e.provider.creditProviderName}})," ",f.jsx("button",{type:"button",onClick:()=>{t("/inkomens-en-lastentoets").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink),children:r("detailsModal.moreInformation")})]})]})}function AV(e,t){return e===0?Q.t("format.firstMonth",{count:t}):Q.t("format.thenMonth",{count:t})}function Qt({label:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex justify-between items-center text-sm",r?.container),children:[f.jsx("div",{className:P(r?.label),children:e}),f.jsx("div",{className:P(r?.price),children:t})]})}function Ek({icon:e,title:t,subtitle:r,price:n,classNames:o}){return f.jsxs("div",{className:P("flex justify-between items-center",o?.header),children:[f.jsxs("div",{className:P("flex items-center gap-1",o?.headerContent),children:[f.jsx("div",{className:P(o?.icon),children:e}),f.jsxs("div",{children:[f.jsx("div",{className:P("font-semibold text-sm",o?.title),children:t}),f.jsx("div",{className:P("text-xs text-foreground-500",o?.subtitle),children:r})]})]}),f.jsx("div",{className:P("text-sm font-semibold",o?.price),children:n})]})}function MV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,monthlyFees:a,price:i,creditFee:l,tcoPerMonth:u,handsetCreditMonthlyFee:c,tcoTerm:d,tcoCorrection:p,activationFee:h,cashback:m,productVersion:b,installationFee:v}=e,y=t?.averageSection,x=t?.discountSection;return f.jsxs("div",{className:P("pb-4",t?.base),children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large",y?.container),children:[f.jsx(Ek,{icon:f.jsx(_g,{size:24,className:"stroke-foreground"}),title:n("detailsModal.costPerContractTermTitle"),subtitle:n("detailsModal.costPerContractTermSubtitle"),price:me(u),classNames:{header:y?.header,headerContent:y?.headerContent,icon:y?.icon,title:y?.title,subtitle:y?.subtitle,price:y?.price}}),f.jsx("div",{className:P("text-sm mt-2",y?.monthlyFeesContainer),children:a.map(({fee:w,term:C})=>f.jsx(Qt,{label:`${n("format.monthly")} ${C} x ${me(w,{symbol:"€"})}`,price:me(w*C),classNames:y?.monthlyFee},`${C}-${w}`))}),i!==0&&f.jsx(Qt,{label:n("format.oneTime"),price:me(i),classNames:y?.oneTimeFee}),f.jsx(Qt,{label:`${s.name} ${n("detailsModal.activationFee")}`,price:me(h),classNames:y?.activationFee}),o==="fixed"&&f.jsx(Qt,{label:`${s.name} ${n("detailsModal.installationFee")}`,price:me(v),classNames:y?.installationFee}),m!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:`-${me(m)}`,classNames:y?.cashback}),p!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:me(p),classNames:y?.cashback}),f.jsx(No,{orientation:"horizontal",className:P("my-3",y?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalCostsOverTerm",{count:d}),price:me(u*d),classNames:y?.totalCosts})]}),o==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large text-sm mt-3",x?.container),children:[f.jsx(Ek,{icon:f.jsx(tu,{size:24,className:"stroke-foreground"}),title:n("detailsModal.deviceDiscountTitle"),subtitle:n("detailsModal.deviceDiscountSubtitle"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:{header:x?.header,headerContent:x?.headerContent,icon:x?.icon,title:x?.title,subtitle:x?.subtitle,price:x?.price}}),f.jsx(Qt,{label:n("detailsModal.priceWithoutSubscription"),price:me(Number(b?.pricing.sellingPriceInclVat)),classNames:{container:P("my-2",x?.priceWithoutSubscription?.container),label:x?.priceWithoutSubscription?.label,price:x?.priceWithoutSubscription?.price}}),a.map(({fee:w,term:C},S)=>f.jsxs("div",{children:[f.jsx(Qt,{label:n("detailsModal.priceWithSubscription"),price:me(c*C+i),classNames:x?.priceWithSubscription}),f.jsx(Qt,{label:f.jsxs(f.Fragment,{children:[S===a.length-1?n("detailsModal.deviceBundle"):AV(S,C)," ",C," x ",me(c,{symbol:"€"})]}),price:me(c*C),classNames:{container:P(x?.handsetCosts?.container),label:P("pl-4",x?.handsetCosts?.label),price:P(x?.handsetCosts?.price)}})]},`discount-${C}-${w}-${c}-${i}`)),f.jsx(Qt,{label:n("detailsModal.devicePrice"),price:me(i),classNames:{container:P(x?.oneTimeFee?.container),label:P("pl-4",x?.oneTimeFee?.label),price:P(x?.oneTimeFee?.price)}}),f.jsx(No,{orientation:"horizontal",className:P("my-3",x?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalDeviceDiscount"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:x?.totalDiscount})]}),f.jsx("div",{className:P("text-xs text-foreground-500 mt-6",t?.creditInfoLabel),children:n("creditInfo.creditBundleTitle")}),f.jsx(NV,{proposition:e,buildClickOutUrl:r})]})]})}function fl({label:e,originalPrice:t,currentPrice:r,hasMonthlyPrice:n=!0,classNames:o}){return f.jsxs("div",{className:P("flex justify-between",o?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",o?.label),children:e}),n&&f.jsxs("div",{className:P("flex items-center gap-2",o?.priceContainer),children:[t&&f.jsx("div",{className:P("line-through text-foreground-400",o?.originalPrice),children:me(t)}),f.jsx("div",{className:P(o?.currentPrice),children:me(r)})]})]})}function Tk({term:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex text-sm text-foreground-400 justify-between",r?.container),children:[f.jsxs("div",{className:P("flex items-center gap-1",r?.label),children:[f.jsx(ME,{size:16,className:P("stroke-foreground-400",r?.icon)}),Q.t("format.afterMonth",{count:e})]}),f.jsx("div",{className:P(r?.price),children:me(t)})]})}function OV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,planVariant:a,bundles:i,monthlyFees:l,price:u,handsetCreditMonthlyFee:c,baseMonthlyFee:d,lifetimeMonthlyFee:p,productVersion:h}=e,m=l[l.length-1].fee,b=d>m?d:m,v=i.filter(_=>!_.contentTypes?.includes("handset_service")),y=v.filter(_=>_.contentTypes?.includes("combi_deal")),x=l&&l[l.length-1].fee!==p,w=l?.reduce((_,A)=>_+A.term,0),C=c>0?d-c:y.length?b-(y[0].baseMonthlyFee||0):b,S=c>0?l[0].fee-c:l[0].fee,k=S!==void 0&&C!==S,D=k?C:void 0,$=k?S:C;return f.jsxs("div",{className:P(t?.base),children:[f.jsxs("div",{className:P("mb-8",t?.monthlySection),children:[f.jsxs("div",{className:P("mb-2",t?.monthlyFeesContainer),children:[f.jsxs("div",{className:P("text-lg font-bold flex justify-between",t?.monthlyPriceHeader?.container),children:[f.jsx("div",{className:P(t?.monthlyPriceHeader?.label),children:n("format.monthly")}),f.jsx("div",{className:P(t?.monthlyPriceHeader?.price),children:me(l[0].fee)})]}),l?.map((_,A)=>{if(A+1===l?.length)return null;const N=l?.slice(0,A+1).reduce((M,O)=>M+O.term,0);return f.jsx(Tk,{term:N,price:l[A+1]?.fee||0,classNames:t?.monthlyFeeTransition},_.term)}),x&&w&&p&&f.jsx(Tk,{term:w,price:p,classNames:t?.lifetimeFee})]}),f.jsx(fl,{label:f.jsxs(f.Fragment,{children:[s.name," ",a.contractType==="retention"?`${n("detailsModal.renewal").toLowerCase()} `:"",sl(a.contractTerm)]}),originalPrice:D,currentPrice:$,classNames:t?.providerContract}),v.map(_=>{const A=_.contentTypes?.includes("combi_deal"),N=A&&_.promotionMonthlyFee||_.baseMonthlyFee||0,M=!A&&_.promotionMonthlyFee!==_.baseMonthlyFee&&_.promotionMonthlyFee||void 0,O=M!==void 0&&N!==M,L=O?N:void 0,I=O?M:N,z=N!==0||M!==void 0&&M!==0;return f.jsx(fl,{label:_.displayName,originalPrice:L,currentPrice:I,hasMonthlyPrice:z,classNames:{container:P("text-sm text-foreground-400",t?.bundle?.container),label:P("pl-4",t?.bundle?.label),priceContainer:t?.bundle?.priceContainer,originalPrice:t?.bundle?.originalPrice,currentPrice:t?.bundle?.currentPrice}},_.displayName)}),c>0&&f.jsx(fl,{label:n("detailsModal.deviceBundle"),currentPrice:c,classNames:{container:P("mt-2",t?.handsetBundle?.container),label:t?.handsetBundle?.label,priceContainer:t?.handsetBundle?.priceContainer,currentPrice:t?.handsetBundle?.currentPrice}}),o==="smartphone"&&f.jsxs(f.Fragment,{children:[f.jsx(No,{orientation:"horizontal",className:P("my-4",t?.separator)}),f.jsxs("div",{className:P("text-lg font-bold flex justify-between mb-1",t?.oneTimeSection?.header?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.header?.label),children:n("format.oneTime")}),f.jsx("div",{className:P("flex items-center gap-2",t?.oneTimeSection?.header?.price),children:f.jsx("div",{children:me(u)})})]}),f.jsx(fl,{label:f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.productRow?.label),children:h?.fullName}),currentPrice:u,classNames:t?.oneTimeSection?.productRow})]})]}),f.jsx(MV,{proposition:e,classNames:t?.propositionOverview,buildClickOutUrl:r})]})}function Sr({title:e,rows:t,classNames:r}){return t.length===0?null:f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-semibold",r?.title),children:e}),f.jsxs(ll,{removeWrapper:!0,hideHeader:!0,isCompact:!0,"aria-label":e,classNames:{base:P(r?.table?.base),wrapper:P(r?.table?.wrapper),table:P("table-fixed",r?.table?.table),thead:P(r?.table?.thead),tbody:P(r?.table?.tbody),tr:P("border-b border-default-100",r?.table?.tr),th:P(r?.table?.th),td:P(r?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:"Label"}),f.jsx(Dt,{children:"Waarde"})]}),f.jsx(dl,{children:t.map(n=>f.jsxs(cl,{children:[f.jsx(_t,{children:n.label}),f.jsx(_t,{children:n.value})]},n.key))})]})]})}function jV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),o=e.bundles.filter(c=>c.isExtra),s=e.tags.find(c=>c.type==="internet"),a=e.productType==="fixed"?[{label:n("detailsModal.provider"),value:e.provider.name,key:"provider"},...e.provider.network?[{label:n("detailsModal.networkAdministrator"),value:e.provider.network.replace(/-netwerk/g,""),key:"networktype"}]:[],...s?[{label:n("detailsModal.networkType"),value:n(`fixedInternet.${s.slug}`,{defaultValue:s.label}),key:"networktype"}]:[]]:[{label:n("detailsModal.network"),value:`${e.provider.network?.replace(/-netwerk/g,"")} ${n("detailsModal.network").toLowerCase()}`,key:"network"},{label:n("detailsModal.networkCoverage"),value:e.provider.networkCoverage,key:"networktype"}],i=e.productType==="fixed"?[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"}]:[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"},{label:n("detailsModal.subscriptionType"),value:e.planVariant.name,key:"subscription-type"},{label:n("detailsModal.internet"),value:Xt(e.content.data,n("format.gigabyte")),key:"internet"},{label:n("detailsModal.calling"),value:Xt(e.content.minutes,n("format.minutes")),key:"calling"},{label:n("detailsModal.sms"),value:Xt(e.content.sms,n("format.sms")),key:"sms"},...o.length>0?[{label:n("detailsModal.extras"),value:o.map(c=>c.displayName).join(", "),key:"extras"}]:[]],l=e.productType==="fixed"?[]:[{label:n("detailsModal.networkGeneration"),value:N3(e.content.networkGeneration),key:"network-generation"},{label:n("detailsModal.downloadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedDown/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedDown/1e3," ",n("format.megabitPerSecond")]}),key:"download-speed"},{label:n("detailsModal.uploadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedUp/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedUp/1e3," ",n("format.megabitPerSecond")]}),key:"upload-speed"}],u=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{r(`/${e.provider.termsAndConditionsUrl}`).then(c=>window.open(c,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[n("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Sr,{title:n("detailsModal.network"),rows:a,classNames:t}),f.jsx(Sr,{title:e.productType==="fixed"?n("detailsModal.subscription"):n("detailsModal.bundle"),rows:i,classNames:t}),f.jsx(Sr,{title:n("detailsModal.bundleSpeed"),rows:l,classNames:t}),e.productType==="fixed"&&f.jsx(Sr,{title:n("detailsModal.termsAndConditions"),rows:u,classNames:t})]})}function FV({proposition:e,classNames:t,onChannelsClick:r,buildClickOutUrl:n}){const{t:o}=Oe(),{plan:s,content:a,bundles:i,provider:l,productType:u}=e,{sharedCredits:c}=a,d=Xt(a.dataEu,o("format.gigabyte")),p=Xt(a.minutesEu,o("format.minutes")),h=Xt(a.minutesToEu,o("format.minutes")),m=["data","minutes"].every(w=>c?.includes(w))?"/":"+";if(u==="fixed"){const w=[{label:o("detailsModal.maximumDownloadSpeed"),value:`${a.dataSpeedDown/1e3} ${o("format.megabitPerSecond")}`,key:"download-speed"},{label:o("detailsModal.maximumUploadSpeed"),value:`${a.dataSpeedUp/1e3} ${o("format.megabitPerSecond")}`,key:"upload-speed"}],C=i.filter(S=>S.contentTypes?.includes("tv"))?.length>0?[{label:o("detailsModal.numberOfChannels"),value:f.jsxs("button",{type:"button",onClick:r,className:P("text-primary-600 hover:underline cursor-pointer",t?.link),children:[a.channels.length," (",a.hdChannels.length," HD)"]}),key:"channels"},{label:o("detailsModal.numberOfReceivers"),value:a.receivers,key:"receivers"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Sr,{title:o("detailsModal.internet"),rows:w,classNames:t}),C.length>0&&f.jsx(Sr,{title:o("detailsModal.television"),rows:C,classNames:t})]})}const b=[{label:o("detailsModal.dataExceedance"),value:s.bundleExceedanceDataLimitReached,key:"data-exceedance"},{label:o("detailsModal.bundleExceedanceRates"),value:s.bundleExceedanceRate,key:"exceedance-rate"},{label:o("detailsModal.bundleExceedanceRateCeiling"),value:s.bundleExceedanceRateCeiling,key:"rate-ceiling"},{label:o("detailsModal.bundleExceedanceWarning"),value:s.bundleExceedanceWarning,key:"warning"},{label:o("detailsModal.bundleExceedanceMinutesRounding"),value:s.bundleExceedanceMinutesRounding,key:"minutes-rounding"}],v=[{label:o("detailsModal.upgradeBundle"),value:s.bundleUpgrade,key:"upgrade"},{label:o("detailsModal.downgradeBundle"),value:s.bundleDowngrade,key:"downgrade"}],y=[{label:o("detailsModal.insideEu"),value:a.minutesEu>0?`${d} ${m} ${p}`:d,key:"in-eu"},{label:o("detailsModal.outsideEu"),value:f.jsxs("button",{type:"button",onClick:()=>{n(`/tariefinformatie/${l.slug}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.moreInformation")," ",f.jsx(ts,{size:16})]}),key:"out-eu"},...a.minutesToEu>0?[{label:o("detailsModal.minutesToEu"),value:h,key:"to-eu"}]:[]],x=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{n(`/${e.provider.termsAndConditionsUrl}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Sr,{title:o("detailsModal.outsideBundle"),rows:b,classNames:t}),f.jsx(Sr,{title:o("detailsModal.subscriptionFlexibility"),rows:v,classNames:t}),f.jsx(Sr,{title:o("detailsModal.abroad"),rows:y,classNames:t}),f.jsx(Sr,{title:o("detailsModal.termsAndConditions"),rows:x,classNames:t})]})}function BV(e){const t=[e.provider.name,e.plan?.name];return e.planVariant.contractTerm===24?t.push(`2 ${Q.t("format.year",{count:2})}`):e.planVariant.contractTerm===12&&t.push(`1 ${Q.t("format.year")}`),e.planVariant.contractType==="retention"&&t.push(Q.t("detailsModal.renewal")),Array.from(new Set(t)).join(" ").trim()}function pl({isOpen:e,onOpenChange:t,proposition:r,defaultTab:n="general",buildClickOutUrl:o}){const{t:s}=Oe(),[a,i]=Co(),{results:{detailsModal:l}={}}=Ye(),{popoverProps:u}=on(),[c,d]=g.useState(n);if(!r)return null;const p=Xt(r.content.data,s("format.gigabyte")),{sharedCredits:h}=r.content,m=["data","minutes"].every(v=>h?.includes(v))?"/":"+",b=r.tags.find(v=>v.type==="internet");return f.jsx($o,{isOpen:e,onOpenChange:t,placement:"bottom-center",scrollBehavior:"inside",size:"lg",portalContainer:u.portalContainer,classNames:{backdrop:P(l?.modal?.backdrop),wrapper:P(l?.modal?.wrapper),base:P(l?.modal?.base),header:P(l?.modal?.header),body:P(l?.modal?.body),footer:P(l?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",l?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:f.jsx("span",{children:s("detailsModal.title")})}),f.jsxs(So,{onPointerDown:v=>v.stopPropagation(),children:[f.jsxs("div",{className:P("flex items-center gap-2",l?.propositionInfo?.container),children:[r.productType==="smartphone"&&r.productVersion?f.jsx(Jt,{src:a(r.productVersion.media.main?.url||"",64,64),srcSet:i(r.productVersion.media.main?.url||"",64,64),alt:r.productVersion.media.main?.altText||"",width:64,height:64,className:P(l?.propositionInfo?.image)}):f.jsx(Jt,{src:a(r.provider.imageUrl,48,24),srcSet:i(r.provider.imageUrl,48,24),alt:r.provider.name,width:48,height:24,className:P(l?.propositionInfo?.image)}),f.jsxs("div",{className:P("text-sm",l?.propositionInfo?.content),children:[r.productType!=="smartphone"&&f.jsx("div",{className:P("font-semibold",l?.propositionInfo?.name),children:BV(r)}),r.productType==="fixed"?f.jsxs("div",{className:P(l?.propositionInfo?.details),children:[r.content.dataSpeedDown/1e3," ",s("format.megabitPerSecond")," ",b?s(`fixedInternet.${b.slug}`,{defaultValue:b.label}):""]}):f.jsx("div",{className:P(l?.propositionInfo?.details),children:r.content.minutes>0?f.jsxs("div",{children:[f.jsx("span",{children:p})," ",m," ",f.jsxs("span",{children:[Oh(r.content.minutes)," ",s("format.minutes_short")]})]}):f.jsx("div",{children:p})}),r.productType==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("font-semibold",l?.propositionInfo?.productName),children:[r.productVersion?.product.fullName," "]}),f.jsx("div",{className:P("text-xs",l?.propositionInfo?.productProperties),children:r.productVersion?.distinctProperties.map(v=>v.option.label).join(", ")})]})]})]}),f.jsxs(c1,{onPointerDown:v=>v.stopPropagation(),selectedKey:c,radius:"full",color:"primary","aria-label":s("detailsModal.chooseTab"),classNames:{base:P(l?.tabs?.base),tabList:P("relative",l?.tabs?.tabList),tab:P(l?.tabs?.tab),panel:P("h-[60vh]",l?.tabs?.panel),cursor:P(l?.tabs?.cursor)},children:[f.jsx(Io,{title:s("detailsModal.general"),onClick:()=>d("general"),children:f.jsx(jV,{proposition:r,classNames:l?.general,buildClickOutUrl:o})},"general"),f.jsx(Io,{title:r.productType==="fixed"?s("detailsModal.bundles"):s("detailsModal.conditions"),onClick:()=>d("conditions"),children:f.jsx(FV,{proposition:r,classNames:l?.terms,onChannelsClick:()=>d("channels"),buildClickOutUrl:o})},"conditions"),r.productType==="fixed"&&f.jsx(Io,{title:s("detailsModal.channels"),onClick:()=>d("channels"),children:f.jsx(UL,{channels:r.content.channels,hdChannels:r.content.hdChannels,classNames:l?.channels})},"channels"),f.jsx(Io,{title:s("detailsModal.costs"),onClick:()=>d("costs"),children:f.jsx(OV,{proposition:r,classNames:l?.costOverview,buildClickOutUrl:o})},"costs")]})]})]})})}function Dk({label:e,classNames:t}){return f.jsx("div",{className:P("px-4",t?.wrapper),children:f.jsx("div",{className:P("w-full text-background text-xs font-semibold text-center px-4 rounded-t-xl h-6 flex items-center justify-center shadow-small",{"bg-primary":e.color==="primary","bg-secondary":e.color==="secondary","bg-default":e.color==="default","bg-success":e.color==="success","bg-warning":e.color==="warning","bg-danger":e.color==="danger"},t?.text),children:e.displayName})})}function zV({productStockStatus:e,classNames:t}){const{t:r}=Oe(),n=r("propositionCard.availableStockStatus"),o=r("propositionCard.backorderedStockStatus"),s=r("propositionCard.preOrderStockStatus"),a=g.useMemo(()=>{switch(e){case"in_stock":return n;case"backordered":return o;case"preorder":return s;default:return null}},[e,n,o,s]);return a?f.jsxs("div",{className:P("text-center flex items-center justify-center gap-1.5",t?.wrapper),children:[f.jsx("div",{className:P("size-2 rounded-full",{"bg-success":e==="in_stock"||e==="preorder","bg-warning":e==="backordered"},t?.icon)}),f.jsx("span",{className:P("text-sm text-foreground",t?.text),children:a})]}):null}function _k({hasProduct:e,productImageUrl:t,productImageAlt:r,productStockStatus:n,propositionImageUrl:o,propositionImageAlt:s,horizontal:a,classNames:i}){const[l,u]=Co();if(e){const c=a?140:200;return f.jsxs("div",{className:P("flex flex-col gap-2 items-center w-full",i?.phoneImage?.wrapper),children:[t&&r&&f.jsx(Jt,{alt:r,height:c,src:l(t,c,c),srcSet:u(t,c,c),width:c,classNames:{wrapper:P("mx-auto flex shrink-0",i?.phoneImage?.imageWrapper),img:P("aspect-square drop-shadow-lg",i?.phoneImage?.image)}}),f.jsx(zV,{productStockStatus:n,classNames:i?.phoneImage?.stockIndicator})]})}return f.jsx(Jt,{alt:s,height:70,src:l(o,140,70),srcSet:u(o,140,70),width:140,classNames:{wrapper:P("mx-auto flex shrink-0",i?.providerImage?.imageWrapper),img:P("aspect-2/1",i?.providerImage?.image)}})}function Ik({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,tcoPerMonth:n,onInfoClick:o,classNames:s,horizontal:a}){const{t:i}=Oe(),[l,u]=t.split(",");return f.jsxs("div",{className:P("flex flex-col",a&&"items-end text-right",s?.wrapper),children:[e&&f.jsx("div",{className:P("text-sm text-foreground-500 whitespace-nowrap",s?.promotionText),children:e}),f.jsxs("div",{className:P("flex items-end gap-1",s?.monthlyFeeWrapper),children:[f.jsxs("div",{className:P("flex items-start font-extrabold -tracking-[1px] text-foreground h-8 text-[32px] leading-8",s?.monthlyFeeValue),children:[f.jsx("span",{children:l}),f.jsx("span",{className:"font-bold mt-0.5 ml-[3px] text-[22px] leading-8",children:","}),f.jsx("span",{className:"font-bold -mt-[3px] -ml-[3px] text-lg leading-8",children:u})]}),f.jsxs("div",{className:P("text-sm text-foreground leading-none",s?.monthlyFeeLabel),children:["/ ",i("format.month")]})]}),r&&f.jsxs("div",{className:P("text-sm font-semibold text-foreground",s?.oneTimeFee),children:["+ ",f.jsx("span",{children:r})," ",i("propositionCard.oneTimeFee")]}),n&&f.jsxs("div",{className:P("flex items-center gap-1 text-sm mt-1",s?.averagePriceWrapper),children:[f.jsx(_g,{size:16,className:P("text-primary-600",s?.averagePriceIcon)}),f.jsxs("button",{type:"button",className:P("underline underline-offset-4 text-primary-600 cursor-pointer",s?.averagePriceValue),onPointerDown:c=>{c.preventDefault(),c.stopPropagation()},onClick:c=>{c.preventDefault(),c.stopPropagation(),o("costs")},onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),o("costs"))},tabIndex:0,children:[i("format.average_short")," ",n," / ",i("format.month")]})]})]})}function Nk({promotions:e,urgentText:t,classNames:r}){return f.jsxs("div",{className:P("flex flex-col gap-0",r?.base),children:[t&&f.jsx(f2,{classNames:{base:P("mb-1 border-1 text-xs",r?.urgentChip?.base),content:P("font-semibold",r?.urgentChip?.content)},color:"warning",size:"sm",variant:"bordered",children:f.jsx("span",{children:t})}),e.map(n=>f.jsxs("div",{className:P("flex flex-row items-center gap-1 text-sm @xs:text-base leading-none",r?.item),children:[f.jsx(LE,{size:20,className:P("shrink-0 text-success-600",r?.promotionIcon)}),f.jsx("span",{children:n})]},n))]})}function LV({slug:e,size:t=16,className:r}){switch(e){case"contract-term":return f.jsx(VE,{size:t,className:r});case"data-speed-down":return f.jsx(UE,{size:t,className:r});case"provider-network":return f.jsx(FE,{size:t,className:r});case"data-eu":return f.jsx(GE,{size:t,className:r});case"internet-speed":return f.jsx(OE,{size:t,className:r});case"channels":return f.jsx(RE,{size:t,className:r});case"tv-receiver":return f.jsx(KE,{size:t,className:r});default:return null}}function Ak({productTitle:e,propositionTitle:t,propositionSubtitle:r,imageUrl:n,imageAlt:o,hasProduct:s,horizontal:a,propositionSpecifications:i,onInfoClick:l,classNames:u}){const[c,d]=Co(),p=70,h=35;return f.jsxs("div",{className:P("flex flex-col",u?.base),children:[f.jsxs("div",{className:P("flex justify-between gap-3 w-full",a&&"w-fit",u?.titleWrapper),children:[f.jsxs("div",{children:[s&&e&&f.jsx("div",{className:P("text-base leading-tight font-bold @xs:text-xl",u?.phone?.title),children:e}),s&&f.jsxs("div",{className:P("text-sm leading-tight @xs:text-base",u?.phone?.subtitle),children:[t," • ",r]}),!s&&f.jsxs("div",{className:P("flex flex-row items-center gap-1 leading-tight",u?.proposition?.wrapper),children:[f.jsx("span",{className:P("text-xl font-extrabold text-foreground",u?.proposition?.title),children:t}),f.jsxs("span",{className:P(u?.proposition?.subtitle),children:["• ",r]})]})]}),s&&n&&o&&f.jsx(Jt,{alt:o,height:h,src:c(n,p,h),srcSet:d(n,p,h),width:p,classNames:{wrapper:P("flex shrink-0",u?.phone?.providerImageWrapper),img:P("aspect-2/1",u?.phone?.providerImage)}})]}),!s&&i&&f.jsx("div",{className:P("flex flex-wrap items-center gap-x-2 gap-y-1 text-foreground-500",u?.proposition?.specifications?.wrapper),children:i.map(m=>f.jsxs("button",{type:"button",className:P("text-sm flex items-center gap-1 cursor-pointer hover:underline whitespace-nowrap",u?.proposition?.specifications?.item),onPointerDown:b=>{b.preventDefault(),b.stopPropagation()},onClick:b=>{b.preventDefault(),b.stopPropagation(),l?.(m.slug==="channels"?"channels":"general")},children:[f.jsx(LV,{slug:m.slug,className:P(u?.proposition?.specifications?.icon)}),f.jsx("span",{children:m.title})]},m.title))})]})}function Mk({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Ad,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container flex flex-row",w?.card),children:[f.jsx("div",{className:P("p-6 w-fit",w?.horizontalCard?.header),children:f.jsx(_k,{horizontal:!0,hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsx(No,{orientation:"vertical",className:P(w?.horizontalCard?.divider)}),f.jsxs("div",{className:P("p-6 flex flex-col gap-3 flex-1 w-fit",w?.horizontalCard?.body),children:[f.jsx(Ak,{horizontal:!0,hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Nk,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsxs("div",{className:P("p-6 pl-0 flex flex-col items-end gap-4 shrink-0 self-end",w?.horizontalCard?.footer),children:[f.jsx(Ik,{horizontal:!0,monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing}),f.jsx(qt,{className:P("font-medium gap-1 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function VV({label:e,...t}){const{results:{propositionCard:r}={}}=Ye();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:{wrapper:r?.label?.wrapper,text:P("w-max",r?.label?.text)}}),f.jsx(Mk,{classNames:r,...t})]}):f.jsx(Mk,{classNames:r,...t})}function Ok({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Ad,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container h-full",w?.card),children:[f.jsx(p7,{className:P("p-3 pt-6 @xs:px-6",w?.verticalCard?.header),children:f.jsx(_k,{hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsxs(S1,{className:P("py-0 px-3 @xs:px-6 gap-2 overflow-hidden",w?.verticalCard?.body),children:[f.jsx(Ak,{hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Nk,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsx(No,{className:P("mt-3",w?.verticalCard?.divider)}),f.jsxs(f7,{className:P("flex-col justify-between items-start text-start p-3 @xs:p-6 @xs:pt-3",w?.verticalCard?.footer),children:[f.jsx("div",{className:"w-full",children:f.jsx(Ik,{monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing})}),f.jsx(qt,{className:P("font-medium gap-1 mt-4 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",fullWidth:!0,disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function RV({label:e,...t}){const{results:{propositionCard:r}={}}=Ye();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:r?.label}),f.jsx(Ok,{classNames:r,...t})]}):f.jsx(Ok,{classNames:r,...t})}function zn({horizontal:e,...t}){return e?f.jsx(VV,{...t}):f.jsx(RV,{...t})}function Hh(e,t){if(!t)return e;const r=Math.floor(parseFloat(t));return Number.isNaN(r)||r<=20?e:[...e,`€ ${r},- ${Q.t("propositionCard.deviceDiscount")}`]}function hn(e,t=500,r=7){if(!e)return!1;const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function KV(e){return e.sort((t,r)=>{if(hn(t)&&hn(r)){const n=new Date(t.validUntil),o=new Date(r.validUntil);return n.getTime()===o.getTime()?r.weight-t.weight:n.getTime()-o.getTime()}return hn(t)&&!hn(r)?-1:hn(r)&&!hn(t)?1:r.weight-t.weight})}function Ln(e){const t=KV(e.specialPromotions.filter(l=>l.shortDescription&&!l.shortDescription.includes("toestelkorting")&&l.weight>200)),r=hn(t[0])?t[0]?.shortDescription:null,n=r?t.slice(1):t,o=r?[r]:[],s=n.map(l=>l.shortDescription).filter(l=>!!l),a=e.bundles.flatMap(l=>l.usps);if(e.productType!=="fixed")return[...o,...a,...s];const i=e.bundles.filter(l=>l.contentTypes?.includes("tv")||l.contentTypes?.includes("phone")).map(l=>l.displayName).filter(l=>!!l);return[...o,...i,...a,...s]}function Vn(e){const t=e.filter(n=>hn(n));if(t.length===0)return;const r=Math.min(...t.map(n=>{const o=new Date,s=new Date(n.validUntil);return Math.ceil((s.getTime()-o.getTime())/(1440*60*1e3))}))+1;return Q.t("propositionCard.urgentText",{days:r,count:r})}function hl({isReachingEnd:e,loadMore:t,isValidating:r,className:n}){const{t:o}=Oe();return e?null:f.jsx(qt,{className:P("font-medium mx-auto text-primary-600 border-primary-600 min-w-[234px] rounded-full",n),onPress:t,color:"primary",variant:"flat",size:"md",disableAnimation:!0,disableRipple:!0,isLoading:r,disabled:r,endContent:!r&&f.jsx(BE,{size:20}),children:o(r?"productResults.loadMore":"productResults.showMoreOffers")})}function WV({size:e,height:t,width:r,className:n,style:o,...s}){return f.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...s,children:[f.jsx("title",{children:"Search Loading Icon"}),f.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),f.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),f.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),f.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),f.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function UV({address:e}){const{t}=Oe(),{results:{postcodeCheckLoading:r}={}}=Ye();return f.jsxs("div",{className:P("flex flex-row items-center justify-center md:gap-6 rounded-large bg-white p-4 shadow-md mb-4",r?.base),children:[f.jsx(WV,{className:P("animate-pulse shrink-0 size-20 md:size-[106px]",r?.icon)}),f.jsxs("div",{className:P("max-w-[215px] text-center flex flex-col items-center gap-2",r?.textWrapper),children:[f.jsx("div",{className:P("text-base md:text-xl font-bold leading-none text-foreground",r?.heading),children:t("postcodeCheck.loading")}),f.jsxs("div",{className:P("text-xs md:text-sm text-foreground leading-none",r?.addressText),children:[e.street," ",RL(e.number,e.numberAddon),", ",e.city]})]})]})}function ml(){const{t:e}=Oe(),{results:{resultsNotFound:t}={}}=Ye();return f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-bold text-foreground mb-1 lg:hidden",t?.filterChips?.title),children:e("filters.chosenFilters")}),f.jsx(p2,{className:"mb-6 lg:hidden"}),f.jsx(lh,{color:"warning",variant:"faded",title:e("productResults.noResultsTitle"),description:e("productResults.noResultsDescription"),hideIconWrapper:!0,classNames:{base:P(t?.alert?.base),title:P(t?.alert?.title),description:P(t?.alert?.description),mainWrapper:P(t?.alert?.mainWrapper),closeButton:P(t?.alert?.closeButton),iconWrapper:P(t?.alert?.iconWrapper),alertIcon:P(t?.alert?.alertIcon)}})]})}function Rn({count:e,horizontal:t,large:r}){const{results:{skeletonCard:n}={}}=Ye();return f.jsx(f.Fragment,{children:Array.from({length:e}).map((o,s)=>f.jsx(Id,{className:P("shadow-small rounded-large",r?"h-140":"h-100",t&&(r?"h-54":"h-46"),n)},s))})}const HV=void 0,qh=Object,jk=e=>e===HV,qV=e=>typeof e=="function",gl=new WeakMap,GV=e=>qh.prototype.toString.call(e),Gh=(e,t)=>e===`[object ${t}]`;let ZV=0;const Zh=e=>{const t=typeof e,r=GV(e),n=Gh(r,"Date"),o=Gh(r,"RegExp"),s=Gh(r,"Object");let a,i;if(qh(e)===e&&!n&&!o){if(a=gl.get(e),a)return a;if(a=++ZV+"~",gl.set(e,a),Array.isArray(e)){for(a="@",i=0;i<e.length;i++)a+=Zh(e[i])+",";gl.set(e,a)}if(s){a="#";const l=qh.keys(e).sort();for(;!jk(i=l.pop());)jk(e[i])||(a+=i+":"+Zh(e[i])+",");gl.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},YV=e=>{if(qV(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Zh(e):"",[e,t]},JV=e=>YV(e?e(0,null):null)[0],Yh=Promise.resolve(),bl=px(ad,e=>(t,r,n)=>{const o=g.useRef(!1),{cache:s,initialSize:a=1,revalidateAll:i=!1,persistSize:l=!1,revalidateFirstPage:u=!0,revalidateOnMount:c=!1,parallel:d=!1}=n,[,,,p]=br.get(nd);let h;try{h=JV(t),h&&(h=cx+h)}catch{}const[m,b,v]=an(s,h),y=g.useCallback(()=>Te(m()._l)?a:m()._l,[s,h,a]);ma.useSyncExternalStore(g.useCallback($=>h?v(h,()=>{$()}):()=>{},[s,h]),y,y);const x=g.useCallback(()=>{const $=m()._l;return Te($)?a:$},[h,a]),w=g.useRef(x());vi(()=>{if(!o.current){o.current=!0;return}h&&b({_l:l?w.current:x()})},[h,s]);const C=c&&!o.current,S=e(h,async $=>{const _=m()._i,A=m()._r;b({_r:ct});const N=[],M=x(),[O]=an(s,$),L=O().data,I=[];let z=null;for(let F=0;F<M;++F){const[B,U]=Es(t(F,d?null:z));if(!B)break;const[E,j]=an(s,B);let T=E().data;const V=i||_||Te(T)||u&&!F&&!Te(L)||C||L&&!Te(L[F])&&!n.compare(L[F],T);if(r&&(typeof A=="function"?A(T,U):V)){const K=async()=>{if(!(B in p))T=await r(U);else{const Z=p[B];delete p[B],T=await Z}j({data:T,_k:U}),N[F]=T};d?I.push(K):await K()}else N[F]=T;d||(z=T)}return d&&await Promise.all(I.map(F=>F())),b({_i:ct}),N},n),k=g.useCallback(function($,_){const A=typeof _=="boolean"?{revalidate:_}:_||{},N=A.revalidate!==!1;return h?(N&&(Te($)?b({_i:!0,_r:A.revalidate}):b({_i:!1,_r:A.revalidate})),arguments.length?S.mutate($,{...A,revalidate:N}):S.mutate()):Yh},[h,s]),D=g.useCallback($=>{if(!h)return Yh;const[,_]=an(s,h);let A;if(ar($)?A=$(x()):typeof $=="number"&&(A=$),typeof A!="number")return Yh;_({_l:A}),w.current=A;const N=[],[M]=an(s,h);let O=null;for(let L=0;L<A;++L){const[I]=Es(t(L,O)),[z]=an(s,I),F=I?z().data:ct;if(Te(F))return k(M().data);N.push(F),O=F}return k(N)},[h,s,k,x]);return{size:x(),setSize:D,mutate:k,get data(){return S.data},get error(){return S.error},get isValidating(){return S.isValidating},get isLoading(){return S.isLoading}}});function vl(e,t,r,n,o,s,a){if(s&&!s.search?.records?.length)return null;const i=o*n,l={...t,limit:n,offset:i};return[e,{query:l,modificationBlocks:r,...a}]}function XV({query:e,modificationBlocks:t,address:r,pageSize:n}){function o(s,a){return vl(q8,e,t,n,s,a,r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:void 0)}return bl(o,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function QV({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(G8,e,t,r,o,s)}return bl(n,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function eR({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(Z8,e,t,r,o,s)}return bl(n,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function tR({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(Y8,e,t,r,o,s)}return bl(n,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function yl({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o,distinctProperties:s}){const a=wL(n,o),i=eO({filterOptions:e,filterValues:t,limit:r,currentProvider:a,distinctProperties:s});switch(n){case"sim-only-proposition":{const l=yr(t,"providers");i.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":"provider");const u=QV({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}case"fixed-proposition":{i.groupBy("provider_data_speed_down");const l=XV({query:i.serialize(),modificationBlocks:nl(n,o),address:o.address,pageSize:r}),{data:u=[],error:c,...d}=l;return{...d,data:u[0],dataArray:u,error:c}}case"smartphone-proposition":{const l=yr(t,"sorteren"),u=yr(t,"providers");i.groupBy(Array.isArray(u)&&u.length===1?"data_and_speed":"provider"),l==="relevantie"&&i.sort("top");const c=eR({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:d=[],error:p,...h}=c;return{...h,data:d[0],dataArray:d,error:p}}case"smartphone-proposition-extended":{const l=yr(t,"sorteren");i.groupBy(l==="relevantie"?"product_provider_slug":"product_slug");const u=tR({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}default:return{data:void 0,dataArray:[],isLoading:!1,isValidating:!1,error:void 0,mutate:async()=>{},size:0,setSize:()=>{}}}}function rR(e,t,r,n){const{currentProviderSlug:o,currentFixedProviderScope:s,currentMobileProviders:a}=t,i=new URLSearchParams;if(o&&i.set("huidige-provider",o),s||a&&a.length>0){const c=[s?`${s}:1`:void 0,...a?a.map(d=>`${d.scope}:${d.value}`):[]].filter(Boolean).join(",");i.set("klantvoordeel",c)}r&&i.set("ppt",r);const l=e.startsWith("/")?e:`/${e}`,u=n?n(i).toString():i.toString();return u?`https://www.mobiel.nl${l}?${u}`:`https://www.mobiel.nl${l}`}function xl({addClickoutSearchParams:e}){const{profile:t}=zr();async function r(n){const o=await SL();return rR(n,t,o,e)}return{buildClickOutUrl:r}}function wl({lastPageLength:e,isValidating:t,size:r,setSize:n,activeFilters:o,profile:s,limit:a}){const i=g.useRef("");g.useEffect(()=>{const c=JSON.stringify({activeFilters:o,profile:s});i.current!==c&&i.current!==""&&n(1),i.current=c},[o,s,n]);const l=e===void 0||e===0||e<a;function u(){t||n(r+1)}return{isReachingEnd:l,loadMore:u}}function nR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=xr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{data:v,dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,mutate:k,error:D}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:$,loadMore:_}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:n}),A=y.flatMap(I=>I.search.records),{polling:N,validating:M}=v&&"fetchInfo"in v?v.fetchInfo:{polling:!1,validating:!1};if(g.useEffect(()=>{if(!N)return;const I=setInterval(()=>k(),1e3);return()=>clearInterval(I)},[N,k]),Mr(()=>{c.address&&k()},[c.address?.postcode,c.address?.number,c.address?.numberAddon,k]),D)throw new Error(String(D));if(!N&&!w&&A.length===0)return f.jsx(ml,{});const{top:O,all:L}=x?{top:[],all:[]}:Fh({propositions:A,productCategory:e,labelColorConfig:r});return f.jsxs("div",{children:[N&&c.address&&f.jsx(UV,{address:c.address}),f.jsxs("div",{className:P((w||M)&&!N&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):O.map(I=>{if(c.currentFixedProviderScope?.includes(I.provider.slug))return null;const F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:I.label,horizontal:s==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},`top-${I.key}`)})})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):L.map(I=>{const z=c.currentFixedProviderScope?.includes(I.provider.slug),F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:z?{displayName:`Alleen voor nieuwe ${I.provider.name}-klanten`,color:"default"}:I.label,disabled:z,horizontal:o==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},I.key)}),f.jsx(hl,{isReachingEnd:$,loadMore:_,isValidating:w,className:u?.loadMoreButton})]})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:I=>!I&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function oR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=xr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{dataArray:v,isLoading:y,isValidating:x,size:w,setSize:C,error:S}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:k,loadMore:D}=wl({lastPageLength:v[v.length-1]?.search.records.length,isValidating:x,size:w,setSize:C,activeFilters:p,profile:c,limit:n});if(S)throw new Error(String(S));const $=v.flatMap(N=>N.search.records);if(!x&&$.length===0)return f.jsx(ml,{});const{top:_,all:A}=y?{top:[],all:[]}:Fh({propositions:$,productCategory:e,labelColorConfig:r});return f.jsxs("div",{className:P(x&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:y?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):_.map(N=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:N}),b(`/aanbieding/${N.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:N,tab:M}),m({proposition:N,tab:M})},label:N.label,horizontal:s==="horizontal",monthlyFee:me(N.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(N.monthlyFees,N.baseMonthlyFee,N.lifetimeMonthlyFee),tcoPerMonth:me(N.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(N.content.data,i("format.gigabyte")),propositionSubtitle:Rs(N.content),propositionImageUrl:N.provider.imageUrl,propositionImageAlt:N.provider.name,propositionSpecifications:Bn(N),urgentText:Vn(N.specialPromotions),specialPromotions:Ln(N),modificationPromotions:N.modificationPromotions},`top-${N.key}`))})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[y?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):A.map(N=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:N}),b(`/aanbieding/${N.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:N,tab:M}),m({proposition:N,tab:M})},label:N.label,horizontal:o==="horizontal",monthlyFee:me(N.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(N.monthlyFees,N.baseMonthlyFee,N.lifetimeMonthlyFee),tcoPerMonth:me(N.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(N.content.data,i("format.gigabyte")),propositionSubtitle:Rs(N.content),propositionImageUrl:N.provider.imageUrl,propositionImageAlt:N.provider.name,propositionSpecifications:Bn(N),urgentText:Vn(N.specialPromotions),specialPromotions:Ln(N),modificationPromotions:N.modificationPromotions},N.key)),f.jsx(hl,{isReachingEnd:k,loadMore:D,isValidating:x,className:u?.loadMoreButton})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:N=>!N&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function Fk({propositions:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=Ye();return e.length===0?null:f.jsxs("div",{className:P("mt-4",n?.base),children:[f.jsx("div",{className:P("text-sm font-medium mb-2 text-foreground-500",n?.title),children:r("creditInfo.exampleTitle")}),f.jsx(Fd,{orientation:"horizontal",hideScrollBar:!0,children:f.jsxs(ll,{"aria-label":r("creditInfo.exampleTitle"),removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:{base:P(n?.table?.base),wrapper:P(n?.table?.wrapper),table:P(n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent",n?.table?.th),td:P("first:pl-0 py-0 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.offer")}),f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")}),f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:e.map(o=>f.jsxs(cl,{children:[f.jsxs(_t,{children:[o.productVersion?.product.fullName," + ",o.provider.name]}),f.jsx(_t,{children:me(o.price+o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.price,{symbol:"€"})}),f.jsx(_t,{children:me(o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[o.planVariant.contractTerm," ",r("format.month",{count:o.planVariant.contractTerm})]}),f.jsx(_t,{children:"0%"})]},o.key))})]})}),f.jsx("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:f.jsx(xg,{i18nKey:"creditInfo.generalDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(o=>window.open(o,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-general-description-link")]})})]})}function sR({showTopPropositions:e,labelColorConfig:t,limit:r,propositionCardLayout:n,productCategory:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p,distinctProperties:h}=xr(),[m,b]=g.useState(null),{buildClickOutUrl:v}=xl({addClickoutSearchParams:a}),{dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,error:k}=yl({filterOptions:d,activeFilters:p,limit:r,productCategory:o,profile:c,distinctProperties:h}),{isReachingEnd:D,loadMore:$}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:r});if(k)throw new Error(String(k));const _=y.flatMap(M=>M.search.records);if(!w&&_.length===0)return f.jsx(ml,{});const{top:A,all:N}=x?{top:[],all:[]}:Fh({propositions:_,productCategory:o,labelColorConfig:t});return f.jsxs("div",{className:P(w&&"opacity-50 pointer-events-none"),children:[e&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):A.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:s==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},`top-${M.key}`))})]}),e&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:r,horizontal:n==="horizontal"}):N.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:n==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},M.key)),f.jsx(hl,{isReachingEnd:D,loadMore:$,isValidating:w,className:u?.loadMoreButton}),f.jsx(Fk,{propositions:_.slice(0,3),buildClickOutUrl:v})]}),m&&f.jsx(pl,{isOpen:!!m,onOpenChange:M=>!M&&b(null),proposition:m.proposition,defaultTab:m.tab,buildClickOutUrl:v})]})}function aR({productCategory:e,limit:t,propositionCardLayout:r,addClickoutSearchParams:n}){const{t:o}=Oe(),{onAction:s}=Bo(),{results:a}=Ye(),{profile:i}=zr(),{filterOptions:l,activeFilters:u}=xr(),[c,d]=g.useState(null),{buildClickOutUrl:p}=xl({addClickoutSearchParams:n}),{dataArray:h,isLoading:m,isValidating:b,size:v,setSize:y,error:x}=yl({filterOptions:l,activeFilters:u,limit:t,productCategory:e,profile:i}),{isReachingEnd:w,loadMore:C}=wl({lastPageLength:h[h.length-1]?.search.records.length,isValidating:b,size:v,setSize:y,activeFilters:u,profile:i,limit:t});if(x)throw new Error(String(x));const S=h.flatMap(k=>k.search.records);return!b&&S.length===0?f.jsx(ml,{}):f.jsxs("div",{className:P("gap-4 grid grid-cols-1",r==="vertical"&&"lg:grid-cols-3",b&&"opacity-50 pointer-events-none",a?.allPropositionsGrid),children:[m?f.jsx(Rn,{count:t,horizontal:r==="horizontal",large:!0}):S.map(k=>f.jsx(zn,{onClick:()=>{s({type:"deal_selected",proposition:k}),p(`/aanbieding/${k.key}`).then(D=>window.open(D,"_blank"))},onInfoClick:D=>{s({type:"details_viewed",proposition:k,tab:D}),d({proposition:k,tab:D})},horizontal:r==="horizontal",monthlyFee:me(k.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(k.monthlyFees,k.baseMonthlyFee,k.lifetimeMonthlyFee),tcoPerMonth:me(k.tcoPerMonth,{dashed:!0}),productPrice:me(k.price,{dashed:!0}),productImageAlt:k.productVersion?.media.main?.altText||void 0,productImageUrl:k.productVersion?.media.main?.url||void 0,productStockStatus:k.productVersion?.stock.status,productTitle:`${k.productVersion?.product.brand.name} ${k.productVersion?.product.name}`,propositionTitle:Xt(k.content.data,o("format.gigabyte")),propositionSubtitle:Rs(k.content),propositionImageUrl:k.provider.imageUrl,propositionImageAlt:k.provider.name,propositionSpecifications:Bn(k),urgentText:Vn(k.specialPromotions),specialPromotions:Hh(Ln(k),Mh(k)),modificationPromotions:k.modificationPromotions},k.key)),f.jsxs("div",{className:"flex flex-col gap-2 col-span-full mt-4",children:[f.jsx(hl,{isReachingEnd:w,loadMore:C,isValidating:b,className:a?.loadMoreButton}),f.jsx(Fk,{propositions:S.slice(0,3),buildClickOutUrl:p})]}),c&&f.jsx(pl,{isOpen:!!c,onOpenChange:k=>!k&&d(null),proposition:c.proposition,defaultTab:c.tab,buildClickOutUrl:p})]})}function iR({...e}){const{width:t}=Dg(),{getActiveFilterValue:r}=xr(),n=t<768,o=t>=1024;switch(e.productCategory){case"fixed-proposition":return f.jsx(nR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"smartphone-proposition":return r("telefoons").length===0?f.jsx(aR,{...e,productCategory:"smartphone-proposition-extended",propositionCardLayout:n||o?"vertical":"horizontal"}):f.jsx(sR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"sim-only-proposition":return f.jsx(oR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});default:return null}}function lR({productCategory:e,labelColorConfig:t={},limit:r=12,showTopPropositions:n=!1,addClickoutSearchParams:o}){const{base:s,headerWrapper:a}=Ye(),{distinctProperties:i,setDistinctProperties:l,handleFilterChange:u,getActiveFilterValue:c}=xr(),{width:d}=Dg(),p=d>=1024,[h]=e==="smartphone-proposition"?c("telefoons"):[],[m]=c("sorteren");return f.jsxs("div",{className:P("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",s),children:[f.jsxs("div",{className:"flex flex-col gap-4 empty:hidden",children:[e==="smartphone-proposition"&&f.jsx(I8,{productSlug:h,selectedDistinctProperties:i,onChange:(b,v)=>{(!h||b!==h)&&u({slug:"telefoons",value:b}),!h&&m!=="relevantie"&&u({slug:"sorteren",value:"relevantie"}),l(v)}}),p&&f.jsxs(f.Fragment,{children:[f.jsx(I3,{productCategory:e}),f.jsx(D2,{})]})]}),f.jsxs("div",{className:"col-span-1 lg:col-span-3 space-y-4",children:[f.jsxs("div",{className:P("flex flex-row-reverse justify-between items-center gap-2",a),children:[f.jsx(VL,{}),p?f.jsx(p2,{}):f.jsx(nO,{children:f.jsx(I3,{productCategory:e})})]}),f.jsx(iR,{productCategory:e,addClickoutSearchParams:o,showTopPropositions:c("providers").length!==1&&["relevantie","top"].includes(m)&&n,labelColorConfig:t,limit:r})]})]})}function uR({classNames:e,initialSelectedFilters:t,initialProfile:r,onProfileChange:n,onError:o,onAction:s,...a}){return f.jsxs(M8,{onError:o,children:[f.jsx(aI,{classNames:e,children:f.jsx(j8,{onAction:s,children:f.jsx($L,{initialProfile:r,onProfileChange:n,children:f.jsx(V8,{initialSelectedFilters:t,productCategory:a.productCategory,children:f.jsx(ZO,{children:f.jsx(lR,{...a})})})})})}),f.jsx(EL,{})]})}var cR=XD;const Cl=Object.freeze(Object.defineProperty({__proto__:null,default:cR},Symbol.toStringTag,{value:"Module"}));kr.ElementsRoot=DE,kr.ProductResults=uR,Object.defineProperty(kr,Symbol.toStringTag,{value:"Module"})}));
1010
+ `;function Ah(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}function zL(e,t,r,n="",o=!1){const[s,a]=g.useState(o),i=Ah(t,500),l=Ah(r,500),u=Ah(n,500),{data:c,isValidating:d,error:p}=ad(i&&l?[BL,{postcode:i,number:parseInt(l,10),numberAddon:u||""}]:null,Vt,{revalidateIfStale:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1}),[h,m]=g.useState(null),b=g.useRef(e);return g.useEffect(()=>{b.current=e},[e]),g.useEffect(()=>{d&&m(null)},[d]),Mr(()=>{if(!(d||!i||!l)){if(p?.response?.errors?.length){if(p.response.errors[0]?.message==="postnl_api_error"){m(Q.t("postcodeCheck.invalidAddressError"));return}m(Q.t("postcodeCheck.invalidAddressError"));return}if(c?.postcode?.address){b.current(c.postcode.address),a(!1),m(null);return}!d&&i&&l&&!p&&!c?.postcode?.address&&m(Q.t("postcodeCheck.invalidAddressError"))}},[c,p,d,i,l]),{manual:s,isLoading:d&&!!i&&!!l,error:h}}function LL(e){const t=e.replace(/[^0-9a-zA-Z]/g,"").toUpperCase();let r="",n="";for(const o of t)/\d/.test(o)&&r.length<4?r+=o:/[A-Z]/.test(o)&&r.length===4&&n.length<2&&(n+=o);return r+n}function VL(){const{t:e}=Oe(),{postcodeCheckModal:t}=Ye(),{profile:r,setProfile:n}=zr(),{popoverProps:o}=on(),[s]=Co(),{isOpen:a,setModal:i}=Wi("postcode-check"),[l,u]=g.useState(r.address?.postcode||""),[c,d]=g.useState(r.address?.number||""),[p,h]=g.useState(r.address?.numberAddon||""),[m,b]=g.useState(r.address?.street||""),[v,y]=g.useState(r.address?.city||""),[x,w]=g.useState(!1),C=g.useRef(!!(r.address?.street&&r.address?.city)),S=Nh("fixed"),k=g.useCallback(O=>{O.street!==void 0&&b(O.street),O.city!==void 0&&y(O.city)},[]);Mr(()=>{const O=r.address;u(O?.postcode||""),d(O?.number||""),h(O?.numberAddon||""),b(O?.street||""),y(O?.city||""),C.current=!!(O?.street&&O?.city)},[r.address]);const{manual:D,error:$}=zL(k,l,c,p,C.current);Mr(()=>{!D&&(!l||!c)&&(b(""),y(""))},[l,c,D]);const _=g.useMemo(()=>E3(S.fixedBlocks,"fixed"),[S.fixedBlocks.length]),A={inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P("absolute bottom-1.5",t?.form?.input?.input),label:P("top-1.5",t?.form?.input?.label)},N=g.useCallback(O=>{O.preventDefault();const L=new FormData(O.target),I={...Object.fromEntries(L.entries()),street:m,city:v},{success:z,data:F}=S3.safeParse(I);z&&(Ih({address:F}),n({address:F}),i(null))},[m,v,n,i]),M=g.useCallback(({slug:O,name:L})=>O.startsWith("other")||L.toLowerCase().includes("internet")?L:`${L} Internet`,[]);return f.jsx($o,{isOpen:a,onOpenChange:O=>i(O?"postcode-check":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("postcodeCheck.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx(Ng,{size:48,className:P("stroke-primary",t?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("postcodeCheck.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("postcodeCheck.description")})]}),f.jsxs("form",{id:"postcode-check-form",className:P("flex flex-col gap-2 mb-3",t?.form?.container),onSubmit:N,children:[f.jsx("p",{className:P("text-base font-bold text-foreground",t?.form?.addressLabel),children:"Adres"}),f.jsxs("div",{className:P("flex flex-row gap-2",t?.form?.inputsContainer),children:[f.jsx(ol,{variant:"bordered",placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",value:l,onValueChange:O=>u(LL(O)),classNames:A,maxLength:6,label:e("postcodeCheck.postalCode"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"1",radius:"sm",type:"text",name:"number",value:c,onValueChange:O=>d(O.replace(/\D/g,"")),classNames:A,label:e("postcodeCheck.houseNumber"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"A",radius:"sm",type:"text",name:"numberAddon",value:p,onValueChange:O=>h(O.toUpperCase()),classNames:A,label:e("postcodeCheck.houseNumberAddition")})]}),$&&f.jsx(lh,{color:"danger",variant:"faded",title:$,hideIconWrapper:!0,classNames:t?.form?.errorAlert})]}),f.jsx("p",{className:P("text-base font-bold text-foreground",t?.provider?.label),children:e("postcodeCheck.homeInternet")}),f.jsx(Ns,{variant:"bordered","aria-label":e("postcodeCheck.homeInternet"),placeholder:e("postcodeCheck.selectProvider"),isOpen:x,onOpenChange:O=>O!==x&&w(O),popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:r.currentFixedProviderScope?[r.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:O=>{const L=_.find(I=>I.slug===O[0]?.key);return L?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[L.imageUrl&&f.jsx(Jt,{src:s(L.imageUrl,120,60),alt:L.name,width:60,height:30,radius:"none"}),L.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(L.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(L)]}):null},classNames:{...t?.provider?.select,trigger:P("cursor-pointer border-small",t?.provider?.select?.trigger)},children:_.map(O=>f.jsx(_n,{variant:"flat",textValue:O.name,onClick:()=>{n({currentFixedProviderScope:O.slug}),w(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[O.imageUrl&&f.jsx(Jt,{src:s(O.imageUrl,120,60),alt:O.name,width:60,height:30,radius:"none"}),O.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(O.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(O)]})},O.slug))})]}),f.jsx(Ps,{children:f.jsx(qt,{className:P("font-medium",t?.submitButton),type:"submit",form:"postcode-check-form",color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}function I3({productCategory:e}){const{t}=Oe(),{profile:r}=zr(),{setModal:n}=Wi(),{profileButton:o}=Ye(),s=T3(),a=Nh(e==="fixed-proposition"?"fixed":"mobile"),i=PL(r.currentMobileProviders,a.otherBlocks);return f.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[f.jsx("div",{className:"text-base font-bold text-foreground",children:t("profile.personalizeTitle")}),e==="fixed-proposition"?f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.postcodeCheck"),description:r.address?NL(r.address):t("profile.enterPostcode"),selected:r.address!==void 0,onClick:()=>n("postcode-check"),Icon:Ng,classNames:o}),f.jsx(VL,{})]}):f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.numberPreservation"),description:SL(r,s),selected:r.keepCurrentMsisdn!==void 0,onClick:()=>n("number-preservation"),avatarName:"0 6",classNames:o}),f.jsx(FL,{})]}),f.jsx(pi,{title:t("profile.customerBenefit"),description:CL(a.fixedBlocks.map(l=>({slug:l.provider.slug,name:l.provider.name})),i,r.currentFixedProviderScope,e==="fixed-proposition"),selected:e==="fixed-proposition"?r.currentMobileProviders?.some(l=>a.otherBlocks.some(u=>u.scope===l.scope)):a.fixedBlocks.some(l=>l.scope===r.currentFixedProviderScope)||r.currentFixedProviderScope==="other",onClick:()=>n("combi-deal"),Icon:tu,classNames:o}),f.jsx(ML,{productCategory:e})]})}function RL(){const{t:e}=Oe(),[t,r]=g.useState(!1),{sortSelect:n}=Ye(),{popoverContent:o,listbox:s,...a}=n||{},{sortOptions:i,handleFilterChange:l,getActiveFilterValue:u}=xr(),{popoverProps:c}=on({classNames:o});return f.jsx(Ns,{variant:"bordered","aria-label":e("filters.sort"),placeholder:e("filters.sort"),popoverProps:c,selectionMode:"single",disallowEmptySelection:!0,isOpen:t,onOpenChange:d=>d!==t&&r(d),selectedKeys:u("sorteren"),radius:"sm",listboxProps:{itemClasses:s},classNames:{...a,base:P("min-w-1/2 lg:min-w-auto lg:w-[200px]",a?.base),trigger:P("cursor-pointer border-small bg-white",a?.trigger)},children:i.map(d=>f.jsx(_n,{variant:"flat",onClick:()=>{l({slug:"sorteren",value:d.value}),r(!1)},children:e(`sortOptions.${d.value}`,{defaultValue:d.name})},d.value))})}function KL(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function me(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function Mh(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return me(r,{dashed:!0})}function Fn(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`${Q.t("format.from")} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`:`${e[0].term} ${Q.t("format.month_short",{count:e[0].term})} ${Q.t("format.from").toLowerCase()} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`}function Oh(e){switch(e){case Gt:return Q.t("format.unlimited_short");case 0:return"-";default:return e}}function Rs(e,t){const r=e.minutes!==0?`${Oh(e.minutes)} ${e.minutes===Gt?Q.t("format.minutes_short"):Q.t("format.minutes")}`:void 0,n=e.sms!==0?e.sms===e.minutes?Q.t("format.sms"):`${Oh(e.sms)} ${Q.t("format.sms")}`:void 0,o=e.minutes===Gt&&e.sms===Gt||["minutes","sms"].every(a=>e.sharedCredits?.includes(a)),s=o?" / ":" + ";return!r&&!n?"":o?[r,Q.t("format.sms")].join(s):[r,n].join(s)}function sl(e){switch(e){case 24:return`2 ${Q.t("format.year",{count:2})}`;case 12:return`1 ${Q.t("format.year")}`;case 1:return Q.t("format.monthly");default:return""}}function N3(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function Bn(e){const t=sl(e.planVariant.contractTerm);if(e.productType==="fixed"){const s=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} ${Q.t("format.megabitPerSecond")}`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"}];const a=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`;return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"},{title:a,slug:"channels"}]}const r=`${e.content.dataSpeedDown/1e3} ${Q.t("format.megabitPerSecond")}`,n=`${(e.provider.network||"").replace("-netwerk","")} ${N3(e.content.networkGeneration)}`,o=e.content.dataEu?"EU":"NL";return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function Xt(e,t){if(e===Gt)return`${Q.t("format.unlimited_short")} ${t}`;const r=(e/1e3).toString().replace(".",",");return`${t===Q.t("format.gigabyte")?r:e} ${t}`}const jh=["kpn","vodafone","odido"],WL=[{type:"isRetention",rank:1,color:"primary",getDisplayName:e=>Q.t("labels.renewWith",{providerName:e.provider.name}),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&e.planVariant?.contractType==="retention",sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isCheapestPhone",rank:2,color:"primary",getDisplayName:()=>Q.t("labels.cheapestPhone"),isApplicable:(e,t)=>t.isSmartphone&&Number.isFinite(e.creditFee+e.price),sortValue:e=>e.creditFee+e.price,limit:1,sortDirection:"asc"},{type:"isBudget",rank:3,color:"primary",getDisplayName:()=>Q.t("labels.budget"),isApplicable:e=>Number.isFinite(e.tcoPerMonth),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetFiber",rank:4,color:"primary",getDisplayName:()=>Q.t("labels.budgetFiber"),isApplicable:(e,t)=>t.isFixed&&(e.tags.find(r=>r.type==="internet")?.slug||"").includes("glasvezel"),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isCombi",rank:5,color:"primary",getDisplayName:e=>e.provider?.name?Q.t("labels.combi",{providerName:e.provider.name}):Q.t("labels.combiGeneric"),isApplicable:e=>e.key.includes("m"),sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isFastestInternet",rank:6,color:"primary",getDisplayName:()=>Q.t("labels.fastestInternet"),isApplicable:e=>Number.isFinite(e.content?.dataSpeedDown),sortValue:e=>e.content?.dataSpeedDown??0,limit:1,sortDirection:"desc"},{type:"isBudgetOwnNetwork",rank:7,color:"primary",getDisplayName:()=>Q.t("labels.budgetOwnNetwork"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&jh.includes(e.provider?.slug||""),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetNetwork",rank:8,color:"primary",getDisplayName:e=>e.provider?.network?Q.t("labels.budgetNetwork",{network:e.provider.network.replace("-netwerk","")}):Q.t("labels.budgetNetworkGeneric"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&t.budgetNetworkPropositionKeys.includes(e.key),sortValue:e=>e.tcoPerMonth,limit:jh.length,sortDirection:"asc"}];function Fh({propositions:e,productCategory:t,labelColorConfig:r}){const n=t==="fixed-proposition",o=t==="sim-only-proposition",s=t==="smartphone-proposition",a={isFixed:n,isSimOnly:o,isSmartphone:s,budgetNetworkPropositionKeys:o||s?UL(e):[]},i=new Map;for(const u of WL){const c=e.filter(h=>u.isApplicable(h,a));if(c.length===0)continue;const d=[...c].sort((h,m)=>{const b=u.sortValue(h),v=u.sortValue(m);return b===v?0:u.sortDirection==="asc"?b-v:v-b}),p=u.limit==="unlimited"?d.length:u.limit;d.slice(0,p).forEach(h=>{i.has(h.key)||i.set(h.key,{type:u.type,displayName:u.getDisplayName(h),rank:u.rank,color:r[u.type]??u.color})})}return{top:Array.from(i.entries()).map(([u,c])=>{const d=e.find(p=>p.key===u);return d?{...d,label:c}:void 0}).filter(u=>!!u).sort((u,c)=>u.label.rank-c.label.rank).slice(0,3),all:e.map(u=>({...u,label:i.get(u.key)}))}}function UL(e){return jh.map(t=>[...e].filter(r=>(r.provider?.network||"").replace("-netwerk","").toLowerCase()===t).sort((r,n)=>r.tcoPerMonth-n.tcoPerMonth)[0]?.key).filter(t=>!!t)}function HL({channels:e,hdChannels:t,classNames:r}){const{t:n}=Oe();return f.jsxs("div",{className:P("pb-4",r?.base),children:[f.jsx("div",{className:P(r?.description),children:n("detailsModal.channelsDescription",{channelsCount:e?.length})}),f.jsx("ul",{className:P("list-disc list-outside pl-6",r?.list),children:e.map(o=>f.jsx("li",{className:P("list-item",r?.listItem),children:f.jsxs("span",{className:P("flex items-center gap-2",r?.channelContainer),children:[o,t?.includes(o)&&f.jsx(jE,{size:24,className:P("stroke-foreground",r?.hdIcon)})]})},o))})]})}const Bh=new WeakMap;function zh(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function qL(e,t){let r=Bh.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${zh(t)}`}function A3(e,t,r){let n=Bh.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${zh(t)}-${zh(r)}`}function M3(e,t){return[...e.collection.rowHeaderColumnKeys].map(r=>A3(e,t,r)).join(" ")}var O3={};O3={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var j3={};j3={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var F3={};F3={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var B3={};B3={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var z3={};z3={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var L3={};L3={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var V3={};V3={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var R3={};R3={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var K3={};K3={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var W3={};W3={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var U3={};U3={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var H3={};H3={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var q3={};q3={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var G3={};G3={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Z3={};Z3={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Y3={};Y3={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var J3={};J3={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var X3={};X3={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Q3={};Q3={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var eS={};eS={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var tS={};tS={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var rS={};rS={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var nS={};nS={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var oS={};oS={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var sS={};sS={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var aS={};aS={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var iS={};iS={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var lS={};lS={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var uS={};uS={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var cS={};cS={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var dS={};dS={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var fS={};fS={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var pS={};pS={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var hS={};hS={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var al={};al={"ar-AE":O3,"bg-BG":j3,"cs-CZ":F3,"da-DK":B3,"de-DE":z3,"el-GR":L3,"en-US":V3,"es-ES":R3,"et-EE":K3,"fi-FI":W3,"fr-FR":U3,"he-IL":H3,"hr-HR":q3,"hu-HU":G3,"it-IT":Z3,"ja-JP":Y3,"ko-KR":J3,"lt-LT":X3,"lv-LV":Q3,"nb-NO":eS,"nl-NL":tS,"pl-PL":rS,"pt-BR":nS,"pt-PT":oS,"ro-RO":sS,"ru-RU":aS,"sk-SK":iS,"sl-SI":lS,"sr-SP":uS,"sv-SE":cS,"tr-TR":dS,"uk-UA":fS,"zh-CN":pS,"zh-TW":hS};class mS{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findPreviousKey(t,r){let n=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(t,r){let n=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(t,r=0){if(r<0)return null;let n=this.collection.getItem(t);if(!n)return null;let o=0;for(let i of ht(n,this.collection)){var s;if(i.colSpan&&i.colSpan+o>r)return(s=i.key)!==null&&s!==void 0?s:null;i.colSpan&&(o=o+i.colSpan-1);var a;if(o===r)return(a=i.key)!==null&&a!==void 0?a:null;o++}return null}getKeyBelow(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findNextKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyAbove(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findPreviousKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=un(c))===null||n===void 0?void 0:n.key:(o=jr(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index-1):_s(d,r.index+1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))!==null&&u!==void 0?u:null}return null}getKeyLeftOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=jr(c))===null||n===void 0?void 0:n.key:(o=un(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index+1):_s(d,r.index-1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))!==null&&u!==void 0?u:null}return null}getFirstKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;var a;return(a=(s=jr(ht(u,this.collection)))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findNextKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;var l;n=(l=(i=jr(ht(u,this.collection)))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getLastKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;let c=ht(u,this.collection);var a;return(a=(s=un(c))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findPreviousKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;let c=ht(u,this.collection);var l;n=(l=(i=un(c))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getKeyPageAbove(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&r!=null;){var s;if(r=(s=this.getKeyAbove(r))!==null&&s!==void 0?s:null,r==null)break;n=this.layoutDelegate.getItemRect(r)}return r}getKeyPageBelow(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=this.layoutDelegate.getVisibleRect().height,s=Math.min(this.layoutDelegate.getContentSize().height,n.y+o);for(;n&&n.y+n.height<s;){let a=this.getKeyBelow(r);if(a==null)break;n=this.layoutDelegate.getItemRect(a),r=a}return r}getKeyForSearch(t,r){let n=r??null;if(!this.collator)return null;let o=this.collection;if(n=r??this.getFirstKey(),n==null)return null;let s=o.getItem(n);if(!s)return null;var a;s.type==="cell"&&(n=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;n!=null;){let c=o.getItem(n);if(!c)return null;if(c.textValue){let d=c.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){var l,u;return this.isRow(c)&&this.focusMode==="cell"?(u=(l=jr(ht(c,this.collection)))===null||l===void 0?void 0:l.key)!==null&&u!==void 0?u:null:c.key}}n=this.findNextKey(n,d=>d.type==="item"),n==null&&!i&&(n=this.getFirstKey(),i=!0)}return null}constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new GL(t.layout):new Sd(t.ref));var r;this.focusMode=(r=t.focusMode)!==null&&r!==void 0?r:"row"}}class GL{getContentSize(){return this.layout.getContentSize()}getItemRect(t){var r;return((r=this.layout.getLayoutInfo(t))===null||r===void 0?void 0:r.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(t){this.layout=t}}const Lh=new WeakMap;var gS={};gS={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var bS={};bS={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var vS={};vS={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var yS={};yS={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var xS={};xS={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var wS={};wS={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var CS={};CS={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var SS={};SS={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var kS={};kS={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var PS={};PS={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var $S={};$S={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var ES={};ES={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var TS={};TS={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var DS={};DS={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var _S={};_S={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var IS={};IS={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var NS={};NS={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var AS={};AS={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var MS={};MS={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var OS={};OS={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var jS={};jS={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var FS={};FS={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var BS={};BS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var zS={};zS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var LS={};LS={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var VS={};VS={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var RS={};RS={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var KS={};KS={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var WS={};WS={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var US={};US={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var HS={};HS={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var qS={};qS={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var GS={};GS={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var ZS={};ZS={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var il={};il={"ar-AE":gS,"bg-BG":bS,"cs-CZ":vS,"da-DK":yS,"de-DE":xS,"el-GR":wS,"en-US":CS,"es-ES":SS,"et-EE":kS,"fi-FI":PS,"fr-FR":$S,"he-IL":ES,"hr-HR":TS,"hu-HU":DS,"it-IT":_S,"ja-JP":IS,"ko-KR":NS,"lt-LT":AS,"lv-LV":MS,"nb-NO":OS,"nl-NL":jS,"pl-PL":FS,"pt-BR":BS,"pt-PT":zS,"ro-RO":LS,"ru-RU":VS,"sk-SK":RS,"sl-SI":KS,"sr-SP":WS,"sv-SE":US,"tr-TR":HS,"uk-UA":qS,"zh-CN":GS,"zh-TW":ZS};const YS=7e3;let Cr=null;function JS(e,t="assertive",r=YS){Cr?Cr.announce(e,t,r):(Cr=new ZL,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Cr.announce(e,t,r):setTimeout(()=>{Cr?.isAttached()&&Cr?.announce(e,t,r)},100))}class ZL{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=YS){var o,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(s=this.politeLog)===null||s===void 0||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function YL(e){return e&&e.__esModule?e.default:e}function JL(e,t){let{getRowText:r=i=>{var l,u,c,d;return(d=(l=(u=t.collection).getTextValue)===null||l===void 0?void 0:l.call(u,i))!==null&&d!==void 0?d:(c=t.collection.getItem(i))===null||c===void 0?void 0:c.textValue}}=e,n=Wr(YL(il),"@react-aria/grid"),o=t.selectionManager.rawSelection,s=g.useRef(o),a=g.useCallback(()=>{var i;if(!t.selectionManager.isFocused||o===s.current){s.current=o;return}let l=XS(o,s.current),u=XS(s.current,o),c=t.selectionManager.selectionBehavior==="replace",d=[];if(t.selectionManager.selectedKeys.size===1&&c){let p=t.selectionManager.selectedKeys.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(l.size===1&&u.size===0){let p=l.keys().next().value;if(p!=null){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(u.size===1&&l.size===0){let p=u.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("deselectedItem",{item:h}))}}t.selectionManager.selectionMode==="multiple"&&(d.length===0||o==="all"||o.size>1||s.current==="all"||((i=s.current)===null||i===void 0?void 0:i.size)>1)&&d.push(o==="all"?n.format("selectedAll"):n.format("selectedCount",{count:o.size})),d.length>0&&JS(d.join(" ")),s.current=o},[o,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,n]);Zg(()=>{if(t.selectionManager.isFocused)a();else{let i=requestAnimationFrame(a);return()=>cancelAnimationFrame(i)}},[o,t.selectionManager.isFocused])}function XS(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function XL(e){return e&&e.__esModule?e.default:e}function QL(e){let t=Wr(XL(il),"@react-aria/grid"),r=C_(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,o=g.useMemo(()=>{let a=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior,l;return n&&(l=t.format("longPressToSelect")),i==="replace"&&a!=="none"&&e.hasItemActions?l:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return $a(o)}function eV(e,t,r){let{isVirtualized:n,disallowTypeAhead:o,keyboardDelegate:s,focusMode:a,scrollRef:i,getRowText:l,onRowAction:u,onCellAction:c,escapeKeyBehavior:d="clearSelection",shouldSelectOnPressUp:p}=e,{selectionManager:h}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=Ia({usage:"search",sensitivity:"base"}),{direction:b}=Ot(),v=t.selectionManager.disabledBehavior,y=g.useMemo(()=>s||new mS({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:v,ref:r,direction:b,collator:m,focusMode:a}),[s,t.collection,t.disabledKeys,v,r,b,m,a]),{collectionProps:x}=Cd({ref:r,selectionManager:h,keyboardDelegate:y,isVirtualized:n,scrollRef:i,disallowTypeAhead:o,escapeKeyBehavior:d}),w=bt(e.id);Lh.set(t,{keyboardDelegate:y,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:p});let C=QL({selectionManager:h,hasItemActions:!!(u||c)}),S=Bt(e,{labelable:!0}),k=g.useCallback(A=>{if(h.isFocused){A.currentTarget.contains(A.target)||h.setFocused(!1);return}A.currentTarget.contains(A.target)&&h.setFocused(!0)},[h]),D=g.useMemo(()=>({onBlur:x.onBlur,onFocus:k}),[k,x.onBlur]),$=M0(r,{isDisabled:t.collection.size!==0}),_=Ce(S,{role:"grid",id:w,"aria-multiselectable":h.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?D:x,t.collection.size===0&&{tabIndex:$?-1:0}||void 0,C);return n&&(_["aria-rowcount"]=t.collection.size,_["aria-colcount"]=t.collection.columnCount),JL({getRowText:l},t),{gridProps:_}}function tV(){return{rowGroupProps:{role:"rowgroup"}}}function rV(e,t,r){var n,o;let{node:s,isVirtualized:a,shouldSelectOnPressUp:i,onAction:l}=e,{actions:u,shouldSelectOnPressUp:c}=Lh.get(t),d=u.onRowAction?()=>{var v;return(v=u.onRowAction)===null||v===void 0?void 0:v.call(u,s.key)}:l,{itemProps:p,...h}=Ti({selectionManager:t.selectionManager,key:s.key,ref:r,isVirtualized:a,shouldSelectOnPressUp:c||i,onAction:d||!(s==null||(n=s.props)===null||n===void 0)&&n.onAction?Ur(s==null||(o=s.props)===null||o===void 0?void 0:o.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(s.key),b={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":h.isDisabled||void 0,...p};return a&&(b["aria-rowindex"]=s.index+1),{rowProps:b,...h}}function QS(e,t,r){let{node:n,isVirtualized:o,focusMode:s="child",shouldSelectOnPressUp:a,onAction:i}=e,{direction:l}=Ot(),{keyboardDelegate:u,actions:{onCellAction:c}}=Lh.get(t),d=g.useRef(null),p=()=>{if(r.current){let w=Lt(r.current);if(s==="child"){if(r.current.contains(document.activeElement)&&r.current!==document.activeElement)return;let C=t.selectionManager.childFocusStrategy==="last"?Vh(w):w.firstChild();if(C){Et(C);return}}(d.current!=null&&n.key!==d.current||!r.current.contains(document.activeElement))&&Et(r.current)}},{itemProps:h,isPressed:m}=Ti({selectionManager:t.selectionManager,key:n.key,ref:r,isVirtualized:o,focus:p,shouldSelectOnPressUp:a,onAction:c?()=>c(n.key):i,isDisabled:t.collection.size===0}),b=w=>{if(!w.currentTarget.contains(w.target)||t.isKeyboardNavigationDisabled||!r.current||!document.activeElement)return;let C=Lt(r.current);switch(C.currentNode=document.activeElement,w.key){case"ArrowLeft":{let A=l==="rtl"?C.nextNode():C.previousNode();if(s==="child"&&A===r.current&&(A=null),w.preventDefault(),w.stopPropagation(),A)Et(A),Zr(A,{containingElement:Gr(r.current)});else{var S;if(((S=u.getKeyLeftOf)===null||S===void 0?void 0:S.call(u,n.key))!==n.key){var k;(k=r.current.parentElement)===null||k===void 0||k.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="rtl"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,A=l==="rtl"?C.firstChild():Vh(C),A&&(Et(A),Zr(A,{containingElement:Gr(r.current)})))}break}case"ArrowRight":{let A=l==="rtl"?C.previousNode():C.nextNode();if(s==="child"&&A===r.current&&(A=null),w.preventDefault(),w.stopPropagation(),A)Et(A),Zr(A,{containingElement:Gr(r.current)});else{var D;if(((D=u.getKeyRightOf)===null||D===void 0?void 0:D.call(u,n.key))!==n.key){var $;($=r.current.parentElement)===null||$===void 0||$.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="ltr"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,A=l==="rtl"?Vh(C):C.firstChild(),A&&(Et(A),Zr(A,{containingElement:Gr(r.current)})))}break}case"ArrowUp":case"ArrowDown":if(!w.altKey&&r.current.contains(w.target)){var _;w.stopPropagation(),w.preventDefault(),(_=r.current.parentElement)===null||_===void 0||_.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent))}break}},v=w=>{if(d.current=n.key,w.target!==r.current){xo()||t.selectionManager.setFocusedKey(n.key);return}requestAnimationFrame(()=>{s==="child"&&document.activeElement===r.current&&p()})},y=Ce(h,{role:"gridcell",onKeyDownCapture:b,"aria-colspan":n.colSpan,"aria-colindex":n.colIndex!=null?n.colIndex+1:void 0,colSpan:o?void 0:n.colSpan,onFocus:v});var x;return o&&(y["aria-colindex"]=((x=n.colIndex)!==null&&x!==void 0?x:n.index)+1),a&&y.tabIndex!=null&&y.onPointerDown==null&&(y.onPointerDown=w=>{let C=w.currentTarget,S=C.getAttribute("tabindex");C.removeAttribute("tabindex"),requestAnimationFrame(()=>{S!=null&&C.setAttribute("tabindex",S)})}),{gridCellProps:y,isPressed:m}}function Vh(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function nV(e){return e&&e.__esModule?e.default:e}function oV(e,t){let{key:r}=e,n=t.selectionManager,o=bt(),s=!t.selectionManager.canSelectItem(r),a=t.selectionManager.isSelected(r),i=()=>n.toggleSelection(r);const l=Wr(nV(il),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":l.format("select"),isSelected:a,isDisabled:s,onChange:i}}}class sV extends mS{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let n=jr(ht(r,this.collection));if(n)return n.key;let o=this.getFirstKey();return o==null||!this.collection.getItem(o)?null:super.getKeyForItemInRowByIndex(o,r.index)}return super.getKeyBelow(t)}getKeyAbove(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let s=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return s&&s.type==="column"?s.key:null}let n=super.getKeyAbove(t),o=n!=null?this.collection.getItem(n):null;return o&&o.type!=="headerrow"?n:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let r=this.findNextKey(t.key,o=>o.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level];for(let o of ht(n,this.collection))if(o.type==="column")return o.key;return null}findPreviousColumnKey(t){let r=this.findPreviousKey(t.key,s=>s.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level],o=[...ht(n,this.collection)];for(let s=o.length-1;s>=0;s--){let a=o[s];if(a.type==="column")return a.key}return null}getKeyRightOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(r):this.findNextColumnKey(r):super.getKeyRightOf(t):null}getKeyLeftOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findNextColumnKey(r):this.findPreviousColumnKey(r):super.getKeyLeftOf(t):null}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r??this.getFirstKey();if(o==null)return null;let s=n.getItem(o);var a;s?.type==="cell"&&(o=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;o!=null;){let l=n.getItem(o);if(!l)return null;if(l.textValue){let u=l.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0)return l.key}for(let u of ht(l,this.collection)){let c=n.columns[u.index];if(n.rowHeaderColumnKeys.has(c.key)&&u.textValue){let d=u.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){let p=r!=null?n.getItem(r):s;return p?.type==="cell"?u.key:l.key}}}o=this.getKeyBelow(o),o==null&&!i&&(o=this.getFirstKey(),i=!0)}return null}}function aV(e){return e&&e.__esModule?e.default:e}function iV(e,t,r){let{keyboardDelegate:n,isVirtualized:o,layoutDelegate:s,layout:a}=e,i=Ia({usage:"search",sensitivity:"base"}),{direction:l}=Ot(),u=t.selectionManager.disabledBehavior,c=g.useMemo(()=>n||new sV({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:u,ref:r,direction:l,collator:i,layoutDelegate:s,layout:a}),[n,t.collection,t.disabledKeys,u,r,l,i,s,a]),d=bt(e.id);Bh.set(t,d);let{gridProps:p}=eV({...e,id:d,keyboardDelegate:c},t,r);o&&(p["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),ga()&&"expandedKeys"in t&&(p.role="treegrid");let{column:h,direction:m}=t.sortDescriptor||{},b=Wr(aV(al),"@react-aria/table"),v=g.useMemo(()=>{var x,w;let C=(w=(x=t.collection.columns.find(S=>S.key===h))===null||x===void 0?void 0:x.textValue)!==null&&w!==void 0?w:"";return m&&h?b.format(`${m}Sort`,{columnName:C}):void 0},[m,h,t.collection.columns]),y=$a(v);return Zg(()=>{v&&JS(v,"assertive",500)},[v]),{gridProps:Ce(p,y,{"aria-describedby":[y["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function lV(e){return e&&e.__esModule?e.default:e}function ek(e,t,r){var n,o;let{node:s}=e,a=s.props.allowsSorting,{gridCellProps:i}=QS({...e,focusMode:"child"},t,r),l=s.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:u,isPressed:c}=jt({isDisabled:!a||l,onPress(){t.sort(s.key)},ref:r}),{focusableProps:d}=rn({},r),p,h=((n=t.sortDescriptor)===null||n===void 0?void 0:n.column)===s.key,m=(o=t.sortDescriptor)===null||o===void 0?void 0:o.direction;s.props.allowsSorting&&!ss()&&(p=h?m:"none");let b=Wr(lV(al),"@react-aria/table"),v;a&&(v=`${b.format("sortable")}`,h&&m&&ss()&&(v=`${v}, ${b.format(m)}`));let y=$a(v),x=t.collection.size===0;return g.useEffect(()=>{x&&t.selectionManager.focusedKey===s.key&&t.selectionManager.setFocusedKey(null)},[x,t.selectionManager,s.key]),{columnHeaderProps:{...Ce(d,i,u,y,x?{tabIndex:-1}:null),role:"columnheader",id:qL(t,s.key),"aria-colspan":s.colSpan&&s.colSpan>1?s.colSpan:void 0,"aria-sort":p},isPressed:c}}const tk={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function uV(e,t,r){let{node:n,isVirtualized:o}=e,{rowProps:s,...a}=rV(e,t,r),{direction:i}=Ot();o&&!(ga()&&"expandedKeys"in t)?s["aria-rowindex"]=n.index+1+t.collection.headerRows.length:delete s["aria-rowindex"];let l={};if(ga()&&"expandedKeys"in t){let S=t.keyMap.get(n.key);if(S!=null){var u,c,d,p,h,m;let k=((u=S.props)===null||u===void 0?void 0:u.UNSTABLE_childItems)||((d=S.props)===null||d===void 0||(c=d.children)===null||c===void 0?void 0:c.length)>t.userColumnCount;var b,v,y,x;l={onKeyDown:D=>{(D.key===tk.expand[i]&&t.selectionManager.focusedKey===S.key&&k&&t.expandedKeys!=="all"&&!t.expandedKeys.has(S.key)||D.key===tk.collapse[i]&&t.selectionManager.focusedKey===S.key&&k&&(t.expandedKeys==="all"||t.expandedKeys.has(S.key)))&&(t.toggleKey(S.key),D.stopPropagation())},"aria-expanded":k?t.expandedKeys==="all"||t.expandedKeys.has(n.key):void 0,"aria-level":S.level,"aria-posinset":((b=S.indexOfType)!==null&&b!==void 0?b:0)+1,"aria-setsize":S.level>1?((y=(p=un((v=(h=t.keyMap.get(S.parentKey))===null||h===void 0?void 0:h.childNodes)!==null&&v!==void 0?v:[]))===null||p===void 0?void 0:p.indexOfType)!==null&&y!==void 0?y:0)+1:((x=(m=un(t.collection.body.childNodes))===null||m===void 0?void 0:m.indexOfType)!==null&&x!==void 0?x:0)+1}}}let w=G5(n.props),C=a.hasAction?w:{};return{rowProps:{...Ce(s,l,C),"aria-labelledby":M3(t,n.key)},...a}}function cV(e,t,r){let{node:n,isVirtualized:o}=e,s={role:"row"};return o&&!(ga()&&"expandedKeys"in t)&&(s["aria-rowindex"]=n.index+1),{rowProps:s}}function rk(e,t,r){var n;let{gridCellProps:o,isPressed:s}=QS(e,t,r),a=(n=e.node.column)===null||n===void 0?void 0:n.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(o.role="rowheader",o.id=A3(t,e.node.parentKey,a)),{gridCellProps:o,isPressed:s}}function dV(e){return e&&e.__esModule?e.default:e}function fV(e,t){let{key:r}=e;const{checkboxProps:n}=oV(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${M3(t,r)}`}}}function pV(e){let{isEmpty:t,isSelectAll:r,selectionMode:n}=e.selectionManager;return{checkboxProps:{"aria-label":Wr(dV(al),"@react-aria/table").format(n==="single"?"select":"selectAll"),isSelected:r,isDisabled:n!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Rh(){return tV()}var nk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,slots:i,state:l,selectionMode:u,color:c,checkboxesProps:d,disableAnimation:p,classNames:h,...m}=e,b=o||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:a},l,y),{isFocusVisible:w,focusProps:C}=nt(),{checkboxProps:S}=pV(l),k=P(h?.th,s,(r=a.props)==null?void 0:r.className),D=u==="single",{onChange:$,..._}=S;return f.jsx(b,{ref:y,"data-focus-visible":H(w),...ie(x,C,Fe(a.props,{enabled:v}),Fe(m,{enabled:v})),className:(n=i.th)==null?void 0:n.call(i,{class:k}),children:D?f.jsx(wo,{children:S["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:p,onValueChange:$,...ie(d,_)})})});nk.displayName="HeroUI.TableSelectAllCheckbox";var ok=nk;function hV(e){let{collection:t,focusMode:r}=e,n=e.UNSAFE_selectionState||t1(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=n.setFocusedKey;n.setFocusedKey=(l,u)=>{if(r==="cell"&&l!=null){let m=t.getItem(l);if(m?.type==="item"){var c,d;let b=ht(m,t);var p,h;u==="last"?l=(p=(c=un(b))===null||c===void 0?void 0:c.key)!==null&&p!==void 0?p:null:l=(h=(d=jr(b))===null||d===void 0?void 0:d.key)!==null&&h!==void 0?h:null}}s(l,u)};let a=g.useMemo(()=>new Ii(t,n),[t,n]);const i=g.useRef(null);return g.useEffect(()=>{if(n.focusedKey!=null&&i.current&&!t.getItem(n.focusedKey)){const l=i.current.getItem(n.focusedKey),u=l?.parentKey!=null&&(l.type==="cell"||l.type==="rowheader"||l.type==="column")?i.current.getItem(l.parentKey):l;if(!u){n.setFocusedKey(null);return}const c=i.current.rows,d=t.rows,p=c.length-d.length;let h=Math.min(p>1?Math.max(u.index-p+1,0):u.index,d.length-1),m=null;for(;h>=0;){if(!a.isDisabled(d[h].key)&&d[h].type!=="headerrow"){m=d[h];break}h<d.length-1?h++:(h>u.index&&(h=u.index),h--)}if(m){const b=m.hasChildNodes?[...ht(m,t)]:[],v=m.hasChildNodes&&u!==l&&l&&l.index<b.length?b[l.index].key:m.key;n.setFocusedKey(v)}else n.setFocusedKey(null)}i.current=t},[t,a,n,n.focusedKey]),{collection:t,disabledKeys:o,isKeyboardNavigationDisabled:!1,selectionManager:a}}class mV{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t;return(t=[...this.rows][0])===null||t===void 0?void 0:t.key}getLastKey(){var t;let r=[...this.rows];return(t=r[r.length-1])===null||t===void 0?void 0:t.key}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let r=d=>{let p=this.keyMap.get(d.key);t.visitNode&&(d=t.visitNode(d)),this.keyMap.set(d.key,d);let h=new Set,m=null,b=!1;if(d.type==="item"){var v;for(let S of d.childNodes)if(((v=S.props)===null||v===void 0?void 0:v.colSpan)!==void 0){b=!0;break}}for(let S of d.childNodes){if(S.type==="cell"&&b){var y,x;S.colspan=(y=S.props)===null||y===void 0?void 0:y.colSpan,S.colSpan=(x=S.props)===null||x===void 0?void 0:x.colSpan;var w,C;S.colIndex=m?((w=m.colIndex)!==null&&w!==void 0?w:m.index)+((C=m.colSpan)!==null&&C!==void 0?C:1):S.index}S.type==="cell"&&S.parentKey==null&&(S.parentKey=d.key),h.add(S.key),m?(m.nextKey=S.key,S.prevKey=m.key):S.prevKey=null,r(S),m=S}if(m&&(m.nextKey=null),p)for(let S of p.childNodes)h.has(S.key)||n(S)},n=d=>{this.keyMap.delete(d.key);for(let p of d.childNodes)this.keyMap.get(p.key)===p&&n(p)},o=null;for(let[d,p]of t.items.entries()){var s,a,i,l,u,c;let h={...p,level:(s=p.level)!==null&&s!==void 0?s:0,key:(a=p.key)!==null&&a!==void 0?a:"row-"+d,type:(i=p.type)!==null&&i!==void 0?i:"row",value:(l=p.value)!==null&&l!==void 0?l:null,hasChildNodes:!0,childNodes:[...p.childNodes],rendered:p.rendered,textValue:(u=p.textValue)!==null&&u!==void 0?u:"",index:(c=p.index)!==null&&c!==void 0?c:d};o?(o.nextKey=h.key,h.prevKey=o.key):h.prevKey=null,this.rows.push(h),r(h),o=h}o&&(o.nextKey=null)}}const sk="row-header-column-"+Math.random().toString(36).slice(2);let Kh="row-header-column-"+Math.random().toString(36).slice(2);for(;sk===Kh;)Kh="row-header-column-"+Math.random().toString(36).slice(2);function gV(e,t){if(t.length===0)return[];let r=[],n=new Map;for(let c of t){let d=c.parentKey,p=[c];for(;d;){let h=e.get(d);if(!h)break;if(n.has(h)){var o,s;(s=(o=h).colSpan)!==null&&s!==void 0||(o.colSpan=0),h.colSpan++,h.colspan=h.colSpan;let{column:m,index:b}=n.get(h);if(b>p.length)break;for(let v=b;v<p.length;v++)m.splice(v,0,null);for(let v=p.length;v<m.length;v++)m[v]&&n.has(m[v])&&(n.get(m[v]).index=v)}else h.colSpan=1,h.colspan=1,p.push(h),n.set(h,{column:p,index:p.length-1});d=h.parentKey}r.push(p),c.index=r.length-1}let a=Math.max(...r.map(c=>c.length)),i=Array(a).fill(0).map(()=>[]),l=0;for(let c of r){let d=a-1;for(let p of c){if(p){let h=i[d],m=h.reduce((b,v)=>{var y;return b+((y=v.colSpan)!==null&&y!==void 0?y:1)},0);if(m<l){let b={type:"placeholder",key:"placeholder-"+p.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};h.length>0&&(h[h.length-1].nextKey=b.key,b.prevKey=h[h.length-1].key),h.push(b)}h.length>0&&(h[h.length-1].nextKey=p.key,p.prevKey=h[h.length-1].key),p.level=d,p.colIndex=l,h.push(p)}d--}l++}let u=0;for(let c of i){let d=c.reduce((p,h)=>{var m;return p+((m=h.colSpan)!==null&&m!==void 0?m:1)},0);if(d<t.length){let p={type:"placeholder",key:"placeholder-"+c[c.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:u,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:c[c.length-1].key};c.push(p)}u++}return i.map((c,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:c,textValue:""}))}class bV extends mV{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return(n=r?.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return(n=r?.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t,r;return(r=(t=jr(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getLastKey(){var t,r;return(r=(t=un(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return t===this.body.key?this.body.childNodes:super.getChildren(t)}getTextValue(t){let r=this.getItem(t);if(!r)return"";if(r.textValue)return r.textValue;let n=this.rowHeaderColumnKeys;if(n){let o=[];for(let s of r.childNodes){let a=this.columns[s.index];if(n.has(a.key)&&s.textValue&&o.push(s.textValue),o.length===n.size)break}return o.join(" ")}return""}constructor(t,r,n){let o=new Set,s=null,a=[];if(n?.showSelectionCheckboxes){let d={type:"column",key:sk,value:null,textValue:"",level:0,index:n?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};a.unshift(d)}if(n?.showDragButtons){let d={type:"column",key:Kh,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};a.unshift(d)}let i=[],l=new Map,u=d=>{switch(d.type){case"body":s=d;break;case"column":l.set(d.key,d),d.hasChildNodes||(a.push(d),d.props.isRowHeader&&o.add(d.key));break;case"item":i.push(d);return}for(let p of d.childNodes)u(p)};for(let d of t)u(d);let c=gV(l,a);if(c.forEach((d,p)=>i.splice(p,0,d)),super({columnCount:a.length,items:i,visitNode:d=>(d.column=a[d.index],d)}),this._size=0,this.columns=a,this.rowHeaderColumnKeys=o,this.body=s,this.headerRows=c,this._size=[...s.childNodes].length,this.rowHeaderColumnKeys.size===0){let d=this.columns.find(p=>{var h,m;return!(!((h=p.props)===null||h===void 0)&&h.isDragButtonCell)&&!(!((m=p.props)===null||m===void 0)&&m.isSelectionCell)});d&&this.rowHeaderColumnKeys.add(d.key)}}}const vV={ascending:"descending",descending:"ascending"};function yV(e){let[t,r]=g.useState(!1),{selectionMode:n="none",showSelectionCheckboxes:o,showDragButtons:s}=e,a=g.useMemo(()=>({showSelectionCheckboxes:o&&n!=="none",showDragButtons:s,selectionMode:n,columns:[]}),[e.children,o,n,s]),i=a1(e,g.useCallback(d=>new bV(d,null,a),[a]),a),{disabledKeys:l,selectionManager:u}=hV({...e,collection:i,disabledBehavior:e.disabledBehavior||"selection"});var c;return{collection:i,disabledKeys:l,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:(c=e.sortDescriptor)!==null&&c!==void 0?c:null,isKeyboardNavigationDisabled:i.size===0||t,setKeyboardNavigationDisabled:r,sort(d,p){var h,m;(m=e.onSortChange)===null||m===void 0||m.call(e,{column:d,direction:p??(((h=e.sortDescriptor)===null||h===void 0?void 0:h.column)===d?vV[e.sortDescriptor.direction]:"ascending")})}}}function ak(e){return null}ak.getCollectionNode=function*(t,r){let{children:n,columns:o}=t;if(r.columns=[],typeof n=="function"){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let s of o)yield{type:"column",value:s,renderer:n}}else{let s=[];g.Children.forEach(n,a=>{s.push({type:"column",element:a})}),yield*s}};let xV=ak;function ik(e){return null}ik.getCollectionNode=function*(t){let{children:r,items:n}=t;yield{type:"body",hasChildNodes:!0,props:t,*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of n)yield{type:"item",value:o,renderer:r}}else{let o=[];g.Children.forEach(r,s=>{o.push({type:"item",element:s})}),yield*o}}}};let wV=ik;function lk(e){return null}lk.getCollectionNode=function*(t,r){let{title:n,children:o,childColumns:s}=t,a=n||o,i=t.textValue||(typeof a=="string"?a:"")||t["aria-label"],l=yield{type:"column",hasChildNodes:!!s||!!n&&g.Children.count(o)>0,rendered:a,textValue:i,props:t,*childNodes(){if(s)for(let c of s)yield{type:"column",value:c};else if(n){let c=[];g.Children.forEach(o,d=>{c.push({type:"column",element:d})}),yield*c}},shouldInvalidate(c){return u(c),!1}},u=c=>{for(let d of l)d.hasChildNodes||c.columns.push(d)};u(r)};let CV=lk;function Wh(e){return null}Wh.getCollectionNode=function*(t,r){let{children:n,textValue:o,UNSTABLE_childItems:s}=t;yield{type:"item",props:t,textValue:o,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(r.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),r.showSelectionCheckboxes&&r.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof n=="function"){for(let a of r.columns)yield{type:"cell",element:n(a.key),key:a.key};if(s)for(let a of s)yield{type:"item",value:a}}else{let a=[],i=[],l=0;if(g.Children.forEach(n,u=>{if(u.type===Wh){if(a.length<r.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");i.push({type:"item",element:u})}else{a.push({type:"cell",element:u});var c;l+=(c=u.props.colSpan)!==null&&c!==void 0?c:1}}),l!==r.columns.length)throw new Error(`Cell count must match column count. Found ${l} cells and ${r.columns.length} columns.`);yield*a,yield*i}},shouldInvalidate(a){return a.columns.length!==r.columns.length||a.columns.some((i,l)=>i.key!==r.columns[l].key)||a.showSelectionCheckboxes!==r.showSelectionCheckboxes||a.showDragButtons!==r.showDragButtons||a.selectionMode!==r.selectionMode}}};let SV=Wh;function uk(e){return null}uk.getCollectionNode=function*(t){let{children:r}=t,n=t.textValue||(typeof r=="string"?r:"")||t["aria-label"]||"";yield{type:"cell",props:t,rendered:r,textValue:n,"aria-label":t["aria-label"],hasChildNodes:!1}};let kV=uk;function ck(e){var t;const r=tt(),[n,o]=pt(e,Am.variantKeys),{ref:s,as:a,baseRef:i,children:l,className:u,classNames:c,removeWrapper:d=!1,disableAnimation:p=(t=r?.disableAnimation)!=null?t:!1,isKeyboardNavigationDisabled:h=!1,selectionMode:m="none",topContentPlacement:b="inside",bottomContentPlacement:v="inside",selectionBehavior:y=m==="none"?null:"toggle",disabledBehavior:x="selection",showSelectionCheckboxes:w=m==="multiple"&&y!=="replace",BaseComponent:C="div",checkboxesProps:S,topContent:k,bottomContent:D,sortIcon:$,onRowAction:_,onCellAction:A,...N}=n,M=a||"table",O=typeof M=="string",L=Pe(s),I=Pe(i),z=yV({...e,children:l,showSelectionCheckboxes:w});h&&!z.isKeyboardNavigationDisabled&&z.setKeyboardNavigationDisabled(!0);const{collection:F}=z,{layout:B,...U}=e,{gridProps:E}=iV({...U},z,L),j=m!=="none",T=m==="multiple",V=g.useMemo(()=>Am({...o,isSelectable:j,isMultiSelectable:T}),[ft(o),j,T]),K=P(c?.base,u),G=g.useMemo(()=>{var X;return{state:z,slots:V,isSelectable:j,collection:F,classNames:c,color:e?.color,disableAnimation:p,checkboxesProps:S,isHeaderSticky:(X=e?.isHeaderSticky)!=null?X:!1,selectionMode:m,selectionBehavior:y,disabledBehavior:x,showSelectionCheckboxes:w,onRowAction:_,onCellAction:A}},[V,z,F,j,c,m,y,S,x,p,w,e?.color,e?.isHeaderSticky,_,A]),Z=g.useCallback(X=>({...X,ref:I,className:V.base({class:P(K,X?.className)})}),[K,V]),W=g.useCallback(X=>({...X,ref:I,className:V.wrapper({class:P(c?.wrapper,X?.className)})}),[c?.wrapper,V]),ne=g.useCallback(X=>({...ie(E,Fe(N,{enabled:O}),X),onKeyDownCapture:void 0,ref:L,className:V.table({class:P(c?.table,X?.className)})}),[c?.table,O,V,E,N]);return{BaseComponent:C,Component:M,children:l,state:z,collection:F,values:G,topContent:k,bottomContent:D,removeWrapper:d,topContentPlacement:b,bottomContentPlacement:v,sortIcon:$,getBaseProps:Z,getWrapperProps:W,getTableProps:ne}}var dk=Se((e,t)=>{var r,n,o;const{as:s,className:a,node:i,rowKey:l,slots:u,state:c,classNames:d,...p}=e,h=s||"td",m=typeof h=="string",b=Pe(t),{gridCellProps:v}=rk({node:i},c,b),y=P(d?.td,a,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=nt(),C=c.selectionManager.isSelected(l),S=g.useMemo(()=>{const D=typeof i.rendered;return D!=="object"&&D!=="function"?f.jsx("span",{children:i.rendered}):i.rendered},[i.rendered]),k=((n=i.column)==null?void 0:n.props)||{};return f.jsx(h,{ref:b,"data-focus-visible":H(x),"data-selected":H(C),...ie(v,w,Fe(i.props,{enabled:m}),p),className:(o=u.td)==null?void 0:o.call(u,{align:k.align,class:y}),children:S})});dk.displayName="HeroUI.TableCell";var fk=dk,pk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,rowKey:i,slots:l,state:u,color:c,disableAnimation:d,checkboxesProps:p,selectionMode:h,classNames:m,...b}=e,v=o||"td",y=typeof v=="string",x=Pe(t),{gridCellProps:w}=rk({node:a},u,x),{isFocusVisible:C,focusProps:S}=nt(),{checkboxProps:k}=fV({key:a?.parentKey||a.key},u),D=P(m?.td,s,(r=a.props)==null?void 0:r.className),$=h==="single",{onChange:_,...A}=k,N=u.selectionManager.isSelected(i);return f.jsx(v,{ref:x,"data-focus-visible":H(C),"data-selected":H(N),...ie(w,S,Fe(a.props,{enabled:y}),b),className:(n=l.td)==null?void 0:n.call(l,{class:D}),children:$?f.jsx(wo,{children:k["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:d,onValueChange:_,...ie(p,A)})})});pk.displayName="HeroUI.TableCheckboxCell";var hk=pk,mk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,state:u,isSelectable:c,classNames:d,...p}=e,h=o||(e?.href?"a":"tr"),m=typeof h=="string",b=Pe(t),{rowProps:v}=uV({node:i},u,b),y=P(d?.tr,s,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=nt(),C=u.disabledKeys.has(i.key),S=u.selectionManager.isSelected(i.key),{isHovered:k,hoverProps:D}=vt({isDisabled:C}),{isFirst:$,isLast:_,isMiddle:A,isOdd:N}=g.useMemo(()=>{const M=i.key===u.collection.getFirstKey(),O=i.key===u.collection.getLastKey(),L=!M&&!O,I=i?.index?(i.index+1)%2===0:!1;return{isFirst:M,isLast:O,isMiddle:L,isOdd:I}},[i,u.collection]);return f.jsx(h,{ref:b,"data-disabled":H(C),"data-first":H($),"data-focus-visible":H(x),"data-hover":H(k),"data-last":H(_),"data-middle":H(A),"data-odd":H(N),"data-selected":H(S),...ie(v,w,c?D:{},Fe(i.props,{enabled:m}),p),className:(n=l.tr)==null?void 0:n.call(l,{class:y}),children:a})});mk.displayName="HeroUI.TableRow";var gk=mk,bk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,rowVirtualizer:m,...b}=e,v=n||"tbody",y=typeof v=="string",x=Pe(t),{rowGroupProps:w}=Rh(),C=P(h?.tbody,o),S=i?.body.props,k=S?.isLoading||S?.loadingState==="loading"||S?.loadingState==="loadingMore",D=[...i.body.childNodes],$=m.getVirtualItems();let _,A;return i.size===0&&S.emptyContent&&(_=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!k&&S.emptyContent})})),k&&S.loadingContent&&(A=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:S.loadingContent}),!_&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(v,{ref:x,...ie(w,Fe(S,{enabled:y}),b),className:(r=s.tbody)==null?void 0:r.call(s,{class:C}),"data-empty":H(i.size===0),"data-loading":H(k),children:[$.map((N,M)=>{const O=D[N.index];return O?f.jsx(gk,{classNames:h,isSelectable:l,node:O,slots:s,state:a,style:{transform:`translateY(${N.start-M*N.size}px)`,height:`${N.size}px`},children:[...O.childNodes].map(L=>L.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:L,rowKey:O.key,selectionMode:p,slots:s,state:a},String(L.key)):f.jsx(fk,{classNames:h,node:L,rowKey:O.key,slots:s,state:a},String(L.key)))},String(O.key)):null}),A,_]})});bk.displayName="HeroUI.VirtualizedTableBody";var PV=bk,Uh=e=>typeof e=="number"?`${e}px`:e,vk=Se((e,t)=>{var r,n,o,s,a;const{as:i,className:l,state:u,node:c,slots:d,classNames:p,sortIcon:h,...m}=e,b=i||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:c},u,y),w=P(p?.th,l,(r=c.props)==null?void 0:r.className),{isFocusVisible:C,focusProps:S}=nt(),{isHovered:k,hoverProps:D}=vt({}),{hideHeader:$,align:_,width:A,minWidth:N,maxWidth:M,...O}=c.props,L=O.allowsSorting,I={};A&&(I.width=Uh(A)),N&&(I.minWidth=Uh(N)),M&&(I.maxWidth=Uh(M));const z={"aria-hidden":!0,"data-direction":(n=u.sortDescriptor)==null?void 0:n.direction,"data-visible":H(((o=u.sortDescriptor)==null?void 0:o.column)===c.key),className:(s=d.sortIcon)==null?void 0:s.call(d,{class:p?.sortIcon})},F=typeof h=="function"?h(z):g.isValidElement(h)&&g.cloneElement(h,z);return f.jsxs(b,{ref:y,colSpan:c.colspan,"data-focus-visible":H(C),"data-hover":H(k),"data-sortable":H(L),style:I,...ie(x,S,Fe(O,{enabled:v}),L?D:{},m),className:(a=d.th)==null?void 0:a.call(d,{align:_,class:w}),children:[$?f.jsx(wo,{children:c.rendered}):c.rendered,L&&(F||f.jsx(Hy,{strokeWidth:3,...z}))]})});vk.displayName="HeroUI.TableColumnHeader";var yk=vk,xk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,classNames:u,state:c,...d}=e,p=o||"tr",h=typeof p=="string",m=Pe(t),{rowProps:b}=cV({node:i},c),v=P(u?.tr,s,(r=i.props)==null?void 0:r.className);return f.jsx(p,{ref:m,...ie(b,Fe(i.props,{enabled:h}),d),className:(n=l.tr)==null?void 0:n.call(l,{class:v}),children:a})});xk.displayName="HeroUI.TableHeaderRow";var wk=xk,Ck=g.forwardRef((e,t)=>{var r;const{as:n,className:o,children:s,slots:a,classNames:i,...l}=e,u=n||"thead",c=Pe(t),{rowGroupProps:d}=Rh(),p=P(i?.thead,o);return f.jsx(u,{ref:c,className:(r=a.thead)==null?void 0:r.call(a,{class:p}),...ie(d,l),children:s})});Ck.displayName="HeroUI.TableRowGroup";var Sk=Ck,kk=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,getBaseProps:c,getWrapperProps:d,getTableProps:p}=ck({...e,ref:t}),{rowHeight:h=40,maxTableHeight:m=600}=e,b=g.useCallback(({children:$})=>f.jsx(r,{...d(),ref:x,style:{height:m,display:"block"},children:$}),[d,m]),y=[...o.body.childNodes].length,x=g.useRef(null),[w,C]=g.useState(0),S=g.useRef(null);g.useLayoutEffect(()=>{S.current&&C(S.current.getBoundingClientRect().height)},[S]);const k=x1({count:y,getScrollElement:()=>x.current,estimateSize:()=>h,overscan:5}),D=p();return f.jsxs("div",{...c(),children:[i==="outside"&&a,f.jsx(b,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...D,style:{height:`calc(${k.getTotalSize()+w}px)`,...D.style},children:[f.jsx(Sk,{ref:S,classNames:s.classNames,slots:s.slots,children:o.headerRows.map($=>f.jsx(wk,{classNames:s.classNames,node:$,slots:s.slots,state:s.state,children:[...$.childNodes].map(_=>{var A;return(A=_?.props)!=null&&A.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:_,selectionMode:s.selectionMode,slots:s.slots,state:s.state},_?.key):f.jsx(yk,{classNames:s.classNames,node:_,slots:s.slots,state:s.state},_?.key)})},$?.key))}),f.jsx(PV,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,rowVirtualizer:k,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});kk.displayName="HeroUI.VirtualizedTable";var $V=kk,Pk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,...m}=e,b=n||"tbody",v=typeof b=="string",y=Pe(t),{rowGroupProps:x}=Rh(),w=P(h?.tbody,o),C=i?.body.props,S=C?.isLoading||C?.loadingState==="loading"||C?.loadingState==="loadingMore",k=g.useMemo(()=>[...i.body.childNodes].map(_=>f.jsx(gk,{classNames:h,isSelectable:l,node:_,slots:s,state:a,children:[..._.childNodes].map(A=>A.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:A,rowKey:_.key,selectionMode:p,slots:s,state:a},A.key):f.jsx(fk,{classNames:h,node:A,rowKey:_.key,slots:s,state:a},A.key))},_.key)),[i.body.childNodes,h,l,s,a]);let D,$;return i.size===0&&C.emptyContent&&(D=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!S&&C.emptyContent})})),S&&C.loadingContent&&($=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:C.loadingContent}),!D&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(b,{ref:y,...ie(x,Fe(C,{enabled:v}),m),className:(r=s.tbody)==null?void 0:r.call(s,{class:w}),"data-empty":H(i.size===0),"data-loading":H(S),children:[k,$,D]})});Pk.displayName="HeroUI.TableBody";var EV=Pk,$k=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,removeWrapper:c,sortIcon:d,getBaseProps:p,getWrapperProps:h,getTableProps:m}=ck({...e,ref:t}),{isVirtualized:b,rowHeight:v=40,maxTableHeight:y=600}=e,x=b,w=g.useCallback(({children:C})=>c?C:f.jsx(r,{...h(),children:C}),[c,h]);return x?f.jsx($V,{...e,ref:t,maxTableHeight:y,rowHeight:v}):f.jsxs("div",{...p(),children:[i==="outside"&&a,f.jsx(w,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...m(),children:[f.jsx(Sk,{classNames:s.classNames,slots:s.slots,children:o.headerRows.map(C=>f.jsx(wk,{classNames:s.classNames,node:C,slots:s.slots,state:s.state,children:[...C.childNodes].map(S=>{var k;return(k=S?.props)!=null&&k.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:S,selectionMode:s.selectionMode,slots:s.slots,state:s.state},S?.key):f.jsx(yk,{classNames:s.classNames,node:S,slots:s.slots,sortIcon:d,state:s.state},S?.key)})},C?.key))}),f.jsx(EV,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});$k.displayName="HeroUI.Table";var ll=$k,TV=CV,Dt=TV,DV=xV,ul=DV,_V=SV,cl=_V,IV=wV,dl=IV,NV=kV,_t=NV;function AV({proposition:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=Ye();function o(s){return{base:P(s,n?.table?.base),wrapper:P(n?.table?.wrapper),table:P("table-fixed border-collapse",n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent p-0 px-0.5",n?.table?.th),td:P("first:pl-0 py-0 px-0.5 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)}}return f.jsxs("div",{className:P("mt-1 border-small border-default-200 rounded-medium p-2",n?.base),children:[f.jsxs(Fd,{orientation:"horizontal",hideScrollBar:!0,children:[f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o(),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.price+e.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(e.price,{symbol:"€"})}),f.jsx(_t,{children:me(e.creditFee,{symbol:"€"})})]})})]}),f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o("mt-4"),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[e.planVariant.contractTerm," ",r("format.month",{count:e.planVariant.contractTerm})]}),f.jsx(_t,{textValue:"0%",children:"0%"})]})})]})]}),f.jsxs("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:[f.jsx(xg,{i18nKey:"creditInfo.creditBundleDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-credit-bundle-description-link")],values:{creditPrice:me(250,{symbol:"€",dashed:!0}),creditProviderName:e.provider.creditProviderName}})," ",f.jsx("button",{type:"button",onClick:()=>{t("/inkomens-en-lastentoets").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink),children:r("detailsModal.moreInformation")})]})]})}function MV(e,t){return e===0?Q.t("format.firstMonth",{count:t}):Q.t("format.thenMonth",{count:t})}function Qt({label:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex justify-between items-center text-sm",r?.container),children:[f.jsx("div",{className:P(r?.label),children:e}),f.jsx("div",{className:P(r?.price),children:t})]})}function Ek({icon:e,title:t,subtitle:r,price:n,classNames:o}){return f.jsxs("div",{className:P("flex justify-between items-center",o?.header),children:[f.jsxs("div",{className:P("flex items-center gap-1",o?.headerContent),children:[f.jsx("div",{className:P(o?.icon),children:e}),f.jsxs("div",{children:[f.jsx("div",{className:P("font-semibold text-sm",o?.title),children:t}),f.jsx("div",{className:P("text-xs text-foreground-500",o?.subtitle),children:r})]})]}),f.jsx("div",{className:P("text-sm font-semibold",o?.price),children:n})]})}function OV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,monthlyFees:a,price:i,creditFee:l,tcoPerMonth:u,handsetCreditMonthlyFee:c,tcoTerm:d,tcoCorrection:p,activationFee:h,cashback:m,productVersion:b,installationFee:v}=e,y=t?.averageSection,x=t?.discountSection;return f.jsxs("div",{className:P("pb-4",t?.base),children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large",y?.container),children:[f.jsx(Ek,{icon:f.jsx(_g,{size:24,className:"stroke-foreground"}),title:n("detailsModal.costPerContractTermTitle"),subtitle:n("detailsModal.costPerContractTermSubtitle"),price:me(u),classNames:{header:y?.header,headerContent:y?.headerContent,icon:y?.icon,title:y?.title,subtitle:y?.subtitle,price:y?.price}}),f.jsx("div",{className:P("text-sm mt-2",y?.monthlyFeesContainer),children:a.map(({fee:w,term:C})=>f.jsx(Qt,{label:`${n("format.monthly")} ${C} x ${me(w,{symbol:"€"})}`,price:me(w*C),classNames:y?.monthlyFee},`${C}-${w}`))}),i!==0&&f.jsx(Qt,{label:n("format.oneTime"),price:me(i),classNames:y?.oneTimeFee}),f.jsx(Qt,{label:`${s.name} ${n("detailsModal.activationFee")}`,price:me(h),classNames:y?.activationFee}),o==="fixed"&&f.jsx(Qt,{label:`${s.name} ${n("detailsModal.installationFee")}`,price:me(v),classNames:y?.installationFee}),m!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:`-${me(m)}`,classNames:y?.cashback}),p!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:me(p),classNames:y?.cashback}),f.jsx(No,{orientation:"horizontal",className:P("my-3",y?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalCostsOverTerm",{count:d}),price:me(u*d),classNames:y?.totalCosts})]}),o==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large text-sm mt-3",x?.container),children:[f.jsx(Ek,{icon:f.jsx(tu,{size:24,className:"stroke-foreground"}),title:n("detailsModal.deviceDiscountTitle"),subtitle:n("detailsModal.deviceDiscountSubtitle"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:{header:x?.header,headerContent:x?.headerContent,icon:x?.icon,title:x?.title,subtitle:x?.subtitle,price:x?.price}}),f.jsx(Qt,{label:n("detailsModal.priceWithoutSubscription"),price:me(Number(b?.pricing.sellingPriceInclVat)),classNames:{container:P("my-2",x?.priceWithoutSubscription?.container),label:x?.priceWithoutSubscription?.label,price:x?.priceWithoutSubscription?.price}}),a.map(({fee:w,term:C},S)=>f.jsxs("div",{children:[f.jsx(Qt,{label:n("detailsModal.priceWithSubscription"),price:me(c*C+i),classNames:x?.priceWithSubscription}),f.jsx(Qt,{label:f.jsxs(f.Fragment,{children:[S===a.length-1?n("detailsModal.deviceBundle"):MV(S,C)," ",C," x ",me(c,{symbol:"€"})]}),price:me(c*C),classNames:{container:P(x?.handsetCosts?.container),label:P("pl-4",x?.handsetCosts?.label),price:P(x?.handsetCosts?.price)}})]},`discount-${C}-${w}-${c}-${i}`)),f.jsx(Qt,{label:n("detailsModal.devicePrice"),price:me(i),classNames:{container:P(x?.oneTimeFee?.container),label:P("pl-4",x?.oneTimeFee?.label),price:P(x?.oneTimeFee?.price)}}),f.jsx(No,{orientation:"horizontal",className:P("my-3",x?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalDeviceDiscount"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:x?.totalDiscount})]}),f.jsx("div",{className:P("text-xs text-foreground-500 mt-6",t?.creditInfoLabel),children:n("creditInfo.creditBundleTitle")}),f.jsx(AV,{proposition:e,buildClickOutUrl:r})]})]})}function fl({label:e,originalPrice:t,currentPrice:r,hasMonthlyPrice:n=!0,classNames:o}){return f.jsxs("div",{className:P("flex justify-between",o?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",o?.label),children:e}),n&&f.jsxs("div",{className:P("flex items-center gap-2",o?.priceContainer),children:[t&&f.jsx("div",{className:P("line-through text-foreground-400",o?.originalPrice),children:me(t)}),f.jsx("div",{className:P(o?.currentPrice),children:me(r)})]})]})}function Tk({term:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex text-sm text-foreground-400 justify-between",r?.container),children:[f.jsxs("div",{className:P("flex items-center gap-1",r?.label),children:[f.jsx(ME,{size:16,className:P("stroke-foreground-400",r?.icon)}),Q.t("format.afterMonth",{count:e})]}),f.jsx("div",{className:P(r?.price),children:me(t)})]})}function jV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,planVariant:a,bundles:i,monthlyFees:l,price:u,handsetCreditMonthlyFee:c,baseMonthlyFee:d,lifetimeMonthlyFee:p,productVersion:h}=e,m=l[l.length-1].fee,b=d>m?d:m,v=i.filter(_=>!_.contentTypes?.includes("handset_service")),y=v.filter(_=>_.contentTypes?.includes("combi_deal")),x=l&&l[l.length-1].fee!==p,w=l?.reduce((_,A)=>_+A.term,0),C=c>0?d-c:y.length?b-(y[0].baseMonthlyFee||0):b,S=c>0?l[0].fee-c:l[0].fee,k=S!==void 0&&C!==S,D=k?C:void 0,$=k?S:C;return f.jsxs("div",{className:P(t?.base),children:[f.jsxs("div",{className:P("mb-8",t?.monthlySection),children:[f.jsxs("div",{className:P("mb-2",t?.monthlyFeesContainer),children:[f.jsxs("div",{className:P("text-lg font-bold flex justify-between",t?.monthlyPriceHeader?.container),children:[f.jsx("div",{className:P(t?.monthlyPriceHeader?.label),children:n("format.monthly")}),f.jsx("div",{className:P(t?.monthlyPriceHeader?.price),children:me(l[0].fee)})]}),l?.map((_,A)=>{if(A+1===l?.length)return null;const N=l?.slice(0,A+1).reduce((M,O)=>M+O.term,0);return f.jsx(Tk,{term:N,price:l[A+1]?.fee||0,classNames:t?.monthlyFeeTransition},_.term)}),x&&w&&p&&f.jsx(Tk,{term:w,price:p,classNames:t?.lifetimeFee})]}),f.jsx(fl,{label:f.jsxs(f.Fragment,{children:[s.name," ",a.contractType==="retention"?`${n("detailsModal.renewal").toLowerCase()} `:"",sl(a.contractTerm)]}),originalPrice:D,currentPrice:$,classNames:t?.providerContract}),v.map(_=>{const A=_.contentTypes?.includes("combi_deal"),N=A&&_.promotionMonthlyFee||_.baseMonthlyFee||0,M=!A&&_.promotionMonthlyFee!==_.baseMonthlyFee&&_.promotionMonthlyFee||void 0,O=M!==void 0&&N!==M,L=O?N:void 0,I=O?M:N,z=N!==0||M!==void 0&&M!==0;return f.jsx(fl,{label:_.displayName,originalPrice:L,currentPrice:I,hasMonthlyPrice:z,classNames:{container:P("text-sm text-foreground-400",t?.bundle?.container),label:P("pl-4",t?.bundle?.label),priceContainer:t?.bundle?.priceContainer,originalPrice:t?.bundle?.originalPrice,currentPrice:t?.bundle?.currentPrice}},_.displayName)}),c>0&&f.jsx(fl,{label:n("detailsModal.deviceBundle"),currentPrice:c,classNames:{container:P("mt-2",t?.handsetBundle?.container),label:t?.handsetBundle?.label,priceContainer:t?.handsetBundle?.priceContainer,currentPrice:t?.handsetBundle?.currentPrice}}),o==="smartphone"&&f.jsxs(f.Fragment,{children:[f.jsx(No,{orientation:"horizontal",className:P("my-4",t?.separator)}),f.jsxs("div",{className:P("text-lg font-bold flex justify-between mb-1",t?.oneTimeSection?.header?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.header?.label),children:n("format.oneTime")}),f.jsx("div",{className:P("flex items-center gap-2",t?.oneTimeSection?.header?.price),children:f.jsx("div",{children:me(u)})})]}),f.jsx(fl,{label:f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.productRow?.label),children:h?.fullName}),currentPrice:u,classNames:t?.oneTimeSection?.productRow})]})]}),f.jsx(OV,{proposition:e,classNames:t?.propositionOverview,buildClickOutUrl:r})]})}function Sr({title:e,rows:t,classNames:r}){return t.length===0?null:f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-semibold",r?.title),children:e}),f.jsxs(ll,{removeWrapper:!0,hideHeader:!0,isCompact:!0,"aria-label":e,classNames:{base:P(r?.table?.base),wrapper:P(r?.table?.wrapper),table:P("table-fixed",r?.table?.table),thead:P(r?.table?.thead),tbody:P(r?.table?.tbody),tr:P("border-b border-default-100",r?.table?.tr),th:P(r?.table?.th),td:P(r?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:"Label"}),f.jsx(Dt,{children:"Waarde"})]}),f.jsx(dl,{children:t.map(n=>f.jsxs(cl,{children:[f.jsx(_t,{children:n.label}),f.jsx(_t,{children:n.value})]},n.key))})]})]})}function FV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),o=e.bundles.filter(c=>c.isExtra),s=e.tags.find(c=>c.type==="internet"),a=e.productType==="fixed"?[{label:n("detailsModal.provider"),value:e.provider.name,key:"provider"},...e.provider.network?[{label:n("detailsModal.networkAdministrator"),value:e.provider.network.replace(/-netwerk/g,""),key:"networktype"}]:[],...s?[{label:n("detailsModal.networkType"),value:n(`fixedInternet.${s.slug}`,{defaultValue:s.label}),key:"networktype"}]:[]]:[{label:n("detailsModal.network"),value:`${e.provider.network?.replace(/-netwerk/g,"")} ${n("detailsModal.network").toLowerCase()}`,key:"network"},{label:n("detailsModal.networkCoverage"),value:e.provider.networkCoverage,key:"networktype"}],i=e.productType==="fixed"?[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"}]:[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"},{label:n("detailsModal.subscriptionType"),value:e.planVariant.name,key:"subscription-type"},{label:n("detailsModal.internet"),value:Xt(e.content.data,n("format.gigabyte")),key:"internet"},{label:n("detailsModal.calling"),value:Xt(e.content.minutes,n("format.minutes")),key:"calling"},{label:n("detailsModal.sms"),value:Xt(e.content.sms,n("format.sms")),key:"sms"},...o.length>0?[{label:n("detailsModal.extras"),value:o.map(c=>c.displayName).join(", "),key:"extras"}]:[]],l=e.productType==="fixed"?[]:[{label:n("detailsModal.networkGeneration"),value:N3(e.content.networkGeneration),key:"network-generation"},{label:n("detailsModal.downloadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedDown/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedDown/1e3," ",n("format.megabitPerSecond")]}),key:"download-speed"},{label:n("detailsModal.uploadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedUp/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedUp/1e3," ",n("format.megabitPerSecond")]}),key:"upload-speed"}],u=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{r(`/${e.provider.termsAndConditionsUrl}`).then(c=>window.open(c,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[n("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Sr,{title:n("detailsModal.network"),rows:a,classNames:t}),f.jsx(Sr,{title:e.productType==="fixed"?n("detailsModal.subscription"):n("detailsModal.bundle"),rows:i,classNames:t}),f.jsx(Sr,{title:n("detailsModal.bundleSpeed"),rows:l,classNames:t}),e.productType==="fixed"&&f.jsx(Sr,{title:n("detailsModal.termsAndConditions"),rows:u,classNames:t})]})}function BV({proposition:e,classNames:t,onChannelsClick:r,buildClickOutUrl:n}){const{t:o}=Oe(),{plan:s,content:a,bundles:i,provider:l,productType:u}=e,{sharedCredits:c}=a,d=Xt(a.dataEu,o("format.gigabyte")),p=Xt(a.minutesEu,o("format.minutes")),h=Xt(a.minutesToEu,o("format.minutes")),m=["data","minutes"].every(w=>c?.includes(w))?"/":"+";if(u==="fixed"){const w=[{label:o("detailsModal.maximumDownloadSpeed"),value:`${a.dataSpeedDown/1e3} ${o("format.megabitPerSecond")}`,key:"download-speed"},{label:o("detailsModal.maximumUploadSpeed"),value:`${a.dataSpeedUp/1e3} ${o("format.megabitPerSecond")}`,key:"upload-speed"}],C=i.filter(S=>S.contentTypes?.includes("tv"))?.length>0?[{label:o("detailsModal.numberOfChannels"),value:f.jsxs("button",{type:"button",onClick:r,className:P("text-primary-600 hover:underline cursor-pointer",t?.link),children:[a.channels.length," (",a.hdChannels.length," HD)"]}),key:"channels"},{label:o("detailsModal.numberOfReceivers"),value:a.receivers,key:"receivers"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Sr,{title:o("detailsModal.internet"),rows:w,classNames:t}),C.length>0&&f.jsx(Sr,{title:o("detailsModal.television"),rows:C,classNames:t})]})}const b=[{label:o("detailsModal.dataExceedance"),value:s.bundleExceedanceDataLimitReached,key:"data-exceedance"},{label:o("detailsModal.bundleExceedanceRates"),value:s.bundleExceedanceRate,key:"exceedance-rate"},{label:o("detailsModal.bundleExceedanceRateCeiling"),value:s.bundleExceedanceRateCeiling,key:"rate-ceiling"},{label:o("detailsModal.bundleExceedanceWarning"),value:s.bundleExceedanceWarning,key:"warning"},{label:o("detailsModal.bundleExceedanceMinutesRounding"),value:s.bundleExceedanceMinutesRounding,key:"minutes-rounding"}],v=[{label:o("detailsModal.upgradeBundle"),value:s.bundleUpgrade,key:"upgrade"},{label:o("detailsModal.downgradeBundle"),value:s.bundleDowngrade,key:"downgrade"}],y=[{label:o("detailsModal.insideEu"),value:a.minutesEu>0?`${d} ${m} ${p}`:d,key:"in-eu"},{label:o("detailsModal.outsideEu"),value:f.jsxs("button",{type:"button",onClick:()=>{n(`/tariefinformatie/${l.slug}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.moreInformation")," ",f.jsx(ts,{size:16})]}),key:"out-eu"},...a.minutesToEu>0?[{label:o("detailsModal.minutesToEu"),value:h,key:"to-eu"}]:[]],x=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{n(`/${e.provider.termsAndConditionsUrl}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Sr,{title:o("detailsModal.outsideBundle"),rows:b,classNames:t}),f.jsx(Sr,{title:o("detailsModal.subscriptionFlexibility"),rows:v,classNames:t}),f.jsx(Sr,{title:o("detailsModal.abroad"),rows:y,classNames:t}),f.jsx(Sr,{title:o("detailsModal.termsAndConditions"),rows:x,classNames:t})]})}function zV(e){const t=[e.provider.name,e.plan?.name];return e.planVariant.contractTerm===24?t.push(`2 ${Q.t("format.year",{count:2})}`):e.planVariant.contractTerm===12&&t.push(`1 ${Q.t("format.year")}`),e.planVariant.contractType==="retention"&&t.push(Q.t("detailsModal.renewal")),Array.from(new Set(t)).join(" ").trim()}function pl({isOpen:e,onOpenChange:t,proposition:r,defaultTab:n="general",buildClickOutUrl:o}){const{t:s}=Oe(),[a,i]=Co(),{results:{detailsModal:l}={}}=Ye(),{popoverProps:u}=on(),[c,d]=g.useState(n);if(!r)return null;const p=Xt(r.content.data,s("format.gigabyte")),{sharedCredits:h}=r.content,m=["data","minutes"].every(v=>h?.includes(v))?"/":"+",b=r.tags.find(v=>v.type==="internet");return f.jsx($o,{isOpen:e,onOpenChange:t,placement:"bottom-center",scrollBehavior:"inside",size:"lg",portalContainer:u.portalContainer,classNames:{backdrop:P(l?.modal?.backdrop),wrapper:P(l?.modal?.wrapper),base:P(l?.modal?.base),header:P(l?.modal?.header),body:P(l?.modal?.body),footer:P(l?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",l?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:f.jsx("span",{children:s("detailsModal.title")})}),f.jsxs(So,{onPointerDown:v=>v.stopPropagation(),children:[f.jsxs("div",{className:P("flex items-center gap-2",l?.propositionInfo?.container),children:[r.productType==="smartphone"&&r.productVersion?f.jsx(Jt,{src:a(r.productVersion.media.main?.url||"",64,64),srcSet:i(r.productVersion.media.main?.url||"",64,64),alt:r.productVersion.media.main?.altText||"",width:64,height:64,className:P(l?.propositionInfo?.image)}):f.jsx(Jt,{src:a(r.provider.imageUrl,48,24),srcSet:i(r.provider.imageUrl,48,24),alt:r.provider.name,width:48,height:24,className:P(l?.propositionInfo?.image)}),f.jsxs("div",{className:P("text-sm",l?.propositionInfo?.content),children:[r.productType!=="smartphone"&&f.jsx("div",{className:P("font-semibold",l?.propositionInfo?.name),children:zV(r)}),r.productType==="fixed"?f.jsxs("div",{className:P(l?.propositionInfo?.details),children:[r.content.dataSpeedDown/1e3," ",s("format.megabitPerSecond")," ",b?s(`fixedInternet.${b.slug}`,{defaultValue:b.label}):""]}):f.jsx("div",{className:P(l?.propositionInfo?.details),children:r.content.minutes>0?f.jsxs("div",{children:[f.jsx("span",{children:p})," ",m," ",f.jsxs("span",{children:[Oh(r.content.minutes)," ",s("format.minutes_short")]})]}):f.jsx("div",{children:p})}),r.productType==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("font-semibold",l?.propositionInfo?.productName),children:[r.productVersion?.product.fullName," "]}),f.jsx("div",{className:P("text-xs",l?.propositionInfo?.productProperties),children:r.productVersion?.distinctProperties.map(v=>v.option.label).join(", ")})]})]})]}),f.jsxs(c1,{onPointerDown:v=>v.stopPropagation(),selectedKey:c,radius:"full",color:"primary","aria-label":s("detailsModal.chooseTab"),classNames:{base:P(l?.tabs?.base),tabList:P("relative",l?.tabs?.tabList),tab:P(l?.tabs?.tab),panel:P("h-[60vh]",l?.tabs?.panel),cursor:P(l?.tabs?.cursor)},children:[f.jsx(Io,{title:s("detailsModal.general"),onClick:()=>d("general"),children:f.jsx(FV,{proposition:r,classNames:l?.general,buildClickOutUrl:o})},"general"),f.jsx(Io,{title:r.productType==="fixed"?s("detailsModal.bundles"):s("detailsModal.conditions"),onClick:()=>d("conditions"),children:f.jsx(BV,{proposition:r,classNames:l?.terms,onChannelsClick:()=>d("channels"),buildClickOutUrl:o})},"conditions"),r.productType==="fixed"&&f.jsx(Io,{title:s("detailsModal.channels"),onClick:()=>d("channels"),children:f.jsx(HL,{channels:r.content.channels,hdChannels:r.content.hdChannels,classNames:l?.channels})},"channels"),f.jsx(Io,{title:s("detailsModal.costs"),onClick:()=>d("costs"),children:f.jsx(jV,{proposition:r,classNames:l?.costOverview,buildClickOutUrl:o})},"costs")]})]})]})})}function Dk({label:e,classNames:t}){return f.jsx("div",{className:P("px-4",t?.wrapper),children:f.jsx("div",{className:P("w-full text-background text-xs font-semibold text-center px-4 rounded-t-xl h-6 flex items-center justify-center shadow-small",{"bg-primary":e.color==="primary","bg-secondary":e.color==="secondary","bg-default":e.color==="default","bg-success":e.color==="success","bg-warning":e.color==="warning","bg-danger":e.color==="danger"},t?.text),children:e.displayName})})}function LV({productStockStatus:e,classNames:t}){const{t:r}=Oe(),n=r("propositionCard.availableStockStatus"),o=r("propositionCard.backorderedStockStatus"),s=r("propositionCard.preOrderStockStatus"),a=g.useMemo(()=>{switch(e){case"in_stock":return n;case"backordered":return o;case"preorder":return s;default:return null}},[e,n,o,s]);return a?f.jsxs("div",{className:P("text-center flex items-center justify-center gap-1.5",t?.wrapper),children:[f.jsx("div",{className:P("size-2 rounded-full",{"bg-success":e==="in_stock"||e==="preorder","bg-warning":e==="backordered"},t?.icon)}),f.jsx("span",{className:P("text-sm text-foreground",t?.text),children:a})]}):null}function _k({hasProduct:e,productImageUrl:t,productImageAlt:r,productStockStatus:n,propositionImageUrl:o,propositionImageAlt:s,horizontal:a,classNames:i}){const[l,u]=Co();if(e){const c=a?140:200;return f.jsxs("div",{className:P("flex flex-col gap-2 items-center w-full",i?.phoneImage?.wrapper),children:[t&&r&&f.jsx(Jt,{alt:r,height:c,src:l(t,c,c),srcSet:u(t,c,c),width:c,classNames:{wrapper:P("mx-auto flex shrink-0",i?.phoneImage?.imageWrapper),img:P("aspect-square drop-shadow-lg",i?.phoneImage?.image)}}),f.jsx(LV,{productStockStatus:n,classNames:i?.phoneImage?.stockIndicator})]})}return f.jsx(Jt,{alt:s,height:70,src:l(o,140,70),srcSet:u(o,140,70),width:140,classNames:{wrapper:P("mx-auto flex shrink-0",i?.providerImage?.imageWrapper),img:P("aspect-2/1",i?.providerImage?.image)}})}function Ik({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,tcoPerMonth:n,onInfoClick:o,classNames:s,horizontal:a}){const{t:i}=Oe(),[l,u]=t.split(",");return f.jsxs("div",{className:P("flex flex-col",a&&"items-end text-right",s?.wrapper),children:[e&&f.jsx("div",{className:P("text-sm text-foreground-500 whitespace-nowrap",s?.promotionText),children:e}),f.jsxs("div",{className:P("flex items-end gap-1",s?.monthlyFeeWrapper),children:[f.jsxs("div",{className:P("flex items-start font-extrabold -tracking-[1px] text-foreground h-8 text-[32px] leading-8",s?.monthlyFeeValue),children:[f.jsx("span",{children:l}),f.jsx("span",{className:"font-bold mt-0.5 ml-[3px] text-[22px] leading-8",children:","}),f.jsx("span",{className:"font-bold -mt-[3px] -ml-[3px] text-lg leading-8",children:u})]}),f.jsxs("div",{className:P("text-sm text-foreground leading-none",s?.monthlyFeeLabel),children:["/ ",i("format.month")]})]}),r&&f.jsxs("div",{className:P("text-sm font-semibold text-foreground",s?.oneTimeFee),children:["+ ",f.jsx("span",{children:r})," ",i("propositionCard.oneTimeFee")]}),n&&f.jsxs("div",{className:P("flex items-center gap-1 text-sm mt-1",s?.averagePriceWrapper),children:[f.jsx(_g,{size:16,className:P("text-primary-600",s?.averagePriceIcon)}),f.jsxs("button",{type:"button",className:P("underline underline-offset-4 text-primary-600 cursor-pointer",s?.averagePriceValue),onPointerDown:c=>{c.preventDefault(),c.stopPropagation()},onClick:c=>{c.preventDefault(),c.stopPropagation(),o("costs")},onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),o("costs"))},tabIndex:0,children:[i("format.average_short")," ",n," / ",i("format.month")]})]})]})}function Nk({promotions:e,urgentText:t,classNames:r}){return f.jsxs("div",{className:P("flex flex-col gap-0",r?.base),children:[t&&f.jsx(f2,{classNames:{base:P("mb-1 border-1 text-xs",r?.urgentChip?.base),content:P("font-semibold",r?.urgentChip?.content)},color:"warning",size:"sm",variant:"bordered",children:f.jsx("span",{children:t})}),e.map(n=>f.jsxs("div",{className:P("flex flex-row items-center gap-1 text-sm @xs:text-base leading-none",r?.item),children:[f.jsx(LE,{size:20,className:P("shrink-0 text-success-600",r?.promotionIcon)}),f.jsx("span",{children:n})]},n))]})}function VV({slug:e,size:t=16,className:r}){switch(e){case"contract-term":return f.jsx(VE,{size:t,className:r});case"data-speed-down":return f.jsx(UE,{size:t,className:r});case"provider-network":return f.jsx(FE,{size:t,className:r});case"data-eu":return f.jsx(GE,{size:t,className:r});case"internet-speed":return f.jsx(OE,{size:t,className:r});case"channels":return f.jsx(RE,{size:t,className:r});case"tv-receiver":return f.jsx(KE,{size:t,className:r});default:return null}}function Ak({productTitle:e,propositionTitle:t,propositionSubtitle:r,imageUrl:n,imageAlt:o,hasProduct:s,horizontal:a,propositionSpecifications:i,onInfoClick:l,classNames:u}){const[c,d]=Co(),p=70,h=35;return f.jsxs("div",{className:P("flex flex-col",u?.base),children:[f.jsxs("div",{className:P("flex justify-between gap-3 w-full",a&&"w-fit",u?.titleWrapper),children:[f.jsxs("div",{children:[s&&e&&f.jsx("div",{className:P("text-base leading-tight font-bold @xs:text-xl",u?.phone?.title),children:e}),s&&f.jsxs("div",{className:P("text-sm leading-tight @xs:text-base",u?.phone?.subtitle),children:[t," • ",r]}),!s&&f.jsxs("div",{className:P("flex flex-row items-center gap-1 leading-tight",u?.proposition?.wrapper),children:[f.jsx("span",{className:P("text-xl font-extrabold text-foreground",u?.proposition?.title),children:t}),f.jsxs("span",{className:P(u?.proposition?.subtitle),children:["• ",r]})]})]}),s&&n&&o&&f.jsx(Jt,{alt:o,height:h,src:c(n,p,h),srcSet:d(n,p,h),width:p,classNames:{wrapper:P("flex shrink-0",u?.phone?.providerImageWrapper),img:P("aspect-2/1",u?.phone?.providerImage)}})]}),!s&&i&&f.jsx("div",{className:P("flex flex-wrap items-center gap-x-2 gap-y-1 text-foreground-500",u?.proposition?.specifications?.wrapper),children:i.map(m=>f.jsxs("button",{type:"button",className:P("text-sm flex items-center gap-1 cursor-pointer hover:underline whitespace-nowrap",u?.proposition?.specifications?.item),onPointerDown:b=>{b.preventDefault(),b.stopPropagation()},onClick:b=>{b.preventDefault(),b.stopPropagation(),l?.(m.slug==="channels"?"channels":"general")},children:[f.jsx(VV,{slug:m.slug,className:P(u?.proposition?.specifications?.icon)}),f.jsx("span",{children:m.title})]},m.title))})]})}function Mk({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Ad,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container flex flex-row",w?.card),children:[f.jsx("div",{className:P("p-6 w-fit",w?.horizontalCard?.header),children:f.jsx(_k,{horizontal:!0,hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsx(No,{orientation:"vertical",className:P(w?.horizontalCard?.divider)}),f.jsxs("div",{className:P("p-6 flex flex-col gap-3 flex-1 w-fit",w?.horizontalCard?.body),children:[f.jsx(Ak,{horizontal:!0,hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Nk,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsxs("div",{className:P("p-6 pl-0 flex flex-col items-end gap-4 shrink-0 self-end",w?.horizontalCard?.footer),children:[f.jsx(Ik,{horizontal:!0,monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing}),f.jsx(qt,{className:P("font-medium gap-1 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function RV({label:e,...t}){const{results:{propositionCard:r}={}}=Ye();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:{wrapper:r?.label?.wrapper,text:P("w-max",r?.label?.text)}}),f.jsx(Mk,{classNames:r,...t})]}):f.jsx(Mk,{classNames:r,...t})}function Ok({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Ad,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container h-full",w?.card),children:[f.jsx(p7,{className:P("p-3 pt-6 @xs:px-6",w?.verticalCard?.header),children:f.jsx(_k,{hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsxs(S1,{className:P("py-0 px-3 @xs:px-6 gap-2 overflow-hidden",w?.verticalCard?.body),children:[f.jsx(Ak,{hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Nk,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsx(No,{className:P("mt-3",w?.verticalCard?.divider)}),f.jsxs(f7,{className:P("flex-col justify-between items-start text-start p-3 @xs:p-6 @xs:pt-3",w?.verticalCard?.footer),children:[f.jsx("div",{className:"w-full",children:f.jsx(Ik,{monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing})}),f.jsx(qt,{className:P("font-medium gap-1 mt-4 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",fullWidth:!0,disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function KV({label:e,...t}){const{results:{propositionCard:r}={}}=Ye();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:r?.label}),f.jsx(Ok,{classNames:r,...t})]}):f.jsx(Ok,{classNames:r,...t})}function zn({horizontal:e,...t}){return e?f.jsx(RV,{...t}):f.jsx(KV,{...t})}function Hh(e,t){if(!t)return e;const r=Math.floor(parseFloat(t));return Number.isNaN(r)||r<=20?e:[...e,`€ ${r},- ${Q.t("propositionCard.deviceDiscount")}`]}function hn(e,t=500,r=7){if(!e)return!1;const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function WV(e){return e.sort((t,r)=>{if(hn(t)&&hn(r)){const n=new Date(t.validUntil),o=new Date(r.validUntil);return n.getTime()===o.getTime()?r.weight-t.weight:n.getTime()-o.getTime()}return hn(t)&&!hn(r)?-1:hn(r)&&!hn(t)?1:r.weight-t.weight})}function Ln(e){const t=WV(e.specialPromotions.filter(l=>l.shortDescription&&!l.shortDescription.includes("toestelkorting")&&l.weight>200)),r=hn(t[0])?t[0]?.shortDescription:null,n=r?t.slice(1):t,o=r?[r]:[],s=n.map(l=>l.shortDescription).filter(l=>!!l),a=e.bundles.flatMap(l=>l.usps);if(e.productType!=="fixed")return[...o,...a,...s];const i=e.bundles.filter(l=>l.contentTypes?.includes("tv")||l.contentTypes?.includes("phone")).map(l=>l.displayName).filter(l=>!!l);return[...o,...i,...a,...s]}function Vn(e){const t=e.filter(n=>hn(n));if(t.length===0)return;const r=Math.min(...t.map(n=>{const o=new Date,s=new Date(n.validUntil);return Math.ceil((s.getTime()-o.getTime())/(1440*60*1e3))}))+1;return Q.t("propositionCard.urgentText",{days:r,count:r})}function hl({isReachingEnd:e,loadMore:t,isValidating:r,className:n}){const{t:o}=Oe();return e?null:f.jsx(qt,{className:P("font-medium mx-auto text-primary-600 border-primary-600 min-w-[234px] rounded-full",n),onPress:t,color:"primary",variant:"flat",size:"md",disableAnimation:!0,disableRipple:!0,isLoading:r,disabled:r,endContent:!r&&f.jsx(BE,{size:20}),children:o(r?"productResults.loadMore":"productResults.showMoreOffers")})}function UV({size:e,height:t,width:r,className:n,style:o,...s}){return f.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...s,children:[f.jsx("title",{children:"Search Loading Icon"}),f.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),f.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),f.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),f.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),f.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function HV({address:e}){const{t}=Oe(),{results:{postcodeCheckLoading:r}={}}=Ye();return f.jsxs("div",{className:P("flex flex-row items-center justify-center md:gap-6 rounded-large bg-white p-4 shadow-md mb-4",r?.base),children:[f.jsx(UV,{className:P("animate-pulse shrink-0 size-20 md:size-[106px]",r?.icon)}),f.jsxs("div",{className:P("max-w-[215px] text-center flex flex-col items-center gap-2",r?.textWrapper),children:[f.jsx("div",{className:P("text-base md:text-xl font-bold leading-none text-foreground",r?.heading),children:t("postcodeCheck.loading")}),f.jsxs("div",{className:P("text-xs md:text-sm text-foreground leading-none",r?.addressText),children:[e.street," ",KL(e.number,e.numberAddon),", ",e.city]})]})]})}function ml(){const{t:e}=Oe(),{results:{resultsNotFound:t}={}}=Ye();return f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-bold text-foreground mb-1 lg:hidden",t?.filterChips?.title),children:e("filters.chosenFilters")}),f.jsx(p2,{className:"mb-6 lg:hidden"}),f.jsx(lh,{color:"warning",variant:"faded",title:e("productResults.noResultsTitle"),description:e("productResults.noResultsDescription"),hideIconWrapper:!0,classNames:{base:P(t?.alert?.base),title:P(t?.alert?.title),description:P(t?.alert?.description),mainWrapper:P(t?.alert?.mainWrapper),closeButton:P(t?.alert?.closeButton),iconWrapper:P(t?.alert?.iconWrapper),alertIcon:P(t?.alert?.alertIcon)}})]})}function Rn({count:e,horizontal:t,large:r}){const{results:{skeletonCard:n}={}}=Ye();return f.jsx(f.Fragment,{children:Array.from({length:e}).map((o,s)=>f.jsx(Id,{className:P("shadow-small rounded-large",r?"h-140":"h-100",t&&(r?"h-54":"h-46"),n)},s))})}const qV=void 0,qh=Object,jk=e=>e===qV,GV=e=>typeof e=="function",gl=new WeakMap,ZV=e=>qh.prototype.toString.call(e),Gh=(e,t)=>e===`[object ${t}]`;let YV=0;const Zh=e=>{const t=typeof e,r=ZV(e),n=Gh(r,"Date"),o=Gh(r,"RegExp"),s=Gh(r,"Object");let a,i;if(qh(e)===e&&!n&&!o){if(a=gl.get(e),a)return a;if(a=++YV+"~",gl.set(e,a),Array.isArray(e)){for(a="@",i=0;i<e.length;i++)a+=Zh(e[i])+",";gl.set(e,a)}if(s){a="#";const l=qh.keys(e).sort();for(;!jk(i=l.pop());)jk(e[i])||(a+=i+":"+Zh(e[i])+",");gl.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},JV=e=>{if(GV(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Zh(e):"",[e,t]},XV=e=>JV(e?e(0,null):null)[0],Yh=Promise.resolve(),bl=px(ad,e=>(t,r,n)=>{const o=g.useRef(!1),{cache:s,initialSize:a=1,revalidateAll:i=!1,persistSize:l=!1,revalidateFirstPage:u=!0,revalidateOnMount:c=!1,parallel:d=!1}=n,[,,,p]=br.get(nd);let h;try{h=XV(t),h&&(h=cx+h)}catch{}const[m,b,v]=an(s,h),y=g.useCallback(()=>Te(m()._l)?a:m()._l,[s,h,a]);ma.useSyncExternalStore(g.useCallback($=>h?v(h,()=>{$()}):()=>{},[s,h]),y,y);const x=g.useCallback(()=>{const $=m()._l;return Te($)?a:$},[h,a]),w=g.useRef(x());vi(()=>{if(!o.current){o.current=!0;return}h&&b({_l:l?w.current:x()})},[h,s]);const C=c&&!o.current,S=e(h,async $=>{const _=m()._i,A=m()._r;b({_r:ct});const N=[],M=x(),[O]=an(s,$),L=O().data,I=[];let z=null;for(let F=0;F<M;++F){const[B,U]=Es(t(F,d?null:z));if(!B)break;const[E,j]=an(s,B);let T=E().data;const V=i||_||Te(T)||u&&!F&&!Te(L)||C||L&&!Te(L[F])&&!n.compare(L[F],T);if(r&&(typeof A=="function"?A(T,U):V)){const K=async()=>{if(!(B in p))T=await r(U);else{const Z=p[B];delete p[B],T=await Z}j({data:T,_k:U}),N[F]=T};d?I.push(K):await K()}else N[F]=T;d||(z=T)}return d&&await Promise.all(I.map(F=>F())),b({_i:ct}),N},n),k=g.useCallback(function($,_){const A=typeof _=="boolean"?{revalidate:_}:_||{},N=A.revalidate!==!1;return h?(N&&(Te($)?b({_i:!0,_r:A.revalidate}):b({_i:!1,_r:A.revalidate})),arguments.length?S.mutate($,{...A,revalidate:N}):S.mutate()):Yh},[h,s]),D=g.useCallback($=>{if(!h)return Yh;const[,_]=an(s,h);let A;if(ar($)?A=$(x()):typeof $=="number"&&(A=$),typeof A!="number")return Yh;_({_l:A}),w.current=A;const N=[],[M]=an(s,h);let O=null;for(let L=0;L<A;++L){const[I]=Es(t(L,O)),[z]=an(s,I),F=I?z().data:ct;if(Te(F))return k(M().data);N.push(F),O=F}return k(N)},[h,s,k,x]);return{size:x(),setSize:D,mutate:k,get data(){return S.data},get error(){return S.error},get isValidating(){return S.isValidating},get isLoading(){return S.isLoading}}});function vl(e,t,r,n,o,s,a){if(s&&!s.search?.records?.length)return null;const i=o*n,l={...t,limit:n,offset:i};return[e,{query:l,modificationBlocks:r,...a}]}function QV({query:e,modificationBlocks:t,address:r,pageSize:n}){function o(s,a){return vl(q8,e,t,n,s,a,r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:void 0)}return bl(o,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function eR({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(G8,e,t,r,o,s)}return bl(n,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function tR({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(Z8,e,t,r,o,s)}return bl(n,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function rR({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(Y8,e,t,r,o,s)}return bl(n,Vt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[vr]})}function yl({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o,distinctProperties:s}){const a=wL(n,o),i=eO({filterOptions:e,filterValues:t,limit:r,currentProvider:a,distinctProperties:s});switch(n){case"sim-only-proposition":{const l=yr(t,"providers");i.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":"provider");const u=eR({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}case"fixed-proposition":{i.groupBy("provider_data_speed_down");const l=QV({query:i.serialize(),modificationBlocks:nl(n,o),address:o.address,pageSize:r}),{data:u=[],error:c,...d}=l;return{...d,data:u[0],dataArray:u,error:c}}case"smartphone-proposition":{const l=yr(t,"sorteren"),u=yr(t,"providers");i.groupBy(Array.isArray(u)&&u.length===1?"data_and_speed":"provider"),l==="relevantie"&&i.sort("top");const c=tR({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:d=[],error:p,...h}=c;return{...h,data:d[0],dataArray:d,error:p}}case"smartphone-proposition-extended":{const l=yr(t,"sorteren");i.groupBy(l==="relevantie"?"product_provider_slug":"product_slug");const u=rR({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}default:return{data:void 0,dataArray:[],isLoading:!1,isValidating:!1,error:void 0,mutate:async()=>{},size:0,setSize:()=>{}}}}function nR(e,t,r,n){const{currentProviderSlug:o,currentFixedProviderScope:s,currentMobileProviders:a}=t,i=new URLSearchParams;if(o&&i.set("huidige-provider",o),s||a&&a.length>0){const c=[s?`${s}:1`:void 0,...a?a.map(d=>`${d.scope}:${d.value}`):[]].filter(Boolean).join(",");i.set("klantvoordeel",c)}r&&i.set("ppt",r);const l=e.startsWith("/")?e:`/${e}`,u=n?n(i).toString():i.toString();return u?`https://www.mobiel.nl${l}?${u}`:`https://www.mobiel.nl${l}`}function xl({addClickoutSearchParams:e}){const{profile:t}=zr();async function r(n){const o=await kL();return nR(n,t,o,e)}return{buildClickOutUrl:r}}function wl({lastPageLength:e,isValidating:t,size:r,setSize:n,activeFilters:o,profile:s,limit:a}){const i=g.useRef("");g.useEffect(()=>{const c=JSON.stringify({activeFilters:o,profile:s});i.current!==c&&i.current!==""&&n(1),i.current=c},[o,s,n]);const l=e===void 0||e===0||e<a;function u(){t||n(r+1)}return{isReachingEnd:l,loadMore:u}}function oR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=xr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{data:v,dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,mutate:k,error:D}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:$,loadMore:_}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:n}),A=y.flatMap(I=>I.search.records),{polling:N,validating:M}=v&&"fetchInfo"in v?v.fetchInfo:{polling:!1,validating:!1};if(g.useEffect(()=>{if(!N)return;const I=setInterval(()=>k(),1e3);return()=>clearInterval(I)},[N,k]),Mr(()=>{c.address&&k()},[c.address?.postcode,c.address?.number,c.address?.numberAddon,k]),D)throw new Error(String(D));if(!N&&!w&&A.length===0)return f.jsx(ml,{});const{top:O,all:L}=x?{top:[],all:[]}:Fh({propositions:A,productCategory:e,labelColorConfig:r});return f.jsxs("div",{children:[N&&c.address&&f.jsx(HV,{address:c.address}),f.jsxs("div",{className:P((w||M)&&!N&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):O.map(I=>{if(c.currentFixedProviderScope?.includes(I.provider.slug))return null;const F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:I.label,horizontal:s==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},`top-${I.key}`)})})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):L.map(I=>{const z=c.currentFixedProviderScope?.includes(I.provider.slug),F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:z?{displayName:`Alleen voor nieuwe ${I.provider.name}-klanten`,color:"default"}:I.label,disabled:z,horizontal:o==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},I.key)}),f.jsx(hl,{isReachingEnd:$,loadMore:_,isValidating:w,className:u?.loadMoreButton})]})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:I=>!I&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function sR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=xr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{dataArray:v,isLoading:y,isValidating:x,size:w,setSize:C,error:S}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:k,loadMore:D}=wl({lastPageLength:v[v.length-1]?.search.records.length,isValidating:x,size:w,setSize:C,activeFilters:p,profile:c,limit:n});if(S)throw new Error(String(S));const $=v.flatMap(N=>N.search.records);if(!x&&$.length===0)return f.jsx(ml,{});const{top:_,all:A}=y?{top:[],all:[]}:Fh({propositions:$,productCategory:e,labelColorConfig:r});return f.jsxs("div",{className:P(x&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:y?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):_.map(N=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:N}),b(`/aanbieding/${N.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:N,tab:M}),m({proposition:N,tab:M})},label:N.label,horizontal:s==="horizontal",monthlyFee:me(N.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(N.monthlyFees,N.baseMonthlyFee,N.lifetimeMonthlyFee),tcoPerMonth:me(N.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(N.content.data,i("format.gigabyte")),propositionSubtitle:Rs(N.content),propositionImageUrl:N.provider.imageUrl,propositionImageAlt:N.provider.name,propositionSpecifications:Bn(N),urgentText:Vn(N.specialPromotions),specialPromotions:Ln(N),modificationPromotions:N.modificationPromotions},`top-${N.key}`))})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[y?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):A.map(N=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:N}),b(`/aanbieding/${N.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:N,tab:M}),m({proposition:N,tab:M})},label:N.label,horizontal:o==="horizontal",monthlyFee:me(N.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(N.monthlyFees,N.baseMonthlyFee,N.lifetimeMonthlyFee),tcoPerMonth:me(N.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(N.content.data,i("format.gigabyte")),propositionSubtitle:Rs(N.content),propositionImageUrl:N.provider.imageUrl,propositionImageAlt:N.provider.name,propositionSpecifications:Bn(N),urgentText:Vn(N.specialPromotions),specialPromotions:Ln(N),modificationPromotions:N.modificationPromotions},N.key)),f.jsx(hl,{isReachingEnd:k,loadMore:D,isValidating:x,className:u?.loadMoreButton})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:N=>!N&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function Fk({propositions:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=Ye();return e.length===0?null:f.jsxs("div",{className:P("mt-4",n?.base),children:[f.jsx("div",{className:P("text-sm font-medium mb-2 text-foreground-500",n?.title),children:r("creditInfo.exampleTitle")}),f.jsx(Fd,{orientation:"horizontal",hideScrollBar:!0,children:f.jsxs(ll,{"aria-label":r("creditInfo.exampleTitle"),removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:{base:P(n?.table?.base),wrapper:P(n?.table?.wrapper),table:P(n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent",n?.table?.th),td:P("first:pl-0 py-0 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.offer")}),f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")}),f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:e.map(o=>f.jsxs(cl,{children:[f.jsxs(_t,{children:[o.productVersion?.product.fullName," + ",o.provider.name]}),f.jsx(_t,{children:me(o.price+o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.price,{symbol:"€"})}),f.jsx(_t,{children:me(o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[o.planVariant.contractTerm," ",r("format.month",{count:o.planVariant.contractTerm})]}),f.jsx(_t,{children:"0%"})]},o.key))})]})}),f.jsx("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:f.jsx(xg,{i18nKey:"creditInfo.generalDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(o=>window.open(o,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-general-description-link")]})})]})}function aR({showTopPropositions:e,labelColorConfig:t,limit:r,propositionCardLayout:n,productCategory:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p,distinctProperties:h}=xr(),[m,b]=g.useState(null),{buildClickOutUrl:v}=xl({addClickoutSearchParams:a}),{dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,error:k}=yl({filterOptions:d,activeFilters:p,limit:r,productCategory:o,profile:c,distinctProperties:h}),{isReachingEnd:D,loadMore:$}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:r});if(k)throw new Error(String(k));const _=y.flatMap(M=>M.search.records);if(!w&&_.length===0)return f.jsx(ml,{});const{top:A,all:N}=x?{top:[],all:[]}:Fh({propositions:_,productCategory:o,labelColorConfig:t});return f.jsxs("div",{className:P(w&&"opacity-50 pointer-events-none"),children:[e&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):A.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:s==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},`top-${M.key}`))})]}),e&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:r,horizontal:n==="horizontal"}):N.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:n==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},M.key)),f.jsx(hl,{isReachingEnd:D,loadMore:$,isValidating:w,className:u?.loadMoreButton}),f.jsx(Fk,{propositions:_.slice(0,3),buildClickOutUrl:v})]}),m&&f.jsx(pl,{isOpen:!!m,onOpenChange:M=>!M&&b(null),proposition:m.proposition,defaultTab:m.tab,buildClickOutUrl:v})]})}function iR({productCategory:e,limit:t,propositionCardLayout:r,addClickoutSearchParams:n}){const{t:o}=Oe(),{onAction:s}=Bo(),{results:a}=Ye(),{profile:i}=zr(),{filterOptions:l,activeFilters:u}=xr(),[c,d]=g.useState(null),{buildClickOutUrl:p}=xl({addClickoutSearchParams:n}),{dataArray:h,isLoading:m,isValidating:b,size:v,setSize:y,error:x}=yl({filterOptions:l,activeFilters:u,limit:t,productCategory:e,profile:i}),{isReachingEnd:w,loadMore:C}=wl({lastPageLength:h[h.length-1]?.search.records.length,isValidating:b,size:v,setSize:y,activeFilters:u,profile:i,limit:t});if(x)throw new Error(String(x));const S=h.flatMap(k=>k.search.records);return!b&&S.length===0?f.jsx(ml,{}):f.jsxs("div",{className:P("gap-4 grid grid-cols-1",r==="vertical"&&"lg:grid-cols-3",b&&"opacity-50 pointer-events-none",a?.allPropositionsGrid),children:[m?f.jsx(Rn,{count:t,horizontal:r==="horizontal",large:!0}):S.map(k=>f.jsx(zn,{onClick:()=>{s({type:"deal_selected",proposition:k}),p(`/aanbieding/${k.key}`).then(D=>window.open(D,"_blank"))},onInfoClick:D=>{s({type:"details_viewed",proposition:k,tab:D}),d({proposition:k,tab:D})},horizontal:r==="horizontal",monthlyFee:me(k.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(k.monthlyFees,k.baseMonthlyFee,k.lifetimeMonthlyFee),tcoPerMonth:me(k.tcoPerMonth,{dashed:!0}),productPrice:me(k.price,{dashed:!0}),productImageAlt:k.productVersion?.media.main?.altText||void 0,productImageUrl:k.productVersion?.media.main?.url||void 0,productStockStatus:k.productVersion?.stock.status,productTitle:`${k.productVersion?.product.brand.name} ${k.productVersion?.product.name}`,propositionTitle:Xt(k.content.data,o("format.gigabyte")),propositionSubtitle:Rs(k.content),propositionImageUrl:k.provider.imageUrl,propositionImageAlt:k.provider.name,propositionSpecifications:Bn(k),urgentText:Vn(k.specialPromotions),specialPromotions:Hh(Ln(k),Mh(k)),modificationPromotions:k.modificationPromotions},k.key)),f.jsxs("div",{className:"flex flex-col gap-2 col-span-full mt-4",children:[f.jsx(hl,{isReachingEnd:w,loadMore:C,isValidating:b,className:a?.loadMoreButton}),f.jsx(Fk,{propositions:S.slice(0,3),buildClickOutUrl:p})]}),c&&f.jsx(pl,{isOpen:!!c,onOpenChange:k=>!k&&d(null),proposition:c.proposition,defaultTab:c.tab,buildClickOutUrl:p})]})}function lR({...e}){const{width:t}=Dg(),{getActiveFilterValue:r}=xr(),n=t<768,o=t>=1024;switch(e.productCategory){case"fixed-proposition":return f.jsx(oR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"smartphone-proposition":return r("telefoons").length===0?f.jsx(iR,{...e,productCategory:"smartphone-proposition-extended",propositionCardLayout:n||o?"vertical":"horizontal"}):f.jsx(aR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"sim-only-proposition":return f.jsx(sR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});default:return null}}function uR({productCategory:e,labelColorConfig:t={},limit:r=12,showTopPropositions:n=!1,addClickoutSearchParams:o}){const{base:s,headerWrapper:a}=Ye(),{distinctProperties:i,setDistinctProperties:l,handleFilterChange:u,getActiveFilterValue:c}=xr(),{width:d}=Dg(),p=d>=1024,[h]=e==="smartphone-proposition"?c("telefoons"):[],[m]=c("sorteren");return f.jsxs("div",{className:P("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",s),children:[f.jsxs("div",{className:"flex flex-col gap-4 empty:hidden",children:[e==="smartphone-proposition"&&f.jsx(I8,{productSlug:h,selectedDistinctProperties:i,onChange:(b,v)=>{(!h||b!==h)&&u({slug:"telefoons",value:b}),!h&&m!=="relevantie"&&u({slug:"sorteren",value:"relevantie"}),l(v)}}),p&&f.jsxs(f.Fragment,{children:[f.jsx(I3,{productCategory:e}),f.jsx(D2,{})]})]}),f.jsxs("div",{className:"col-span-1 lg:col-span-3 space-y-4",children:[f.jsxs("div",{className:P("flex flex-row-reverse justify-between items-center gap-2",a),children:[f.jsx(RL,{}),p?f.jsx(p2,{}):f.jsx(nO,{children:f.jsx(I3,{productCategory:e})})]}),f.jsx(lR,{productCategory:e,addClickoutSearchParams:o,showTopPropositions:c("providers").length!==1&&["relevantie","top"].includes(m)&&n,labelColorConfig:t,limit:r})]})]})}function cR({classNames:e,initialSelectedFilters:t,initialProfile:r,onProfileChange:n,onError:o,onAction:s,...a}){return f.jsxs(M8,{onError:o,children:[f.jsx(aI,{classNames:e,children:f.jsx(j8,{onAction:s,children:f.jsx(EL,{initialProfile:r,onProfileChange:n,children:f.jsx(V8,{initialSelectedFilters:t,productCategory:a.productCategory,children:f.jsx(ZO,{children:f.jsx(uR,{...a})})})})})}),f.jsx(TL,{})]})}var dR=XD;const Cl=Object.freeze(Object.defineProperty({__proto__:null,default:dR},Symbol.toStringTag,{value:"Module"}));kr.ElementsRoot=DE,kr.ProductResults=cR,Object.defineProperty(kr,Symbol.toStringTag,{value:"Module"})}));