@qumra/fanar 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +115 -8
- package/dist/ai.js +1 -1
- package/dist/chunk-3EPEIAG2.js +2 -0
- package/dist/chunk-6DTSIOCB.js +2 -0
- package/dist/chunk-CTMW25W5.js +2 -0
- package/dist/chunk-K3TNXSD7.js +2 -0
- package/dist/{chunk-GMIBQMMR.js → chunk-NIEWNSOB.js} +1 -1
- package/dist/editor.js +1 -1
- package/dist/index.d.ts +291 -139
- package/dist/index.js +1 -1
- package/dist/native/ai.js +1 -0
- package/dist/native/chunk-LZHT3H7B.js +1 -0
- package/dist/native/chunk-RGKCDRSY.js +2 -0
- package/dist/native/editor.js +1 -0
- package/dist/native/index.js +1 -0
- package/dist/native/notifications.js +1 -0
- package/dist/native/orb.js +1 -0
- package/dist/notifications.js +1 -1
- package/package.json +32 -6
- package/dist/chunk-77ZZDWR4.js +0 -2
- package/dist/chunk-ENHEJXVH.js +0 -2
- package/dist/chunk-VAMRF7HE.js +0 -2
- package/dist/chunk-ZE4S6DBP.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__export,__reExport}from"./chunk-LZHT3H7B.js";import{extendTailwindMerge}from"tailwind-merge";var TEXT_SCALE=["micro","caption","ui","body","lead","base","h4","h3","h2","h1","display","hero","title","mega"];var RADIUS_SCALE=["mark","xs","sm","field","card","lg","section","full"];var SHADOW_SCALE=["raise","tip","panel","pop","modal","toast","sheet"];var CONTAINER_SCALE=["page","shell","note","lead"];var ANIMATE_SCALE=["qfade","qslide","tip","tip-up","drawer","drawer-rtl","savebar","skeleton"];var COLOR_SCALE=["surface","bg","line","hover","ink","ink2","muted","muted2","border","soft","soft2","brand-100","brand-900","brand-ink","brand","brand-hover","brand-deep","skeleton","tint","tint2","mint","amber-900","amber","amber-bg","amber-ink","amber-line","amber-hover","green","green-bg","green-bg2","green-line","green-solid","violet","violet-bg","violet-line","violet-solid","red-100","red","red-bg","red-line","danger","danger-hover","night","hero-body","hero-meta","hero-dim","hero-text","code-bg","code-plain","code-key","code-tag","code-attr","code-str","code-num","code-note","code-dim","code-line","code-chip"];var TOKENS={"--font-sans":'"Alexandria", system-ui, sans-serif',"--color-surface":"#ffffff","--color-bg":"#f7f9f9","--color-line":"#edf1f1","--color-hover":"#f2f6f6","--color-ink":"#020809","--color-ink2":"#3d4545","--color-muted":"#5f6a6a","--color-muted2":"#687373","--color-border":"#7f8c8c","--color-soft":"#eaf2f3","--color-soft2":"#dceded","--color-brand-100":"#a5c9cc","--color-brand-900":"#0a2528","--color-brand-ink":"#0f4a4e","--color-brand":"#207982","--color-brand-hover":"#1a646c","--color-brand-deep":"#0b3b3e","--color-skeleton":"#d6dcdc","--color-tint":"#f4faf8","--color-tint2":"#eff6f3","--color-mint":"#7dd3c0","--color-amber-900":"#3d2a05","--color-amber":"#f8ac33","--color-amber-bg":"#fef6e9","--color-amber-ink":"#85570f","--color-amber-line":"#fbd79a","--color-amber-hover":"#de9219","--color-green":"#1e7a45","--color-green-bg":"#f1faf4","--color-green-bg2":"#e9f6ee","--color-green-line":"#bfe6ce","--color-green-solid":"#1e7a45","--color-violet":"#4b3e8e","--color-violet-bg":"#edeaf6","--color-violet-line":"#ded8ef","--color-violet-solid":"#6d5eb8","--color-red-100":"#f3a79e","--color-red":"#8e2b20","--color-red-bg":"#fdecea","--color-red-line":"#f3c9c4","--color-danger":"#c94134","--color-danger-hover":"#a3362b","--color-night":"#0b0f12","--color-hero-body":"#bfd9d8","--color-hero-meta":"#8fb3b2","--color-hero-dim":"#5e7a79","--color-hero-text":"#d7e3e2","--color-code-bg":"#1f1f1f","--color-code-plain":"#d4d4d4","--color-code-key":"#569cd6","--color-code-tag":"#4ec9b0","--color-code-attr":"#9cdcfe","--color-code-str":"#ce9178","--color-code-num":"#b5cea8","--color-code-note":"#6a9955","--color-code-dim":"#858585","--color-code-line":"#303031","--color-code-chip":"#f4f7f7","--text-micro":"11px","--text-caption":"12px","--text-ui":"13px","--text-body":"14px","--text-lead":"15px","--text-base":"16px","--text-base--line-height":"initial","--text-h4":"17px","--text-h3":"20px","--text-h2":"24px","--text-h1":"30px","--text-display":"36px","--text-hero":"44px","--text-title":"40px","--text-mega":"54px","--container-page":"1600px","--container-shell":"1600px","--container-note":"340px","--container-lead":"520px","--radius-mark":"3px","--radius-xs":"5px","--radius-sm":"7px","--radius-field":"9px","--radius-card":"12px","--radius-lg":"14px","--radius-section":"18px","--radius-full":"999px","--shadow-raise":"0 1px 3px var(--shadow-color)","--shadow-tip":"0 6px 18px var(--shadow-color)","--shadow-panel":"0 10px 30px var(--shadow-color)","--shadow-pop":"0 18px 44px var(--shadow-color)","--shadow-modal":"0 24px 60px rgb(2 8 9 / 0.28)","--shadow-toast":"0 16px 40px rgb(2 8 9 / 0.26)","--shadow-sheet":"0 -14px 40px rgb(2 8 9 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.06)","--shadow-color":"rgb(2 8 9 / 0.14)","--animate-qfade":"qfade 0.16s ease-out","--animate-qslide":"qslidein 0.22s ease-out","--animate-tip":"tip-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1)","--animate-tip-up":"tip-up 0.3s cubic-bezier(0.2, 0.9, 0.2, 1)","--animate-drawer":"drawer-ltr 0.32s cubic-bezier(0.2, 0.9, 0.2, 1)","--animate-drawer-rtl":"drawer-rtl 0.32s cubic-bezier(0.2, 0.9, 0.2, 1)","--animate-savebar":"savebar-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1)","--animate-skeleton":"skeleton-pulse 1.6s ease-in-out infinite","--num-align":"right","--num-align-far":"left","--num-pad-right":"0.875rem","--num-pad-left":"3.5rem","--num-icon-pad-right":"2.5rem","--num-icon-pad-left":"0.875rem"};var DARK_TOKENS={"--color-surface":"#101718","--color-bg":"#0a0f10","--color-line":"#1e2829","--color-hover":"#1a2425","--color-ink":"#f2f6f6","--color-ink2":"#c7d1d1","--color-muted":"#93a0a0","--color-muted2":"#7a8787","--color-border":"#5e6b6c","--color-soft":"#12363a","--color-soft2":"#17454a","--color-brand-ink":"#7dd3c0","--color-skeleton":"#2c3232","--color-amber":"#f8ac33","--color-amber-bg":"#2b2009","--color-amber-ink":"#f5c77a","--color-amber-line":"#5c4415","--color-green":"#6ecf9a","--color-green-bg":"#0d2119","--color-green-bg2":"#102a22","--color-green-line":"#245140","--color-violet":"#b9aeea","--color-violet-bg":"#1e1a33","--color-violet-line":"#38305c","--color-red":"#f3a79e","--color-red-bg":"#2c1613","--color-red-line":"#5c2a24","--color-code-chip":"#17201f","--shadow-color":"rgb(0 0 0 / 0.55)"};var twMerge=extendTailwindMerge({extend:{classGroups:{"font-size":[{text:TEXT_SCALE}],rounded:[{rounded:RADIUS_SCALE}],shadow:[{shadow:SHADOW_SCALE}],"max-w":[{"max-w":CONTAINER_SCALE}],animate:[{animate:ANIMATE_SCALE}]}}});function cn(...parts){return twMerge(parts.filter(p=>typeof p==="string"&&p.length>0).join(" "))}var TONE_SOFT={neutral:"bg-hover text-muted",brand:"bg-soft text-brand-ink",amber:"bg-amber-bg text-amber-ink",green:"bg-green-bg2 text-green",red:"bg-red-bg text-red",violet:"bg-violet-bg text-violet"};var TONE_SOLID={neutral:"bg-ink2 text-surface",brand:"bg-brand text-white",amber:"bg-amber text-amber-900",green:"bg-green-solid text-white",red:"bg-danger text-white",violet:"bg-violet-solid text-white"};function toLatinDigits(s){return s.replace(/[٠-٩۰-۹٫٬]/g,c=>{const code=c.charCodeAt(0);if(code===1643)return".";if(code===1644)return"";const base2=code>=1776?1776:1632;return String(code-base2)})}var VARIANTS={primary:"bg-brand border-brand text-white hover:bg-brand-hover",soft:"bg-soft border-soft2 text-brand-ink hover:bg-soft2",outline:"bg-surface border-border text-ink2 hover:border-brand hover:text-brand-ink",ghost:"bg-transparent border-transparent text-ink2 hover:bg-hover",danger:"bg-danger border-danger text-white hover:bg-danger-hover",link:"bg-transparent border-transparent text-brand-ink hover:underline underline-offset-4 px-0!"};var SIZES={sm:"h-9 px-3.5 gap-1.5 text-ui rounded-sm",md:"h-11 px-4 gap-2 text-body rounded-field",lg:"h-12 px-5 gap-2 text-lead rounded-card",xl:"h-14 px-5.5 gap-4 text-h3 font-extrabold rounded-field"};function buttonClasses(variant="primary",size="md",extra){return cn("inline-flex items-center justify-center border font-bold whitespace-nowrap","cursor-pointer transition-colors duration-150 select-none","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand",SIZES[size],VARIANTS[variant],extra)}import{createContext,useContext,useSyncExternalStore}from"react";function deviceLocale(){try{const tag=new Intl.DateTimeFormat().resolvedOptions().locale;return tag==="ar"?"ar-EG":tag||"ar-EG"}catch{return"ar-EG"}}var explicit=null;var listeners=new Set;var langStore={subscribe(cb){listeners.add(cb);return()=>void listeners.delete(cb)},get:()=>explicit};function setLang(tag){if(explicit===tag)return;explicit=tag;for(const cb of listeners)cb()}var LocaleCtx=createContext(null);function useMoneyLocale(){const fromProvider=useContext(LocaleCtx);const fromStore=useSyncExternalStore(langStore.subscribe,langStore.get,langStore.get);return fromStore??fromProvider??deviceLocale()}function useMoneyLang(){return useMoneyLocale().startsWith("en")}var AR=0;var EN=1;var TEXT={close:["\u0625\u063A\u0644\u0627\u0642","Close"],select:["\u0627\u062E\u062A\u0631\u2026","Select\u2026"],search:["\u0627\u0628\u062D\u062B\u2026","Search\u2026"],searchEverything:["\u0627\u0628\u062D\u062B \u0641\u064A \u0643\u0644 \u062D\u0627\u062C\u0629\u2026","Search everything\u2026"],noResults:["\u0645\u0627\u0641\u064A\u0634 \u0646\u062A\u0627\u064A\u062C","No results"],searchOrAdd:["\u0627\u0628\u062D\u062B \u0623\u0648 \u0623\u0636\u0641\u2026","Search or add\u2026"],now:["\u0627\u0644\u0622\u0646","Now"],videoPlayer:["\u0645\u0634\u063A\u0651\u0644 \u0627\u0644\u0641\u064A\u062F\u064A\u0648","Video player"],rating:["\u0627\u0644\u062A\u0642\u064A\u064A\u0645","Rating"],activeFilters:["\u0627\u0644\u0641\u0644\u0627\u062A\u0631 \u0627\u0644\u0645\u0637\u0628\u0651\u0642\u0629:","Active filters:"],clearAll:["\u0645\u0633\u062D \u0627\u0644\u0643\u0644","Clear all"],row:["\u0635\u0641\u0651","row"],dropImages:["\u0627\u0633\u062D\u0628 \u0627\u0644\u0635\u0648\u0631 \u0647\u0646\u0627","Drop images here"],chooseFromDevice:["\u0627\u062E\u062A\u0631 \u0645\u0646 \u0627\u0644\u062C\u0647\u0627\u0632","Choose from device"],previousPeriod:["\u0627\u0644\u0641\u062A\u0631\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629","Previous period"],less:["\u0623\u0642\u0644","Less"],more:["\u0623\u0643\u062B\u0631","More"],totalSales:["\u0625\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A","Total sales"],netToYou:["\u0635\u0627\u0641\u064A \u0644\u0643","Net to you"],verifiedAccount:["\u062D\u0633\u0627\u0628 \u0645\u0648\u062B\u0651\u0642","Verified account"],grabHint:["\u0639\u0646\u0635\u0631 \u0642\u0627\u0628\u0644 \u0644\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u0631\u062A\u064A\u0628. \u0627\u0636\u063A\u0637 \u0645\u0633\u0627\u0641\u0629 \u0644\u0645\u0633\u0643\u0647 \u062B\u0645 \u0627\u0644\u0623\u0633\u0647\u0645 \u0644\u062A\u062D\u0631\u064A\u0643\u0647.","Reorderable item. Press space to grab it, then the arrows to move it."],notifications:["\u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062A","Notifications"],dismiss:["\u0625\u062E\u0641\u0627\u0621","Dismiss"],unread:["\u063A\u064A\u0631 \u0645\u0642\u0631\u0648\u0621","Unread"],noNotifications:["\u0645\u0641\u064A\u0634 \u0625\u0634\u0639\u0627\u0631\u0627\u062A","No notifications"],noNotificationsDesc:["\u0623\u0648\u0644 \u0645\u0627 \u064A\u062D\u0635\u0644 \u062D\u0627\u062C\u0629 \u062A\u0633\u062A\u0627\u0647\u0644\u060C \u0647\u062A\u0644\u0627\u0642\u064A\u0647\u0627 \u0647\u0646\u0627.","When something worth knowing happens, it lands here."],markAllRead:["\u062A\u0639\u0644\u064A\u0645 \u0627\u0644\u0643\u0644 \u0643\u0645\u0642\u0631\u0648\u0621","Mark all as read"],viewAllNotifications:["\u0639\u0631\u0636 \u0643\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062A","View all notifications"],newNotifications:["\u0625\u0634\u0639\u0627\u0631\u0627\u062A \u062C\u062F\u064A\u062F\u0629","New notifications"],reloadPreview:["\u0625\u0639\u0627\u062F\u0629 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u0639\u0627\u064A\u0646\u0629","Reload preview"],previousMonth:["\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u0644\u064A \u0642\u0628\u0644\u0647","Previous month"],nextMonth:["\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u0644\u064A \u0628\u0639\u062F\u0647","Next month"],whatIsThisNumber:["\u0645\u0627 \u0645\u0639\u0646\u0649 \u0647\u0630\u0627 \u0627\u0644\u0631\u0642\u0645\u061F","What does this number mean?"],explainToMe:["\u0627\u0634\u0631\u062D \u0644\u064A","Explain this"],clearSearch:["\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B","Clear search"],alerts:["\u0627\u0644\u062A\u0646\u0628\u064A\u0647\u0627\u062A","Alerts"],whatIsThisOption:["\u0645\u0627 \u0647\u0630\u0627 \u0627\u0644\u062E\u064A\u0627\u0631\u061F","What is this option?"],shouldBeHere:["\u0627\u0644\u0645\u0641\u0631\u0648\u0636 \u062A\u0643\u0648\u0646 \u0647\u0646\u0627","Should be here"],closeExplainer:["\u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0634\u0631\u062D","Close explainer"],cancelRecording:["\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u0633\u062C\u064A\u0644","Cancel recording"],sendRecording:["\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0633\u062C\u064A\u0644","Send recording"],attachFile:["\u0625\u0631\u0641\u0627\u0642 \u0645\u0644\u0641","Attach file"],recordVoice:["\u062A\u0633\u062C\u064A\u0644 \u0635\u0648\u062A\u064A","Record a voice note"],playbackPosition:["\u0645\u0648\u0636\u0639 \u0627\u0644\u062A\u0634\u063A\u064A\u0644","Playback position"],volume:["\u0645\u0633\u062A\u0648\u0649 \u0627\u0644\u0635\u0648\u062A","Volume"],hideSuggestions:["\u0625\u062E\u0641\u0627\u0621 \u0627\u0644\u0627\u0642\u062A\u0631\u0627\u062D\u0627\u062A","Hide suggestions"],askShehab:["\u0627\u0633\u0623\u0644 \u0634\u0647\u0627\u0628\u2026","Ask Shehab\u2026"],shehabThinking:["\u0634\u0647\u0627\u0628 \u0628\u064A\u0641\u0643\u0651\u0631\u2026","Shehab is thinking\u2026"],undo:["\u062A\u0631\u0627\u062C\u0639","Undo"],from:["\u0645\u0646","from"],tryAnotherReply:["\u062C\u0631\u0651\u0628 \u0631\u062F \u062A\u0627\u0646\u064A","Try another reply"],helpfulReply:["\u0631\u062F \u0645\u0641\u064A\u062F","Helpful reply"],unhelpfulReply:["\u0631\u062F \u0645\u0634 \u0645\u0641\u064A\u062F","Unhelpful reply"],aiDisclaimer:["\u0634\u0647\u0627\u0628 \u0645\u0645\u0643\u0646 \u064A\u063A\u0644\u0637. \u0631\u0627\u062C\u0639 \u0627\u0644\u0623\u0631\u0642\u0627\u0645 \u0642\u0628\u0644 \u0645\u0627 \u062A\u062A\u0635\u0631\u0651\u0641 \u0639\u0644\u064A\u0647\u0627.","Shehab can get things wrong. Check the numbers before acting on them."],back10:["\u0631\u062C\u0648\u0639 \u0661\u0660 \u062B\u0648\u0627\u0646\u064A","Back 10 seconds"],forward10:["\u062A\u0642\u062F\u064A\u0645 \u0661\u0660 \u062B\u0648\u0627\u0646\u064A","Forward 10 seconds"],playbackSpeed:["\u0633\u0631\u0639\u0629 \u0627\u0644\u062A\u0634\u063A\u064A\u0644","Playback speed"],arabic:["\u0627\u0644\u0639\u0631\u0628\u064A\u0629","Arabic"],seeMore:["\u0634\u0648\u0641 \u0643\u0645\u0627\u0646","See more"],pictureInPicture:["\u0646\u0627\u0641\u0630\u0629 \u0639\u0627\u0626\u0645\u0629","Picture in picture"]};function useUIText(){return useMoneyLang()?BUNDLES[EN]:BUNDLES[AR]}function build(i){const out={};for(const key of Object.keys(TEXT))out[key]=TEXT[key][i];return out}var BUNDLES=[build(AR),build(EN)];import{cloneElement,forwardRef as forwardRef2,isValidElement}from"react";import{ActivityIndicator}from"react-native";import{createContext as createContext2,forwardRef,useContext as useContext2}from"react";import{Animated,Image as RNImage,Pressable as RNPressable,ScrollView as RNScrollView,Text as RNText,TextInput as RNTextInput,View as RNView}from"react-native";import{I18nManager,Dimensions}from"react-native";import{Platform,useColorScheme}from"react-native";import create from"twrnc/create";var LIGHT=TOKENS;var DARK={...LIGHT,...DARK_TOKENS};var SKIP={"--text-base--line-height":"\u0642\u064A\u0645\u062A\u0647\u0627 `initial` \u2014 \u0643\u0644\u0645\u0629 CSS \u0645\u0627\u0644\u0647\u0627\u0634 \u0645\u0642\u0627\u0628\u0644 \u0641\u064A RN. \u0648\u062F\u064A **\u062E\u0627\u0635\u064A\u0629** \u0627\u0644\u0645\u0642\u0627\u0633 \u0644\u0627 \u062F\u0631\u062C\u0629 \u0641\u064A\u0647 \u0623\u0635\u0644\u0627\u064B (\u0646\u0641\u0633 \u0627\u0644\u0633\u0628\u0628 \u0627\u0644\u0644\u064A \u0645\u0633\u062A\u062B\u0646\u064A\u0647\u0627 \u0645\u0646 \u0627\u0644\u0633\u0644\u0627\u0644\u0645 \u0641\u064A generate-ts).","--shadow-sheet":"\u0641\u064A\u0647 `inset` \u2014 \u0638\u0644\u0627\u0644 RN \u062E\u0627\u0631\u062C\u064A\u0629 \u0628\u0633\u060C \u0645\u0627\u0641\u064A\u0634 \u0638\u0644 \u062F\u0627\u062E\u0644\u064A. \u0627\u0644\u062D\u0627\u0641\u0629 \u0627\u0644\u0639\u0644\u064A\u0627 \u0627\u0644\u0645\u0636\u064A\u0626\u0629 \u0627\u0644\u0644\u064A \u0627\u0644\u0633\u0637\u0631 \u062F\u0647 \u0628\u064A\u0639\u0645\u0644\u0647\u0627 \u0628\u062A\u062A\u0639\u0645\u0644 \u0641\u064A \u0627\u0644\u0646\u064A\u062A\u0641 \u0628\u0640`borderTopWidth` \u0639\u0644\u0649 `Sheet` \u0646\u0641\u0633\u0647.","--shadow-color":"\u0645\u0634 \u0638\u0644\u0627\u064B \u2014 \u062F\u0647 \u0644\u0648\u0646 \u0627\u0644\u0638\u0644\u0627\u0644 \u0627\u0644\u0644\u064A \u0627\u0644\u062A\u0644\u0627\u062A\u0629 \u0627\u0644\u0644\u064A \u0641\u0648\u0642\u0647 \u0628\u064A\u0646\u0627\u062F\u0648\u0627 \u0639\u0644\u064A\u0647 \u0628\u0640`var()`. \u0628\u064A\u062A\u0642\u0631\u064A \u0648\u0628\u064A\u062A\u062D\u0644\u0651 \u062C\u0648\u0651\u0647 `rnShadow`\u060C \u0641\u0645\u0627\u0644\u0648\u0634 \u0643\u0644\u0627\u0633 \u0628\u064A\u062E\u0635\u0651\u0647."};var SKIP_PREFIX={"--animate-":"\u0627\u0644\u0642\u064A\u0645 \u0628\u062A\u0646\u0627\u062F\u064A \u0639\u0644\u0649 `@keyframes` \u0628\u0627\u0644\u0627\u0633\u0645\u060C \u0648\u0627\u0644\u0640keyframes \u0645\u0634 \u0628\u062A\u062A\u0646\u0642\u0644 (DOM). \u0627\u0644\u062D\u0631\u0643\u0629 \u0641\u064A \u0627\u0644\u0646\u064A\u062A\u0641 \u0628\u0640`Animated` \u062C\u0648\u0651\u0647 \u0627\u0644\u0645\u0643\u0648\u0651\u0646 \u2014 \u0645\u0634 \u062A\u0648\u0643\u0646.","--num-":"\u0627\u0644\u0633\u062A\u0651\u0629 \u062F\u0648\u0644 \u0628\u064A\u062A\u0642\u0631\u0648\u0627 \u0645\u0646 `[data-numeric]` \u0641\u064A `@layer base` \u0648\u0628\u0633 \u2014 \u0645\u062D\u062F\u0651\u062F \u0633\u0645\u0629 \u0639\u0644\u0649 \u0639\u0646\u0635\u0631 DOM. \u0627\u0644\u0646\u064A\u062A\u0641 \u0628\u064A\u062B\u0628\u0651\u062A \u0627\u062A\u062C\u0627\u0647 \u0627\u0644\u0623\u0631\u0642\u0627\u0645 \u0628\u0640`writingDirection` \u0639\u0644\u0649 `<Text>` \u0645\u0628\u0627\u0634\u0631\u0629\u064B."};function skipReason(css){if(SKIP[css])return SKIP[css];for(const[prefix,why]of Object.entries(SKIP_PREFIX))if(css.startsWith(prefix))return why;return null}function splitColor(raw){const fn=raw.match(/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)\s*(?:[/,]\s*([\d.]+)\s*)?\)$/);if(fn){const hex=fn.slice(1,4).map(n=>Number(n).toString(16).padStart(2,"0")).join("");return[`#${hex}`,fn[4]===void 0?1:Number(fn[4])]}return[raw,1]}function rnShadow(value,tokens){const resolved=value.replace(/var\(\s*(--[\w-]+)\s*\)/g,(_,name)=>tokens[name]??"");const[,x,y,blur,color]=resolved.match(/^(-?[\d.]+)(?:px)?\s+(-?[\d.]+)(?:px)?\s+([\d.]+)(?:px)?\s+(.+)$/)??[];if(!blur)return null;const[shadowColor,opacity]=splitColor(color.trim());return{shadowColor,shadowOpacity:opacity,shadowOffset:{width:Number(x),height:Number(y)},shadowRadius:Number(blur)/2,elevation:Math.max(1,Math.round(Number(blur)/2))}}var ALIAS_UTILITIES={"overflow-clip":{overflow:"hidden"},"border-none":{borderWidth:0},"object-cover":{resizeMode:"cover"},"object-contain":{resizeMode:"contain"},"object-fill":{resizeMode:"stretch"},"object-none":{resizeMode:"center"},"-translate-y-1/2":{transform:[{translateY:"-50%"}]},"-translate-x-1/2":{transform:[{translateX:"-50%"}]},"start-[calc(100%-1.375rem)]":{insetInlineStart:22}};function firstFamily(stack){return(stack.split(",")[0]??"").trim().replace(/^["']|["']$/g,"")}function nativeConfig(dark){const t=dark?DARK:LIGHT;const pick=(scale,prefix,map)=>Object.fromEntries(scale.flatMap(step=>{const value=t[`${prefix}${step}`];return value===void 0||skipReason(`${prefix}${step}`)?[]:[[step,map(value)]]}));const shadows=Object.fromEntries(SHADOW_SCALE.flatMap(step=>{const style=t[`--shadow-${step}`]?rnShadow(t[`--shadow-${step}`],t):null;return style?[[`shadow-${step}`,style]]:[]}));return{theme:{extend:{colors:pick(COLOR_SCALE,"--color-",v=>v),fontSize:pick(TEXT_SCALE,"--text-",v=>v),borderRadius:pick(RADIUS_SCALE,"--radius-",v=>v),maxWidth:pick(CONTAINER_SCALE,"--container-",v=>v),fontFamily:{sans:firstFamily(t["--font-sans"]??"sans-serif")}}},plugins:[{handler:({addUtilities})=>addUtilities({...shadows,...ALIAS_UTILITIES})}]}}var instances={};function tw(dark){const key=dark?"dark":"light";return instances[key]??=create(nativeConfig(dark),Platform.OS,Platform.constants?.reactNativeVersion)}function useTw(){return tw(useColorScheme()==="dark")}var LOGICAL=[[/^(-?)ps-(.+)$/,"pl-","Start"],[/^(-?)pe-(.+)$/,"pl-","End"],[/^(-?)ms-(.+)$/,"ml-","Start"],[/^(-?)me-(.+)$/,"ml-","End"],[/^(-?)start-(.+)$/,"left-","Start"],[/^(-?)end-(.+)$/,"left-","End"],[/^()border-s-(.+)$/,"border-l-","Start"],[/^()border-e-(.+)$/,"border-l-","End"],[/^()rounded-s-(.+)$/,"rounded-l-","Start"],[/^()rounded-e-(.+)$/,"rounded-r-","End"]];var LOGICAL_BARE={"border-s":["border-l","Start"],"border-e":["border-r","End"]};var LOGICAL_KEY={paddingLeft:"padding",paddingRight:"padding",marginLeft:"margin",marginRight:"margin",left:"insetInline",right:"insetInline",borderLeftWidth:"border@Width",borderRightWidth:"border@Width",borderTopLeftRadius:"borderTop@Radius",borderTopRightRadius:"borderTop@Radius",borderBottomLeftRadius:"borderBottom@Radius",borderBottomRightRadius:"borderBottom@Radius"};function logicalKey(physical,side){const shape=LOGICAL_KEY[physical];if(!shape)return physical;return shape.includes("@")?shape.replace("@",side):shape+side}var LEADING={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2};var TRACKING={tighter:-.05,tight:-.025,normal:0,wide:.025,wider:.05,widest:.1};var BASE_FONT_SIZE=parseFloat(TOKENS["--text-body"]??"14");function bareRatio(value){const n=Number(value);return Number.isFinite(n)?n:null}function viewportUnit(value){const m=value.match(/^([\d.]+)d?(vh|vw)$/);if(!m)return null;const win=Dimensions.get("window");const basis=m[2]==="vh"?win.height:win.width;return`${Math.round(Number(m[1])/100*basis)}px`}var ALIAS={"w-max":"self-start","w-fit":"self-start","text-start":I18nManager.isRTL?"text-right":"text-left","text-end":I18nManager.isRTL?"text-left":"text-right"};function parse(className){const out={plain:[],logical:[]};for(const raw of className.split(/\s+/)){if(!raw)continue;const cls=raw.replace(/!(?=$)/,"");if(ALIAS[cls]){out.plain.push(ALIAS[cls]);continue}if(ALIAS_UTILITIES[cls]){out.plain.push(cls);continue}const bare=LOGICAL_BARE[cls];if(bare){out.logical.push([bare[0],bare[1]]);continue}let logical=false;for(const[re,physical,side]of LOGICAL){const m=cls.match(re);if(!m)continue;out.logical.push([`${m[1]}${physical}${m[2]}`,side]);logical=true;break}if(logical)continue;const lead=cls.match(/^leading-(?:\[(.+)\]|(\w+))$/);if(lead){const ratio=lead[1]?bareRatio(lead[1]):LEADING[lead[2]]??null;if(ratio!==null){out.leading=ratio;continue}}const track=cls.match(/^tracking-(?:\[(.+)\]|(\w+))$/);if(track){const em2=track[1]?bareRatio(track[1].replace(/em$/,"")):TRACKING[track[2]]??null;if(em2!==null){out.tracking=em2;continue}}const em=cls.match(/^text-\[([\d.]+)em\]$/);if(em){out.em=Number(em[1]);continue}const viewport=cls.match(/^(.+)-\[([\d.]+d?v[hw])\]$/);if(viewport){const px=viewportUnit(viewport[2]);if(px){out.plain.push(`${viewport[1]}-[${px}]`);continue}}out.plain.push(cls)}return out}function toStyle(tw2,className,inherited=BASE_FONT_SIZE){const{plain,logical,leading,tracking,em}=parse(className);const style=plain.length?{...tw2.style(plain.join(" "))}:{};for(const[physical,side]of logical){for(const[key,value]of Object.entries(tw2.style(physical))){style[logicalKey(key,side)]=value}}const size=typeof style.fontSize==="number"?style.fontSize:inherited;if(em!==void 0)style.fontSize=size*em;const scale=typeof style.fontSize==="number"?style.fontSize:size;if(leading!==void 0)style.lineHeight=scale*leading;if(tracking!==void 0)style.letterSpacing=scale*tracking;return style}import{jsx}from"react/jsx-runtime";var TextSize=createContext2(BASE_FONT_SIZE);function TextScale({className,children}){const tw2=useTw();const inherited=useContext2(TextSize);const size=className?toStyle(tw2,className,inherited).fontSize:void 0;return jsx(TextSize.Provider,{value:typeof size==="number"?size:inherited,children})}function useClassStyle(className){const tw2=useTw();const inherited=useContext2(TextSize);if(!className)return void 0;return toStyle(tw2,className,inherited)}var pass=className=>({className});var View=forwardRef(function View2({className,style,...rest},ref){return jsx(RNView,{ref,style:[useClassStyle(className),style],...rest,...pass(className)})});var Text=forwardRef(function Text2({className,style,...rest},ref){return jsx(RNText,{ref,style:[useClassStyle(className),style],...rest,...pass(className)})});var Pressable=forwardRef(function Pressable2({className,style,...rest},ref){const classStyle=useClassStyle(className);return jsx(RNPressable,{ref,style:typeof style==="function"?state=>[classStyle,style(state)]:[classStyle,style],...rest,...pass(className)})});var ScrollView=forwardRef(function ScrollView2({className,contentContainerClassName,style,contentContainerStyle,...rest},ref){return jsx(RNScrollView,{ref,style:[useClassStyle(className),style],contentContainerStyle:[useClassStyle(contentContainerClassName),contentContainerStyle],...rest,...pass(className),...{contentContainerClassName}})});var TextInput=forwardRef(function TextInput2({className,style,...rest},ref){return jsx(RNTextInput,{ref,style:[useClassStyle(className),style],...rest,...pass(className)})});var Image=forwardRef(function Image2({className,style,...rest},ref){return jsx(RNImage,{ref,style:[useClassStyle(className),style],...rest,...pass(className)})});function AnimatedView({className,style,...rest}){const classStyle=useClassStyle(className);return jsx(Animated.View,{style:[classStyle,style],...rest,...pass(className)})}var bool=v=>v===void 0?void 0:v===true||v==="true";var ROLE={button:"button",link:"link",checkbox:"checkbox",radio:"radio",switch:"switch",tab:"tab",tablist:"tablist",menu:"menu",menuitem:"menuitem",progressbar:"progressbar",alert:"alert",heading:"header",img:"image",list:"list",search:"search",summary:"summary",toolbar:"toolbar",none:"none",presentation:"none"};function a11y(props,fallbackRole){const out={};const role=props.role?ROLE[props.role]:fallbackRole;if(role)out.accessibilityRole=role;if(props["aria-label"])out.accessibilityLabel=props["aria-label"];const state={};const disabled=props.disabled??bool(props["aria-disabled"]);if(disabled!==void 0)state.disabled=disabled;const checked=props["aria-checked"];if(checked!==void 0)state.checked=checked==="mixed"?"mixed":bool(checked);const selected=bool(props["aria-selected"]);if(selected!==void 0)state.selected=selected;const expanded=bool(props["aria-expanded"]);if(expanded!==void 0)state.expanded=expanded;const busy=bool(props["aria-busy"]);if(busy!==void 0)state.busy=busy;if(Object.keys(state).length)out.accessibilityState=state;const value={};if(props["aria-valuenow"]!==void 0)value.now=props["aria-valuenow"];if(props["aria-valuemin"]!==void 0)value.min=props["aria-valuemin"];if(props["aria-valuemax"]!==void 0)value.max=props["aria-valuemax"];if(Object.keys(value).length)out.accessibilityValue=value;if(props["aria-live"]){out.accessibilityLiveRegion=props["aria-live"]==="off"?"none":props["aria-live"]}return out}function stripAria(props){const out={};for(const[k,v]of Object.entries(props)){if(k.startsWith("aria-")||k==="role")continue;out[k]=v}return out}import{useColorScheme as useColorScheme2}from"react-native";var TEXT_PREFIX=["text-","font-","leading-","tracking-","decoration-","whitespace-","line-"];var TEXT_EXACT=new Set(["italic","not-italic","underline","overline","line-through","no-underline","uppercase","lowercase","capitalize","normal-case","truncate","tabular-nums","proportional-nums","slashed-zero","ordinal"]);function classRoot(cls){let depth=0;let last=-1;for(let i=0;i<cls.length;i++){const c=cls[i];if(c==="[")depth++;else if(c==="]")depth--;else if(c===":"&&depth===0)last=i}return cls.slice(last+1).replace(/^!|!$/g,"")}function isTextClass(cls){const root=classRoot(cls);if(TEXT_EXACT.has(root))return true;return TEXT_PREFIX.some(p=>root.startsWith(p))}function splitTypography(className){if(!className)return{box:"",text:""};const box=[];const text=[];for(const cls of className.split(/\s+/)){if(!cls)continue;(isTextClass(cls)?text:box).push(cls)}return{box:box.join(" "),text:text.join(" ")}}var TEXT_PX=Object.fromEntries(TEXT_SCALE.map(step=>[step,parseFloat(TOKENS[`--text-${step}`])]));function textPx(className,fallback){if(!className)return fallback;for(const cls of className.split(/\s+/)){const root=classRoot(cls);if(!root.startsWith("text-"))continue;const step=root.slice(5);if(TEXT_SCALE.includes(step)){const px=TEXT_PX[step];if(px)return px}}return fallback}var LITERAL={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"};function resolveTextColor(className,dark){if(!className)return void 0;for(const cls of className.split(/\s+/)){const root=classRoot(cls);if(!root.startsWith("text-"))continue;const name=root.slice(5);if(LITERAL[name])return LITERAL[name];if(COLOR_SCALE.includes(name)){const key=`--color-${name}`;if(dark&&key in DARK_TOKENS)return DARK_TOKENS[key];return TOKENS[key]}}return void 0}function useTextColor(className,fallback){const scheme=useColorScheme2();return resolveTextColor(className,scheme==="dark")??fallback}var variants_exports={};__export(variants_exports,{BLOCK:()=>BLOCK,DISABLED:()=>DISABLED,ICON_ONLY:()=>ICON_ONLY,SPINNER:()=>SPINNER});var ICON_ONLY={sm:"w-9 px-0!",md:"w-10 px-0!",lg:"w-12 px-0!",xl:"w-14 px-0!"};var SPINNER={sm:14,md:15,lg:17,xl:20};var DISABLED="disabled:opacity-50 disabled:cursor-not-allowed";var BLOCK="w-full";import{jsx as jsx2,jsxs}from"react/jsx-runtime";var Button=forwardRef2(function Button2({variant="primary",size="md",icon,iconEnd,iconOnly,loading,block,disabled,className,children,onClick,onPress,...rest},ref){const isDisabled=disabled||loading;const classes=buttonClasses(variant,size,cn(DISABLED,iconOnly&&ICON_ONLY[size],block&&BLOCK,className));const{box,text}=splitTypography(classes);const iconColor=useTextColor(text);const iconSize=textPx(text,SPINNER[size]);return jsxs(Pressable,{ref,disabled:isDisabled,onPress:onPress??onClick,className:cn(box,isDisabled&&"opacity-50"),...a11y({...rest,disabled:isDisabled,"aria-busy":loading},"button"),...stripAria(rest),children:[loading?jsx2(ActivityIndicator,{size:"small",color:iconColor}):icon&&jsx2(View,{className:"shrink-0",children:tint(icon,iconSize,iconColor)}),!iconOnly&&wrapText(children,text),!loading&&iconEnd&&jsx2(View,{className:"shrink-0",children:tint(iconEnd,iconSize,iconColor)})]})});function tint(node,size,color){if(!isValidElement(node))return node;const next={};if(node.props.size===void 0)next.size=size;if(node.props.color===void 0&&color)next.color=color;return Object.keys(next).length?cloneElement(node,next):node}function wrapText(children,textClass){const wrap=(child,key)=>typeof child==="string"||typeof child==="number"?jsx2(Text,{className:textClass,children:child},key):child;return Array.isArray(children)?children.map((c,i)=>wrap(c,i)):wrap(children)}import{cloneElement as cloneElement2,forwardRef as forwardRef3,isValidElement as isValidElement2,useState}from"react";import{Modal}from"react-native";var icons_native_exports={};__reExport(icons_native_exports,lucide_react_native_star);import*as lucide_react_native_star from"lucide-react-native";var variants_exports2={};__export(variants_exports2,{CHOICE_BOX:()=>CHOICE_BOX,CHOICE_DESC:()=>CHOICE_DESC,CHOICE_LABEL:()=>CHOICE_LABEL,CHOICE_LABEL_TEXT:()=>CHOICE_LABEL_TEXT,CHOICE_ROW:()=>CHOICE_ROW,CONTROL:()=>CONTROL,CONTROL_CHECKED:()=>CONTROL_CHECKED,CONTROL_MARK:()=>CONTROL_MARK,CONTROL_ROUND:()=>CONTROL_ROUND,CONTROL_SQUARE:()=>CONTROL_SQUARE,ERROR:()=>ERROR,GROUP:()=>GROUP,GROUP_LEGEND:()=>GROUP_LEGEND,GROUP_ROW:()=>GROUP_ROW,HINT:()=>HINT,INPUT_ACTION:()=>INPUT_ACTION,INPUT_ACTION_POS:()=>INPUT_ACTION_POS,INPUT_ICON:()=>INPUT_ICON,INPUT_ICON_POS:()=>INPUT_ICON_POS,INPUT_ROW:()=>INPUT_ROW,INPUT_SUFFIX:()=>INPUT_SUFFIX,INPUT_SUFFIX_POS:()=>INPUT_SUFFIX_POS,LABEL:()=>LABEL,LABEL_REQUIRED:()=>LABEL_REQUIRED,LABEL_SIZE_DEFAULT:()=>LABEL_SIZE_DEFAULT,LABEL_SIZE_LG:()=>LABEL_SIZE_LG,PAD:()=>PAD,PAD_ACTION:()=>PAD_ACTION,PAD_ICON:()=>PAD_ICON,PAD_SUFFIX:()=>PAD_SUFFIX,RADIO_DOT:()=>RADIO_DOT,SELECT:()=>SELECT,SELECT_CHEVRON:()=>SELECT_CHEVRON,SHELL:()=>SHELL,SHELL_LABEL_ROW:()=>SHELL_LABEL_ROW,SIZES:()=>SIZES2,SWITCH_ROW:()=>SWITCH_ROW,SWITCH_TEXT:()=>SWITCH_TEXT,SWITCH_THUMB:()=>SWITCH_THUMB,SWITCH_THUMB_OFF:()=>SWITCH_THUMB_OFF,SWITCH_THUMB_ON:()=>SWITCH_THUMB_ON,SWITCH_TRACK:()=>SWITCH_TRACK,SWITCH_TRACK_OFF:()=>SWITCH_TRACK_OFF,SWITCH_TRACK_ON:()=>SWITCH_TRACK_ON,TEXTAREA:()=>TEXTAREA,base:()=>base});var SHELL="flex flex-col gap-1.5";var SHELL_LABEL_ROW="flex items-center justify-between gap-3 flex-wrap";var LABEL="font-bold text-ink2";var LABEL_SIZE_DEFAULT="text-ui";var LABEL_SIZE_LG="text-body";var LABEL_REQUIRED="text-danger ms-1";var ERROR="flex items-center gap-1.5 text-caption text-red";var HINT="text-caption text-muted";var SIZES2={sm:"h-9 text-ui",md:"h-11 text-body",lg:"h-14 text-base border-[1.5px]!"};var base=invalid=>cn("w-full bg-surface text-ink rounded-field border transition-colors outline-none","placeholder:text-muted2","focus:border-brand","disabled:bg-bg disabled:text-muted disabled:cursor-not-allowed",invalid?"border-danger":"border-border hover:border-brand");var PAD={normal:"px-3.5",lg:"px-4.5"};var PAD_ICON={normal:"ps-10",lg:"ps-12"};var PAD_SUFFIX="pe-14";var PAD_ACTION={normal:"pe-11",lg:"pe-14"};var INPUT_ROW="relative flex items-center";var INPUT_ICON="absolute flex text-muted pointer-events-none";var INPUT_ICON_POS={normal:"start-3.5",lg:"start-4.5"};var INPUT_SUFFIX="absolute text-ui text-muted pointer-events-none";var INPUT_SUFFIX_POS={normal:"end-3.5",lg:"end-4.5"};var INPUT_ACTION="absolute flex";var INPUT_ACTION_POS={normal:"end-3",lg:"end-4"};var TEXTAREA="text-body px-3.5 py-3 resize-y min-h-20";var SELECT="appearance-none ps-3.5 pe-9 cursor-pointer font-medium";var SELECT_CHEVRON="absolute end-3.5 text-muted2 pointer-events-none";var CONTROL="peer appearance-none size-[19px] shrink-0 bg-surface border-[1.5px] border-border cursor-pointer transition-colors checked:bg-brand checked:border-brand hover:border-brand focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand disabled:bg-bg disabled:cursor-not-allowed";var CONTROL_CHECKED="bg-brand border-brand";var CONTROL_SQUARE="rounded-xs";var CONTROL_ROUND="rounded-full";var CONTROL_MARK="text-white";var CHOICE_ROW="flex items-start gap-2.5";var CHOICE_BOX="relative inline-flex items-center justify-center mt-px";var CHOICE_LABEL="flex flex-col gap-0.5 cursor-pointer select-none";var CHOICE_LABEL_TEXT="text-body text-ink";var CHOICE_DESC="text-caption text-muted";var RADIO_DOT="absolute size-1.5 rounded-full bg-white pointer-events-none";var GROUP="flex flex-col gap-2.5 border-0 p-0 m-0";var GROUP_LEGEND="text-ui font-bold text-ink2 p-0 mb-1";var GROUP_ROW={inline:"flex flex-row flex-wrap gap-5",stacked:"flex flex-col gap-3"};var SWITCH_TRACK="relative shrink-0 w-11 h-6 rounded-full cursor-pointer transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand disabled:opacity-50 disabled:cursor-not-allowed";var SWITCH_TRACK_ON="bg-brand";var SWITCH_TRACK_OFF="bg-border";var SWITCH_THUMB="absolute top-1/2 -translate-y-1/2 size-5 rounded-full bg-white shadow-sm transition-all duration-200";var SWITCH_THUMB_ON="start-[calc(100%-1.375rem)]";var SWITCH_THUMB_OFF="start-0.5";var SWITCH_ROW="flex items-start gap-3";var SWITCH_TEXT="flex flex-col gap-0.5";import{jsx as jsx3,jsxs as jsxs2}from"react/jsx-runtime";function tint2(node,color){if(!isValidElement2(node))return node;return node.props.color===void 0&&color?cloneElement2(node,{color}):node}function FieldShell({label,labelAside,labelSize,hint,error,required,hideLabel,className,children}){const errorColor=useTextColor(splitTypography(ERROR).text);const labelEl=label&&!hideLabel?jsxs2(Text,{className:cn(labelSize??LABEL_SIZE_DEFAULT,LABEL),children:[label,required&&jsx3(Text,{className:LABEL_REQUIRED,children:"*"})]}):null;return jsxs2(View,{className:cn(SHELL,className),children:[labelAside?jsxs2(View,{className:SHELL_LABEL_ROW,children:[labelEl,labelAside]}):labelEl,children,error?jsxs2(View,{className:splitTypography(ERROR).box,...a11y({"aria-live":"assertive"},"alert"),children:[jsx3(icons_native_exports.AlertCircle,{size:12,color:errorColor}),jsx3(Text,{className:splitTypography(ERROR).text,children:error})]}):hint?jsx3(Text,{className:HINT,children:hint}):null]})}function accessibleName(label,required,error){const parts=[typeof label==="string"?label:void 0,required?"\u0645\u0637\u0644\u0648\u0628":void 0,typeof error==="string"?error:void 0].filter(Boolean);return parts.length?parts.join("\u060C "):void 0}var Input=forwardRef3(function Input2({label,labelAside,hint,error,size="md",hideLabel,icon,suffix,action,numeric,required,className,wrapperClassName,onChange,value,placeholder,disabled,keyboardType,...rest},ref){const invalid=Boolean(error);const lg=size==="lg";const classes=cn(base(invalid),SIZES2[size],lg?PAD.lg:PAD.normal,icon&&(lg?PAD_ICON.lg:PAD_ICON.normal),suffix&&PAD_SUFFIX,action&&(lg?PAD_ACTION.lg:PAD_ACTION.normal),className);const{box,text}=splitTypography(classes);const iconColor=useTextColor(splitTypography(INPUT_ICON).text);return jsx3(FieldShell,{label,labelAside,labelSize:lg?LABEL_SIZE_LG:void 0,hint,error,required,hideLabel,className:wrapperClassName,children:jsxs2(View,{className:INPUT_ROW,children:[icon&&jsx3(View,{className:cn(INPUT_ICON,lg?INPUT_ICON_POS.lg:INPUT_ICON_POS.normal),children:tint2(icon,iconColor)}),jsx3(TextInput,{ref,value,placeholder,editable:!disabled,className:cn(box,text),keyboardType:keyboardType??(numeric?"decimal-pad":void 0),onChangeText:raw=>{const fixed=numeric?toLatinDigits(raw):raw;onChange?.({target:{value:fixed}})},...a11y({"aria-label":accessibleName(label,required,error),disabled}),...rest}),suffix&&jsx3(Text,{className:cn(INPUT_SUFFIX,lg?INPUT_SUFFIX_POS.lg:INPUT_SUFFIX_POS.normal),children:suffix}),action&&jsx3(View,{className:cn(INPUT_ACTION,lg?INPUT_ACTION_POS.lg:INPUT_ACTION_POS.normal),children:action})]})})});var SearchInput=forwardRef3(function SearchInput2(props,ref){return jsx3(Input,{ref,icon:jsx3(icons_native_exports.Search,{size:16}),hideLabel:true,...props})});var Textarea=forwardRef3(function Textarea2({label,hint,error,required,hideLabel,rows=3,className,wrapperClassName,value,onChange,disabled,...rest},ref){const classes=cn(base(Boolean(error)),TEXTAREA,className);const{box,text}=splitTypography(classes);return jsx3(FieldShell,{label,hint,error,required,hideLabel,className:wrapperClassName,children:jsx3(TextInput,{ref,multiline:true,numberOfLines:rows,value,editable:!disabled,className:cn(box,text),onChangeText:raw=>onChange?.({target:{value:raw}}),...a11y({"aria-label":accessibleName(label,required,error),disabled}),...rest})})});var Select=forwardRef3(function Select2({label,hint,error,size="md",hideLabel,options,required,className,wrapperClassName,value,onChange,disabled},ref){const[open,setOpen]=useState(false);const classes=cn(base(Boolean(error)),SIZES2[size],SELECT,className);const{box,text}=splitTypography(classes);const chevronColor=useTextColor(splitTypography(SELECT_CHEVRON).text);const current=options.find(o=>o.value===value);return jsxs2(FieldShell,{label,hint,error,required,hideLabel,className:wrapperClassName,children:[jsxs2(View,{className:INPUT_ROW,children:[jsx3(Pressable,{ref,disabled,onPress:()=>setOpen(true),className:box,...a11y({"aria-label":accessibleName(label,required,error),"aria-expanded":open,disabled},"button"),children:jsx3(Text,{className:text,children:current?.label??""})}),jsx3(View,{className:SELECT_CHEVRON,children:jsx3(icons_native_exports.ChevronDown,{size:15,color:chevronColor})})]}),jsxs2(Modal,{visible:open,transparent:true,animationType:"slide",onRequestClose:()=>setOpen(false),children:[jsx3(Pressable,{className:"flex-1 bg-night/50",onPress:()=>setOpen(false)}),jsx3(View,{className:"bg-surface rounded-t-section max-h-[60%]",children:jsx3(ScrollView,{children:options.map(o=>jsx3(Pressable,{className:"px-4 h-11 flex-row items-center",onPress:()=>{onChange?.({target:{value:o.value}});setOpen(false)},...a11y({"aria-selected":o.value===value},"menuitem"),children:jsx3(Text,{className:"text-body text-ink",children:o.label})},o.value))})})]})]})});function ControlBox({checked,indeterminate,round,disabled,className}){const on=checked||indeterminate;const classes=cn(CONTROL,round?CONTROL_ROUND:CONTROL_SQUARE,on&&CONTROL_CHECKED,disabled&&"opacity-50",className);const{box}=splitTypography(classes);const markColor=useTextColor(CONTROL_MARK);return jsx3(View,{className:box,children:round?checked&&jsx3(View,{className:RADIO_DOT,style:{backgroundColor:markColor}}):indeterminate?jsx3(icons_native_exports.Minus,{size:12,strokeWidth:3,color:markColor}):checked&&jsx3(icons_native_exports.Check,{size:12,strokeWidth:3,color:markColor})})}var Checkbox=forwardRef3(function Checkbox2({label,description,indeterminate,checked,onChange,disabled,className},ref){return jsxs2(Pressable,{ref,disabled,onPress:()=>onChange?.({target:{checked:!checked}}),className:CHOICE_ROW,...a11y({"aria-label":typeof label==="string"?label:void 0,"aria-checked":indeterminate?"mixed":Boolean(checked),disabled},"checkbox"),children:[jsx3(View,{className:CHOICE_BOX,children:jsx3(ControlBox,{checked:Boolean(checked),indeterminate,disabled,className})}),(label||description)&&jsxs2(View,{className:splitTypography(CHOICE_LABEL).box,children:[label&&jsx3(Text,{className:CHOICE_LABEL_TEXT,children:label}),description&&jsx3(Text,{className:CHOICE_DESC,children:description})]})]})});var Radio=forwardRef3(function Radio2({label,description,checked,onChange,disabled,className},ref){return jsxs2(Pressable,{ref,disabled,onPress:()=>onChange?.({target:{checked:true}}),className:CHOICE_ROW,...a11y({"aria-label":typeof label==="string"?label:void 0,"aria-checked":Boolean(checked),disabled},"radio"),children:[jsx3(View,{className:CHOICE_BOX,children:jsx3(ControlBox,{round:true,checked:Boolean(checked),disabled,className})}),(label||description)&&jsxs2(View,{className:splitTypography(CHOICE_LABEL).box,children:[label&&jsx3(Text,{className:CHOICE_LABEL_TEXT,children:label}),description&&jsx3(Text,{className:CHOICE_DESC,children:description})]})]})});function RadioGroup({label,children,inline}){return jsxs2(View,{className:GROUP,...a11y({"aria-label":typeof label==="string"?label:void 0},"radiogroup"),children:[jsx3(Text,{className:GROUP_LEGEND,children:label}),jsx3(View,{className:inline?GROUP_ROW.inline:GROUP_ROW.stacked,children})]})}function Switch({checked,onCheckedChange,label,description,disabled}){const control=jsx3(Pressable,{disabled,onPress:()=>onCheckedChange(!checked),className:cn(splitTypography(SWITCH_TRACK).box,checked?SWITCH_TRACK_ON:SWITCH_TRACK_OFF,disabled&&"opacity-50"),...a11y({"aria-label":typeof label==="string"?label:void 0,"aria-checked":checked,disabled},"switch"),children:jsx3(View,{className:cn(SWITCH_THUMB,checked?SWITCH_THUMB_ON:SWITCH_THUMB_OFF)})});if(!label)return control;return jsxs2(View,{className:SWITCH_ROW,children:[control,jsxs2(View,{className:SWITCH_TEXT,children:[jsx3(Text,{className:CHOICE_LABEL_TEXT,children:label}),description&&jsx3(Text,{className:CHOICE_DESC,children:description})]})]})}var variants_exports3={};__export(variants_exports3,{CHIP:()=>CHIP,CHIPS_LABEL:()=>CHIPS_LABEL,CHIPS_ROW:()=>CHIPS_ROW,CHIP_CLEAR_ALL:()=>CHIP_CLEAR_ALL,PILL_COUNT:()=>PILL_COUNT,PILL_LIST:()=>PILL_LIST,PILL_TAB:()=>PILL_TAB,PILL_TAB_OFF:()=>PILL_TAB_OFF,PILL_TAB_ON:()=>PILL_TAB_ON,SEG_COUNT:()=>SEG_COUNT,SEG_LIST:()=>SEG_LIST,SEG_TAB:()=>SEG_TAB,SEG_TAB_OFF:()=>SEG_TAB_OFF,SEG_TAB_ON:()=>SEG_TAB_ON});var SEG_LIST="flex flex-wrap gap-0.5 p-0.5 rounded-field bg-bg self-start max-w-full";var SEG_TAB="h-9 px-2 sm:px-3.5 rounded-sm inline-flex items-center gap-2 text-ui font-bold cursor-pointer transition-colors shrink-0 whitespace-nowrap focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-brand";var SEG_TAB_ON="bg-surface text-ink shadow-raise";var SEG_TAB_OFF="text-muted hover:text-ink";var SEG_COUNT="opacity-60";var PILL_LIST="flex items-center gap-2.5 flex-wrap";var PILL_TAB="h-10 px-3.5 rounded-field border inline-flex items-center gap-1.5 text-ui font-bold cursor-pointer transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand";var PILL_TAB_ON="border-brand bg-soft text-brand-ink";var PILL_TAB_OFF="border-border bg-surface text-ink2 hover:border-brand";var PILL_COUNT="text-micro opacity-70";var CHIPS_ROW="flex items-center gap-2 flex-wrap";var CHIPS_LABEL="text-caption text-muted";var CHIP="inline-flex items-center gap-1.5 h-7 ps-3 pe-2 rounded-full bg-soft text-brand-ink text-caption font-bold cursor-pointer transition-colors hover:bg-soft2";var CHIP_CLEAR_ALL="text-caption font-bold text-muted cursor-pointer hover:text-ink transition-colors";import{jsx as jsx4,jsxs as jsxs3}from"react/jsx-runtime";function Count({value,className}){return jsx4(Text,{className,style:{writingDirection:"ltr"},children:value})}function Tabs({items,value,onChange,variant="pill",label,className}){const segmented=variant==="segmented";const listClass=segmented?SEG_LIST:PILL_LIST;const tabClass=segmented?SEG_TAB:PILL_TAB;const onClass=segmented?SEG_TAB_ON:PILL_TAB_ON;const offClass=segmented?SEG_TAB_OFF:PILL_TAB_OFF;const countClass=segmented?SEG_COUNT:PILL_COUNT;const tabs=items.map(it=>{const on=it.key===value;const classes=cn(tabClass,on?onClass:offClass);const{box,text}=splitTypography(classes);return jsx4(TabButton,{item:it,on,box,text,countClass,onPress:()=>onChange(it.key)},it.key)});return jsx4(ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,contentContainerClassName:cn(listClass.replace("flex-wrap",""),className),...a11y({"aria-label":label},"tablist"),children:tabs})}function TabButton({item,on,box,text,countClass,onPress}){const color=useTextColor(text);return jsxs3(Pressable,{onPress,className:box,...a11y({"aria-selected":on,"aria-label":typeof item.label==="string"?item.label:void 0},"tab"),children:[item.icon&&jsx4(item.icon,{size:14,color}),typeof item.label==="string"||typeof item.label==="number"?jsx4(Text,{className:text,children:item.label}):item.label,typeof item.count==="number"&&jsx4(Count,{value:item.count,className:cn(text,countClass)})]})}function FilterChips({chips,onClearAll,label,clearAllLabel}){const ui=useUIText();const chip=splitTypography(CHIP);const chipColor=useTextColor(chip.text);if(chips.length===0)return null;return jsxs3(View,{className:CHIPS_ROW,children:[jsx4(Text,{className:CHIPS_LABEL,children:label??ui.activeFilters}),chips.map(c=>jsxs3(Pressable,{onPress:c.onClear,className:chip.box,...a11y({"aria-label":`${c.label} \u2014 ${ui.clearAll}`},"button"),children:[jsx4(Text,{className:chip.text,children:c.label}),jsx4(icons_native_exports.X,{size:12,strokeWidth:2.5,color:chipColor})]},c.label)),onClearAll&&jsx4(Pressable,{onPress:onClearAll,...a11y({},"button"),children:jsx4(Text,{className:splitTypography(CHIP_CLEAR_ALL).text,children:clearAllLabel??ui.clearAll})})]})}import{useEffect,useRef,useState as useState2}from"react";var variants_exports4={};__export(variants_exports4,{BOX:()=>BOX,BTN:()=>BTN,DISABLED:()=>DISABLED2,HOLD_DECAY:()=>HOLD_DECAY,HOLD_MIN_MS:()=>HOLD_MIN_MS,HOLD_START_MS:()=>HOLD_START_MS,ICON:()=>ICON,NUM:()=>NUM,NUM_FIELD:()=>NUM_FIELD,NUM_FIELD_OFF:()=>NUM_FIELD_OFF,NUM_WRAP:()=>NUM_WRAP,SHELL:()=>SHELL2,SHELL_FOCUS:()=>SHELL_FOCUS,SHELL_WEB_ONLY:()=>SHELL_WEB_ONLY,STEP_BTN:()=>STEP_BTN,STEP_BTN_OFF:()=>STEP_BTN_OFF,STEP_BTN_ON:()=>STEP_BTN_ON,STEP_BTN_REMOVE:()=>STEP_BTN_REMOVE,UNIT:()=>UNIT});var BOX={sm:"h-8",md:"h-11",lg:"h-14"};var BTN={sm:"w-8",md:"w-11",lg:"w-14"};var NUM={sm:"text-ui w-10",md:"text-body w-14",lg:"text-h3 w-20"};var ICON={sm:14,md:16,lg:20};var SHELL2="inline-flex items-center rounded-field border border-line bg-surface";var DISABLED2="opacity-60";var SHELL_WEB_ONLY="overflow-clip divide-x divide-line hover:border-border";var SHELL_FOCUS="focus-within:border-brand focus-within:ring-2 focus-within:ring-brand/25 transition-[border-color,box-shadow]";var STEP_BTN="flex items-center justify-center shrink-0 self-stretch cursor-pointer select-none transition-colors";var STEP_BTN_OFF="text-muted2/45 cursor-not-allowed";var STEP_BTN_ON="text-ink2 hover:bg-hover active:bg-soft";var STEP_BTN_REMOVE="text-danger hover:bg-red-bg";var NUM_WRAP="flex items-center justify-center gap-1 px-1 self-stretch";var NUM_FIELD="bg-transparent outline-none text-center font-extrabold text-ink";var NUM_FIELD_OFF="disabled:text-muted2";var UNIT="text-micro text-muted2 select-none shrink-0";var HOLD_START_MS=400;var HOLD_MIN_MS=60;var HOLD_DECAY=.72;import{jsx as jsx5,jsxs as jsxs4}from"react/jsx-runtime";var ar=new Intl.NumberFormat("ar-EG");function NumberStepper({value,onChange,min=0,max=Infinity,step=1,size="md",unit,onRemove,disabled,label,className}){const[draft,setDraft]=useState2(null);const timer=useRef(void 0);useEffect(()=>()=>clearTimeout(timer.current),[]);const atMin=value<=min;const atMax=value>=max;const showRemove=Boolean(onRemove)&&atMin;const bump=dir=>onChange(Math.min(max,Math.max(min,value+dir*step)));const latest=useRef(value);useEffect(()=>{latest.current=value},[value]);function hold(dir){let delay=HOLD_START_MS;const tick=()=>{const next=Math.min(max,Math.max(min,latest.current+dir*step));if(next===latest.current)return;onChange(next);delay=Math.max(HOLD_MIN_MS,delay*HOLD_DECAY);timer.current=setTimeout(tick,delay)};timer.current=setTimeout(tick,delay)}const stop=()=>clearTimeout(timer.current);function commit(raw){setDraft(null);const n=Number(toLatinDigits(raw).replace(/[^\d.-]/g,""));if(Number.isNaN(n))return;onChange(Math.min(max,Math.max(min,n)))}const numText=splitTypography(cn(NUM_FIELD,NUM[size])).text;return jsxs4(View,{className:cn(splitTypography(cn(SHELL2,BOX[size])).box,disabled&&DISABLED2,className),style:{direction:"ltr",overflow:"hidden"},children:[jsx5(StepButton,{dir:-1,size,off:disabled||atMin&&!showRemove,showRemove,onPress:()=>showRemove?onRemove?.():bump(-1),onHold:()=>hold(-1),onRelease:stop}),jsxs4(View,{className:splitTypography(NUM_WRAP).box,children:[jsx5(TextInput,{value:draft??ar.format(value),editable:!disabled,keyboardType:"number-pad",className:numText,onFocus:()=>setDraft(String(value)),onChangeText:raw=>setDraft(toLatinDigits(raw)),onBlur:()=>commit(draft??String(value)),onSubmitEditing:()=>commit(draft??String(value)),...a11y({"aria-label":label??"\u0627\u0644\u0642\u064A\u0645\u0629",disabled})}),unit&&jsx5(Text,{className:splitTypography(UNIT).text,children:unit})]}),jsx5(StepButton,{dir:1,size,off:disabled||atMax,showRemove:false,onPress:()=>bump(1),onHold:()=>hold(1),onRelease:stop})]})}function StepButton({dir,size,off,showRemove,onPress,onHold,onRelease}){const Icon=dir===1?icons_native_exports.Plus:showRemove?icons_native_exports.Trash2:icons_native_exports.Minus;const classes=cn(STEP_BTN,BTN[size],off?STEP_BTN_OFF:cn(STEP_BTN_ON,showRemove&&dir===-1&&STEP_BTN_REMOVE));const{box,text}=splitTypography(classes);const color=useTextColor(text);return jsx5(Pressable,{disabled:off,onPress,onPressIn:()=>!off&&!showRemove&&onHold(),onPressOut:onRelease,className:cn(box,dir===1?"border-s border-line":"border-e border-line"),...a11y({"aria-label":dir===1?"\u0632\u064A\u0627\u062F\u0629":showRemove?"\u062D\u0630\u0641":"\u0646\u0642\u0635\u0627\u0646",disabled:off},"button"),children:jsx5(Icon,{size:ICON[size],strokeWidth:2.4,color})})}var variants_exports5={};__export(variants_exports5,{INPUT_ROW:()=>INPUT_ROW2,INPUT_STAR_PX:()=>INPUT_STAR_PX,MAX:()=>MAX,STARS_ROW:()=>STARS_ROW,STAR_BTN:()=>STAR_BTN,STAR_BTN_OFF:()=>STAR_BTN_OFF,STAR_BTN_ON:()=>STAR_BTN_ON,STAR_OFF:()=>STAR_OFF,STAR_ON:()=>STAR_ON,VALUE_TEXT:()=>VALUE_TEXT});var MAX=5;var STARS_ROW="flex items-center gap-0.5 shrink-0";var STAR_ON="fill-amber text-amber";var STAR_OFF="text-muted2";var INPUT_ROW2="flex items-center gap-1";var STAR_BTN="size-9 rounded-sm flex items-center justify-center transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand";var STAR_BTN_ON="cursor-pointer hover:bg-hover";var STAR_BTN_OFF="cursor-not-allowed opacity-60";var VALUE_TEXT="ms-2 text-caption font-bold text-muted";var INPUT_STAR_PX=22;import{jsx as jsx6,jsxs as jsxs5}from"react/jsx-runtime";function useStarColors(){return{on:useTextColor(splitTypography(STAR_ON).text),off:useTextColor(splitTypography(STAR_OFF).text)}}function Stars({value,size=13,className}){const n=Math.max(0,Math.min(MAX,Math.round(value)));const color=useStarColors();return jsx6(View,{className:cn(STARS_ROW,className),...a11y({"aria-label":`${n} / ${MAX}`},"image"),children:Array.from({length:MAX},(_,i)=>jsx6(icons_native_exports.Star,{size,color:i<n?color.on:color.off,fill:i<n?color.on:"transparent"},i))})}function RatingInput({value,onChange,disabled,hideValue,className}){const ui=useUIText();const color=useStarColors();return jsxs5(View,{className:cn(INPUT_ROW2,className),children:[Array.from({length:MAX},(_,i)=>{const n=i+1;const on=n<=value;return jsx6(Pressable,{disabled,onPress:()=>onChange(n),className:splitTypography(cn(STAR_BTN,disabled?STAR_BTN_OFF:STAR_BTN_ON)).box,...a11y({"aria-label":`${n} / ${MAX} \u2014 ${ui.rating}`,"aria-selected":value===n,disabled},"button"),children:jsx6(icons_native_exports.Star,{size:INPUT_STAR_PX,color:on?color.on:color.off,fill:on?color.on:"transparent"})},n)}),!hideValue&&value>0&&jsx6(Text,{className:splitTypography(VALUE_TEXT).text,style:{writingDirection:"ltr"},children:`${value}/${MAX}`})]})}import{useState as useState3}from"react";var variants_exports6={};__export(variants_exports6,{ACC_BODY:()=>ACC_BODY,ACC_CHEVRON:()=>ACC_CHEVRON,ACC_DESC:()=>ACC_DESC,ACC_HEAD:()=>ACC_HEAD,ACC_HEAD_TEXT:()=>ACC_HEAD_TEXT,ACC_ICON:()=>ACC_ICON,ACC_ROW:()=>ACC_ROW,ACC_SHELL:()=>ACC_SHELL,ACC_TITLE:()=>ACC_TITLE,ST_DOT:()=>ST_DOT,ST_DOT_DONE:()=>ST_DOT_DONE,ST_DOT_IDLE:()=>ST_DOT_IDLE,ST_DOT_PICKABLE:()=>ST_DOT_PICKABLE,ST_ITEM:()=>ST_ITEM,ST_LABEL:()=>ST_LABEL,ST_LABEL_OFF:()=>ST_LABEL_OFF,ST_LABEL_ON:()=>ST_LABEL_ON,ST_LINE:()=>ST_LINE,ST_LINE_DONE:()=>ST_LINE_DONE,ST_LINE_IDLE:()=>ST_LINE_IDLE,ST_LINE_NONE:()=>ST_LINE_NONE,ST_LIST:()=>ST_LIST,ST_NUM:()=>ST_NUM,ST_ROW:()=>ST_ROW,TL_BODY:()=>TL_BODY,TL_DOT:()=>TL_DOT,TL_DOT_ACTIVE:()=>TL_DOT_ACTIVE,TL_DOT_DONE:()=>TL_DOT_DONE,TL_DOT_IDLE:()=>TL_DOT_IDLE,TL_HEAD_ROW:()=>TL_HEAD_ROW,TL_LINE:()=>TL_LINE,TL_LINE_DONE:()=>TL_LINE_DONE,TL_LINE_IDLE:()=>TL_LINE_IDLE,TL_LIST:()=>TL_LIST,TL_NOTE:()=>TL_NOTE,TL_NOW:()=>TL_NOW,TL_PIP:()=>TL_PIP,TL_PIP_ACTIVE:()=>TL_PIP_ACTIVE,TL_PIP_IDLE:()=>TL_PIP_IDLE,TL_RAIL:()=>TL_RAIL,TL_ROW:()=>TL_ROW,TL_TIME:()=>TL_TIME,TL_TITLE:()=>TL_TITLE,TL_TITLE_OFF:()=>TL_TITLE_OFF,TL_TITLE_ON:()=>TL_TITLE_ON});var ACC_SHELL="bg-surface border border-line rounded-card";var ACC_ROW="border-b border-line last:border-0";var ACC_HEAD="w-full px-4 py-3.5 flex items-center gap-3 text-start cursor-pointer transition-colors hover:bg-hover focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-brand";var ACC_ICON="size-8 rounded-sm bg-soft text-brand-ink flex items-center justify-center shrink-0";var ACC_HEAD_TEXT="flex-1 min-w-0 flex flex-col gap-0.5";var ACC_TITLE="text-body font-extrabold text-ink";var ACC_DESC="text-caption text-muted";var ACC_CHEVRON="text-muted2 shrink-0 transition-transform duration-200";var ACC_BODY="px-4 pb-4 pt-0.5 text-ui leading-[1.85] text-ink2";var TL_LIST="flex flex-col m-0 p-0 list-none";var TL_ROW="flex gap-3";var TL_RAIL="flex flex-col items-center shrink-0";var TL_DOT="size-7 rounded-full flex items-center justify-center border-2 transition-colors";var TL_DOT_DONE="bg-brand border-brand text-white";var TL_DOT_ACTIVE="bg-surface border-brand text-brand-ink";var TL_DOT_IDLE="bg-surface border-border text-muted2";var TL_PIP="size-2 rounded-full";var TL_PIP_ACTIVE="bg-brand";var TL_PIP_IDLE="bg-border";var TL_LINE="w-0.5 flex-1 min-h-8 transition-colors";var TL_LINE_DONE="bg-brand";var TL_LINE_IDLE="bg-line";var TL_BODY="flex flex-col gap-0.5 min-w-0";var TL_HEAD_ROW="flex items-center gap-2.5 flex-wrap";var TL_TITLE="text-body font-extrabold";var TL_TITLE_ON="text-ink";var TL_TITLE_OFF="text-muted2";var TL_TIME="text-micro text-muted2";var TL_NOW="px-2 py-0.5 rounded-full text-micro font-extrabold";var TL_NOTE="text-caption leading-[1.7] text-muted";var ST_LIST="flex items-start gap-1 m-0 p-0 list-none";var ST_ITEM="flex-1 flex flex-col items-center gap-2 min-w-0";var ST_ROW="w-full flex items-center gap-1";var ST_LINE="h-0.5 flex-1 rounded-full";var ST_LINE_DONE="bg-brand";var ST_LINE_IDLE="bg-line";var ST_LINE_NONE="bg-transparent";var ST_DOT="size-8 rounded-full flex items-center justify-center shrink-0 border-2 transition-colors";var ST_DOT_DONE="bg-brand border-brand text-white";var ST_DOT_IDLE="bg-surface border-border text-muted";var ST_DOT_PICKABLE="cursor-pointer hover:border-brand";var ST_NUM="text-caption font-extrabold";var ST_LABEL="text-caption font-bold text-center leading-tight";var ST_LABEL_ON="text-ink";var ST_LABEL_OFF="text-muted";import{jsx as jsx7,jsxs as jsxs6}from"react/jsx-runtime";function Accordion({items,mode="single",defaultOpen=[],className}){const[open,setOpen]=useState3(defaultOpen);const chevronColor=useTextColor(splitTypography(ACC_CHEVRON).text);const iconColor=useTextColor(splitTypography(ACC_ICON).text);function toggle(key){setOpen(prev=>{if(prev.includes(key))return prev.filter(k=>k!==key);return mode==="single"?[key]:[...prev,key]})}return jsx7(View,{className:cn(ACC_SHELL,className),style:{overflow:"hidden"},children:items.map(it=>{const on=open.includes(it.key);return jsxs6(View,{className:ACC_ROW,children:[jsxs6(Pressable,{onPress:()=>toggle(it.key),className:splitTypography(ACC_HEAD).box,...a11y({"aria-expanded":on,"aria-label":typeof it.title==="string"?it.title:void 0},"button"),children:[it.icon&&jsx7(View,{className:splitTypography(ACC_ICON).box,children:jsx7(it.icon,{size:15,color:iconColor})}),jsxs6(View,{className:splitTypography(ACC_HEAD_TEXT).box,children:[jsx7(Text,{className:splitTypography(ACC_TITLE).text,children:it.title}),it.description&&jsx7(Text,{className:splitTypography(ACC_DESC).text,children:it.description})]}),jsx7(View,{style:{transform:[{rotate:on?"180deg":"0deg"}]},children:jsx7(icons_native_exports.ChevronDown,{size:16,color:chevronColor})})]}),on&&jsx7(View,{className:splitTypography(ACC_BODY).box,children:typeof it.children==="string"||typeof it.children==="number"?jsx7(Text,{className:splitTypography(ACC_BODY).text,children:it.children}):it.children})]},it.key)})})}function Timeline({steps,current,nowLabel,className}){const ui=useUIText();const doneMark=useTextColor(splitTypography(TL_DOT_DONE).text);return jsx7(View,{className:cn(TL_LIST,className),...a11y({},"list"),children:steps.map((s,i)=>{const done=i<current;const active=i===current;const last=i===steps.length-1;return jsxs6(View,{className:TL_ROW,children:[jsxs6(View,{className:TL_RAIL,children:[jsx7(View,{className:cn(splitTypography(TL_DOT).box,done&&TL_DOT_DONE,active&&TL_DOT_ACTIVE,!done&&!active&&TL_DOT_IDLE),children:done?jsx7(icons_native_exports.Check,{size:14,strokeWidth:3,color:doneMark}):jsx7(View,{className:cn(TL_PIP,active?TL_PIP_ACTIVE:TL_PIP_IDLE)})}),!last&&jsx7(View,{className:cn(TL_LINE,done?TL_LINE_DONE:TL_LINE_IDLE)})]}),jsxs6(View,{className:cn(TL_BODY,last?"pb-0":"pb-5"),children:[jsxs6(View,{className:TL_HEAD_ROW,children:[jsx7(Text,{className:cn(TL_TITLE,done||active?TL_TITLE_ON:TL_TITLE_OFF),children:s.title}),s.time&&jsx7(Text,{className:TL_TIME,style:{writingDirection:"ltr"},children:s.time}),active&&jsx7(View,{className:splitTypography(cn(TL_NOW,TONE_SOFT[s.tone??"brand"])).box,children:jsx7(Text,{className:splitTypography(cn(TL_NOW,TONE_SOFT[s.tone??"brand"])).text,children:nowLabel??ui.now})})]}),s.note&&jsx7(Text,{className:TL_NOTE,children:s.note})]})]},s.key)})})}function Stepper({steps,done,onPick,className}){const doneMark=useTextColor(splitTypography(ST_DOT_DONE).text);return jsx7(View,{className:cn(ST_LIST,className),...a11y({},"list"),children:steps.map((s,i)=>{const on=done.includes(s.key);const isCurrent=!on&&steps.slice(0,i).every(x=>done.includes(x.key));const last=i===steps.length-1;const dot=jsx7(View,{className:cn(splitTypography(ST_DOT).box,on?ST_DOT_DONE:ST_DOT_IDLE,onPick&&ST_DOT_PICKABLE),children:on?jsx7(icons_native_exports.Check,{size:15,strokeWidth:3,color:doneMark}):jsx7(Text,{className:cn(ST_NUM,on?ST_LABEL_ON:ST_LABEL_OFF),children:i+1})});const label=`${typeof s.title==="string"?s.title:`\u0627\u0644\u062E\u0637\u0648\u0629 ${i+1}`}${on?" \u2014 \u0645\u0643\u062A\u0645\u0644\u0629":""}`;return jsxs6(View,{className:ST_ITEM,children:[jsxs6(View,{className:ST_ROW,children:[jsx7(View,{className:cn(ST_LINE,i===0?ST_LINE_NONE:on?ST_LINE_DONE:ST_LINE_IDLE)}),onPick?jsx7(Pressable,{onPress:()=>onPick(s.key),...a11y({"aria-label":label,"aria-selected":isCurrent},"button"),children:dot}):jsx7(View,{...a11y({"aria-label":label,"aria-selected":isCurrent},"text"),children:dot}),jsx7(View,{className:cn(ST_LINE,last?ST_LINE_NONE:on?ST_LINE_DONE:ST_LINE_IDLE)})]}),jsx7(Text,{className:cn(ST_LABEL,on?ST_LABEL_ON:ST_LABEL_OFF),children:s.title})]},s.key)})})}import Svg,{Path}from"react-native-svg";function useCoachOptional(){return null}function Coach({children}){return children}import{useColorScheme as useColorScheme3}from"react-native";var variants_exports7={};__export(variants_exports7,{CARD:()=>CARD,CARD_BODY:()=>CARD_BODY,CARD_COACH:()=>CARD_COACH,CARD_ICON:()=>CARD_ICON,CARD_ICON_IDLE:()=>CARD_ICON_IDLE,CARD_ICON_ON:()=>CARD_ICON_ON,CARD_IDLE:()=>CARD_IDLE,CARD_LABEL:()=>CARD_LABEL,CARD_LOCK:()=>CARD_LOCK,CARD_META:()=>CARD_META,CARD_OFF:()=>CARD_OFF,CARD_ON:()=>CARD_ON,CARD_PICKABLE:()=>CARD_PICKABLE,CARD_PRICE:()=>CARD_PRICE,GRID:()=>GRID,GRID_COLS:()=>GRID_COLS,MARK:()=>MARK,MARK_CHECK:()=>MARK_CHECK,MARK_IDLE:()=>MARK_IDLE,MARK_MULTI:()=>MARK_MULTI,MARK_ON:()=>MARK_ON,MARK_SINGLE:()=>MARK_SINGLE,SPARK_FILL_ALPHA:()=>SPARK_FILL_ALPHA,SPARK_STROKE_WIDTH:()=>SPARK_STROKE_WIDTH,SPARK_TOKEN:()=>SPARK_TOKEN,sparkPaths:()=>sparkPaths,sparkPoints:()=>sparkPoints});var GRID="grid gap-2.5";var GRID_COLS={1:"",2:"sm:grid-cols-2",3:"sm:grid-cols-3"};var CARD="relative flex items-start gap-3 p-3.5 rounded-card border transition-colors";var CARD_OFF="border-line bg-bg cursor-not-allowed opacity-70";var CARD_ON="border-brand bg-soft";var CARD_IDLE="border-border bg-surface";var CARD_PICKABLE="cursor-pointer hover:border-brand";var MARK="mt-0.5 size-[19px] border-[1.5px] flex items-center justify-center shrink-0 transition-colors";var MARK_SINGLE="rounded-full";var MARK_MULTI="rounded-mark";var MARK_ON="border-brand bg-brand";var MARK_IDLE="border-border bg-surface";var MARK_CHECK="text-white";var CARD_ICON="size-9 rounded-field flex items-center justify-center shrink-0 transition-colors";var CARD_ICON_ON="bg-brand text-white";var CARD_ICON_IDLE="bg-hover text-muted";var CARD_BODY="flex-1 min-w-0 flex flex-col gap-0.5";var CARD_LABEL="text-body font-extrabold text-ink";var CARD_META="text-caption leading-[1.6] text-muted";var CARD_LOCK="inline-flex items-center gap-1 mt-1 text-caption font-bold text-amber-ink";var CARD_PRICE="text-ui font-extrabold text-ink shrink-0";var CARD_COACH="self-start ms-auto -me-1 -mt-1 size-7 rounded-full shrink-0 flex items-center justify-center text-brand cursor-pointer transition-colors hover:bg-soft hover:text-brand-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand";var SPARK_TOKEN={brand:"brand",green:"green",red:"danger",muted:"muted2"};var SPARK_FILL_ALPHA=.1;var SPARK_STROKE_WIDTH=1.5;function sparkPoints(values,width,height){const max=Math.max(...values);const min=Math.min(...values);const span=max-min||1;const step=width/(values.length-1);return values.map((v,i)=>{const x=i*step;const y=height-(v-min)/span*(height-3)-1.5;return[x,y]})}function sparkPaths(values,width,height){const points=sparkPoints(values,width,height);const line=points.map(([x,y],i)=>`${i===0?"M":"L"}${x.toFixed(1)},${y.toFixed(1)}`).join(" ");return{line,area:`${line} L${width},${height} L0,${height} Z`}}import{jsx as jsx8,jsxs as jsxs7}from"react/jsx-runtime";function ChoiceCards({value,onChange,options,hideMark,multiple,disabled:allDisabled,className}){const ui=useUIText();const coach=useCoachOptional();const picked=Array.isArray(value)?new Set(value):null;const markColor=useTextColor(MARK_CHECK);const lockColor=useTextColor(splitTypography(CARD_LOCK).text);const coachColor=useTextColor(splitTypography(CARD_COACH).text);const iconOn=useTextColor(splitTypography(CARD_ICON_ON).text);const iconIdle=useTextColor(splitTypography(CARD_ICON_IDLE).text);return jsx8(View,{className:cn(GRID,className),...a11y({},multiple?"none":"radiogroup"),children:options.map(o=>{const on=picked?picked.has(o.value):o.value===value;const off=o.disabled||allDisabled;return jsxs7(Pressable,{disabled:off,onPress:()=>onChange(o.value),className:cn(splitTypography(CARD).box,off?CARD_OFF:CARD_PICKABLE,on&&!off?CARD_ON:CARD_IDLE),...a11y({"aria-label":typeof o.label==="string"?o.label:void 0,"aria-checked":on,disabled:off},multiple?"checkbox":"radio"),children:[!hideMark&&jsx8(View,{className:cn(splitTypography(MARK).box,multiple?MARK_MULTI:MARK_SINGLE,on&&!off?MARK_ON:MARK_IDLE),children:on&&!off&&jsx8(icons_native_exports.Check,{size:12,strokeWidth:3,color:markColor})}),o.icon&&jsx8(View,{className:cn(splitTypography(CARD_ICON).box,on&&!off?CARD_ICON_ON:CARD_ICON_IDLE),children:jsx8(o.icon,{size:17,strokeWidth:2,color:on&&!off?iconOn:iconIdle})}),jsxs7(View,{className:splitTypography(CARD_BODY).box,children:[jsx8(Text,{className:splitTypography(CARD_LABEL).text,children:o.label}),o.meta&&jsx8(Text,{className:splitTypography(CARD_META).text,children:o.meta}),off&&o.lockReason&&jsxs7(View,{className:splitTypography(CARD_LOCK).box,children:[jsx8(icons_native_exports.Lock,{size:11,color:lockColor}),jsx8(Text,{className:splitTypography(CARD_LOCK).text,children:o.lockReason})]})]}),o.price&&jsx8(Text,{className:splitTypography(CARD_PRICE).text,style:{writingDirection:"ltr"},children:o.price}),o.coachId&&coach&&jsx8(Pressable,{onPress:()=>coach.replay(o.coachId),className:splitTypography(CARD_COACH).box,accessibilityHint:ui.whatIsThisOption,...a11y({"aria-label":typeof o.label==="string"?`\u0645\u0627 \u0645\u0639\u0646\u0649 \xAB${o.label}\xBB\u061F`:"\u0645\u0627 \u0647\u0630\u0627 \u0627\u0644\u062E\u064A\u0627\u0631\u061F"},"button"),children:jsx8(icons_native_exports.Info,{size:15,strokeWidth:2,color:coachColor})})]},o.value)})})}function Sparkline({values,width=72,height=24,tone="brand",fluid,className}){const scheme=useColorScheme3();if(values.length<2)return null;const{line,area}=sparkPaths(values,width,height);const key=`--color-${SPARK_TOKEN[tone]}`;const dark=scheme==="dark";const color=(dark&&key in DARK_TOKENS?DARK_TOKENS[key]:void 0)??TOKENS[key];return jsx8(View,{className:cn(fluid?"w-full":"shrink-0",className),children:jsxs7(Svg,{width:fluid?"100%":width,height,viewBox:`0 0 ${width} ${height}`,preserveAspectRatio:fluid?"none":void 0,style:{direction:"ltr"},children:[jsx8(Path,{d:area,fill:color,fillOpacity:SPARK_FILL_ALPHA}),jsx8(Path,{d:line,fill:"none",stroke:color,strokeWidth:SPARK_STROKE_WIDTH,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]})})}import{Linking}from"react-native";import Svg2,{Path as Path2}from"react-native-svg";var variants_exports8={};__export(variants_exports8,{ACTION:()=>ACTION,ACTIONS_ROW:()=>ACTIONS_ROW,ACTION_WHATSAPP:()=>ACTION_WHATSAPP,DIAL:()=>DIAL,DIALS:()=>DIALS,DIAL_TEXT:()=>DIAL_TEXT,DIAL_TEXT_STYLED:()=>DIAL_TEXT_STYLED,NUMBER_ROW:()=>NUMBER_ROW,NUMBER_TEXT:()=>NUMBER_TEXT,NUMBER_TEXT_STYLED:()=>NUMBER_TEXT_STYLED,ROW:()=>ROW,SIZE:()=>SIZE,WHATSAPP_PATH:()=>WHATSAPP_PATH,formatPhone:()=>formatPhone,group:()=>group,join:()=>join,parsePhone:()=>parsePhone});var DIAL={"20":{groups:[3,3,4],name:"\u0645\u0635\u0631"},"966":{groups:[2,3,4],name:"\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629"},"971":{groups:[2,3,4],name:"\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A"},"965":{groups:[4,4],name:"\u0627\u0644\u0643\u0648\u064A\u062A"},"974":{groups:[4,4],name:"\u0642\u0637\u0631"},"973":{groups:[4,4],name:"\u0627\u0644\u0628\u062D\u0631\u064A\u0646"},"968":{groups:[4,4],name:"\u0639\u064F\u0645\u0627\u0646"},"962":{groups:[1,4,4],name:"\u0627\u0644\u0623\u0631\u062F\u0646"},"964":{groups:[3,3,4],name:"\u0627\u0644\u0639\u0631\u0627\u0642"},"961":{groups:[2,3,3],name:"\u0644\u0628\u0646\u0627\u0646"},"963":{groups:[3,3,3],name:"\u0633\u0648\u0631\u064A\u0627"},"970":{groups:[2,3,4],name:"\u0641\u0644\u0633\u0637\u064A\u0646"},"967":{groups:[3,3,3],name:"\u0627\u0644\u064A\u0645\u0646"},"249":{groups:[3,3,3],name:"\u0627\u0644\u0633\u0648\u062F\u0627\u0646"},"212":{groups:[3,3,3],name:"\u0627\u0644\u0645\u063A\u0631\u0628"},"213":{groups:[3,3,3],name:"\u0627\u0644\u062C\u0632\u0627\u0626\u0631"},"216":{groups:[2,3,3],name:"\u062A\u0648\u0646\u0633"},"218":{groups:[2,3,4],name:"\u0644\u064A\u0628\u064A\u0627"},"222":{groups:[2,2,2,2],name:"\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"},"252":{groups:[2,3,4],name:"\u0627\u0644\u0635\u0648\u0645\u0627\u0644"},"253":{groups:[2,2,2,2],name:"\u062C\u064A\u0628\u0648\u062A\u064A"},"269":{groups:[3,4],name:"\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631"}};var DIALS=Object.keys(DIAL).sort((a,b)=>b.length-a.length);function parsePhone(raw,defaultDial="20"){const digits=raw.replace(/\D/g,"");let rest=digits;const intl=raw.trim().startsWith("+")||digits.startsWith("00");if(digits.startsWith("00"))rest=digits.slice(2);if(intl){for(const d of DIALS){if(rest.startsWith(d)){return{dial:d,local:rest.slice(d.length),country:DIAL[d].name}}}return{dial:"",local:rest}}const local=rest.replace(/^0/,"");return{dial:defaultDial,local,country:DIAL[defaultDial]?.name}}function join(parts,format2){if(format2==="spaces"||parts.length<2)return parts.join(" ");const[head,...tail]=parts;return`(${head}) ${tail.join("-")}`}function group(local,dial){const rule=DIAL[dial]?.groups;const out=[];let i=0;if(rule){for(const n of rule){if(i>=local.length)break;out.push(local.slice(i,i+n));i+=n}}while(i<local.length){out.push(local.slice(i,i+3));i+=3}return out.filter(Boolean)}function formatPhone(local,dial,format2,mask){if(mask)return`\u2022\u2022\u2022 ${local.slice(-4)}`;return dial?join(group(local,dial),format2):`+${local}`}var ROW="inline-flex items-center gap-2 min-w-0";var NUMBER_ROW="inline-flex items-baseline gap-1.5 whitespace-nowrap min-w-0";var DIAL_TEXT="opacity-70";var DIAL_TEXT_STYLED="text-muted2 font-normal";var NUMBER_TEXT="truncate";var NUMBER_TEXT_STYLED="font-bold text-ink";var SIZE={inherit:"",sm:"text-caption",md:"text-ui"};var ACTIONS_ROW="inline-flex items-center gap-0.5 shrink-0";var ACTION="size-7 rounded-sm inline-flex items-center justify-center shrink-0 text-muted hover:text-brand-ink hover:bg-hover transition-colors no-underline";var ACTION_WHATSAPP="hover:text-green";var WHATSAPP_PATH='""" + wa_path + """';import{jsx as jsx9,jsxs as jsxs8}from"react/jsx-runtime";function WhatsAppIcon({size=15,color}){return jsx9(Svg2,{viewBox:"0 0 24 24",width:size,height:size,children:jsx9(Path2,{d:WHATSAPP_PATH,fill:color??"currentColor"})})}function Phone({value,defaultDial="20",format:format2="parens",mask,call,sms,whatsapp,size="md",className}){const{dial,local,country}=parsePhone(value,defaultDial);const e164=`+${dial}${local}`;const shown=formatPhone(local,dial,format2,mask);const bare=size==="inherit";const actionColor=useTextColor(splitTypography(ACTION).text);const waColor=useTextColor(splitTypography(ACTION_WHATSAPP).text)??actionColor;return jsxs8(View,{className:cn(ROW,className),children:[jsxs8(View,{className:splitTypography(cn(NUMBER_ROW,SIZE[size])).box,children:[dial&&!mask&&jsxs8(Text,{className:cn(splitTypography(cn(DIAL_TEXT,SIZE[size])).text,!bare&&DIAL_TEXT_STYLED),style:{writingDirection:"ltr"},accessibilityHint:country,children:["+",dial]}),jsx9(Text,{className:cn(splitTypography(cn(NUMBER_TEXT,SIZE[size])).text,!bare&&NUMBER_TEXT_STYLED),numberOfLines:1,style:{writingDirection:"ltr",fontVariant:["tabular-nums"]},children:shown})]}),(call||sms||whatsapp)&&!mask&&jsxs8(View,{className:ACTIONS_ROW,children:[call&&jsx9(Action,{url:`tel:${e164}`,label:`\u0627\u062A\u0635\u0627\u0644 \u0628\u0640${e164}`,children:jsx9(icons_native_exports.Phone,{size:14,color:actionColor})}),sms&&jsx9(Action,{url:`sms:${e164}`,label:`\u0631\u0633\u0627\u0644\u0629 \u0646\u0635\u0651\u064A\u0629 \u0625\u0644\u0649 ${e164}`,children:jsx9(icons_native_exports.MessageSquare,{size:14,color:actionColor})}),whatsapp&&jsx9(Action,{url:`https://wa.me/${dial}${local}`,label:`\u0648\u0627\u062A\u0633\u0627\u0628 ${e164}`,className:ACTION_WHATSAPP,children:jsx9(WhatsAppIcon,{size:15,color:waColor})})]})]})}function Action({url,label,className,children}){return jsx9(Pressable,{onPress:()=>{void Linking.openURL(url).catch(()=>{})},className:cn(splitTypography(cn(ACTION,className)).box),...a11y({"aria-label":label},"link"),children})}import Svg3,{Path as Path3}from"react-native-svg";var variants_exports9={};__export(variants_exports9,{CHEVRONS:()=>CHEVRONS,CHEVRON_DIM:()=>CHEVRON_DIM,CHEVRON_STROKE:()=>CHEVRON_STROKE,CHIP:()=>CHIP2,LEVEL_TONE:()=>LEVEL_TONE,PROVIDER_LEVEL_LABEL:()=>PROVIDER_LEVEL_LABEL,PROVIDER_LEVEL_LABEL_EN:()=>PROVIDER_LEVEL_LABEL_EN,SIZES:()=>SIZES3,VERIFIED_LABEL:()=>VERIFIED_LABEL,VERIFIED_LABEL_EN:()=>VERIFIED_LABEL_EN,chevronPath:()=>chevronPath});var PROVIDER_LEVEL_LABEL={1:"\u0645\u0642\u062F\u0651\u0645 \u062C\u062F\u064A\u062F",2:"\u0645\u0642\u062F\u0651\u0645 \u0645\u062D\u062A\u0631\u0641",3:"\u0645\u0642\u062F\u0651\u0645 \u062E\u0628\u064A\u0631"};var PROVIDER_LEVEL_LABEL_EN={1:"New provider",2:"Pro provider",3:"Expert provider"};var CHEVRONS=[1.7,6,10.3];var CHEVRON_DIM=.28;var CHEVRON_STROKE=1.8;var chevronPath=y=>`M3.2 ${y+4}L8 ${y}L12.8 ${y+4}`;var LEVEL_TONE={1:"bg-hover text-ink2",2:"bg-soft text-brand-ink",3:TONE_SOLID.brand};var SIZES3={sm:{box:"size-6",mark:14},md:{box:"size-7",mark:16}};var CHIP2="inline-flex items-center justify-center rounded-sm shrink-0 cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand";var VERIFIED_LABEL="\u062D\u0633\u0627\u0628 \u0645\u0648\u062B\u0651\u0642";var VERIFIED_LABEL_EN="Verified account";import{jsx as jsx10}from"react/jsx-runtime";function ProviderMark({level,size=16,className,color}){return jsx10(View,{className:cn("shrink-0",className),children:jsx10(Svg3,{width:size,height:size,viewBox:"0 0 16 16",fill:"none",children:CHEVRONS.map((y,i)=>jsx10(Path3,{d:chevronPath(y),stroke:color??"currentColor",strokeWidth:CHEVRON_STROKE,strokeLinecap:"round",strokeLinejoin:"round",opacity:i>=CHEVRONS.length-level?1:CHEVRON_DIM},y))})})}function MarkChip({label,size,tone,className,children}){return jsx10(View,{className:cn(splitTypography(CHIP2).box,SIZES3[size].box,splitTypography(tone).box,className),...a11y({"aria-label":label},"image"),children})}function ProviderBadge({level,size="sm",className}){const en=useMoneyLang();const label=en?PROVIDER_LEVEL_LABEL_EN[level]:PROVIDER_LEVEL_LABEL[level];const color=useTextColor(splitTypography(LEVEL_TONE[level]).text);return jsx10(MarkChip,{label,size,tone:LEVEL_TONE[level],className,children:jsx10(ProviderMark,{level,size:SIZES3[size].mark,color})})}function VerifiedBadge({size="sm",className}){const en=useMoneyLang();const color=useTextColor(splitTypography(TONE_SOFT.green).text);return jsx10(MarkChip,{label:en?VERIFIED_LABEL_EN:VERIFIED_LABEL,size,tone:TONE_SOFT.green,className,children:jsx10(icons_native_exports.BadgeCheck,{size:SIZES3[size].mark,strokeWidth:2,color})})}import{useEffect as useEffect2,useState as useState4}from"react";import{Animated as Animated2,Easing}from"react-native";var variants_exports10={};__export(variants_exports10,{AVATAR_FALLBACK:()=>AVATAR_FALLBACK,AVATAR_IMG:()=>AVATAR_IMG,AVATAR_ROUND:()=>AVATAR_ROUND,AVATAR_SIZES:()=>AVATAR_SIZES,AVATAR_SQUARE:()=>AVATAR_SQUARE,BADGE_BASE:()=>BADGE_BASE,BADGE_DOT:()=>BADGE_DOT,BADGE_SIZE:()=>BADGE_SIZE,CARD:()=>CARD2,CARD_DESC:()=>CARD_DESC,CARD_HEAD:()=>CARD_HEAD,CARD_HEAD_ACTIONS:()=>CARD_HEAD_ACTIONS,CARD_HEAD_TEXT:()=>CARD_HEAD_TEXT,CARD_PADDED:()=>CARD_PADDED,CARD_TITLE:()=>CARD_TITLE,COACH_MARK:()=>COACH_MARK,COACH_MARK_STAT:()=>COACH_MARK_STAT,COUNTER:()=>COUNTER,PAGE_ACTIONS:()=>PAGE_ACTIONS,PAGE_HEAD:()=>PAGE_HEAD,PAGE_HEAD_TEXT:()=>PAGE_HEAD_TEXT,PAGE_HINT:()=>PAGE_HINT,PAGE_TITLE:()=>PAGE_TITLE,PROGRESS_BAR:()=>PROGRESS_BAR,PROGRESS_FILL:()=>PROGRESS_FILL,PROGRESS_LABEL_ROW:()=>PROGRESS_LABEL_ROW,PROGRESS_TRACK:()=>PROGRESS_TRACK,PROGRESS_WRAP:()=>PROGRESS_WRAP,SKELETON_BASE:()=>SKELETON_BASE,SKELETON_VARIANT:()=>SKELETON_VARIANT,STAT_CARD:()=>STAT_CARD,STAT_HINT:()=>STAT_HINT,STAT_ICON:()=>STAT_ICON,STAT_LABEL:()=>STAT_LABEL,STAT_ROW:()=>STAT_ROW,STAT_VALUE:()=>STAT_VALUE,initials:()=>initials});var BADGE_BASE="inline-flex items-center gap-1.5 rounded-full font-bold whitespace-nowrap";var BADGE_SIZE={sm:"text-micro px-2 py-0.5",md:"text-caption px-2.5 py-1"};var BADGE_DOT="size-1.5 rounded-full bg-current shrink-0";var COUNTER="inline-flex items-center justify-center min-w-[18px] h-[18px] px-1.5 rounded-full bg-danger text-white text-micro font-extrabold leading-none";var AVATAR_SIZES={xs:"size-7 text-micro",sm:"size-9 text-ui",md:"size-11 text-body",lg:"size-14 text-h4"};var AVATAR_IMG="object-cover border border-line shrink-0";var AVATAR_SQUARE="rounded-field";var AVATAR_ROUND="rounded-full";var AVATAR_FALLBACK="flex items-center justify-center font-extrabold bg-soft text-brand-ink shrink-0";function initials(name){return name.trim().split(/\s+/).slice(0,2).map(w=>w[0]).join("")}var CARD2="bg-surface border border-line rounded-card";var CARD_PADDED="p-5";var STAT_CARD="relative bg-surface border border-line rounded-card p-4 flex flex-col gap-2";var STAT_ROW="flex items-center gap-2.5";var STAT_ICON="size-[30px] rounded-sm flex items-center justify-center shrink-0";var STAT_LABEL="text-ui text-muted";var STAT_VALUE="text-h3 font-extrabold leading-none whitespace-nowrap";var STAT_HINT="text-micro text-muted2";var COACH_MARK="size-7 rounded-full shrink-0 flex items-center justify-center text-brand cursor-pointer transition-colors hover:bg-soft hover:text-brand-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand";var COACH_MARK_STAT="ms-auto -me-1 -mt-1";var CARD_HEAD="flex items-start justify-between gap-4";var CARD_HEAD_TEXT="flex flex-col gap-1 min-w-0";var CARD_TITLE="text-lead font-extrabold text-ink m-0";var CARD_DESC="text-ui text-muted m-0";var CARD_HEAD_ACTIONS="shrink-0 flex items-center gap-1.5";var PAGE_HEAD="flex items-start justify-between gap-3.5 flex-wrap";var PAGE_HEAD_TEXT="flex flex-col gap-1 min-w-0";var PAGE_TITLE="text-h3 font-black text-ink m-0";var PAGE_HINT="text-ui text-muted m-0";var PAGE_ACTIONS="flex items-center gap-2.5 shrink-0 flex-wrap";var PROGRESS_WRAP="flex flex-col gap-1.5";var PROGRESS_LABEL_ROW="flex items-center justify-between gap-3 text-caption";var PROGRESS_TRACK="h-1.5 rounded-full bg-hover";var PROGRESS_BAR="h-full rounded-full transition-[width] duration-500";var PROGRESS_FILL={neutral:"bg-muted2",brand:"bg-brand",amber:"bg-amber",green:"bg-green-solid",red:"bg-danger",violet:"bg-violet-solid"};var SKELETON_BASE="bg-skeleton animate-skeleton";var SKELETON_VARIANT={text:"h-3.5 rounded-xs w-full",block:"h-20 rounded-field w-full",circle:"size-10 rounded-full"};import{jsx as jsx11,jsxs as jsxs9}from"react/jsx-runtime";function Badge({children,tone="neutral",variant="soft",size="md",dot,icon,className}){const classes=cn(BADGE_BASE,BADGE_SIZE[size],variant==="solid"?TONE_SOLID[tone]:TONE_SOFT[tone],className);const{box,text}=splitTypography(classes);const dotColor=useTextColor(text);return jsxs9(View,{className:box,children:[dot&&jsx11(View,{className:BADGE_DOT,style:{backgroundColor:dotColor}}),icon,typeof children==="string"||typeof children==="number"?jsx11(Text,{className:text,children}):children]})}function Counter({value,max=99}){if(value<=0)return null;const{box,text}=splitTypography(COUNTER);return jsx11(View,{className:box,children:jsx11(Text,{className:text,style:{writingDirection:"ltr"},children:value>max?`${max}+`:value})})}function Avatar({name,src,size="md",square,className}){const shape=square?AVATAR_SQUARE:AVATAR_ROUND;if(src){return jsx11(Image,{source:{uri:src},className:cn(AVATAR_IMG,shape,AVATAR_SIZES[size],className),...a11y({"aria-label":name},"image")})}const{box,text}=splitTypography(cn(AVATAR_FALLBACK,shape,AVATAR_SIZES[size],className));return jsx11(View,{className:box,...a11y({"aria-label":name},"image"),children:jsx11(Text,{className:text,children:initials(name)})})}function CoachMark({label,title,onPress,extra}){const{box,text}=splitTypography(cn(extra,COACH_MARK));const color=useTextColor(text);return jsx11(Pressable,{onPress,className:box,accessibilityHint:title,...a11y({"aria-label":label},"button"),children:jsx11(icons_native_exports.Info,{size:15,strokeWidth:2,color})})}function StatCard({icon:Icon,tone="brand",label,value,hint,coachId,className}){const ui=useUIText();const coach=useCoachOptional();const explained=Boolean(coachId&&coach);const iconColor=useTextColor(splitTypography(TONE_SOFT[tone]).text);const body=jsxs9(View,{className:cn(STAT_CARD,className),children:[jsxs9(View,{className:STAT_ROW,children:[Icon&&jsx11(View,{className:cn(STAT_ICON,splitTypography(TONE_SOFT[tone]).box),children:jsx11(Icon,{size:15,strokeWidth:2,color:iconColor})}),jsx11(Text,{className:splitTypography(STAT_LABEL).text,children:label}),explained&&jsx11(CoachMark,{extra:COACH_MARK_STAT,label:typeof label==="string"?`\u0645\u0627 \u0645\u0639\u0646\u0649 \xAB${label}\xBB\u061F`:"\u0645\u0627 \u0645\u0639\u0646\u0649 \u0647\u0630\u0627 \u0627\u0644\u0631\u0642\u0645\u061F",title:ui.whatIsThisNumber,onPress:()=>coach.replay(coachId)})]}),jsx11(Text,{className:splitTypography(STAT_VALUE).text,style:{writingDirection:"ltr"},children:value}),hint&&jsx11(Text,{className:splitTypography(STAT_HINT).text,children:hint})]});return explained?jsx11(Coach,{id:coachId,children:body}):body}function Card({children,padded=true,className}){return jsx11(View,{className:cn(CARD2,padded&&CARD_PADDED,className),style:padded?void 0:{overflow:"hidden"},children})}function CardHeader({title,description,action,coachId}){const ui=useUIText();const coach=useCoachOptional();const explained=Boolean(coachId&&coach);const head=jsxs9(View,{className:CARD_HEAD,children:[jsxs9(View,{className:CARD_HEAD_TEXT,children:[jsx11(Text,{className:splitTypography(CARD_TITLE).text,...a11y({},"header"),children:title}),description&&jsx11(Text,{className:splitTypography(CARD_DESC).text,children:description})]}),(action||explained)&&jsxs9(View,{className:CARD_HEAD_ACTIONS,children:[action,explained&&jsx11(CoachMark,{label:typeof title==="string"?`\u0645\u0627 \u0645\u0639\u0646\u0649 \xAB${title}\xBB\u061F`:"\u0645\u0627 \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645\u061F",title:ui.explainToMe,onPress:()=>coach.replay(coachId)})]})]});return explained?jsx11(Coach,{id:coachId,children:head}):head}function PageHeader({title,hint,actions}){return jsxs9(View,{className:PAGE_HEAD,children:[jsxs9(View,{className:PAGE_HEAD_TEXT,children:[jsx11(Text,{className:splitTypography(PAGE_TITLE).text,...a11y({},"header"),children:title}),hint&&jsx11(Text,{className:splitTypography(PAGE_HINT).text,children:hint})]}),actions&&jsx11(View,{className:PAGE_ACTIONS,children:actions})]})}function Progress({value,max=100,label,tone="brand",className}){const safe=Math.min(max,Math.max(0,value));const pct=safe/max*100;return jsxs9(View,{className:cn(PROGRESS_WRAP,className),children:[label&&jsxs9(View,{className:splitTypography(PROGRESS_LABEL_ROW).box,children:[jsx11(Text,{className:"text-caption text-ink2",children:label}),jsxs9(Text,{className:"text-caption text-muted font-bold",style:{writingDirection:"ltr"},children:[Math.round(pct),"%"]})]}),jsx11(View,{className:PROGRESS_TRACK,style:{overflow:"hidden"},...a11y({"aria-valuenow":safe,"aria-valuemin":0,"aria-valuemax":max},"progressbar"),children:jsx11(View,{className:cn(PROGRESS_BAR,PROGRESS_FILL[tone]),style:{width:`${pct}%`}})})]})}var SKELETON_MS=1600;var SKELETON_DIM=.7;function Skeleton({variant="text",width,className}){const[pulse]=useState4(()=>new Animated2.Value(1));useEffect2(()=>{const loop=Animated2.loop(Animated2.sequence([Animated2.timing(pulse,{toValue:SKELETON_DIM,duration:SKELETON_MS/2,easing:Easing.inOut(Easing.ease),useNativeDriver:true}),Animated2.timing(pulse,{toValue:1,duration:SKELETON_MS/2,easing:Easing.inOut(Easing.ease),useNativeDriver:true})]));loop.start();return()=>loop.stop()},[pulse]);return jsx11(AnimatedView,{className:cn(SKELETON_BASE.replace("animate-skeleton",""),SKELETON_VARIANT[variant],className),style:[{opacity:pulse},width?{width}:null],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"})}import{Modal as RNModal}from"react-native";var variants_exports11={};__export(variants_exports11,{ALERT:()=>ALERT,ALERT_ACTIONS:()=>ALERT_ACTIONS,ALERT_BODY:()=>ALERT_BODY,ALERT_BORDER:()=>ALERT_BORDER,ALERT_TEXT:()=>ALERT_TEXT,ALERT_TITLE:()=>ALERT_TITLE,CLOSE_BTN:()=>CLOSE_BTN,DRAWER:()=>DRAWER,DRAWER_BODY:()=>DRAWER_BODY,DRAWER_BODY_PAD:()=>DRAWER_BODY_PAD,DRAWER_DESC:()=>DRAWER_DESC,DRAWER_FOOT:()=>DRAWER_FOOT,DRAWER_HEAD:()=>DRAWER_HEAD,DRAWER_HEAD_TEXT:()=>DRAWER_HEAD_TEXT,DRAWER_LAYER_WEB:()=>DRAWER_LAYER_WEB,DRAWER_TITLE:()=>DRAWER_TITLE,EMPTY:()=>EMPTY,EMPTY_ACTION:()=>EMPTY_ACTION,EMPTY_DESC:()=>EMPTY_DESC,EMPTY_ICON:()=>EMPTY_ICON,EMPTY_TITLE:()=>EMPTY_TITLE,MODAL:()=>MODAL,MODAL_BODY:()=>MODAL_BODY,MODAL_DESC:()=>MODAL_DESC,MODAL_FOOT:()=>MODAL_FOOT,MODAL_HEAD:()=>MODAL_HEAD,MODAL_HEAD_TEXT:()=>MODAL_HEAD_TEXT,MODAL_LAYER_WEB:()=>MODAL_LAYER_WEB,MODAL_SCRIM:()=>MODAL_SCRIM,MODAL_SCRIM_WEB:()=>MODAL_SCRIM_WEB,MODAL_TITLE:()=>MODAL_TITLE,MODAL_WIDTHS:()=>MODAL_WIDTHS,SCRIM:()=>SCRIM,SCRIM_FILL:()=>SCRIM_FILL,SCRIM_WEB:()=>SCRIM_WEB,SHEET:()=>SHEET,SHEET_BODY:()=>SHEET_BODY,SHEET_CLOSE:()=>SHEET_CLOSE,SHEET_GRIP:()=>SHEET_GRIP,SHEET_GRIP_ROW:()=>SHEET_GRIP_ROW,SHEET_HEAD:()=>SHEET_HEAD,SHEET_HEAD_ACTIONS:()=>SHEET_HEAD_ACTIONS,SHEET_LAYER_WEB:()=>SHEET_LAYER_WEB,SHEET_TITLE:()=>SHEET_TITLE,SHEET_WEB:()=>SHEET_WEB,TOAST:()=>TOAST,TOAST_ICON:()=>TOAST_ICON,TOAST_TEXT:()=>TOAST_TEXT,TOAST_WEB:()=>TOAST_WEB,isUrgent:()=>isUrgent});var SHEET_LAYER_WEB="fixed inset-0 z-50 flex flex-col justify-end";var SCRIM="bg-black/50";var SCRIM_WEB="flex-1 backdrop-blur-[3px] cursor-default animate-[fade-in_0.2s_ease-out]";var SCRIM_FILL="flex-1";var SHEET="bg-surface rounded-t-section max-h-[82dvh] flex flex-col shadow-sheet";var SHEET_WEB="overflow-clip animate-[sheet-up_0.26s_cubic-bezier(.22,.61,.36,1)]";var SHEET_GRIP_ROW="shrink-0 pt-3 pb-1.5 flex justify-center";var SHEET_GRIP="h-1.5 w-11 rounded-full bg-border";var SHEET_HEAD="shrink-0 flex items-center justify-between gap-3 px-5 pb-3";var SHEET_TITLE="text-h4 font-black tracking-tight";var SHEET_HEAD_ACTIONS="flex items-center gap-3";var SHEET_CLOSE="size-9 rounded-full bg-bg flex items-center justify-center text-muted active:bg-hover active:scale-95 transition-transform cursor-pointer";var SHEET_BODY="flex-1 min-h-0 px-3 pb-4 flex flex-col";var MODAL_LAYER_WEB="fixed inset-0 z-50 flex items-center justify-center p-4";var MODAL_SCRIM="bg-black/45";var MODAL_SCRIM_WEB="absolute inset-0 backdrop-blur-[2px] cursor-default";var MODAL="relative w-full bg-surface rounded-lg border border-line flex flex-col max-h-[85dvh] shadow-modal";var MODAL_WIDTHS={sm:"max-w-md",md:"max-w-xl",lg:"max-w-3xl"};var MODAL_HEAD="shrink-0 flex items-start justify-between gap-4 p-5 border-b border-line";var MODAL_HEAD_TEXT="flex flex-col gap-1 min-w-0";var MODAL_TITLE="text-h4 font-extrabold text-ink m-0";var MODAL_DESC="text-ui text-muted m-0";var MODAL_BODY="flex-1 min-h-0 p-5";var MODAL_FOOT="shrink-0 flex items-center justify-end gap-2.5 p-5 border-t border-line";var CLOSE_BTN="shrink-0 size-8 rounded-sm flex items-center justify-center text-muted hover:bg-hover hover:text-ink transition-colors cursor-pointer";var DRAWER_LAYER_WEB="fixed inset-0 z-50 flex";var DRAWER="w-full sm:w-[420px] bg-surface border-s border-line flex flex-col";var DRAWER_HEAD="shrink-0 h-16 px-4 border-b border-line flex items-center justify-between gap-3";var DRAWER_HEAD_TEXT="flex flex-col gap-0.5 min-w-0";var DRAWER_TITLE="text-lead font-extrabold truncate";var DRAWER_DESC="text-caption text-muted truncate";var DRAWER_BODY="flex-1 min-h-0";var DRAWER_BODY_PAD="p-4";var DRAWER_FOOT="shrink-0 p-4 border-t border-line flex gap-2.5";var ALERT_BORDER={neutral:"border-line",brand:"border-soft2",amber:"border-amber-line",green:"border-green-line",red:"border-red-line",violet:"border-violet-line"};var ALERT="flex items-start gap-3 p-4 rounded-card border";var ALERT_BODY="flex flex-col gap-1.5 flex-1 min-w-0";var ALERT_TITLE="text-body font-extrabold";var ALERT_TEXT="text-ui leading-[1.7] opacity-90";var ALERT_ACTIONS="flex items-center gap-2 mt-1";var isUrgent=tone=>tone==="red"||tone==="amber";var TOAST="flex items-center gap-3 px-4 py-3.5 rounded-card bg-brand-900 shadow-toast";var TOAST_WEB="animate-[fade-in_0.18s_ease-out]";var TOAST_ICON="text-brand-100 shrink-0";var TOAST_TEXT="text-body font-bold text-white flex-1";var EMPTY="flex flex-col items-center justify-center gap-2.5 py-12 px-5 text-center";var EMPTY_ICON="size-12 rounded-card bg-hover flex items-center justify-center text-muted mb-1";var EMPTY_TITLE="text-lead font-extrabold text-ink";var EMPTY_DESC="text-ui leading-[1.75] text-muted max-w-note";var EMPTY_ACTION="mt-1";import{jsx as jsx12,jsxs as jsxs10}from"react/jsx-runtime";var nameOf=node=>typeof node==="string"?node:void 0;function Sheet({open,title,onClose,action,children,closeLabel}){const ui=useUIText();const closeColor=useTextColor(splitTypography(SHEET_CLOSE).text);return jsx12(RNModal,{visible:open,transparent:true,animationType:"slide",onRequestClose:onClose,...a11y({"aria-label":title}),children:jsxs10(View,{className:"flex-1 justify-end",children:[jsx12(Pressable,{className:cn(SCRIM_FILL,SCRIM),onPress:onClose,...a11y({"aria-label":closeLabel??ui.close},"button")}),jsxs10(View,{className:splitTypography(SHEET).box,children:[jsx12(Pressable,{className:SHEET_GRIP_ROW,onPress:onClose,...a11y({"aria-label":closeLabel??ui.close},"button"),children:jsx12(View,{className:SHEET_GRIP})}),jsxs10(View,{className:SHEET_HEAD,children:[jsx12(Text,{className:splitTypography(SHEET_TITLE).text,children:title}),jsxs10(View,{className:SHEET_HEAD_ACTIONS,children:[action,jsx12(Pressable,{className:splitTypography(SHEET_CLOSE).box,onPress:onClose,...a11y({"aria-label":closeLabel??ui.close},"button"),children:jsx12(icons_native_exports.X,{size:17,strokeWidth:2.4,color:closeColor})})]})]}),jsx12(ScrollView,{className:SHEET_BODY,children})]})]})})}function Modal2({open,title,description,onClose,footer,children,closeLabel}){const ui=useUIText();const closeColor=useTextColor(splitTypography(CLOSE_BTN).text);return jsx12(RNModal,{visible:open,transparent:true,animationType:"fade",onRequestClose:onClose,...a11y({"aria-label":nameOf(title)}),children:jsxs10(View,{className:"flex-1 items-center justify-center p-4",children:[jsx12(Pressable,{className:cn("absolute inset-0",MODAL_SCRIM),onPress:onClose,...a11y({"aria-label":closeLabel??ui.close},"button")}),jsxs10(View,{className:splitTypography(MODAL).box,children:[jsxs10(View,{className:MODAL_HEAD,children:[jsxs10(View,{className:MODAL_HEAD_TEXT,children:[jsx12(Text,{className:splitTypography(MODAL_TITLE).text,...a11y({},"header"),children:title}),description&&jsx12(Text,{className:splitTypography(MODAL_DESC).text,children:description})]}),jsx12(Pressable,{className:splitTypography(CLOSE_BTN).box,onPress:onClose,...a11y({"aria-label":closeLabel??ui.close},"button"),children:jsx12(icons_native_exports.X,{size:17,color:closeColor})})]}),children&&jsx12(ScrollView,{className:MODAL_BODY,children}),footer&&jsx12(View,{className:MODAL_FOOT,children:footer})]})]})})}function Drawer({open,title,description,onClose,footer,children,bodyClassName,closeLabel}){const ui=useUIText();const closeColor=useTextColor(splitTypography(CLOSE_BTN).text);return jsx12(RNModal,{visible:open,transparent:true,animationType:"slide",onRequestClose:onClose,...a11y({"aria-label":nameOf(title)}),children:jsxs10(View,{className:"flex-1 flex-row",children:[jsx12(Pressable,{className:cn(SCRIM_FILL,MODAL_SCRIM),onPress:onClose,...a11y({"aria-label":closeLabel??ui.close},"button")}),jsxs10(View,{className:splitTypography(DRAWER).box,children:[jsxs10(View,{className:DRAWER_HEAD,children:[jsxs10(View,{className:DRAWER_HEAD_TEXT,children:[jsx12(Text,{className:splitTypography(DRAWER_TITLE).text,numberOfLines:1,...a11y({},"header"),children:title}),description&&jsx12(Text,{className:splitTypography(DRAWER_DESC).text,numberOfLines:1,children:description})]}),jsx12(Pressable,{className:splitTypography(CLOSE_BTN).box,onPress:onClose,...a11y({"aria-label":closeLabel??ui.close},"button"),children:jsx12(icons_native_exports.X,{size:17,color:closeColor})})]}),children&&jsx12(ScrollView,{className:cn(DRAWER_BODY,bodyClassName??DRAWER_BODY_PAD),children}),footer&&jsx12(View,{className:DRAWER_FOOT,children:footer})]})]})})}var ALERT_ICON={neutral:icons_native_exports.Info,brand:icons_native_exports.Info,amber:icons_native_exports.AlertTriangle,green:icons_native_exports.CheckCircle2,red:icons_native_exports.XCircle,violet:icons_native_exports.Info};function Alert({tone="brand",title,children,actions}){const Icon=ALERT_ICON[tone];const color=useTextColor(splitTypography(TONE_SOFT[tone]).text);return jsxs10(View,{className:cn(splitTypography(ALERT).box,splitTypography(TONE_SOFT[tone]).box,ALERT_BORDER[tone]),...a11y({"aria-live":isUrgent(tone)?"assertive":"polite"},isUrgent(tone)?"alert":"none"),children:[jsx12(Icon,{size:18,strokeWidth:2,color}),jsxs10(View,{className:ALERT_BODY,children:[title&&jsx12(Text,{className:cn(splitTypography(ALERT_TITLE).text,splitTypography(TONE_SOFT[tone]).text),children:title}),children&&jsx12(Text,{className:cn(splitTypography(ALERT_TEXT).text,splitTypography(TONE_SOFT[tone]).text),children}),actions&&jsx12(View,{className:ALERT_ACTIONS,children:actions})]})]})}function Toast({children,action,icon}){const iconColor=useTextColor(splitTypography(TOAST_ICON).text);return jsxs10(View,{className:splitTypography(TOAST).box,...a11y({"aria-live":"polite"},"alert"),children:[icon??jsx12(icons_native_exports.CheckCircle2,{size:17,color:iconColor}),jsx12(Text,{className:splitTypography(TOAST_TEXT).text,children}),action]})}function EmptyState({icon:Icon,title,description,action}){const iconColor=useTextColor(splitTypography(EMPTY_ICON).text);return jsxs10(View,{className:splitTypography(EMPTY).box,children:[Icon&&jsx12(View,{className:splitTypography(EMPTY_ICON).box,children:jsx12(Icon,{size:21,color:iconColor})}),jsx12(Text,{className:splitTypography(EMPTY_TITLE).text,children:title}),description&&jsx12(Text,{className:splitTypography(EMPTY_DESC).text,children:description}),action&&jsx12(View,{className:EMPTY_ACTION,children:action})]})}import{cloneElement as cloneElement3,isValidElement as isValidElement3,useCallback,useRef as useRef2,useState as useState5}from"react";import{ActivityIndicator as ActivityIndicator2,Modal as Modal3}from"react-native";var variants_exports12={};__export(variants_exports12,{HOST_NATIVE:()=>HOST_NATIVE,HOST_WEB:()=>HOST_WEB,TIP:()=>TIP,TIP_EDGE:()=>TIP_EDGE,TIP_GAP:()=>TIP_GAP,TOAST_ACCENT:()=>TOAST_ACCENT,TOAST_ACTION:()=>TOAST_ACTION,TOAST_ACTION_WEB:()=>TOAST_ACTION_WEB,TOAST_BODY:()=>TOAST_BODY,TOAST_CLOSE:()=>TOAST_CLOSE,TOAST_DESC:()=>TOAST_DESC,TOAST_MARK:()=>TOAST_MARK,TOAST_MAX:()=>TOAST_MAX,TOAST_MS:()=>TOAST_MS,TOAST_ROW:()=>TOAST_ROW,TOAST_ROW_WEB:()=>TOAST_ROW_WEB,TOAST_TITLE:()=>TOAST_TITLE,isLoudToast:()=>isLoudToast});var TOAST_MS={plain:3800,withAction:6500};var TOAST_MAX=4;var TOAST_ACCENT={neutral:"text-muted2",brand:"text-brand-100",green:"text-mint",amber:"text-amber",red:"text-red-100"};var HOST_WEB="fixed z-[60] bottom-4 inset-x-4 sm:inset-x-auto sm:start-5 sm:w-[360px] flex flex-col gap-2 pointer-events-none";var HOST_NATIVE="absolute bottom-4 inset-x-4 flex flex-col gap-2";var TOAST_ROW="flex items-start gap-3 p-3.5 rounded-card bg-night shadow-toast";var TOAST_ROW_WEB="pointer-events-auto animate-[toast-in_.22s_cubic-bezier(.22,.61,.36,1)]";var TOAST_MARK="shrink-0 mt-0.5";var TOAST_BODY="flex-1 min-w-0 flex flex-col gap-0.5";var TOAST_TITLE="text-ui font-bold leading-snug text-white";var TOAST_DESC="text-caption leading-[1.6] text-white/65";var TOAST_ACTION="shrink-0 text-ui font-extrabold text-mint cursor-pointer";var TOAST_ACTION_WEB="hover:underline underline-offset-4";var TOAST_CLOSE="shrink-0 text-white/40 hover:text-white cursor-pointer transition-colors";var isLoudToast=tone=>tone==="red";var TIP="w-max max-w-[220px] px-2.5 py-1.5 rounded-xs bg-night text-white text-caption leading-[1.6] text-center shadow-tip";var TIP_GAP=8;var TIP_EDGE=8;import{Fragment,jsx as jsx13,jsxs as jsxs11}from"react/jsx-runtime";function useToasts(){const[toasts,setToasts]=useState5([]);const seq=useRef2(0);const timers=useRef2(new Map);const dismiss=useCallback(id=>{const t=timers.current.get(id);if(t)clearTimeout(t);timers.current.delete(id);setToasts(prev=>prev.filter(x=>x.id!==id))},[]);const push=useCallback(input=>{const id=++seq.current;const duration=input.duration??(input.actionLabel?TOAST_MS.withAction:TOAST_MS.plain);setToasts(prev=>[...prev.slice(-(TOAST_MAX-1)),{...input,id}]);if(duration>0&&!input.pending){timers.current.set(id,setTimeout(()=>dismiss(id),duration))}return id},[dismiss]);const update=useCallback((id,patch)=>{setToasts(prev=>prev.map(t=>t.id===id?{...t,...patch}:t))},[]);const clear=useCallback(()=>{timers.current.forEach(clearTimeout);timers.current.clear();setToasts([])},[]);return{toasts,push,dismiss,update,clear}}var TOAST_ICON2={neutral:icons_native_exports.Info,brand:icons_native_exports.Info,green:icons_native_exports.CheckCircle2,amber:icons_native_exports.AlertTriangle,red:icons_native_exports.XCircle};function ToastHost({toasts,onDismiss,closeLabel}){const ui=useUIText();const closeColor=useTextColor(splitTypography(TOAST_CLOSE).text);if(toasts.length===0)return null;return jsx13(View,{className:HOST_NATIVE,...a11y({"aria-label":ui.alerts},"none"),pointerEvents:"box-none",children:toasts.map(t=>jsx13(ToastRow,{item:t,onDismiss,closeLabel:closeLabel??ui.close,closeColor},t.id))})}function ToastRow({item,onDismiss,closeLabel,closeColor}){const Icon=TOAST_ICON2[item.tone];const accent=useTextColor(TOAST_ACCENT[item.tone]);return jsxs11(View,{className:splitTypography(TOAST_ROW).box,...a11y({"aria-live":isLoudToast(item.tone)?"assertive":"polite"},isLoudToast(item.tone)?"alert":"none"),children:[jsx13(View,{className:TOAST_MARK,children:item.pending?jsx13(ActivityIndicator2,{size:"small",color:accent}):jsx13(Icon,{size:17,color:accent})}),jsxs11(View,{className:TOAST_BODY,children:[jsx13(Text,{className:splitTypography(TOAST_TITLE).text,children:item.title}),item.description&&jsx13(Text,{className:splitTypography(TOAST_DESC).text,children:item.description})]}),item.actionLabel&&jsx13(Pressable,{onPress:()=>{item.onAction?.();onDismiss(item.id)},...a11y({"aria-label":item.actionLabel},"button"),children:jsx13(Text,{className:splitTypography(TOAST_ACTION).text,children:item.actionLabel})}),jsx13(Pressable,{onPress:()=>onDismiss(item.id),className:splitTypography(TOAST_CLOSE).box,...a11y({"aria-label":closeLabel},"button"),children:jsx13(icons_native_exports.X,{size:15,color:closeColor})})]})}function Tooltip({content,children}){const[open,setOpen]=useState5(false);if(!isValidElement3(children))return children;const trigger=cloneElement3(children,{onLongPress:()=>setOpen(true),accessibilityHint:typeof content==="string"?content:void 0});return jsxs11(Fragment,{children:[trigger,jsx13(Modal3,{visible:open,transparent:true,animationType:"fade",onRequestClose:()=>setOpen(false),children:jsx13(Pressable,{className:"flex-1 items-center justify-center",onPress:()=>setOpen(false),...a11y({"aria-label":"\u0625\u063A\u0644\u0627\u0642"},"button"),children:jsx13(View,{className:splitTypography(TIP).box,children:jsx13(Text,{className:splitTypography(TIP).text,children:content})})})})]})}import{createContext as createContext3,useContext as useContext3}from"react";import Svg4,{Path as Path4}from"react-native-svg";var variants_exports13={};__export(variants_exports13,{CURRENCY:()=>CURRENCY,GLYPHS:()=>GLYPHS,GLYPH_STROKE:()=>GLYPH_STROKE,GLYPH_WEB:()=>GLYPH_WEB,ROW:()=>ROW2,SIZE:()=>SIZE2,TONE:()=>TONE,UNIT:()=>UNIT2,UNIT_TEXT:()=>UNIT_TEXT,WAS:()=>WAS,format:()=>format,isCurrency:()=>isCurrency,resolve:()=>resolve,unitOf:()=>unitOf});var GLYPHS={dollar:{label:"\u062F\u0648\u0644\u0627\u0631",w:24,paths:["M12 2.5v19","M16.5 7c0-1.9-2-3.2-4.5-3.2S7.5 5.1 7.5 7s2 2.8 4.5 3.4 4.5 1.5 4.5 3.4-2 3.2-4.5 3.2S7.5 15.7 7.5 13.8"]},euro:{label:"\u064A\u0648\u0631\u0648",w:24,paths:["M17.5 6.4A7 7 0 1 0 17.5 17.6","M3.5 10h10","M3.5 14h10"]},pound:{label:"\u062C\u0646\u064A\u0647",w:24,paths:["M16 6.2A3.7 3.7 0 0 0 9 7.8v6.4a5 5 0 0 1-2 4h11","M6 12h7"]},egp:{label:"\u062C\u0646\u064A\u0647 \u0645\u0635\u0631\u064A",w:31,paths:["M10.5 6H3.5v12h7","M3.5 12h5.5","M26.5 6.2A3.7 3.7 0 0 0 19.5 7.8v6.4a5 5 0 0 1-2 4h11","M16.5 12h7"]},riyal:{label:"\u0631\u064A\u0627\u0644 \u0633\u0639\u0648\u062F\u064A",w:24,fill:true,paths:["M13.89 3.36L13.89 18.83L21.99 17.11C22.37 16.22 22.62 15.31 22.75 14.36L16.43 15.69L16.43 1.24C15.38 1.82 14.53 2.53 13.89 3.36M2.46 16.08L21.99 11.97C22.37 11.04 22.62 10.12 22.75 9.19L3.19 13.33C2.77 14.24 2.52 15.15 2.46 16.08M13.89 24.0L21.99 22.28C22.37 21.37 22.62 20.45 22.75 19.53L14.58 21.25C14.4 21.65 14.25 22.09 14.13 22.55C14.01 23.01 13.93 23.5 13.89 24.0M1.25 22.22L8.42 20.64C8.98 20.52 9.45 20.21 9.81 19.71L11.14 17.77C11.2 17.67 11.25 17.56 11.29 17.44C11.33 17.32 11.35 17.2 11.35 17.08L11.35 0.0C10.38 0.56 9.54 1.27 8.81 2.12L8.81 18.02L1.98 19.47C1.54 20.47 1.29 21.39 1.25 22.22"]}};var GLYPH_STROKE=2.1;var CURRENCY={SAR:{short:"\u0631.\u0633",word:"\u0631\u064A\u0627\u0644",best:"sign",code:"SAR",sign:"riyal",name:"\u0631\u064A\u0627\u0644 \u0633\u0639\u0648\u062F\u064A",en:"Saudi riyals",decimals:2},AED:{short:"\u062F.\u0625",word:"\u062F\u0631\u0647\u0645",best:"word",code:"AED",sign:null,name:"\u062F\u0631\u0647\u0645 \u0625\u0645\u0627\u0631\u0627\u062A\u064A",en:"UAE dirhams",decimals:2},QAR:{short:"\u0631.\u0642",word:"\u0631\u064A\u0627\u0644",best:"word",code:"QAR",sign:null,name:"\u0631\u064A\u0627\u0644 \u0642\u0637\u0631\u064A",en:"Qatari riyals",decimals:2},KWD:{short:"\u062F.\u0643",word:"\u062F\u064A\u0646\u0627\u0631",best:"word",code:"KWD",sign:null,name:"\u062F\u064A\u0646\u0627\u0631 \u0643\u0648\u064A\u062A\u064A",en:"Kuwaiti dinars",decimals:3},BHD:{short:"\u062F.\u0628",word:"\u062F\u064A\u0646\u0627\u0631",best:"word",code:"BHD",sign:null,name:"\u062F\u064A\u0646\u0627\u0631 \u0628\u062D\u0631\u064A\u0646\u064A",en:"Bahraini dinars",decimals:3},OMR:{short:"\u0631.\u0639",word:"\u0631\u064A\u0627\u0644",best:"word",code:"OMR",sign:null,name:"\u0631\u064A\u0627\u0644 \u0639\u0645\u0627\u0646\u064A",en:"Omani riyals",decimals:3},EGP:{short:"\u062C.\u0645",word:"\u062C\u0646\u064A\u0647",best:"word",code:"EGP",sign:"egp",name:"\u062C\u0646\u064A\u0647 \u0645\u0635\u0631\u064A",en:"Egyptian pounds",decimals:2},JOD:{short:"\u062F.\u0623",word:"\u062F\u064A\u0646\u0627\u0631",best:"word",code:"JOD",sign:null,name:"\u062F\u064A\u0646\u0627\u0631 \u0623\u0631\u062F\u0646\u064A",en:"Jordanian dinars",decimals:3},IQD:{short:"\u062F.\u0639",word:"\u062F\u064A\u0646\u0627\u0631",best:"word",code:"IQD",sign:null,name:"\u062F\u064A\u0646\u0627\u0631 \u0639\u0631\u0627\u0642\u064A",en:"Iraqi dinars",decimals:3},LBP:{short:"\u0644.\u0644",word:"\u0644\u064A\u0631\u0629",best:"word",code:"LBP",sign:null,name:"\u0644\u064A\u0631\u0629 \u0644\u0628\u0646\u0627\u0646\u064A\u0629",en:"Lebanese pounds",decimals:2},SYP:{short:"\u0644.\u0633",word:"\u0644\u064A\u0631\u0629",best:"word",code:"SYP",sign:null,name:"\u0644\u064A\u0631\u0629 \u0633\u0648\u0631\u064A\u0629",en:"Syrian pounds",decimals:2},YER:{short:"\u0631.\u064A",word:"\u0631\u064A\u0627\u0644",best:"word",code:"YER",sign:null,name:"\u0631\u064A\u0627\u0644 \u064A\u0645\u0646\u064A",en:"Yemeni rials",decimals:2},SDG:{short:"\u062C.\u0633",word:"\u062C\u0646\u064A\u0647",best:"word",code:"SDG",sign:null,name:"\u062C\u0646\u064A\u0647 \u0633\u0648\u062F\u0627\u0646\u064A",en:"Sudanese pounds",decimals:2},MAD:{short:"\u062F.\u0645",word:"\u062F\u0631\u0647\u0645",best:"word",code:"MAD",sign:null,name:"\u062F\u0631\u0647\u0645 \u0645\u063A\u0631\u0628\u064A",en:"Moroccan dirhams",decimals:2},DZD:{short:"\u062F.\u062C",word:"\u062F\u064A\u0646\u0627\u0631",best:"word",code:"DZD",sign:null,name:"\u062F\u064A\u0646\u0627\u0631 \u062C\u0632\u0627\u0626\u0631\u064A",en:"Algerian dinars",decimals:2},TND:{short:"\u062F.\u062A",word:"\u062F\u064A\u0646\u0627\u0631",best:"word",code:"TND",sign:null,name:"\u062F\u064A\u0646\u0627\u0631 \u062A\u0648\u0646\u0633\u064A",en:"Tunisian dinars",decimals:3},LYD:{short:"\u062F.\u0644",word:"\u062F\u064A\u0646\u0627\u0631",best:"word",code:"LYD",sign:null,name:"\u062F\u064A\u0646\u0627\u0631 \u0644\u064A\u0628\u064A",en:"Libyan dinars",decimals:3},MRU:{short:"\u0623.\u0645",word:"\u0623\u0648\u0642\u064A\u0629",best:"word",code:"MRU",sign:null,name:"\u0623\u0648\u0642\u064A\u0629 \u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629",en:"Mauritanian ouguiya",decimals:2},SOS:{short:"\u0634.\u0635",word:"\u0634\u0644\u0646",best:"word",code:"SOS",sign:null,name:"\u0634\u0644\u0646 \u0635\u0648\u0645\u0627\u0644\u064A",en:"Somali shillings",decimals:0},DJF:{short:"\u0641.\u062C",word:"\u0641\u0631\u0646\u0643",best:"word",code:"DJF",sign:null,name:"\u0641\u0631\u0646\u0643 \u062C\u064A\u0628\u0648\u062A\u064A",en:"Djiboutian francs",decimals:0},KMF:{short:"\u0641.\u0642",word:"\u0641\u0631\u0646\u0643",best:"word",code:"KMF",sign:null,name:"\u0641\u0631\u0646\u0643 \u0642\u0645\u0631\u064A",en:"Comorian francs",decimals:0},USD:{short:"$",word:"\u062F\u0648\u0644\u0627\u0631",best:"sign",code:"USD",sign:"dollar",name:"\u062F\u0648\u0644\u0627\u0631 \u0623\u0645\u0631\u064A\u0643\u064A",en:"US dollars",decimals:2},EUR:{short:"\u20AC",word:"\u064A\u0648\u0631\u0648",best:"sign",code:"EUR",sign:"euro",name:"\u064A\u0648\u0631\u0648",en:"euros",decimals:2},GBP:{short:"\xA3",word:"\u0625\u0633\u062A\u0631\u0644\u064A\u0646\u064A",best:"sign",code:"GBP",sign:"pound",name:"\u062C\u0646\u064A\u0647 \u0625\u0633\u062A\u0631\u0644\u064A\u0646\u064A",en:"pounds sterling",decimals:2}};function isCurrency(c){return Boolean(c&&c in CURRENCY)}function resolve(style,c,locale){if(style!=="best")return style;if(locale.startsWith("ar"))return c.best;return c.sign?"sign":"code"}function format(v,decimals,locale,{signed,compact,trimZeros}){const whole=trimZeros&&Number.isInteger(v);const nf=new Intl.NumberFormat(locale,compact?{notation:"compact",minimumFractionDigits:0,maximumFractionDigits:1}:{minimumFractionDigits:whole?0:decimals,maximumFractionDigits:whole?0:decimals});const sign=v<0?"\u2212":signed&&v>0?"+":"";return sign+nf.format(Math.abs(v))}function unitOf(c,style){return style==="code"?c.code:style==="word"?c.word:style==="sign"?c.sign:c.short}var UNIT2={short:"text-[0.82em]",word:"text-[0.86em] font-normal tracking-wide",code:"text-[0.78em] font-bold tracking-wide",sign:"text-[0.9em]"};var SIZE2={inherit:"",sm:"text-caption",md:"text-ui",lg:"text-body font-extrabold",xl:"text-h2 font-black"};var TONE={inherit:"",muted:"text-muted",ink:"text-ink",green:"text-green",red:"text-red"};var ROW2="inline-flex items-baseline gap-1 whitespace-nowrap";var UNIT_TEXT="opacity-65";var WAS="text-[0.82em] text-muted2 line-through decoration-1";var GLYPH_WEB="inline-block shrink-0 translate-y-[0.1em]";import{jsx as jsx14,jsxs as jsxs12}from"react/jsx-runtime";var CurrencyCtx=createContext3("EGP");function MoneyProvider({currency="EGP",locale,children}){return jsx14(LocaleCtx.Provider,{value:locale??null,children:jsx14(CurrencyCtx.Provider,{value:currency,children})})}function useCurrency(){return useContext3(CurrencyCtx)}function GlyphMark({glyph,size=14,color}){const g=GLYPHS[glyph];return jsx14(Svg4,{viewBox:`0 0 ${g.w} 24`,width:size*g.w/24,height:size,children:g.paths.map(d=>jsx14(Path4,{d,fill:g.fill?color:"none",stroke:g.fill?void 0:color,strokeWidth:g.fill?void 0:GLYPH_STROKE,strokeLinecap:"round",strokeLinejoin:"round"},d))})}function Money({value,currency,size="md",tone="inherit",signed,compact,trimZeros,was,symbol,hideSymbol,className}){const locale=useMoneyLocale();const isEn=locale.startsWith("en");const store=useCurrency();const c=CURRENCY[currency??store];const style=resolve(symbol??"best",c,locale);const classes=cn(ROW2,SIZE2[size],TONE[tone],className);const{box,text}=splitTypography(classes);const glyphColor=useTextColor(text);const amount=format(value,c.decimals,locale,{signed,compact,trimZeros});const spoken=locale.startsWith("ar")?c.name:isEn?c.en:c.code;return jsx14(TextScale,{className:text,children:jsxs12(View,{className:box,accessible:true,accessibilityLabel:hideSymbol?amount:`${amount} ${spoken}`,children:[jsx14(Text,{className:text,style:{writingDirection:"ltr"},children:amount}),!hideSymbol&&(style==="sign"&&c.sign?jsx14(GlyphMark,{glyph:c.sign,color:glyphColor}):jsx14(Text,{className:cn(text,splitTypography(cn(UNIT_TEXT,UNIT2[style])).text),children:unitOf(c,style==="sign"?"short":style)})),was!==void 0&&was!==value&&jsx14(Text,{className:splitTypography(WAS).text,style:{writingDirection:"ltr"},children:format(was,c.decimals,locale,{compact,trimZeros})})]})})}function currencySymbol(c="EGP",style="best",locale="ar"){const cur=CURRENCY[c];const s=resolve(style,cur,locale);if(s==="code")return cur.code;if(s==="word")return cur.word;if(s==="sign")return cur.sign?jsx14(GlyphMark,{glyph:cur.sign}):cur.short;return cur.short}var currencyName=(c="EGP")=>CURRENCY[c].name;function useCurrencySymbol(c,style){const locale=useMoneyLocale();const store=useCurrency();return currencySymbol(c??store,style,locale)}import{forwardRef as forwardRef4}from"react";var variants_exports14={};__export(variants_exports14,{ALIGN_WEB:()=>ALIGN_WEB,COLOR_BOX_WRAP:()=>COLOR_BOX_WRAP,COLOR_LABEL:()=>COLOR_LABEL,COLOR_NOTE:()=>COLOR_NOTE,COLOR_ROW:()=>COLOR_ROW,COLOR_SWATCH:()=>COLOR_SWATCH,COLOR_WRAP:()=>COLOR_WRAP,ISOLATE_WEB:()=>ISOLATE_WEB,LEAD:()=>LEAD,MONO:()=>MONO,TEXT_INLINE:()=>TEXT_INLINE,normalizeHex:()=>normalizeHex});var LEAD={hex:"#",url:"/"};function normalizeHex(input){const raw=input.trim().replace(/^#/,"");if(/^[0-9a-fA-F]{3}$/.test(raw)){return`#${raw.split("").map(c=>c+c).join("").toUpperCase()}`}if(/^[0-9a-fA-F]{6}$/.test(raw))return`#${raw.toUpperCase()}`;return null}var MONO="font-mono tracking-[.01em]";var ISOLATE_WEB="[unicode-bidi:isolate]";var ALIGN_WEB="text-start [[dir=rtl]_&]:text-right";var TEXT_INLINE="inline-block";var COLOR_WRAP="flex flex-col gap-1.5 min-w-0";var COLOR_LABEL="text-ui font-bold text-ink2";var COLOR_NOTE="text-caption leading-[1.6] text-muted";var COLOR_ROW="flex items-center gap-2 min-w-0";var COLOR_BOX_WRAP="relative shrink-0 size-11";var COLOR_SWATCH="block size-11 rounded-field border border-border";import{jsx as jsx15,jsxs as jsxs13}from"react/jsx-runtime";var LTR={writingDirection:"ltr"};var TechnicalInput=forwardRef4(function TechnicalInput2({kind="code",className,...rest},ref){return jsx15(Input,{ref,autoCapitalize:"none",keyboardType:kind==="url"?"url":"default",className:cn(MONO,className),...rest})});function TechnicalText({children,className}){return jsx15(Text,{className:cn(splitTypography(cn(TEXT_INLINE,MONO,className)).text),style:LTR,children})}function ColorField({label,note,value,onChange,disabled}){const swatch=normalizeHex(value);return jsxs13(View,{className:COLOR_WRAP,children:[jsx15(Text,{className:splitTypography(COLOR_LABEL).text,children:label}),note&&jsx15(Text,{className:splitTypography(COLOR_NOTE).text,children:note}),jsxs13(View,{className:COLOR_ROW,children:[jsx15(View,{className:cn(COLOR_BOX_WRAP,COLOR_SWATCH),style:{backgroundColor:swatch??"transparent"},accessible:true,accessibilityLabel:typeof label==="string"?`${label} \u2014 ${swatch??value}`:void 0,accessibilityRole:"image"}),jsx15(TechnicalInput,{kind:"hex",hideLabel:true,label:typeof label==="string"?label:void 0,size:"md",maxLength:7,disabled,value,onChange:e=>onChange(e.target.value),onBlur:()=>{const fixed=normalizeHex(value);if(fixed&&fixed!==value)onChange(fixed);else if(!fixed&&value&&!value.startsWith(LEAD.hex))onChange(`#${value}`)},wrapperClassName:"flex-1 min-w-0"})]})]})}import{useMemo,useState as useState6}from"react";import"react-native";import Svg5,{Circle,Defs,LinearGradient,Path as Path5,Rect,Stop,Line as SvgLine}from"react-native-svg";import{scaleLinear}from"@visx/scale";import{AreaClosed,LinePath}from"@visx/shape";import{curveMonotoneX}from"@visx/curve";import{useColorScheme as useColorScheme4}from"react-native";var variants_exports15={};__export(variants_exports15,{BAR:()=>BAR,BAR_AXIS_H:()=>BAR_AXIS_H,BAR_COL:()=>BAR_COL,BAR_FILL:()=>BAR_FILL,BAR_FILL_MUTED:()=>BAR_FILL_MUTED,BAR_LABEL:()=>BAR_LABEL,BAR_LEGEND:()=>BAR_LEGEND,BAR_LEGEND_DOT:()=>BAR_LEGEND_DOT,BAR_LEGEND_ITEM:()=>BAR_LEGEND_ITEM,BAR_MIN_H:()=>BAR_MIN_H,BAR_PLOT:()=>BAR_PLOT,BAR_SLOT:()=>BAR_SLOT,BAR_WRAP:()=>BAR_WRAP,BAR_W_MULTI:()=>BAR_W_MULTI,BAR_W_SOLO:()=>BAR_W_SOLO,FUNNEL_ADVICE:()=>FUNNEL_ADVICE,FUNNEL_BAR:()=>FUNNEL_BAR,FUNNEL_BAR_IDLE:()=>FUNNEL_BAR_IDLE,FUNNEL_BAR_WORST:()=>FUNNEL_BAR_WORST,FUNNEL_BODY:()=>FUNNEL_BODY,FUNNEL_DROP:()=>FUNNEL_DROP,FUNNEL_DROP_IDLE:()=>FUNNEL_DROP_IDLE,FUNNEL_DROP_WORST:()=>FUNNEL_DROP_WORST,FUNNEL_LABEL:()=>FUNNEL_LABEL,FUNNEL_ROW:()=>FUNNEL_ROW,FUNNEL_TICK:()=>FUNNEL_TICK,FUNNEL_TICK_IDLE:()=>FUNNEL_TICK_IDLE,FUNNEL_TICK_WORST:()=>FUNNEL_TICK_WORST,FUNNEL_TRACK:()=>FUNNEL_TRACK,FUNNEL_VALUE:()=>FUNNEL_VALUE,FUNNEL_WRAP:()=>FUNNEL_WRAP,HEAT_CELL:()=>HEAT_CELL,HEAT_HEAD:()=>HEAT_HEAD,HEAT_LABEL_W:()=>HEAT_LABEL_W,HEAT_LEGEND:()=>HEAT_LEGEND,HEAT_LEGEND_SWATCH:()=>HEAT_LEGEND_SWATCH,HEAT_ROW_LABEL:()=>HEAT_ROW_LABEL,HEAT_TINT:()=>HEAT_TINT,HEAT_WRAP:()=>HEAT_WRAP,SHARE_BAR:()=>SHARE_BAR,SHARE_FILL:()=>SHARE_FILL,SHARE_HEAD:()=>SHARE_HEAD,SHARE_INLINE_LABEL:()=>SHARE_INLINE_LABEL,SHARE_INLINE_VALUE:()=>SHARE_INLINE_VALUE,SHARE_LABEL:()=>SHARE_LABEL,SHARE_LIST:()=>SHARE_LIST,SHARE_LIST_INLINE:()=>SHARE_LIST_INLINE,SHARE_LIST_STACKED:()=>SHARE_LIST_STACKED,SHARE_META:()=>SHARE_META,SHARE_PCT:()=>SHARE_PCT,SHARE_ROW_INLINE:()=>SHARE_ROW_INLINE,SHARE_ROW_STACKED:()=>SHARE_ROW_STACKED,SHARE_TRACK:()=>SHARE_TRACK,SHARE_TRACK_INLINE:()=>SHARE_TRACK_INLINE,SHARE_TRACK_STACKED:()=>SHARE_TRACK_STACKED,SHARE_VALUE:()=>SHARE_VALUE,TREND_AXIS_H:()=>TREND_AXIS_H,TREND_AXIS_ROW:()=>TREND_AXIS_ROW,TREND_BAR_RATIO:()=>TREND_BAR_RATIO,TREND_GRID_LINE:()=>TREND_GRID_LINE,TREND_GRID_TEXT:()=>TREND_GRID_TEXT,TREND_PAD_T:()=>TREND_PAD_T,TREND_TIP:()=>TREND_TIP,TREND_TIP_META:()=>TREND_TIP_META,TREND_TIP_VALUE:()=>TREND_TIP_VALUE,TREND_WRAP:()=>TREND_WRAP,clamp:()=>clamp,funnelDrops:()=>funnelDrops,heatStep:()=>heatStep});var clamp=(v,lo=0,hi=100)=>Math.min(hi,Math.max(lo,v));var BAR_WRAP="flex flex-col gap-2.5";var BAR_LEGEND="flex items-center gap-4 text-micro text-muted";var BAR_LEGEND_ITEM="flex items-center gap-1.5";var BAR_LEGEND_DOT="size-2.5 rounded-mark";var BAR_PLOT="flex items-end gap-1.5";var BAR_COL="flex-1 flex flex-col items-center justify-end gap-1.5 h-full min-w-0";var BAR_SLOT="w-full flex items-end justify-center gap-[3px]";var BAR="rounded-t-mark transition-[height] duration-300";var BAR_W_MULTI="w-1/2";var BAR_W_SOLO="w-3/5";var BAR_FILL="bg-brand";var BAR_FILL_MUTED="bg-brand-100";var BAR_LABEL="text-micro text-muted2 truncate max-w-full";var BAR_AXIS_H=26;var BAR_MIN_H=2;var TREND_PAD_T=6;var TREND_AXIS_H=24;var TREND_BAR_RATIO=.62;var TREND_WRAP="flex flex-col gap-2";var TREND_GRID_LINE="border-t border-line";var TREND_GRID_TEXT="text-micro text-muted2 bg-surface";var TREND_AXIS_ROW="flex items-center justify-between text-micro text-muted2";var TREND_TIP="rounded-sm border border-line bg-surface px-2.5 py-1.5 shadow-tip flex flex-col gap-0.5";var TREND_TIP_META="text-micro text-muted2";var TREND_TIP_VALUE="text-caption font-extrabold text-ink";var FUNNEL_WRAP="flex flex-col";var FUNNEL_ROW="flex flex-col";var FUNNEL_DROP="flex items-center gap-1.5 ps-1 py-1 text-micro";var FUNNEL_DROP_WORST="font-extrabold text-amber-ink";var FUNNEL_DROP_IDLE="text-muted2";var FUNNEL_TICK="w-px h-3";var FUNNEL_TICK_WORST="bg-amber";var FUNNEL_TICK_IDLE="bg-line";var FUNNEL_BODY="flex items-center gap-3";var FUNNEL_LABEL="w-32 sm:w-40 shrink-0 text-ui text-ink2 truncate";var FUNNEL_TRACK="flex-1 h-8 rounded-xs bg-hover";var FUNNEL_BAR="h-full rounded-xs transition-[width] duration-500";var FUNNEL_BAR_WORST="bg-amber";var FUNNEL_BAR_IDLE="bg-brand";var FUNNEL_VALUE="w-20 shrink-0 text-ui font-extrabold text-ink text-end";var FUNNEL_ADVICE="mt-3 flex items-start gap-2 p-3 rounded-field bg-amber-bg text-caption leading-[1.7] text-amber-ink";function funnelDrops(values){const drops=values.map((v,i)=>{if(i===0)return null;const prev=values[i-1];return prev>0?(prev-v)/prev*100:0});const worst=drops.reduce((acc,d,i)=>d!==null&&d>acc.d?{i,d}:acc,{i:-1,d:-1});return{drops,worst}}var HEAT_TINT=["bg-hover","bg-brand/25","bg-brand/55","bg-brand"];var heatStep=(v,peak)=>v===0?0:Math.min(3,Math.ceil(v/peak*3));var HEAT_WRAP="flex flex-col gap-1";var HEAT_HEAD="text-micro text-muted2 text-center";var HEAT_ROW_LABEL="text-micro text-muted truncate";var HEAT_CELL="h-6 rounded-mark transition-colors";var HEAT_LEGEND="flex items-center gap-2 pt-1 text-micro text-muted2";var HEAT_LEGEND_SWATCH="size-3 rounded-mark";var HEAT_LABEL_W=56;var SHARE_FILL={brand:"bg-brand",amber:"bg-amber",red:"bg-danger",muted:"bg-border"};var SHARE_TRACK="rounded-full bg-hover";var SHARE_TRACK_INLINE="flex-1 h-1.5 min-w-0";var SHARE_TRACK_STACKED="h-1.5";var SHARE_BAR="h-full rounded-full transition-[width] duration-500";var SHARE_ROW_INLINE="flex items-center gap-2.5";var SHARE_ROW_STACKED="flex flex-col gap-1.5";var SHARE_LIST="flex flex-col";var SHARE_LIST_INLINE="gap-1.5";var SHARE_LIST_STACKED="gap-3";var SHARE_HEAD="flex items-center justify-between gap-3";var SHARE_LABEL="text-ui font-bold text-ink truncate";var SHARE_META="text-micro text-muted truncate";var SHARE_VALUE="text-ui font-extrabold text-ink min-w-[64px] text-end";var SHARE_PCT="text-micro text-muted2 w-9 text-end";var SHARE_INLINE_LABEL="shrink-0 text-micro text-muted truncate";var SHARE_INLINE_VALUE="shrink-0 text-caption text-muted2 text-end truncate";import{Fragment as Fragment2,jsx as jsx16,jsxs as jsxs14}from"react/jsx-runtime";function useToken(name){const dark=useColorScheme4()==="dark";const key=`--color-${name}`;if(dark&&key in DARK_TOKENS)return DARK_TOKENS[key];return TOKENS[key]}function BarChart({labels,series,height=180,formatValue=String,className}){const peak=Math.max(1,...series.flatMap(s=>s.values));const plot=height-BAR_AXIS_H;return jsxs14(View,{className:cn(BAR_WRAP,className),children:[series.length>1&&jsx16(View,{className:splitTypography(BAR_LEGEND).box,children:series.map(s=>jsxs14(View,{className:BAR_LEGEND_ITEM,children:[jsx16(View,{className:cn(BAR_LEGEND_DOT,s.muted?BAR_FILL_MUTED:BAR_FILL)}),jsx16(Text,{className:splitTypography(BAR_LEGEND).text,children:s.label})]},s.label))}),jsx16(View,{className:BAR_PLOT,style:{height},...a11y({"aria-label":labels.join("\u060C ")},"image"),children:labels.map((label,i)=>jsxs14(View,{className:BAR_COL,children:[jsx16(View,{className:BAR_SLOT,style:{height:plot},children:series.map(s=>jsx16(View,{className:cn(BAR,series.length>1?BAR_W_MULTI:BAR_W_SOLO,s.muted?BAR_FILL_MUTED:BAR_FILL),style:{height:Math.max(BAR_MIN_H,Math.round((s.values[i]??0)/peak*plot))},accessibilityLabel:`${label} \xB7 ${s.label}: ${formatValue(s.values[i]??0)}`},s.label))}),jsx16(Text,{className:splitTypography(BAR_LABEL).text,numberOfLines:1,children:label})]},label))})]})}function TrendChart({labels,values,compare,pointLabels,mode="area",height=200,formatValue=String,compareLabel,className}){const ui=useUIText();const[w,setW]=useState6(0);const[at,setAt]=useState6(null);const brand=useToken("brand");const brand100=useToken("brand-100");const surface=useToken("surface");const line=useToken("line");const H=height-TREND_AXIS_H;const PAD_T=TREND_PAD_T;const max=Math.max(1,...values,...compare??[]);const n=values.length;const nameAt=i=>pointLabels?.[i]??(labels.length===n?labels[i]:void 0);const slot=n>0?w/n:w;const bw=slot*TREND_BAR_RATIO;const inset=mode==="bars"?slot/2:0;const x=useMemo(()=>scaleLinear({domain:[0,Math.max(1,n-1)],range:[inset,w-inset]}),[n,w,inset]);const y=useMemo(()=>scaleLinear({domain:[0,max],range:[H,PAD_T]}),[max,H,PAD_T]);const onLayout=e=>setW(e.nativeEvent.layout.width);const pickAt=px=>{if(!w)return;setAt(Math.min(n-1,Math.max(0,Math.round(x.invert(px)))))};const spoken=values.map((v,i)=>[nameAt(i),formatValue(v)].filter(Boolean).join(": ")).join("\u060C ");return jsxs14(View,{className:cn(TREND_WRAP,className),children:[jsxs14(Pressable,{onLayout,onPress:e=>pickAt(e.nativeEvent.locationX),style:{height:H},...a11y({"aria-label":`${labels[0]} \u2014 ${labels[labels.length-1]}: ${spoken}`},"image"),children:[[1,.5,0].map(f=>jsx16(View,{style:{position:"absolute",start:0,end:0,top:y(max*f),borderTopWidth:1,borderColor:line},children:jsx16(Text,{className:splitTypography(TREND_GRID_TEXT).text,style:{marginTop:-8},children:formatValue(Math.round(max*f))})},f)),w>0&&jsxs14(Svg5,{width:w,height:H,style:{position:"absolute",top:0,left:0},children:[jsx16(Defs,{children:jsxs14(LinearGradient,{id:"trendFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[jsx16(Stop,{offset:"0%",stopColor:brand,stopOpacity:.16}),jsx16(Stop,{offset:"100%",stopColor:brand,stopOpacity:0})]})}),mode==="area"?jsxs14(Fragment2,{children:[jsx16(AreaClosed,{data:values,x:(_,i)=>x(i),y:v=>y(v),yScale:y,curve:curveMonotoneX,children:({path})=>jsx16(Path5,{d:path(values)??"",fill:"url(#trendFill)"})}),jsx16(LinePath,{data:values,x:(_,i)=>x(i),y:v=>y(v),curve:curveMonotoneX,children:({path})=>jsx16(Path5,{d:path(values)??"",fill:"none",stroke:brand,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})]}):values.map((v,i)=>jsx16(Rect,{x:x(i)-bw/2,y:y(v),width:bw,height:Math.max(2,H-y(v)),rx:3,fill:at===i?brand:brand100},i)),compare&&jsx16(LinePath,{data:compare,x:(_,i)=>x(i),y:v=>y(v),curve:curveMonotoneX,children:({path})=>jsx16(Path5,{d:path(compare)??"",fill:"none",stroke:brand100,strokeWidth:1.5,strokeDasharray:"3 3",strokeLinecap:"round"})}),at!==null&&jsxs14(Fragment2,{children:[jsx16(SvgLine,{x1:x(at),y1:0,x2:x(at),y2:H,strokeWidth:1,strokeDasharray:"4 4",stroke:brand,strokeOpacity:.45}),mode==="area"&&jsx16(Circle,{cx:x(at),cy:y(values[at]),r:5,strokeWidth:3,fill:surface,stroke:brand})]})]})]}),at!==null&&jsxs14(View,{className:splitTypography(TREND_TIP).box,children:[nameAt(at)&&jsx16(Text,{className:splitTypography(TREND_TIP_META).text,children:nameAt(at)}),jsx16(Text,{className:splitTypography(TREND_TIP_VALUE).text,children:formatValue(values[at])}),compare?.[at]!==void 0&&jsxs14(Text,{className:splitTypography(TREND_TIP_META).text,children:[compareLabel??ui.previousPeriod,": ",formatValue(compare[at])]})]}),jsx16(View,{className:splitTypography(TREND_AXIS_ROW).box,children:labels.map(l=>jsx16(Text,{className:splitTypography(TREND_AXIS_ROW).text,children:l},l))})]})}function FunnelChart({stages,formatValue=String,className}){const top=Math.max(1,stages[0]?.value??1);const{drops,worst}=funnelDrops(stages.map(s=>s.value));return jsxs14(View,{className:cn(FUNNEL_WRAP,className),children:[stages.map((s,i)=>{const share=clamp(s.value/top*100);const drop=drops[i];const isWorst=i===worst.i;return jsxs14(View,{className:FUNNEL_ROW,children:[drop!==null&&jsxs14(View,{className:splitTypography(cn(FUNNEL_DROP,isWorst?FUNNEL_DROP_WORST:FUNNEL_DROP_IDLE)).box,children:[jsx16(View,{className:cn(FUNNEL_TICK,isWorst?FUNNEL_TICK_WORST:FUNNEL_TICK_IDLE)}),jsxs14(Text,{className:splitTypography(cn(FUNNEL_DROP,isWorst?FUNNEL_DROP_WORST:FUNNEL_DROP_IDLE)).text,style:{writingDirection:"ltr"},children:["\u2212",drop.toFixed(0),"%"]}),isWorst&&jsx16(Text,{className:splitTypography(cn(FUNNEL_DROP,FUNNEL_DROP_WORST)).text,children:"\xB7 \u0623\u0643\u0628\u0631 \u062A\u0633\u0631\u0651\u0628"})]}),jsxs14(View,{className:FUNNEL_BODY,children:[jsx16(Text,{className:splitTypography(FUNNEL_LABEL).text,numberOfLines:1,children:s.label}),jsx16(View,{className:splitTypography(FUNNEL_TRACK).box,style:{overflow:"hidden"},children:jsx16(View,{className:cn(FUNNEL_BAR,isWorst?FUNNEL_BAR_WORST:FUNNEL_BAR_IDLE),style:{width:`${share}%`}})}),jsx16(Text,{className:splitTypography(FUNNEL_VALUE).text,style:{writingDirection:"ltr"},children:formatValue(s.value)})]})]},s.key)}),worst.i>0&&stages[worst.i].advice&&jsx16(View,{className:splitTypography(FUNNEL_ADVICE).box,children:jsx16(Text,{className:splitTypography(FUNNEL_ADVICE).text,children:stages[worst.i].advice})})]})}function Heatmap({rows,cols,values,formatCell=v=>String(v),lowLabel,highLabel,className}){const ui=useUIText();const peak=Math.max(1,...values.flat());const row="flex flex-row items-center gap-1";return jsxs14(View,{className:cn(HEAT_WRAP,className),children:[jsxs14(View,{className:row,children:[jsx16(View,{style:{width:HEAT_LABEL_W}}),cols.map(c=>jsx16(Text,{className:cn(splitTypography(HEAT_HEAD).text,"flex-1"),children:c},c))]}),rows.map((r,ri)=>jsxs14(View,{className:row,children:[jsx16(Text,{className:splitTypography(HEAT_ROW_LABEL).text,style:{width:HEAT_LABEL_W},numberOfLines:1,children:r}),cols.map((c,ci)=>{const v=values[ri]?.[ci]??0;return jsx16(View,{className:cn(HEAT_CELL,"flex-1",HEAT_TINT[heatStep(v,peak)]),accessibilityLabel:formatCell(v,r,c)},c)})]},r)),jsxs14(View,{className:splitTypography(HEAT_LEGEND).box,children:[jsx16(Text,{className:splitTypography(HEAT_LEGEND).text,children:lowLabel??ui.less}),jsx16(View,{className:"flex flex-row gap-1",children:HEAT_TINT.map(c=>jsx16(View,{className:cn(HEAT_LEGEND_SWATCH,c)},c))}),jsx16(Text,{className:splitTypography(HEAT_LEGEND).text,children:highLabel??ui.more})]})]})}function ShareList({items,total,layout="stacked",showPercent=true,labelWidth=96,formatValue=String,className}){const sum=total??items.reduce((s,i)=>s+i.value,0);const inline=layout==="inline";return jsx16(View,{className:cn(SHARE_LIST,inline?SHARE_LIST_INLINE:SHARE_LIST_STACKED,className),children:items.map(it=>{const pct=sum>0?it.value/sum*100:0;const bar=jsx16(View,{className:cn(SHARE_TRACK,inline?SHARE_TRACK_INLINE:SHARE_TRACK_STACKED),style:{overflow:"hidden"},children:jsx16(View,{className:cn(SHARE_BAR,SHARE_FILL[it.tone??"brand"]),style:{width:`${clamp(pct)}%`}})});if(inline){return jsxs14(View,{className:SHARE_ROW_INLINE,children:[jsx16(Text,{style:{width:labelWidth},className:splitTypography(SHARE_INLINE_LABEL).text,numberOfLines:1,children:it.label}),bar,jsx16(Text,{style:{width:labelWidth,writingDirection:"ltr"},className:splitTypography(SHARE_INLINE_VALUE).text,numberOfLines:1,children:it.trailing??formatValue(it.value)})]},it.key)}return jsxs14(View,{className:SHARE_ROW_STACKED,children:[jsxs14(View,{className:SHARE_HEAD,children:[jsxs14(View,{className:"flex flex-col min-w-0",children:[jsx16(Text,{className:splitTypography(SHARE_LABEL).text,numberOfLines:1,children:it.label}),it.meta&&jsx16(Text,{className:splitTypography(SHARE_META).text,numberOfLines:1,children:it.meta})]}),jsxs14(View,{className:"flex flex-row items-center gap-3 shrink-0",children:[it.trailing,jsx16(Text,{className:splitTypography(SHARE_VALUE).text,style:{writingDirection:"ltr"},children:formatValue(it.value)}),showPercent&&jsxs14(Text,{className:splitTypography(SHARE_PCT).text,style:{writingDirection:"ltr"},children:[pct.toFixed(0),"%"]})]})]}),bar]},it.key)})})}var variants_exports16={};__export(variants_exports16,{GOAL_BAR:()=>GOAL_BAR,GOAL_FILL:()=>GOAL_FILL,GOAL_FILL_BEHIND:()=>GOAL_FILL_BEHIND,GOAL_FILL_OK:()=>GOAL_FILL_OK,GOAL_HEAD:()=>GOAL_HEAD,GOAL_LABEL:()=>GOAL_LABEL,GOAL_NOTE_BEHIND:()=>GOAL_NOTE_BEHIND,GOAL_NOTE_OK:()=>GOAL_NOTE_OK,GOAL_OF:()=>GOAL_OF,GOAL_PACE:()=>GOAL_PACE,GOAL_TARGET:()=>GOAL_TARGET,GOAL_TRACK:()=>GOAL_TRACK,GOAL_VALUE:()=>GOAL_VALUE,GOAL_WRAP:()=>GOAL_WRAP,PARETO_BAR:()=>PARETO_BAR,PARETO_BAR_REST:()=>PARETO_BAR_REST,PARETO_BAR_VITAL:()=>PARETO_BAR_VITAL,PARETO_COL:()=>PARETO_COL,PARETO_LABEL:()=>PARETO_LABEL,PARETO_LABELS:()=>PARETO_LABELS,PARETO_LABEL_REST:()=>PARETO_LABEL_REST,PARETO_LABEL_VITAL:()=>PARETO_LABEL_VITAL,PARETO_NOTE:()=>PARETO_NOTE,PARETO_NOTE_STRONG:()=>PARETO_NOTE_STRONG,PARETO_PLOT:()=>PARETO_PLOT,PARETO_THRESHOLD:()=>PARETO_THRESHOLD,PARETO_WRAP:()=>PARETO_WRAP,RUN_DAYS:()=>RUN_DAYS,RUN_DAYS_OK:()=>RUN_DAYS_OK,RUN_DAYS_SOON:()=>RUN_DAYS_SOON,RUN_DAYS_URGENT:()=>RUN_DAYS_URGENT,RUN_FILL:()=>RUN_FILL,RUN_FILL_OK:()=>RUN_FILL_OK,RUN_FILL_SOON:()=>RUN_FILL_SOON,RUN_FILL_URGENT:()=>RUN_FILL_URGENT,RUN_HEAD:()=>RUN_HEAD,RUN_LABEL:()=>RUN_LABEL,RUN_ROW:()=>RUN_ROW,RUN_STOCK:()=>RUN_STOCK,RUN_TRACK:()=>RUN_TRACK,RUN_WRAP:()=>RUN_WRAP,WF_BAR:()=>WF_BAR,WF_FILL_DOWN:()=>WF_FILL_DOWN,WF_FILL_TOTAL:()=>WF_FILL_TOTAL,WF_FILL_UP:()=>WF_FILL_UP,WF_FILL_WORST:()=>WF_FILL_WORST,WF_FLAG:()=>WF_FLAG,WF_HEAD:()=>WF_HEAD,WF_LABEL:()=>WF_LABEL,WF_LABEL_ROW:()=>WF_LABEL_ROW,WF_LABEL_STRONG:()=>WF_LABEL_STRONG,WF_LINE:()=>WF_LINE,WF_LINE_NET:()=>WF_LINE_NET,WF_META:()=>WF_META,WF_TRACK:()=>WF_TRACK,WF_VALUE:()=>WF_VALUE,WF_VALUE_STRONG:()=>WF_VALUE_STRONG,WF_WRAP:()=>WF_WRAP,clamp:()=>clamp2,goalMarks:()=>goalMarks,paretoRows:()=>paretoRows,runwayRows:()=>runwayRows,signedString:()=>signedString,waterfallBars:()=>waterfallBars});var clamp2=(v,lo=0,hi=100)=>Math.min(hi,Math.max(lo,v));var signedString=v=>(v<0?"\u2212":"")+String(Math.abs(v));function waterfallBars(total,steps){const bars=steps.reduce((acc,s)=>{const from=acc.length?acc[acc.length-1].to:total;acc.push({...s,from,to:from+s.value});return acc},[]);const net=bars.length?bars[bars.length-1].to:total;const biggest=bars.reduce((acc,b,i)=>b.value<acc.v?{i,v:b.value}:acc,{i:-1,v:0});return{bars,net,biggest}}var WF_WRAP="flex flex-col";var WF_LINE="flex flex-col gap-1.5 py-2.5";var WF_LINE_NET="border-t border-line mt-1 pt-3.5";var WF_HEAD="flex items-baseline justify-between gap-3";var WF_LABEL_ROW="flex items-baseline gap-2 min-w-0";var WF_LABEL="text-ui text-muted truncate";var WF_LABEL_STRONG="text-ui font-extrabold text-ink truncate";var WF_FLAG="shrink-0 text-micro font-bold text-red bg-red-bg px-1.5 py-0.5 rounded-mark";var WF_VALUE="shrink-0 text-ui font-bold text-ink2";var WF_VALUE_STRONG="shrink-0 text-body font-black text-ink";var WF_TRACK="h-2.5 rounded-full bg-hover";var WF_FILL_TOTAL="h-2.5 rounded-full bg-brand";var WF_BAR="absolute inset-y-0 rounded-full";var WF_FILL_UP="bg-green-solid";var WF_FILL_DOWN="bg-brand-100";var WF_FILL_WORST="bg-danger";var WF_META="text-micro text-muted2";function goalMarks(value,goal,pace){const top=Math.max(value,goal)*1.06;const pct=clamp2(value/top*100);const goalAt=clamp2(goal/top*100);const paceAt=pace===void 0?null:clamp2(goalAt*clamp2(pace,0,1));return{pct,goalAt,paceAt,behind:paceAt!==null&&pct<paceAt}}var GOAL_WRAP="flex flex-col gap-2";var GOAL_HEAD="flex items-baseline justify-between gap-3";var GOAL_LABEL="text-ui font-bold text-ink2 truncate";var GOAL_VALUE="text-body font-black text-ink";var GOAL_OF="text-micro text-muted2";var GOAL_TRACK="h-3 rounded-full bg-hover";var GOAL_FILL="rounded-full transition-[width] duration-500";var GOAL_BAR="absolute inset-y-0 start-0";var GOAL_FILL_OK="bg-brand";var GOAL_FILL_BEHIND="bg-amber";var GOAL_PACE="w-0.5 bg-muted2 rounded-full";var GOAL_TARGET="w-1 bg-ink rounded-full";var GOAL_NOTE_OK="text-micro text-muted2";var GOAL_NOTE_BEHIND="text-micro text-amber-ink";function paretoRows(items,threshold){const sorted=[...items].sort((a,b)=>b.value-a.value);const sum=sorted.reduce((s,i)=>s+i.value,0)||1;const top=Math.max(1,sorted[0]?.value??1);const rows=sorted.reduce((out,it)=>{const acc=(out.length?out[out.length-1].cum*sum/100:0)+it.value;out.push({...it,cum:acc/sum*100});return out},[]);const vital=rows.findIndex(r=>r.cum>=threshold)+1;return{rows,vital,top}}var PARETO_WRAP="flex flex-col gap-2.5";var PARETO_NOTE="text-caption text-muted";var PARETO_NOTE_STRONG="font-extrabold text-ink";var PARETO_PLOT="relative flex items-end gap-1.5";var PARETO_THRESHOLD="border-t border-dashed border-muted2";var PARETO_COL="flex-1 min-w-0 flex flex-col justify-end items-center gap-1 h-full";var PARETO_BAR="w-full rounded-t-mark transition-[height] duration-500";var PARETO_BAR_VITAL="bg-brand";var PARETO_BAR_REST="bg-brand-100";var PARETO_LABELS="flex items-center gap-1.5";var PARETO_LABEL="flex-1 min-w-0 text-micro text-center truncate";var PARETO_LABEL_VITAL="text-ink2 font-bold";var PARETO_LABEL_REST="text-muted2";function runwayRows(items){return items.map(it=>({...it,days:it.perDay>0?it.stock/it.perDay:Infinity})).sort((a,b)=>a.days-b.days)}var RUN_WRAP="flex flex-col gap-2.5";var RUN_ROW="flex flex-col gap-1.5";var RUN_HEAD="flex items-baseline justify-between gap-3";var RUN_LABEL="text-ui text-ink2 truncate min-w-0";var RUN_STOCK="text-micro text-muted2";var RUN_DAYS="text-ui font-extrabold";var RUN_DAYS_URGENT="text-red";var RUN_DAYS_SOON="text-amber-ink";var RUN_DAYS_OK="text-ink";var RUN_TRACK="h-1.5 rounded-full bg-hover";var RUN_FILL="h-full rounded-full transition-[width] duration-500";var RUN_FILL_URGENT="bg-danger";var RUN_FILL_SOON="bg-amber";var RUN_FILL_OK="bg-brand";import{jsx as jsx17,jsxs as jsxs15}from"react/jsx-runtime";function WaterfallChart({total,steps,totalLabel,netLabel,formatValue=signedString,className}){const ui=useUIText();const top=Math.max(1,total);const{bars,net,biggest}=waterfallBars(total,steps);return jsxs15(View,{className:cn(WF_WRAP,className),children:[jsx17(Line,{label:totalLabel??ui.totalSales,value:total,formatValue,strong:true,children:jsx17(View,{className:WF_FILL_TOTAL})}),bars.map((b,i)=>{const drop=b.value<0;const lo=clamp2(Math.min(b.from,b.to)/top*100);const span=clamp2(Math.abs(b.value)/top*100);const worst=i===biggest.i;return jsx17(Line,{label:b.label,meta:b.meta,value:b.value,formatValue,flag:worst?"\u0623\u0643\u0628\u0631 \u062E\u0635\u0645":void 0,children:jsx17(View,{className:WF_TRACK,style:{overflow:"hidden",direction:"ltr"},children:jsx17(View,{className:cn(WF_BAR,drop?worst?WF_FILL_WORST:WF_FILL_DOWN:WF_FILL_UP),style:{start:`${lo}%`,width:`${span}%`}})})},b.key)}),jsx17(Line,{label:netLabel??ui.netToYou,value:net,formatValue,strong:true,net:true,children:jsx17(View,{className:WF_TRACK,style:{overflow:"hidden",direction:"ltr"},children:jsx17(View,{className:cn("h-full rounded-full",WF_FILL_UP),style:{width:`${clamp2(net/top*100)}%`}})})})]})}function Line({label,meta,value,formatValue,flag,strong,net,children}){const labelClass=strong?WF_LABEL_STRONG:WF_LABEL;const valueClass=strong?WF_VALUE_STRONG:WF_VALUE;return jsxs15(View,{className:cn(WF_LINE,net&&WF_LINE_NET),children:[jsxs15(View,{className:WF_HEAD,children:[jsxs15(View,{className:WF_LABEL_ROW,children:[jsx17(Text,{className:splitTypography(labelClass).text,numberOfLines:1,children:label}),flag&&jsx17(View,{className:splitTypography(WF_FLAG).box,children:jsx17(Text,{className:splitTypography(WF_FLAG).text,children:flag})})]}),jsx17(Text,{className:splitTypography(valueClass).text,style:{writingDirection:"ltr"},children:formatValue(value)})]}),children,meta&&jsx17(Text,{className:splitTypography(WF_META).text,children:meta})]})}function GoalBar({value,goal,pace,label,formatValue=String,className}){const ui=useUIText();const{pct,goalAt,paceAt,behind}=goalMarks(value,goal,pace);return jsxs15(View,{className:cn(GOAL_WRAP,className),children:[jsxs15(View,{className:GOAL_HEAD,children:[label&&jsx17(Text,{className:splitTypography(GOAL_LABEL).text,numberOfLines:1,children:label}),jsxs15(View,{className:"flex flex-row items-baseline gap-1.5 shrink-0",children:[jsx17(Text,{className:splitTypography(GOAL_VALUE).text,style:{writingDirection:"ltr"},children:formatValue(value)}),jsxs15(Text,{className:splitTypography(GOAL_OF).text,children:["\u0645\u0646 ",jsx17(Text,{style:{writingDirection:"ltr"},children:formatValue(goal)})]})]})]}),jsxs15(View,{className:GOAL_TRACK,style:{direction:"ltr"},children:[jsx17(View,{className:cn(GOAL_BAR,GOAL_FILL,behind?GOAL_FILL_BEHIND:GOAL_FILL_OK),style:{width:`${pct}%`}}),paceAt!==null&&jsx17(View,{className:cn("absolute -top-1 -bottom-1",GOAL_PACE),style:{start:`${paceAt}%`},accessibilityLabel:ui.shouldBeHere}),jsx17(View,{className:cn("absolute -top-1.5 -bottom-1.5",GOAL_TARGET),style:{start:`${goalAt}%`}})]}),paceAt!==null&&jsx17(Text,{className:splitTypography(behind?GOAL_NOTE_BEHIND:GOAL_NOTE_OK).text,children:behind?"\u0648\u0631\u0627 \u0627\u0644\u0625\u064A\u0642\u0627\u0639 \u0627\u0644\u0645\u0637\u0644\u0648\u0628":"\u0642\u062F\u0651\u0627\u0645 \u0627\u0644\u0625\u064A\u0642\u0627\u0639 \u0627\u0644\u0645\u0637\u0644\u0648\u0628"})]})}function ParetoChart({items,height=140,threshold=80,formatValue=String,className}){const{rows,vital,top}=paretoRows(items,threshold);return jsxs15(View,{className:cn(PARETO_WRAP,className),children:[jsxs15(Text,{className:splitTypography(PARETO_NOTE).text,children:[jsx17(Text,{className:PARETO_NOTE_STRONG,children:vital})," \u0645\u0646"," ",jsx17(Text,{className:PARETO_NOTE_STRONG,children:rows.length})," \u0628\u064A\u0639\u0645\u0644\u0648\u0627"," ",jsx17(Text,{className:PARETO_NOTE_STRONG,children:threshold}),"\u066A \u0645\u0646 \u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A"]}),jsxs15(View,{className:PARETO_PLOT,style:{height},children:[jsx17(View,{style:{position:"absolute",start:0,end:0,top:`${100-threshold}%`,borderTopWidth:1,borderStyle:"dashed"},className:"border-muted2"}),rows.map((r,i)=>jsx17(View,{className:PARETO_COL,children:jsx17(View,{className:cn(PARETO_BAR,i<vital?PARETO_BAR_VITAL:PARETO_BAR_REST),style:{height:`${clamp2(r.value/top*100)}%`},accessibilityLabel:`${String(r.label)} \xB7 ${formatValue(r.value)}`})},r.key))]}),jsx17(View,{className:PARETO_LABELS,children:rows.map((r,i)=>jsx17(Text,{className:splitTypography(cn(PARETO_LABEL,i<vital?PARETO_LABEL_VITAL:PARETO_LABEL_REST)).text,numberOfLines:1,children:r.label},r.key))})]})}function StockRunway({items,urgentDays=7,horizonDays=30,className}){const rows=runwayRows(items);return jsx17(View,{className:cn(RUN_WRAP,className),children:rows.map(r=>{const urgent=r.days<=urgentDays;const soon=!urgent&&r.days<=horizonDays/2;const pct=Number.isFinite(r.days)?clamp2(r.days/horizonDays*100):100;return jsxs15(View,{className:RUN_ROW,children:[jsxs15(View,{className:RUN_HEAD,children:[jsx17(Text,{className:splitTypography(RUN_LABEL).text,numberOfLines:1,children:r.label}),jsxs15(View,{className:"flex flex-row items-baseline gap-2 shrink-0",children:[jsxs15(Text,{className:splitTypography(RUN_STOCK).text,style:{writingDirection:"ltr"},children:[r.stock," \u0642\u0637\u0639\u0629"]}),jsx17(Text,{className:splitTypography(cn(RUN_DAYS,urgent?RUN_DAYS_URGENT:soon?RUN_DAYS_SOON:RUN_DAYS_OK)).text,children:Number.isFinite(r.days)?`${Math.floor(r.days)} \u064A\u0648\u0645`:"\u2014"})]})]}),jsx17(View,{className:RUN_TRACK,style:{overflow:"hidden",direction:"ltr"},children:jsx17(View,{className:cn(RUN_FILL,urgent?RUN_FILL_URGENT:soon?RUN_FILL_SOON:RUN_FILL_OK),style:{width:`${pct}%`}})})]},r.key)})})}import{useMemo as useMemo2,useState as useState7}from"react";var variants_exports17={};__export(variants_exports17,{DAY:()=>DAY,DAY_DOT:()=>DAY_DOT,DAY_EDGE:()=>DAY_EDGE,DAY_IDLE:()=>DAY_IDLE,DAY_MID:()=>DAY_MID,DAY_TODAY:()=>DAY_TODAY,GRID:()=>GRID2,HEAD:()=>HEAD,HEAD_BTN:()=>HEAD_BTN,HEAD_TITLE:()=>HEAD_TITLE,MONTHS_AR:()=>MONTHS_AR,WEEKDAY:()=>WEEKDAY,WEEKDAYS_AR:()=>WEEKDAYS_AR,WRAP:()=>WRAP,daysBetween:()=>daysBetween,formatDate:()=>formatDate,formatRange:()=>formatRange,presets:()=>presets,sameDay:()=>sameDay,startOfDay:()=>startOfDay,weekIndex:()=>weekIndex});var MONTHS_AR=["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"];var WEEKDAYS_AR=["\u0633","\u062D","\u0646","\u062B","\u0631","\u062E","\u062C"];var weekIndex=d=>(d.getDay()+1)%7;var sameDay=(a,b)=>a.getFullYear()===b.getFullYear()&&a.getMonth()===b.getMonth()&&a.getDate()===b.getDate();var startOfDay=d=>new Date(d.getFullYear(),d.getMonth(),d.getDate());function daysBetween(from,to){return Math.round((startOfDay(to).getTime()-startOfDay(from).getTime())/864e5)+1}function formatDate(d){return`${d.getDate()} ${MONTHS_AR[d.getMonth()]}`}function formatRange(r){if(!r.from)return"\u0627\u062E\u062A\u0631 \u064A\u0648\u0645 \u0627\u0644\u0628\u062F\u0627\u064A\u0629";if(!r.to)return`${formatDate(r.from)} \u2014 \u0627\u062E\u062A\u0631 \u064A\u0648\u0645 \u0627\u0644\u0646\u0647\u0627\u064A\u0629`;if(sameDay(r.from,r.to))return formatDate(r.from);return`${formatDate(r.from)} \u2014 ${formatDate(r.to)}`}function presets(today){const mk=backDays=>{const to=startOfDay(today);const from=new Date(to);from.setDate(from.getDate()-backDays+1);return{from,to}};return[{key:"today",label:"\u0627\u0644\u0646\u0647\u0627\u0631\u062F\u0647",range:mk(1)},{key:"d7",label:"\u0622\u062E\u0631 \u0667 \u0623\u064A\u0627\u0645",range:mk(7)},{key:"d30",label:"\u0622\u062E\u0631 \u0663\u0660 \u064A\u0648\u0645",range:mk(30)},{key:"month",label:"\u0627\u0644\u0634\u0647\u0631 \u062F\u0647",range:{from:new Date(today.getFullYear(),today.getMonth(),1),to:startOfDay(today)}}]}var WRAP="flex flex-col gap-3";var HEAD="flex items-center justify-between gap-3";var HEAD_BTN="size-8 rounded-sm flex items-center justify-center text-muted cursor-pointer transition-colors hover:bg-hover hover:text-ink";var HEAD_TITLE="text-body font-extrabold text-ink";var GRID2="grid grid-cols-7 gap-0.5";var WEEKDAY="h-7 flex items-center justify-center text-micro font-bold text-muted2";var DAY="h-9 flex items-center justify-center text-ui font-bold cursor-pointer transition-colors relative";var DAY_MID="bg-soft text-brand-ink rounded-none";var DAY_EDGE="bg-brand text-white rounded-sm z-10";var DAY_IDLE="text-ink2 rounded-sm hover:bg-hover";var DAY_TODAY="text-brand-ink";var DAY_DOT="absolute bottom-1 size-1 rounded-full bg-brand";import{jsx as jsx18,jsxs as jsxs16}from"react/jsx-runtime";var CELL={width:`${100/7}%`};function DateRangePicker({value,onChange,month,onMonthChange,today,className}){const ui=useUIText();const[hover]=useState7(null);const navColor=useTextColor(splitTypography(HEAD_BTN).text);const cells=useMemo2(()=>{const first=new Date(month.getFullYear(),month.getMonth(),1);const total=new Date(month.getFullYear(),month.getMonth()+1,0).getDate();const pad=weekIndex(first);return[...Array.from({length:pad},()=>null),...Array.from({length:total},(_,i)=>new Date(month.getFullYear(),month.getMonth(),i+1))]},[month]);const provisionalTo=value.from&&!value.to?hover:value.to;function inRange(d){if(!value.from||!provisionalTo)return false;const[a,b]=value.from<=provisionalTo?[value.from,provisionalTo]:[provisionalTo,value.from];return d>=startOfDay(a)&&d<=startOfDay(b)}function pick(d){if(!value.from||value.to)return onChange({from:d,to:null});if(d<value.from)return onChange({from:d,to:value.from});onChange({from:value.from,to:d})}const shift=by=>onMonthChange(new Date(month.getFullYear(),month.getMonth()+by,1));return jsxs16(View,{className:cn(WRAP,className),children:[jsxs16(View,{className:HEAD,children:[jsx18(Pressable,{onPress:()=>shift(-1),className:splitTypography(HEAD_BTN).box,...a11y({"aria-label":ui.previousMonth},"button"),children:jsx18(icons_native_exports.ChevronRight,{size:16,color:navColor})}),jsxs16(Text,{className:splitTypography(HEAD_TITLE).text,children:[MONTHS_AR[month.getMonth()]," ",month.getFullYear()]}),jsx18(Pressable,{onPress:()=>shift(1),className:splitTypography(HEAD_BTN).box,...a11y({"aria-label":ui.nextMonth},"button"),children:jsx18(icons_native_exports.ChevronLeft,{size:16,color:navColor})})]}),jsxs16(View,{className:cn(GRID2.replace("grid grid-cols-7","flex flex-row flex-wrap")),children:[WEEKDAYS_AR.map((w,i)=>jsx18(View,{style:CELL,children:jsx18(Text,{className:splitTypography(WEEKDAY).text,children:w})},i)),cells.map((d,i)=>{if(!d)return jsx18(View,{style:CELL},`p${i}`);const isFrom=value.from&&sameDay(d,value.from);const isTo=provisionalTo&&sameDay(d,provisionalTo);const edge=isFrom||isTo;const mid=inRange(d)&&!edge;const isToday=sameDay(d,today);const classes=cn(DAY,mid&&DAY_MID,edge&&DAY_EDGE,!edge&&!mid&&DAY_IDLE,isToday&&!edge&&DAY_TODAY);const{box,text}=splitTypography(classes);return jsxs16(Pressable,{style:CELL,className:box,onPress:()=>pick(d),...a11y({"aria-label":formatDate(d),"aria-selected":Boolean(edge||mid)},"button"),children:[jsx18(Text,{className:text,style:{writingDirection:"ltr"},children:d.getDate()}),isToday&&!edge&&jsx18(View,{className:DAY_DOT})]},d.toISOString())})]})]})}import{useMemo as useMemo3,useState as useState8}from"react";import{Modal as Modal4}from"react-native";var variants_exports18={};__export(variants_exports18,{CHIP:()=>CHIP3,CHIP_X:()=>CHIP_X,CMD_EMPTY:()=>CMD_EMPTY,CMD_GROUP:()=>CMD_GROUP,CMD_ITEM:()=>CMD_ITEM,CMD_ITEM_ICON:()=>CMD_ITEM_ICON,CMD_ITEM_META:()=>CMD_ITEM_META,CMD_ITEM_TITLE:()=>CMD_ITEM_TITLE,CMD_LAYER_WEB:()=>CMD_LAYER_WEB,CMD_PANEL:()=>CMD_PANEL,CMD_SCRIM:()=>CMD_SCRIM,CMD_SEARCH_INPUT:()=>CMD_SEARCH_INPUT,CMD_SEARCH_ROW:()=>CMD_SEARCH_ROW,EMPTY:()=>EMPTY2,ITEM:()=>ITEM,ITEM_BODY:()=>ITEM_BODY,ITEM_CHECK:()=>ITEM_CHECK,ITEM_LABEL:()=>ITEM_LABEL,ITEM_META:()=>ITEM_META,ITEM_ON:()=>ITEM_ON,KBD_WEB:()=>KBD_WEB,LABEL:()=>LABEL2,MULTI_BOX:()=>MULTI_BOX,MULTI_BOX_IDLE:()=>MULTI_BOX_IDLE,MULTI_BOX_ON:()=>MULTI_BOX_ON,MULTI_CHECK:()=>MULTI_CHECK,MULTI_CLEAR:()=>MULTI_CLEAR,MULTI_HEAD:()=>MULTI_HEAD,MULTI_TRIGGER:()=>MULTI_TRIGGER,PANEL:()=>PANEL,PANEL_WEB:()=>PANEL_WEB,SEARCH_CLEAR:()=>SEARCH_CLEAR,SEARCH_ICON:()=>SEARCH_ICON,SEARCH_INPUT:()=>SEARCH_INPUT,SEARCH_ROW:()=>SEARCH_ROW,TRIGGER:()=>TRIGGER,TRIGGER_CHEVRON:()=>TRIGGER_CHEVRON,TRIGGER_IDLE:()=>TRIGGER_IDLE,TRIGGER_META:()=>TRIGGER_META,TRIGGER_OPEN:()=>TRIGGER_OPEN,TRIGGER_PLACEHOLDER:()=>TRIGGER_PLACEHOLDER,TRIGGER_VALUE:()=>TRIGGER_VALUE,WRAP:()=>WRAP2,filterByLabel:()=>filterByLabel,filterOptions:()=>filterOptions,groupCommands:()=>groupCommands});function filterOptions(options,query){const q=query.trim();if(!q)return options;return options.filter(o=>o.label.includes(q)||o.meta?.includes(q))}function filterByLabel(options,query){const q=query.trim();if(!q)return options;return options.filter(o=>o.label.includes(q))}function groupCommands(items,query){const q=query.trim();const hits=q?items.filter(i=>i.title.includes(q)||i.meta?.includes(q)):items;const out=new Map;for(const i of hits)out.set(i.group,[...out.get(i.group)??[],i]);return[...out.entries()]}var WRAP2="flex flex-col gap-1.5";var LABEL2="text-ui font-bold text-ink2";var TRIGGER="w-full h-10 px-3.5 rounded-field border bg-surface flex items-center gap-2.5 text-body cursor-pointer transition-colors outline-none focus-visible:border-brand";var TRIGGER_OPEN="border-brand";var TRIGGER_IDLE="border-border hover:border-brand";var TRIGGER_PLACEHOLDER="text-muted2";var TRIGGER_VALUE="flex-1 min-w-0 text-start truncate";var TRIGGER_META="text-caption text-muted shrink-0";var TRIGGER_CHEVRON="text-muted2 shrink-0 transition-transform";var PANEL_WEB="absolute z-30 top-[calc(100%+6px)] inset-x-0 bg-surface border border-line rounded-card shadow-panel overflow-clip animate-[fade-in_.14s_ease-out]";var PANEL="bg-surface border border-line rounded-card shadow-panel";var ITEM="w-full px-3 py-2.5 flex items-center gap-2.5 text-start text-ui cursor-pointer transition-colors hover:bg-hover disabled:opacity-45 disabled:cursor-not-allowed";var ITEM_ON="bg-soft";var ITEM_BODY="flex-1 min-w-0 flex flex-col";var ITEM_LABEL="font-bold truncate";var ITEM_META="text-caption text-muted";var ITEM_CHECK="text-brand-ink shrink-0";var SEARCH_ROW="flex items-center gap-2.5 px-3 h-11 border-b border-line";var SEARCH_INPUT="flex-1 min-w-0 bg-transparent border-none outline-none text-ui text-ink placeholder:text-muted2";var SEARCH_ICON="text-muted2 shrink-0";var SEARCH_CLEAR="shrink-0 text-muted2 hover:text-ink cursor-pointer transition-colors";var EMPTY2="block px-3 py-6 text-center text-ui text-muted2";var KBD_WEB="shrink-0 px-1.5 py-0.5 rounded-xs bg-bg border border-line text-micro font-bold text-muted2";var MULTI_HEAD="flex items-center justify-between gap-3";var MULTI_CLEAR="text-caption font-bold text-muted cursor-pointer hover:text-ink transition-colors";var MULTI_TRIGGER="h-auto min-h-10 py-1.5 flex-wrap";var CHIP3="inline-flex items-center gap-1 h-7 ps-2.5 pe-1.5 rounded-full bg-soft text-brand-ink text-caption font-bold";var CHIP_X="flex text-brand-ink/60 hover:text-brand-ink cursor-pointer";var MULTI_BOX="size-[18px] rounded-xs border-[1.5px] flex items-center justify-center shrink-0 transition-colors";var MULTI_BOX_ON="bg-brand border-brand";var MULTI_BOX_IDLE="bg-surface border-border";var MULTI_CHECK="text-white";var CMD_LAYER_WEB="fixed inset-0 z-50 flex items-start justify-center pt-[12vh] px-4";var CMD_SCRIM="bg-black/40";var CMD_PANEL="relative w-full max-w-[560px] bg-surface border border-line rounded-lg shadow-modal";var CMD_SEARCH_ROW="flex items-center gap-3 px-4 h-14 border-b border-line";var CMD_SEARCH_INPUT="flex-1 min-w-0 bg-transparent border-none outline-none text-body text-ink placeholder:text-muted2";var CMD_GROUP="px-4 pt-2 pb-1 text-micro font-extrabold text-muted2 tracking-wide";var CMD_ITEM="px-4 py-2.5 flex items-center gap-3 text-start cursor-pointer transition-colors hover:bg-hover";var CMD_ITEM_ICON="text-muted shrink-0";var CMD_ITEM_TITLE="flex-1 min-w-0 text-body font-bold text-ink truncate";var CMD_ITEM_META="text-caption text-muted2 shrink-0";var CMD_EMPTY="block px-4 py-10 text-center text-ui text-muted2";import{jsx as jsx19,jsxs as jsxs17}from"react/jsx-runtime";function Trigger({open,onPress,children,extra,label}){const chevron=useTextColor(splitTypography(TRIGGER_CHEVRON).text);return jsxs17(Pressable,{onPress,className:cn(splitTypography(cn(TRIGGER,extra)).box,open?TRIGGER_OPEN:TRIGGER_IDLE),...a11y({"aria-label":label,"aria-expanded":open},"button"),children:[children,jsx19(View,{style:{transform:[{rotate:open?"180deg":"0deg"}]},children:jsx19(icons_native_exports.ChevronDown,{size:15,color:chevron})})]})}function Sheet2({open,onClose,children}){return jsxs17(Modal4,{visible:open,transparent:true,animationType:"slide",onRequestClose:onClose,children:[jsx19(Pressable,{className:cn("flex-1",CMD_SCRIM),onPress:onClose}),jsx19(View,{className:cn(splitTypography(PANEL).box,"max-h-[70%]"),style:{overflow:"hidden"},children})]})}function OptionRow({option,selected,onPress,check}){return jsxs17(Pressable,{disabled:option.disabled,onPress,className:cn(splitTypography(ITEM).box,selected&&ITEM_ON,option.disabled&&"opacity-45"),...a11y({"aria-label":option.label,"aria-selected":selected,disabled:option.disabled},"menuitem"),children:[option.icon,jsxs17(View,{className:ITEM_BODY,children:[jsx19(Text,{className:splitTypography(cn(ITEM,ITEM_LABEL)).text,numberOfLines:1,children:option.label}),option.meta&&jsx19(Text,{className:splitTypography(ITEM_META).text,children:option.meta})]}),selected&&jsx19(icons_native_exports.Check,{size:14,color:check})]})}function SearchRow({value,onChange,placeholder}){const icon=useTextColor(splitTypography(SEARCH_ICON).text);return jsxs17(View,{className:SEARCH_ROW,children:[jsx19(icons_native_exports.Search,{size:15,color:icon}),jsx19(TextInput,{autoFocus:true,value,onChangeText:onChange,placeholder,className:cn(splitTypography(SEARCH_INPUT).box,splitTypography(SEARCH_INPUT).text),...a11y({"aria-label":placeholder})}),value.length>0&&jsx19(Pressable,{onPress:()=>onChange(""),...a11y({"aria-label":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"},"button"),children:jsx19(icons_native_exports.X,{size:14,color:icon})})]})}function Dropdown({label,value,onChange,options,placeholder,className}){const ui=useUIText();const[open,setOpen]=useState8(false);const current=options.find(o=>o.value===value);const check=useTextColor(splitTypography(ITEM_CHECK).text);return jsxs17(View,{className:cn(WRAP2,className),children:[label&&jsx19(Text,{className:splitTypography(LABEL2).text,children:label}),jsxs17(Trigger,{open,onPress:()=>setOpen(true),label:typeof label==="string"?label:void 0,children:[current?.icon,jsx19(Text,{className:cn(splitTypography(TRIGGER).text,!current&&TRIGGER_PLACEHOLDER),numberOfLines:1,style:{flex:1},children:current?.label??placeholder??ui.select}),current?.meta&&jsx19(Text,{className:splitTypography(TRIGGER_META).text,children:current.meta})]}),jsx19(Sheet2,{open,onClose:()=>setOpen(false),children:jsx19(ScrollView,{children:options.map(o=>jsx19(OptionRow,{option:o,selected:o.value===value,check,onPress:()=>{onChange(o.value);setOpen(false)}},o.value))})})]})}function Combobox({label,value,onChange,options,placeholder,searchPlaceholder,emptyText,className}){const ui=useUIText();const[open,setOpen]=useState8(false);const[query,setQuery]=useState8("");const current=options.find(o=>o.value===value);const check=useTextColor(splitTypography(ITEM_CHECK).text);const results=useMemo3(()=>filterOptions(options,query),[options,query]);return jsxs17(View,{className:cn(WRAP2,className),children:[label&&jsx19(Text,{className:splitTypography(LABEL2).text,children:label}),jsxs17(Trigger,{open,onPress:()=>{setOpen(true);setQuery("")},label:typeof label==="string"?label:void 0,children:[jsx19(Text,{className:cn(splitTypography(TRIGGER).text,!current&&TRIGGER_PLACEHOLDER),numberOfLines:1,style:{flex:1},children:current?.label??placeholder??ui.select}),current?.meta&&jsx19(Text,{className:splitTypography(TRIGGER_META).text,children:current.meta})]}),jsxs17(Sheet2,{open,onClose:()=>setOpen(false),children:[jsx19(SearchRow,{value:query,onChange:setQuery,placeholder:searchPlaceholder??ui.search}),jsxs17(ScrollView,{children:[results.map(o=>jsx19(OptionRow,{option:o,selected:o.value===value,check,onPress:()=>{onChange(o.value);setOpen(false)}},o.value)),results.length===0&&jsx19(Text,{className:splitTypography(EMPTY2).text,children:emptyText??ui.noResults})]})]})]})}function MultiSelect({label,values,onChange,options,placeholder,createLabel,onCreate,className}){const ui=useUIText();const[open,setOpen]=useState8(false);const[query,setQuery]=useState8("");const chipX=useTextColor(splitTypography(CHIP_X).text);const boxCheck=useTextColor(MULTI_CHECK);const results=useMemo3(()=>filterByLabel(options,query),[options,query]);const exact=results.some(o=>o.label===query.trim());const canCreate=Boolean(onCreate&&query.trim()&&!exact);const toggle=v=>onChange(values.includes(v)?values.filter(x=>x!==v):[...values,v]);return jsxs17(View,{className:cn(WRAP2,className),children:[jsxs17(View,{className:MULTI_HEAD,children:[label&&jsx19(Text,{className:splitTypography(LABEL2).text,children:label}),values.length>0&&jsx19(Pressable,{onPress:()=>onChange([]),...a11y({"aria-label":"\u0645\u0633\u062D \u0627\u0644\u0643\u0644"},"button"),children:jsx19(Text,{className:splitTypography(MULTI_CLEAR).text,children:"\u0645\u0633\u062D \u0627\u0644\u0643\u0644"})})]}),jsxs17(Trigger,{open,onPress:()=>setOpen(true),extra:MULTI_TRIGGER,label:typeof label==="string"?label:void 0,children:[values.length===0&&jsx19(Text,{className:cn(splitTypography(TRIGGER).text,TRIGGER_PLACEHOLDER),style:{flex:1},children:placeholder??ui.select}),values.map(v=>{const o=options.find(x=>x.value===v);return jsxs17(View,{className:splitTypography(CHIP3).box,children:[jsx19(Text,{className:splitTypography(CHIP3).text,children:o?.label??v}),jsx19(Pressable,{onPress:()=>toggle(v),...a11y({"aria-label":`\u0625\u0632\u0627\u0644\u0629 ${o?.label??v}`},"button"),children:jsx19(icons_native_exports.X,{size:12,strokeWidth:2.5,color:chipX})})]},v)})]}),jsxs17(Sheet2,{open,onClose:()=>setOpen(false),children:[jsx19(SearchRow,{value:query,onChange:setQuery,placeholder:ui.searchOrAdd}),jsxs17(ScrollView,{children:[results.map(o=>{const on=values.includes(o.value);return jsxs17(Pressable,{onPress:()=>toggle(o.value),className:splitTypography(ITEM).box,...a11y({"aria-label":o.label,"aria-checked":on},"checkbox"),children:[jsx19(View,{className:cn(MULTI_BOX,on?MULTI_BOX_ON:MULTI_BOX_IDLE),children:on&&jsx19(icons_native_exports.Check,{size:12,strokeWidth:3,color:boxCheck})}),jsxs17(View,{className:ITEM_BODY,children:[jsx19(Text,{className:splitTypography(cn(ITEM,ITEM_LABEL)).text,numberOfLines:1,children:o.label}),o.meta&&jsx19(Text,{className:splitTypography(ITEM_META).text,children:o.meta})]})]},o.value)}),canCreate&&jsx19(Pressable,{onPress:()=>{onCreate?.(query.trim());setQuery("")},className:splitTypography(ITEM).box,...a11y({"aria-label":createLabel?.(query.trim())??`\u0623\u0636\u0641 ${query.trim()}`},"button"),children:jsx19(Text,{className:splitTypography(cn(ITEM,ITEM_LABEL)).text,children:createLabel?.(query.trim())??`\u0623\u0636\u0641 \xAB${query.trim()}\xBB`})}),results.length===0&&!canCreate&&jsx19(Text,{className:splitTypography(EMPTY2).text,children:ui.noResults})]})]})]})}function CommandPalette({open,onClose,items,placeholder,emptyText}){const ui=useUIText();const[query,setQuery]=useState8("");const icon=useTextColor(splitTypography(SEARCH_ICON).text);const groups=useMemo3(()=>groupCommands(items,query),[items,query]);return jsxs17(Modal4,{visible:open,transparent:true,animationType:"fade",onRequestClose:onClose,children:[jsx19(Pressable,{className:cn("flex-1",CMD_SCRIM),onPress:onClose,...a11y({"aria-label":ui.close},"button")}),jsxs17(View,{className:cn(splitTypography(CMD_PANEL).box,"absolute inset-x-4 top-[12%] max-h-[70%]"),style:{overflow:"hidden"},children:[jsxs17(View,{className:CMD_SEARCH_ROW,children:[jsx19(icons_native_exports.Search,{size:17,color:icon}),jsx19(TextInput,{autoFocus:true,value:query,onChangeText:setQuery,placeholder:placeholder??ui.searchEverything,className:cn(splitTypography(CMD_SEARCH_INPUT).box,splitTypography(CMD_SEARCH_INPUT).text),...a11y({"aria-label":placeholder??ui.searchEverything})})]}),jsxs17(ScrollView,{children:[groups.map(([group2,list])=>jsxs17(View,{className:"flex flex-col",children:[jsx19(Text,{className:splitTypography(CMD_GROUP).text,children:group2}),list.map(i=>jsxs17(Pressable,{onPress:()=>{i.onRun?.();onClose()},className:splitTypography(CMD_ITEM).box,...a11y({"aria-label":i.title},"menuitem"),children:[i.icon&&jsx19(View,{className:CMD_ITEM_ICON,children:i.icon}),jsx19(Text,{className:splitTypography(CMD_ITEM_TITLE).text,numberOfLines:1,children:i.title}),i.meta&&jsx19(Text,{className:splitTypography(CMD_ITEM_META).text,children:i.meta})]},i.id))]},group2)),groups.length===0&&jsx19(Text,{className:splitTypography(CMD_EMPTY).text,children:emptyText??ui.noResults})]})]})]})}import"react";import{ActivityIndicator as ActivityIndicator3}from"react-native";var variants_exports19={};__export(variants_exports19,{ROW:()=>ROW3,ROW_BADGE:()=>ROW_BADGE,ROW_BAR:()=>ROW_BAR,ROW_BODY:()=>ROW_BODY,ROW_COVER:()=>ROW_COVER,ROW_ERROR:()=>ROW_ERROR,ROW_HEAD:()=>ROW_HEAD,ROW_META:()=>ROW_META,ROW_NAME:()=>ROW_NAME,ROW_REMOVE:()=>ROW_REMOVE,ROW_THUMB:()=>ROW_THUMB,ROW_THUMB_EMPTY:()=>ROW_THUMB_EMPTY,ROW_TRACK:()=>ROW_TRACK,STATE_TONE:()=>STATE_TONE,ZONE:()=>ZONE,ZONE_BTN:()=>ZONE_BTN,ZONE_HINT:()=>ZONE_HINT,ZONE_ICON:()=>ZONE_ICON,ZONE_ICON_IDLE:()=>ZONE_ICON_IDLE,ZONE_ICON_OVER:()=>ZONE_ICON_OVER,ZONE_IDLE:()=>ZONE_IDLE,ZONE_OFF:()=>ZONE_OFF,ZONE_OVER:()=>ZONE_OVER,ZONE_TITLE:()=>ZONE_TITLE,formatBytes:()=>formatBytes});function formatBytes(bytes){if(bytes<1024)return`${bytes} \u0628\u0627\u064A\u062A`;if(bytes<1024*1024)return`${Math.round(bytes/1024)} \u0643.\u0628`;return`${(bytes/(1024*1024)).toFixed(1)} \u0645\u064A\u062C\u0627`}var ZONE="flex flex-col items-center justify-center gap-2.5 px-5 py-9 rounded-card border-2 border-dashed transition-colors text-center";var ZONE_OFF="opacity-55 cursor-not-allowed border-border bg-bg";var ZONE_OVER="border-brand bg-soft";var ZONE_IDLE="border-border bg-bg hover:border-brand";var ZONE_ICON="size-12 rounded-card flex items-center justify-center transition-colors";var ZONE_ICON_OVER="bg-brand text-white";var ZONE_ICON_IDLE="bg-surface text-muted border border-line";var ZONE_TITLE="text-body font-extrabold text-ink";var ZONE_HINT="text-caption leading-[1.7] text-muted max-w-note";var ZONE_BTN="mt-1 h-9 px-4 rounded-sm bg-surface border border-border text-ui font-bold text-ink2 cursor-pointer transition-colors hover:border-brand hover:text-brand-ink disabled:cursor-not-allowed";var STATE_TONE={uploading:{box:"bg-soft text-brand-ink",label:"\u062C\u0627\u0631\u064A \u0627\u0644\u0631\u0641\u0639"},done:{box:"bg-green-bg2 text-green",label:"\u062A\u0645 \u0627\u0644\u0631\u0641\u0639"},rejected:{box:"bg-red-bg text-red",label:"\u0645\u0631\u0641\u0648\u0636"}};var ROW3="flex items-center gap-3 p-2.5 rounded-card border border-line bg-surface";var ROW_THUMB="relative size-11 rounded-sm bg-hover border border-line shrink-0";var ROW_THUMB_EMPTY="w-full h-full flex items-center justify-center text-muted2";var ROW_COVER="absolute inset-x-0 bottom-0 bg-brand/90 text-white text-micro font-extrabold text-center py-px";var ROW_BODY="flex-1 min-w-0 flex flex-col gap-1";var ROW_HEAD="flex items-center gap-2 min-w-0";var ROW_NAME="text-ui font-bold text-ink truncate";var ROW_BADGE="inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-micro font-extrabold shrink-0";var ROW_TRACK="h-1 rounded-full bg-hover";var ROW_BAR="h-full rounded-full bg-brand transition-[width] duration-200";var ROW_META="text-caption text-muted";var ROW_ERROR="text-caption text-red";var ROW_REMOVE="shrink-0 size-8 rounded-sm flex items-center justify-center text-muted2 cursor-pointer transition-colors hover:bg-hover hover:text-red";import{jsx as jsx20,jsxs as jsxs18}from"react/jsx-runtime";function Dropzone({onPress,disabled,title,hint,buttonLabel,className}){const ui=useUIText();const iconColor=useTextColor(splitTypography(ZONE_ICON_IDLE).text);return jsxs18(Pressable,{disabled,onPress,className:cn(splitTypography(ZONE).box,disabled?ZONE_OFF:ZONE_IDLE,className),...a11y({"aria-label":typeof title==="string"?title:ui.dropImages,disabled},"button"),children:[jsx20(View,{className:cn(splitTypography(ZONE_ICON).box,ZONE_ICON_IDLE),children:jsx20(icons_native_exports.UploadCloud,{size:22,strokeWidth:1.8,color:iconColor})}),jsx20(Text,{className:splitTypography(ZONE_TITLE).text,children:title??ui.dropImages}),hint&&jsx20(Text,{className:splitTypography(ZONE_HINT).text,children:hint}),jsx20(View,{className:splitTypography(ZONE_BTN).box,children:jsx20(Text,{className:splitTypography(ZONE_BTN).text,children:buttonLabel??ui.chooseFromDevice})})]})}function FileRow({file,onRemove,coverLabel,isCover}){const s=STATE_TONE[file.state];const badgeColor=useTextColor(splitTypography(s.box).text);const emptyColor=useTextColor(splitTypography(ROW_THUMB_EMPTY).text);const removeColor=useTextColor(splitTypography(ROW_REMOVE).text);return jsxs18(View,{className:ROW3,children:[jsxs18(View,{className:splitTypography(ROW_THUMB).box,style:{overflow:"hidden"},children:[file.preview?jsx20(Image,{source:{uri:file.preview},className:"w-full h-full",resizeMode:"cover"}):jsx20(View,{className:splitTypography(ROW_THUMB_EMPTY).box,children:jsx20(icons_native_exports.Image,{size:17,color:emptyColor})}),isCover&&coverLabel&&jsx20(Text,{className:splitTypography(ROW_COVER).text,style:{position:"absolute",bottom:0},children:coverLabel})]}),jsxs18(View,{className:ROW_BODY,children:[jsxs18(View,{className:ROW_HEAD,children:[jsx20(Text,{className:splitTypography(ROW_NAME).text,numberOfLines:1,children:file.name}),jsxs18(View,{className:cn(splitTypography(ROW_BADGE).box,splitTypography(s.box).box),children:[file.state==="uploading"?jsx20(ActivityIndicator3,{size:"small",color:badgeColor}):file.state==="done"?jsx20(icons_native_exports.Check,{size:13,color:badgeColor}):jsx20(icons_native_exports.AlertCircle,{size:13,color:badgeColor}),jsx20(Text,{className:cn(splitTypography(ROW_BADGE).text,splitTypography(s.box).text),children:s.label})]})]}),file.state==="uploading"?jsx20(View,{className:ROW_TRACK,style:{overflow:"hidden"},children:jsx20(View,{className:ROW_BAR,style:{width:`${file.progress??0}%`}})}):jsx20(Text,{className:splitTypography(file.state==="rejected"?ROW_ERROR:ROW_META).text,children:file.state==="rejected"?file.error:formatBytes(file.size)})]}),onRemove&&jsx20(Pressable,{onPress:onRemove,className:splitTypography(ROW_REMOVE).box,...a11y({"aria-label":`\u0625\u0632\u0627\u0644\u0629 ${file.name}`},"button"),children:jsx20(icons_native_exports.X,{size:15,color:removeColor})})]})}export{ANIMATE_SCALE,Accordion,Alert,Avatar,Badge,BarChart,Button,COLOR_SCALE,CONTAINER_SCALE,Card,CardHeader,Checkbox,ChoiceCards,ColorField,Combobox,CommandPalette,Counter,DARK_TOKENS,DateRangePicker,Drawer,Dropdown,Dropzone,EmptyState,FileRow,FilterChips,FunnelChart,GoalBar,Heatmap,Input,LocaleCtx,Modal2 as Modal,Money,MoneyProvider,MultiSelect,NumberStepper,PROVIDER_LEVEL_LABEL,PROVIDER_LEVEL_LABEL_EN,PageHeader,ParetoChart,Phone,Progress,ProviderBadge,ProviderMark,RADIUS_SCALE,Radio,RadioGroup,RatingInput,SHADOW_SCALE,SearchInput,Select,ShareList,Sheet,Skeleton,Sparkline,Stars,StatCard,Stepper,StockRunway,Switch,TEXT_SCALE,TOKENS,TONE_SOFT,TONE_SOLID,Tabs,TechnicalInput,TechnicalText,Textarea,Timeline,Toast,ToastHost,Tooltip,TrendChart,VerifiedBadge,WaterfallChart,WhatsAppIcon,a11y,buttonClasses,variants_exports as buttonStyles,variants_exports15 as chartRules,variants_exports7 as choiceStyles,cn,variants_exports16 as commerceRules,currencyName,currencySymbol,variants_exports17 as dateRules,daysBetween,variants_exports6 as disclosureStyles,variants_exports10 as displayStyles,variants_exports12 as feedbackStyles,variants_exports2 as formStyles,formatBytes,formatDate,formatRange,isCurrency,isTextClass,variants_exports18 as menuRules,variants_exports13 as moneyRules,variants_exports3 as navStyles,normalizeHex,variants_exports11 as overlayStyles,parsePhone,variants_exports8 as phoneRules,presets,variants_exports9 as providerStyles,variants_exports5 as ratingStyles,resolveTextColor,setLang,splitTypography,variants_exports4 as stepperStyles,stripAria,variants_exports14 as technicalRules,textPx,toLatinDigits,variants_exports19 as uploadRules,useCurrency,useCurrencySymbol,useMoneyLang,useMoneyLocale,useTextColor,useToasts,useUIText};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stubEntry}from"./chunk-RGKCDRSY.js";import"./chunk-LZHT3H7B.js";var why="\u0623\u0633\u0637\u062D \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062A \u0628\u062A\u062A\u0631\u0633\u0645 \u0628\u0628\u0648\u0631\u062A\u0627\u0644 \u0648\u0628\u062A\u0642\u064A\u0633 \u0645\u0648\u0627\u0636\u0639 \u0628\u0627\u0644\u0640DOM. \u0648\u0627\u0644\u0625\u0634\u0639\u0627\u0631 \u0627\u0644\u0623\u0635\u0644\u064A \u0639\u0644\u0649 \u0627\u0644\u0645\u0648\u0628\u0627\u064A\u0644 \u0646\u0638\u0627\u0645 \u062A\u0627\u0646\u064A \u062E\u0627\u0644\u0635 (`@notifee/react-native`)";var NotificationCenter=stubEntry("notifications",why);var NotificationBell=stubEntry("notifications",why);export{NotificationBell,NotificationCenter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stubEntry}from"./chunk-RGKCDRSY.js";import"./chunk-LZHT3H7B.js";var why="\u0627\u0644\u0643\u0631\u0629 \u0628\u062A\u0631\u0633\u0645 \u0628\u0640`three` \u0639\u0644\u0649 `<canvas>` WebGL\u061B \u0627\u0644\u0645\u0642\u0627\u0628\u0644 \u0639\u0644\u0649 \u0627\u0644\u0646\u064A\u062A\u0641 `expo-gl` \u0623\u0648 `react-native-skia`";var Orb=stubEntry("orb",why);export{Orb};
|