@fewangsit/wangsvue-presets 1.0.110 → 1.0.111-alpha.2

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.
@@ -5062,49 +5062,49 @@
5062
5062
  font-family: 'Manrope', sans-serif !important;
5063
5063
  }
5064
5064
 
5065
- h1,
5065
+ h1,
5066
5066
  .heading-1{
5067
5067
  font-size: 22px !important;
5068
5068
  font-weight: 600 !important;
5069
5069
  line-height: 1.75rem;
5070
5070
  }
5071
5071
 
5072
- h2,
5072
+ h2,
5073
5073
  .heading-2{
5074
5074
  font-size: 1.125rem !important;
5075
5075
  font-weight: 600 !important;
5076
5076
  line-height: 1.5rem;
5077
5077
  }
5078
5078
 
5079
- h3,
5079
+ h3,
5080
5080
  .heading-3{
5081
5081
  font-size: 1rem !important;
5082
5082
  font-weight: 500 !important;
5083
5083
  line-height: 1.25rem;
5084
5084
  }
5085
5085
 
5086
- h4,
5086
+ h4,
5087
5087
  .heading-4{
5088
5088
  font-size: 0.875rem !important;
5089
5089
  font-weight: 500 !important;
5090
5090
  line-height: 1rem;
5091
5091
  }
5092
5092
 
5093
- p,
5093
+ p,
5094
5094
  .p{
5095
5095
  font-size: 0.75rem !important;
5096
5096
  font-weight: 500 !important;
5097
5097
  line-height: 1rem;
5098
5098
  }
5099
5099
 
5100
- h5,
5100
+ h5,
5101
5101
  .heading-5{
5102
5102
  font-size: 0.75rem !important;
5103
5103
  font-weight: 600 !important;
5104
5104
  line-height: 1rem;
5105
5105
  }
5106
5106
 
5107
- h6,
5107
+ h6,
5108
5108
  .heading-6{
5109
5109
  font-size: 10px !important;
5110
5110
  font-weight: 600 !important;
@@ -5115,7 +5115,7 @@ h6,
5115
5115
  scrollbar-width: none;
5116
5116
  }
5117
5117
 
5118
- .scrollbar-w-thin,
5118
+ .scrollbar-w-thin,
5119
5119
  .p-virtualscroller {
5120
5120
  scrollbar-width: thin;
5121
5121
  }
@@ -7968,4 +7968,4 @@ h6,
7968
7968
 
7969
7969
  .\[\&_ul\]\:pl-6 ul{
7970
7970
  padding-left: 1.5rem;
7971
- }
7971
+ }
@@ -5,7 +5,6 @@ declare namespace definePreset {
5
5
  props: any;
6
6
  }): {
7
7
  class: any[];
8
- style: string;
9
8
  'data-wv-name': string;
10
9
  'data-wv-section': string;
11
10
  };
@@ -18,7 +18,9 @@ var definePreset = {
18
18
  // Font
19
19
  'font-medium text-xs tracking-[0.02em]',
20
20
  'placeholder:text-general-200 dark:placeholder:text-general-600 placeholder:!font-light',
21
- 'w-full',
21
+ {
22
+ 'w-full': props.cols == undefined,
23
+ },
22
24
  {
23
25
  'resize-none': props.autoResize,
24
26
  'resize': !props.autoResize,
@@ -44,7 +46,6 @@ var definePreset = {
44
46
  'appearance-none',
45
47
  'transition-colors duration-200',
46
48
  ], false),
47
- 'style': "min-height: ".concat(props.rows * 26, "px"),
48
49
  'data-wv-name': 'textarea',
49
50
  'data-wv-section': 'root',
50
51
  });
@@ -1,97 +1,97 @@
1
- {
2
- "danger-50": "#ffe5e9",
3
- "danger-100": "#ffccd3",
4
- "danger-200": "#ff99a7",
5
- "danger-300": "#ff667a",
6
- "danger-400": "#ff334e",
7
- "danger-500": "#ff0022",
8
- "danger-600": "#cc001b",
9
- "danger-700": "#990014",
10
- "danger-800": "#66000e",
11
- "danger-900": "#330007",
12
- "danger-950": "#190003",
13
-
14
- "warning-50": "#fff9e5",
15
- "warning-100": "#fff4cc",
16
- "warning-200": "#ffe999",
17
- "warning-300": "#ffde66",
18
- "warning-400": "#ffd333",
19
- "warning-500": "#ffc700",
20
- "warning-600": "#cca000",
21
- "warning-700": "#997800",
22
- "warning-800": "#665000",
23
- "warning-900": "#332800",
24
- "warning-950": "#191400",
25
-
26
- "success-50": "#dbffee",
27
- "success-100": "#b8ffdc",
28
- "success-200": "#75ffbc",
29
- "success-300": "#2eff9a",
30
- "success-400": "#00eb79",
31
- "success-500": "#00a455",
32
- "success-600": "#008545",
33
- "success-700": "#006132",
34
- "success-800": "#004222",
35
- "success-900": "#001f10",
36
- "success-950": "#000f08",
37
-
38
- "grayscale-50": "#f7f7f7",
39
- "grayscale-100": "#f2f2f2",
40
- "grayscale-200": "#e5e6e6",
41
- "grayscale-300": "#d8d9d9",
42
- "grayscale-400": "#cbcccd",
43
- "grayscale-500": "#bdbebf",
44
- "grayscale-600": "#97999b",
45
- "grayscale-700": "#717374",
46
- "grayscale-800": "#4b4d4e",
47
- "grayscale-900": "#262627",
48
- "grayscale-950": "#121212",
49
-
50
- "general-50": "#ebeaf0",
51
- "general-100": "#dad9e3",
52
- "general-200": "#b5b3c7",
53
- "general-300": "#908cab",
54
- "general-400": "#6c688d",
55
- "general-500": "#4e4b66",
56
- "general-600": "#3f3c52",
57
- "general-700": "#2f2d3e",
58
- "general-800": "#201e29",
59
- "general-900": "#100f15",
60
- "general-950": "#070609",
61
-
62
- "primary-50": "#ebeaf0",
63
- "primary-100": "#dad9e3",
64
- "primary-200": "#b5b3c7",
65
- "primary-300": "#908cab",
66
- "primary-400": "#6c688d",
67
- "primary-500": "#201e29",
68
- "primary-600": "#100f15",
69
- "primary-700": "#070609",
70
- "primary-800": "#050407",
71
- "primary-900": "#030204",
72
- "primary-950": "#020103",
73
-
74
- "fixed-primary-50": "#e5f0ff",
75
- "fixed-primary-100": "#cce0ff",
76
- "fixed-primary-200": "#94bfff",
77
- "fixed-primary-300": "#61a0ff",
78
- "fixed-primary-400": "#2e82ff",
79
- "fixed-primary-500": "#0063f7",
80
- "fixed-primary-600": "#0050c7",
81
- "fixed-primary-700": "#003b94",
82
- "fixed-primary-800": "#002761",
83
- "fixed-primary-900": "#001433",
84
- "fixed-primary-950": "#000a19",
85
-
86
- "supply-primary-50": "#ECFDF5",
87
- "supply-primary-100": "#d1fae5",
88
- "supply-primary-200": "#a7f3d0",
89
- "supply-primary-300": "#6ee7b7",
90
- "supply-primary-400": "#34d399",
91
- "supply-primary-500": "#10b981",
92
- "supply-primary-600": "#059669",
93
- "supply-primary-700": "#047857",
94
- "supply-primary-800": "#065F46",
95
- "supply-primary-900": "#064E3B",
96
- "supply-primary-950": "#022C22"
97
- }
1
+ {
2
+ "danger-50": "#ffe5e9",
3
+ "danger-100": "#ffccd3",
4
+ "danger-200": "#ff99a7",
5
+ "danger-300": "#ff667a",
6
+ "danger-400": "#ff334e",
7
+ "danger-500": "#ff0022",
8
+ "danger-600": "#cc001b",
9
+ "danger-700": "#990014",
10
+ "danger-800": "#66000e",
11
+ "danger-900": "#330007",
12
+ "danger-950": "#190003",
13
+
14
+ "warning-50": "#fff9e5",
15
+ "warning-100": "#fff4cc",
16
+ "warning-200": "#ffe999",
17
+ "warning-300": "#ffde66",
18
+ "warning-400": "#ffd333",
19
+ "warning-500": "#ffc700",
20
+ "warning-600": "#cca000",
21
+ "warning-700": "#997800",
22
+ "warning-800": "#665000",
23
+ "warning-900": "#332800",
24
+ "warning-950": "#191400",
25
+
26
+ "success-50": "#dbffee",
27
+ "success-100": "#b8ffdc",
28
+ "success-200": "#75ffbc",
29
+ "success-300": "#2eff9a",
30
+ "success-400": "#00eb79",
31
+ "success-500": "#00a455",
32
+ "success-600": "#008545",
33
+ "success-700": "#006132",
34
+ "success-800": "#004222",
35
+ "success-900": "#001f10",
36
+ "success-950": "#000f08",
37
+
38
+ "grayscale-50": "#f7f7f7",
39
+ "grayscale-100": "#f2f2f2",
40
+ "grayscale-200": "#e5e6e6",
41
+ "grayscale-300": "#d8d9d9",
42
+ "grayscale-400": "#cbcccd",
43
+ "grayscale-500": "#bdbebf",
44
+ "grayscale-600": "#97999b",
45
+ "grayscale-700": "#717374",
46
+ "grayscale-800": "#4b4d4e",
47
+ "grayscale-900": "#262627",
48
+ "grayscale-950": "#121212",
49
+
50
+ "general-50": "#ebeaf0",
51
+ "general-100": "#dad9e3",
52
+ "general-200": "#b5b3c7",
53
+ "general-300": "#908cab",
54
+ "general-400": "#6c688d",
55
+ "general-500": "#4e4b66",
56
+ "general-600": "#3f3c52",
57
+ "general-700": "#2f2d3e",
58
+ "general-800": "#201e29",
59
+ "general-900": "#100f15",
60
+ "general-950": "#070609",
61
+
62
+ "primary-50": "#ebeaf0",
63
+ "primary-100": "#dad9e3",
64
+ "primary-200": "#b5b3c7",
65
+ "primary-300": "#908cab",
66
+ "primary-400": "#6c688d",
67
+ "primary-500": "#201e29",
68
+ "primary-600": "#100f15",
69
+ "primary-700": "#070609",
70
+ "primary-800": "#050407",
71
+ "primary-900": "#030204",
72
+ "primary-950": "#020103",
73
+
74
+ "fixed-primary-50": "#e5f0ff",
75
+ "fixed-primary-100": "#cce0ff",
76
+ "fixed-primary-200": "#94bfff",
77
+ "fixed-primary-300": "#61a0ff",
78
+ "fixed-primary-400": "#2e82ff",
79
+ "fixed-primary-500": "#0063f7",
80
+ "fixed-primary-600": "#0050c7",
81
+ "fixed-primary-700": "#003b94",
82
+ "fixed-primary-800": "#002761",
83
+ "fixed-primary-900": "#001433",
84
+ "fixed-primary-950": "#000a19",
85
+
86
+ "supply-primary-50": "#ECFDF5",
87
+ "supply-primary-100": "#d1fae5",
88
+ "supply-primary-200": "#a7f3d0",
89
+ "supply-primary-300": "#6ee7b7",
90
+ "supply-primary-400": "#34d399",
91
+ "supply-primary-500": "#10b981",
92
+ "supply-primary-600": "#059669",
93
+ "supply-primary-700": "#047857",
94
+ "supply-primary-800": "#065F46",
95
+ "supply-primary-900": "#064E3B",
96
+ "supply-primary-950": "#022C22"
97
+ }
@@ -4412,7 +4412,9 @@ const oe = m("WANGS-TAB-MENU", {
4412
4412
  // Font
4413
4413
  "font-medium text-xs tracking-[0.02em]",
4414
4414
  "placeholder:text-general-200 placeholder:!font-light",
4415
- "w-full",
4415
+ {
4416
+ "w-full": t.cols == null
4417
+ },
4416
4418
  {
4417
4419
  "resize-none": t.autoResize,
4418
4420
  resize: !t.autoResize
@@ -4438,7 +4440,6 @@ const oe = m("WANGS-TAB-MENU", {
4438
4440
  "appearance-none",
4439
4441
  "transition-colors duration-200"
4440
4442
  ],
4441
- style: `min-height: ${t.rows * 26}px`,
4442
4443
  "data-wv-name": "textarea",
4443
4444
  "data-wv-section": "root"
4444
4445
  })
@@ -73,4 +73,4 @@ var Ne=Object.defineProperty;var Se=(s,l,o)=>l in s?Ne(s,l,{enumerable:!0,config
73
73
  right: -90%;
74
74
  }
75
75
  }
76
- `},K={root:({props:e})=>({class:["relative inline-block","shrink-0",{"rounded-full":e.rounded},{"rounded-lg":!e.rounded},e.class,"w-max h-max"],style:!e.size&&e.width?{width:`${e.width}px`,height:`${e.width}px`}:void 0}),image:({props:e,context:t})=>({class:["object-cover",{"!rounded-full":e.rounded},{"!rounded-lg":!e.rounded}],style:`width: ${t.imageSize}px; height: ${t.imageSize}px;`}),button:{class:["flex items-center justify-center","absolute","w-full h-full","inset-0 opacity-0 transition-opacity duration-300","bg-transparent text-white","hover:cursor-pointer hover:bg-grayscale-900 hover:opacity-50"],style:"border-radius: inherit"},icon:{class:"text-white w-6 h-6 opacity-100 max-w-[50%]"},mask:{class:["flex items-center justify-center","fixed top-0 left-0","w-full h-full","bg-grayscale-950/90"]},toolbar:{class:["flex","absolute top-0 right-0","p-4"]},rotaterightbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},rotaterighticon:{class:"w-4 h-4"},rotateleftbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},rotatelefticon:{class:"w-4 h-4"},zoomoutbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},zoomouticon:{class:"w-4 h-4"},zoominbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},zoominicon:{class:"w-4 h-4"},closebutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},closeicon:{class:"w-4 h-4"},transition:{enterFromClass:"opacity-0 scale-75",enterActiveClass:"transition-all duration-150 ease-in-out",leaveActiveClass:"transition-all duration-150 ease-in",leaveToClass:"opacity-0 scale-75"}},Y={root:({props:e})=>({class:["rounded-md p-3","w-full",{"bg-success-50 text-success-500":e.severity=="success","bg-danger-50 text-danger-500":e.severity=="danger","bg-grayscale-50 text-general-800":e.severity=="secondary"}],"data-wv-name":"inlinemessage","data-wv-section":"root"}),icon:({props:e})=>({class:["w-4 h-4 !cursor-auto",{"animate-spin duration-200 text-general-100":e.loading}],"data-wv-section":"messageicon"}),text:{class:["w-full flex gap-3 flex-col","text-[12px] leading-[normal] tracking-[0.24px]","font-medium"]}},k={root:({props:e,context:t,parent:a})=>{var r,i;return{class:["px-3 py-[5px] w-full bg-transparent","h-max",{"max-h-[43px]":(i=(r=a.instance)==null?void 0:r.placeholder)==null?void 0:i.includes("password")},"text-general-800 text-xs tracking-[0.02em] font-medium","placeholder:text-general-200","placeholder:!font-light","appearance-none",{"outline-none":!t.disabled,"!text-general-200 select-none pointer-events-none cursor-default":t.disabled}]}}},C=navigator.userAgent.includes("Chrome"),q={root:({context:e})=>({class:["flex flex-wrap gap-x-0.5 gap-y-[5px] items-center","min-h-[26px] h-fit w-full","ring-inset rounded px-[12px] py-[3px]",{"ring-[1px]":!C,"ring-[0.5px]":C},{"!ring-danger-500 !dark:ring-danger-500":e.invalidInput},{"!ring-general-200 !dark:ring-general-200":!e.invalidInput},{"pointer-events-none":e.disabled}]}),input:({context:e,parent:t,props:a})=>({class:[...k.root({props:a,context:e,parent:t}).class,"outline-none !w-full !bg-transparent !p-0 !shadow-none h-max !leading-4 min-w-[70px]",{"placeholder:text-transparent":e.showPlaceholder},"focus:placeholder:text-general-200"]}),erroricon:{class:["mr-1 text-warning-600 text-base"]},erroroverlaypanel:{class:["px-3 py-1 text-[12px] text-general-800"]}},j=navigator.userAgent.includes("Chrome"),J={root:({props:e})=>({class:[{"!ring-danger-500 [&_.inputgroupaddon]:ring-danger-500":e.invalid&&e.ring!=="none","[&_.inputgroupaddon]:ring-general-200":!e.invalid&&e.ring!=="none","!bg-general-50 ":e.disabled},{"[&:has(:focus)]:!ring-primary-500 [&:has(:focus)_.inputgroupaddon]:!ring-primary-500":e.ring!=="none"},{"ring-[1px] [&_.inputgroupaddon]:ring-[1px]":!j&&e.ring!=="none","ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]":j&&e.ring!=="none"},"[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]","[&:has(input)]:cursor-text","flex items-stretch","w-full","ring-inset ring-general-200 rounded","bg-white",e.class],"data-wv-section":"inputgroup"})},Z={root:({props:e})=>({class:["inputgroupaddon","inline-flex items-center justify-center","first:rounded-tl first:rounded-bl","last:rounded-tr last:rounded-br","ring-inset","px-3 gap-3","w-max","text-general-800","text-xs font-medium leading-none tracking-tight",{"bg-general-50":e.addonVariant!=="plain"},{"!text-general-200":e.disabled,"!px-2":e.showButtons}],"data-addon-variant":e.addonVariant})},z="text-xs font-medium tracking-[0.02em] leading-[18px]",A="h-[26px]",Q={root:({props:e,parent:t})=>({class:["flex items-center self-stretch shrink-0 grow",A,"py-1 px-3","rounded","appearance-none"]}),input:{root:({parent:e,context:t})=>({class:["border-0 h-full w-full outline-none","bg-inherit",z,"placeholder:text-general-200 placeholder:font-light",t.disabled?"text-general-200":"text-general-800"]})},inputresizer:{class:[z,A,"user-select-none py-1 px-3 block min-w-4 text-transparent"]},buttongroup:{class:["flex"]},incrementbutton:{root:({parent:e})=>({class:[]}),label:{class:"h-0 w-0"}},decrementbutton:{root:({parent:e})=>({class:[]}),label:{class:"h-0 w-0"}},incrementicon:({props:e})=>({class:["!text-base text-general-500",{"!text-general-200":e.disabled}]}),decrementicon:({props:e})=>({class:["!text-base text-general-500",{"!text-general-200":e.disabled}]})},f=({isChromeBased:e,invalidInput:t})=>[{"ring-[1px]":!e,"ring-[0.5px]":e},{"!ring-danger-500":t},"ring-inset","ring-general-200","[&:has(:focus)]:bg-none","[&:has(:focus)]:ring-primary-500","[&:has(:focus)]:ring-1","bg-white","z-[0] [&:has(:focus)]:z-[12]"],X={dialcode:{root:e=>({class:[...f(e),"!rounded-l !rounded-r-none"]}),dropdownicon:({state:e})=>n.dropdownicon({state:e})},input:e=>({class:[...f(e),"!rounded-r !rounded-l-none -ml-[1px]","focus:bg-none","focus:ring-primary-500","focus:ring-1"]})},ee={root:{class:["transition-transform","z-[7299]","w-max min-w-52","min-w-[196px]","max-h-[90vh] overflow-y-auto","rounded-md","max-w-[400px]","translate-y-1","shadow","overflow-hidden","bg-white","text-general-800"]},menu:{class:["list-none","m-0","p-0","outline-none","w-full"]},start:{class:["flex justify-end","py-[3px] px-4"]},menuitem:{class:["cursor-pointer"]},content:({context:e})=>({class:["w-full","rounded-md","text-inherit","transition-shadow","duration-200"]}),action:{class:["flex items-center justify-start gap-2","px-4 py-[7px]","hover:bg-primary-50/80","text-xs","no-underline","overflow-hidden","cursor-pointer","select-none"]},icon:{class:["w-4 h-4"]},label:({props:e})=>({class:["text-inherit",{"!text-danger-500":e.danger}]}),submenuheader:{class:["text-inherit"]},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},te={root:({props:e})=>({class:["my-2 mx-0","rounded-md","ring-1 ring-inset ring-surface-200","bg-surface-0",{"text-blue-500":e.severity=="info","text-green-500":e.severity=="success","text-orange-500":e.severity=="warn","text-red-500":e.severity=="error"}]}),wrapper:{class:["flex items-center","p-4"]},icon:{class:["w-5 h-5","mr-3 shrink-0"]},text:{class:["text-sm leading-none","font-medium"]},button:({props:e})=>({class:["flex items-center justify-center","w-6 h-6","ml-auto relative","rounded-full","bg-transparent","text-surface-700/80","transition duration-200 ease-in-out","hover:bg-surface-100","outline-none focus:ring-1 focus:ring-inset","focus:ring-primary-500","overflow-hidden"]}),closeicon:{class:["w-3 h-3","shrink-0"]},transition:{enterFromClass:"opacity-0",enterActiveClass:"transition-opacity duration-300",leaveFromClass:"max-h-40",leaveActiveClass:"overflow-hidden transition-all duration-300 ease-in",leaveToClass:"max-h-0 opacity-0 !m-0"}},ae={root:{class:["h-max","rounded-lg","shadow-xl","border-0","absolute left-0 top-0 mt-2","z-40 transform origin-center","bg-white","text-general-800","before:absolute before:-top-2 before:ml-4 before:z-50","before:w-0 before:h-0 before:shadow-xl"]},content:{class:"items-center flex"},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},re={root:{class:["flex items-center justify-start flex-wrap gap-0.5","bg-white","text-grayscale-900"]},paginatorwrapper:{class:"mt-1.5"},pages:{class:"flex gap-0.5"},firstpagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),previouspagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),nextpagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),lastpagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),pagebutton:({context:e})=>({class:["relative","text-xs font-normal","rounded-full","w-6 h-6",{"text-general-300 border-none hover:bg-grayscale-50":!e.active,"text-white bg-grayscale-900":e.active},{"hover:border-surface-300":!e.disabled&&!e.active,"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500":!e.disabled},"transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),rowperpagedropdown:{root:({props:e,state:t})=>({class:["inline-flex items-center justify-center","relative","w-max","px-3 py-1","rounded-[50px]","bg-transparent","border-[0.5px] border-primary-100","transition-all","duration-200",{"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600":!t.focused},"cursor-pointer","select-none",{"opacity-60":e.disabled,"pointer-events-none":e.disabled,"cursor-default":e.disabled}]}),input:{class:["text-xs","flex items-center","bg-transparent","text-general-800","w-max","rounded-none","transition","duration-200","focus-visible:outline-none focus-visible:shadow-none","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]},trigger:{class:["text-xs","flex items-center justify-center","shrink-0","w-2","h-2","ml-0.5","rounded-tr-md","rounded-br-md"]},dropdownicon:{class:"w-2 h-2"},panel:{class:["absolute top-0 left-0","mt-1","border-0","rounded-md","bg-white","text-general-800","ring-1 ring-inset ring-primary-100"]},wrapper:{class:["max-h-[15rem]","overflow-auto"]},list:{class:"py-0.5 list-none m-0"},item:({context:e})=>({class:["text-xs","leading-none",{"font-normal":!e.selected,"font-bold":e.selected},"relative","border-0","rounded-none","m-0","py-2 px-4","hover:bg-primary-50","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},jumptopageinput:{root:{class:"inline-flex mx-2"},input:{root:{class:["relative","leading-6","text-xs","text-center","block","flex-auto","bg-transparent","border-primary-100 border-[0.5px]","text-general-800","max-w-[3rem] w-fit","px-3 py-1","rounded-[50px] h-6","transition","duration-200","hover:ring-general-200","focus-visible:outline-none focus-visible:shadow-none","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]}}},jumptopagedropdown:{root:({props:e,state:t})=>({class:["inline-flex","relative","h-8","rounded-md","mx-2","bg-transparent","transition-all","duration-200",{"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600":!t.focused},"cursor-pointer","select-none",{"opacity-60":e.disabled,"pointer-events-none":e.disabled,"cursor-default":e.disabled}]}),input:{class:["font-sans","leading-6","text-xs","block","flex-auto","flex items-center","bg-transparent","border-0","text-surface-800/80","w-[1%]","py-1.5 px-3 pr-0","rounded-none","transition","duration-200","focus-visible:outline-none focus-visible:shadow-none","relative","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]},trigger:{class:["text-xs","flex items-center justify-center","shrink-0","bg-transparent","text-surface-500","w-12","h-8","rounded-tr-md","rounded-br-md"]},panel:{class:["absolute top-0 left-0","mt-1","border-0","rounded-md","shadow-md","bg-surface-0","text-surface-800/80","ring-1 ring-inset ring-surface-300"]},wrapper:{class:["max-h-[15rem]","overflow-auto"]},list:{class:"py-1 list-none m-0"},item:({context:e})=>({class:["text-xs","leading-none",{"font-normal":!e.selected,"font-bold":e.selected},"relative","border-0","rounded-none","m-0","py-2 px-4",{"text-surface-700/80":!e.focused&&!e.selected},{"bg-primary-500 text-white":e.focused&&e.selected},{"bg-transparent text-surface-700/80":!e.focused&&e.selected},"hover:bg-primary-500 hover:text-white","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},current:{class:["text-xs font-normal leading-6 px-3"]}},ne={root:({props:e})=>({class:["w-full","inline-flex relative","text-general-800",{"opacity-60 select-none pointer-events-none cursor-default":e.disabled}]}),input:{class:["!bg-primary-500","placeholder:!font-normal"]},panel:{class:["p-3","border-0","shadow-md rounded-md","bg-white","text-general-800",""]},meter:{class:["overflow-hidden","relative","border-0","h-2","rounded-md","mb-2","bg-surface-100"]},meterlabel:({instance:e})=>{var t,a,r;return{class:["h-full",{"bg-red-500/50":((t=e==null?void 0:e.meter)==null?void 0:t.strength)=="weak","bg-orange-500/50":((a=e==null?void 0:e.meter)==null?void 0:a.strength)=="medium","bg-green-500/50":((r=e==null?void 0:e.meter)==null?void 0:r.strength)=="strong"},"transition-all duration-1000 ease-in-out"]}},showicon:{class:["absolute top-[54%] right-3 -mt-2","text-general-200","focus-visible:text-general-500 hover:text-general-500"]},hideicon:{class:["absolute top-[54%] right-3 -mt-2","text-general-200"]},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},_=navigator.userAgent.includes("Chrome"),m={root:({props:e})=>({class:["inline-flex relative align-middle","shrink-0","rounded-[60px]","h-4 w-8","cursor-pointer",{"select-none pointer-events-none cursor-default":e.disabled}]}),slider:({props:e})=>({class:["absolute top-0 left-0 right-0 bottom-0","rounded-[60px]","before:absolute before:top-1/2","before:-translate-y-1/2","before:h-3 before:w-3","before:rounded-full","before:duration-200 before:transition before:ease-in-out",{"before:transform before:translate-x-[calc(18px)]":e.modelValue==e.trueValue},{"before:left-0.5":e.modelValue!=e.trueValue},"ring-1",{"ring-1":!_,"ring-[0.5px]":_},{"before:bg-white":e.modelValue==e.trueValue,"before:bg-general-100":e.modelValue!==e.trueValue,"bg-white ring-general-100":e.modelValue!==e.trueValue&&!e.disabled,"bg-primary-500 ring-transparent":e.modelValue==e.trueValue&&!e.disabled,"bg-general-200 ring-transparent":e.modelValue==e.trueValue&&e.disabled,"bg-general-200 ring-general-100":e.modelValue!==e.trueValue&&e.disabled},e.triState&&{"!bg-danger-500 before:!bg-white ring-transparent":e.modelValue==e.falseValue&&!e.disabled,"!bg-success-500 before:!bg-white ring-transparent":e.modelValue==e.trueValue&&!e.disabled},"peer-focus-visible:!outline peer-focus-visible:!outline-offset-0 peer-focus-visible:!outline-primary-500/[5%]","transition-colors duration-200","cursor-pointer"]}),input:({props:e})=>({class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","opacity-0","rounded-md","outline-none","appearance-none",{"cursor-default":e.disabled,"cursor-pointer":!e.disabled}]}),label:{class:["relative","w-max h-max items-start cursor-pointer","flex items-start select-none text-xs tracking-[0.02em] font-medium","text-general-800","shrink-0","inline-flex","align-bottom","transition-all","duration-200"]},labeltext:{class:"ml-1 leading-4"},tooltipicon:{class:"text-primary-500 w-[10px] h-[10px]"}},ie={root:({props:e,state:t})=>({class:["relative","inline-flex","w-4 h-4","ring-inset","ring-2","rounded-full",{"bg-white":!e.disabled||t.checked,"bg-general-50":e.disabled&&!t.checked,"ring-general-100":!e.disabled&&!t.checked,"ring-primary-500":!e.disabled&&t.checked,"ring-general-200":e.disabled},{"!ring-danger-500":e.invalid},"cursor-pointer"],"data-wv-name":"buttonradio","data-wv-section":"root"}),box:({props:e,state:t})=>({class:["w-2 h-2","text-sm","font-medium","translate-x-1/2","translate-y-1/2","rounded-full","transition duration-200 ease-in-out",{"bg-primary-500":t.checked&&e.value!==void 0&&!e.disabled,"bg-general-200":t.checked&&e.value!==void 0&&e.disabled},{"outline-none outline-offset-0":!e.disabled,"peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%]":!e.disabled}]}),input:({props:e})=>({class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","opacity-0","rounded-md","outline-none","appearance-none",{"cursor-default":e.disabled,"cursor-pointer":!e.disabled}]}),icon:{class:"hidden"},label:m.label,labeltext:m.labeltext,tooltipicon:m.tooltipicon},le={root:{class:["block absolute bg-surface-0/50 rounded-full pointer-events-none"],style:"transform: scale(0)"}},se={root:{class:"relative"},menu:{class:"p-0 m-0 list-none flex justify-center"},menuitem:{class:["relative","flex","justify-center"]},action:({props:e,context:t,state:a})=>({class:["inline-flex items-start relative","flex-col","transition-shadow","rounded-md",{"pr-4 min-[576px]:pr-32 md:pr-40":e.model.length!==t.index+1},"bg-surface-0","",{"cursor-pointer":!e.readonly},"after:border-t-2",{"after:border-surface-200":a.d_activeStep<=t.index},{"after:border-primary-500":a.d_activeStep>t.index},"after:w-full","after:absolute","after:top-1/2","after:left-0","after:transform","after:-mt-3",{"after:hidden":e.model.length==t.index+1}]}),step:({context:e,props:t,state:a})=>({class:["flex items-center justify-center","z-40","rounded-full","border-2","w-[2rem]","h-[2rem]","text-sm","leading-[2rem]",{"text-surface-400/60":!e.active&&a.d_activeStep<e.index,"border-surface-100":!e.active&&a.d_activeStep<e.index,"bg-surface-0":a.d_activeStep<=e.index},{"border-primary-500":e.active,"text-primary-500":e.active},{"bg-primary-500":a.d_activeStep>e.index,"text-surface-0":a.d_activeStep>e.index,"border-primary-500":a.d_activeStep>e.index},{"hover:border-surface-300":!e.active&&!t.readonly},"transition-colors duration-200 ease-in-out"]}),label:({context:e})=>({class:["relative","text-sm leading-none",{"font-medium":e.active},"block","mt-2",{"text-surface-400/60":!e.active,"text-surface-800/80":e.active},"whitespace-nowrap","overflow-ellipsis","max-w-full"]})};function b(e,t){return{[e]:t}[e]}b("WANGS-TAB-MENU",{root:{class:"overflow-x-visible"},menu:({props:e})=>({class:["flex flex-1","list-none","p-0 m-0","text-general-100",{"w-max ring-1 ring-inset ring-general-100 rounded":e.type==="segmented"}]}),menuitem:{class:"mr-0"},action:({props:e,context:t})=>{var a,r;return{class:["relative","font-medium","text-xs leading-4 tracking-[0.02em]","flex items-center",{"rounded-xl py-1 px-3":e.type==="pill",rounded:e.type==="segmented","p-2 pb-1.5 pt-0.5 !h-6":e.type==="tab","py-[5px] px-3 !h-6":e.type==="segmented","ml-1":e.type==="pill"&&t.index!==0,"gap-1":t.item.icon},{"border-b-2":e.type==="tab","shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible":e.type==="segmented"&&t.active},{"border-primary-700":t.active,"border-grayscale-400":!t.active,"text-grayscale-600":!t.active&&e.type==="tab","text-primary-700":t.active&&e.type==="tab","bg-primary-700 text-white":e.type==="pill"&&t.active,"bg-grayscale-100 text-grayscale-800":e.type==="pill"&&!t.active,"bg-primary-500 text-white":e.type==="segmented"&&t.active,"!text-general-800":e.type==="segmented"&&!t.active,"bg-transparent ":e.type!=="pill"&&!t.active},{"hover:bg-primary-50":e.type==="tab"},"focus-visible:outline-none focus-visible:outline-offset-0",{"focus-visible:border-primary-200 focus-visible:text-primary-400":!t.active},{"pointer-events-none":(a=t.item)==null?void 0:a.disabled,"opacity-60":(r=t.item)==null?void 0:r.disabled},"transition-all duration-200","cursor-pointer select-none text-decoration-none","overflow-hidden","user-select-none","!no-underline","whitespace-nowrap"]}},icon:{class:"mr-2"},inkbar:({props:e})=>({class:["grow border-b-2 border-grayscale-400",{hidden:e.type==="pill"||e.useTrailingLine===!1||e.type==="segmented"}]})}),b("WANGS-INPUT-OTP",{root:{class:["flex items-center","gap-[6px]","w-max"]},input:({props:e,context:t,parent:a})=>({class:["text-[14px] leading-none font-medium",{"flex-1 w-[1%]":a.tagName=="WANGS-INPUT-GROUP"},"text-center","m-0","w-[42px] h-[42px]",{"rounded-md":a.tagName!=="WANGS-INPUT-GROUP"},{"first:rounded-l-md rounded-none last:rounded-r-md":a.tagName=="WANGS-INPUT-GROUP"},{"border-0 border-y border-l last:border-r":a.tagName=="WANGS-INPUT-GROUP"},"text-general-800 dark:text-general-800","placeholder:text-surface-400 dark:placeholder:text-surface-500","bg-white dark:bg-white",{"ring-1":navigator.userAgent.includes("Firefox"),"ring-[0.5px]":!navigator.userAgent.includes("Firefox")},{"ring-general-200 dark:ring-general-200":!e.invalid},{"ring-danger-500 dark:ring-danger-500":e.invalid},{"hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400":!t.disabled&&!e.invalid,"focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400":!t.disabled&&!e.invalid,"focus:outline-none focus:outline-offset-0":!t.disabled,"opacity-60 select-none pointer-events-none cursor-default":t.disabled},{filled:a.tagName=="WANGS-FLOAT-LABEL"&&t.filled},"appearance-none","transition-colors duration-200"]})});const d=class d{constructor(){y(this,"_baseUrl","");if(globalThis[d.SINGLETON_KEY])return globalThis[d.SINGLETON_KEY];globalThis[d.SINGLETON_KEY]=this}setNavigationBaseUrl(t){this._baseUrl=this.normalizeBase(t)}getNavigationBaseUrl(){return this._baseUrl}normalizeBase(t){return t.replace(/\/+$/,"").concat("/")}normalizePath(t){if(!t.startsWith("/"))return new URL(t,window.location.href).pathname;const a=this.getNavigationBaseUrl();if(!a)return t;const r=t.slice(1);return`${a}${r}`}stripBase(t,a){return a||(a=this.getNavigationBaseUrl()),a!=="/"&&t.startsWith(a)?"/"+t.slice(a.length).replace(/^\/+/,""):t}push(t,a={},r=""){var h;const i={...a,...history.state??{},current:t,back:(h=history.state)==null?void 0:h.current,forward:void 0,replaced:!1,position:history.length+1};window.history.pushState(i,r,t)}replace(t,a={},r=""){const i={...a,...history.state??{},forward:void 0,current:t,replaced:!0};window.history.replaceState(i,r,t)}dispatchBeforeNavigationEvent(t,a,r){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:t,mode:a,state:r}}))}dispatchNavigationEvent(t,a,r){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:t,mode:a,state:r}}))}navigateToRoute(t,a="push",r=history.state,i=""){if(!t)return;const h=typeof t=="string"?t:t.toString(),c=this.normalizePath(h);if(c===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(c,a,r),a==="push"?this.push(c,r,i):this.replace(c,r,i),this.dispatchNavigationEvent(c,a,r)}};y(d,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__");let v=d;new v;const oe=b("WANGS-TAB-MENU",{root:{class:"overflow-x-auto",style:"scrollbar-width: none"},menu:({props:e})=>({class:["flex flex-1","list-none","p-0 m-0","text-general-100",{"w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]":e.type==="segmented"}]}),menuitem:{class:"mr-0"},action:({props:e,context:t})=>{var a,r;return{class:["relative","font-medium","text-xs leading-4 tracking-[0.02em]","flex items-center",{"rounded-xl py-1 px-3":e.type==="pill",rounded:e.type==="segmented","p-2 pb-1.5 pt-0.5 !h-6":e.type==="tab","py-[5px] px-3 !h-[26px]":e.type==="segmented","ml-1":e.type==="pill"&&t.index!==0},{"border-b-2":e.type==="tab"},{"border-primary-500":t.active,"border-grayscale-400":!t.active,"text-grayscale-600":!t.active,"text-primary-500":t.active&&e.type==="tab","bg-primary-500 text-white":e.type==="pill"&&t.active,"bg-grayscale-200 text-grayscale-800":e.type==="pill"&&!t.active,"bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)]":e.type==="segmented"&&t.active,"!text-general-800":e.type==="segmented"&&!t.active,"bg-transparent ":e.type!=="pill"&&!t.active},"focus-visible:outline-none focus-visible:outline-offset-0",{"focus-visible:border-primary-200 focus-visible:text-primary-400":!t.active},{"pointer-events-none":(a=t.item)==null?void 0:a.disabled,"opacity-60":(r=t.item)==null?void 0:r.disabled},"transition-all duration-200","cursor-pointer select-none text-decoration-none","overflow-hidden","user-select-none","!no-underline","whitespace-nowrap"]}},icon:{class:"mr-2"},inkbar:({props:e})=>({class:["grow border-b-2 border-primary-100",{hidden:e.type==="pill"||e.useTrailingLine===!1||e.type==="segmented"}]})}),de={root:({context:e,props:t})=>({class:["font-medium text-xs tracking-[0.02em]","placeholder:text-general-200 placeholder:!font-light","w-full",{"resize-none":t.autoResize,resize:!t.autoResize},t.inputClass,"m-0","py-1 px-3","rounded","appearance-none",...D,{"!ring-danger-500":e.invalidInput},{"bg-white text-general-800":!e.disabled,"bg-general-50 text-general-200":e.disabled},"focus-visible:outline-none","appearance-none","transition-colors duration-200"],style:`min-height: ${t.rows*26}px`,"data-wv-name":"textarea","data-wv-section":"root"})},x=e=>{if(!e)return!0;const t=Object.keys(e);return t.length?t.every(a=>{const r=e[a];return typeof r=="object"?Array.isArray(r)?!r.length||r.every(i=>typeof i=="object"?x(i):i==null):x(r):r==null}):!0},ce={root:({props:e})=>({class:["flex flex-col grow","text-xs font-normal text-grayscale-900"]}),event:({props:e,context:t})=>({class:["grid grid-cols-[max-content,1fr] gap-x-[10px] gap-y-1"]}),opposite:({props:e,context:t})=>({class:"hidden"}),separator:({props:e})=>({class:["flex items-center flex-initial",{"flex-col":e.layout==="vertical","flex-row":e.layout==="horizontal"}]}),marker:{class:["w-max","rounded-full","bg-transparent","ring-2 ring-inset ring-primary-400 p-0.5","flex items-center justify-center"]},markerArrow:e=>({class:["w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",{"!visible":e.detail&&!x(e.detail)},{"rotate-180":e.showDetail}],"data-wv-section":"markerArrow"}),markerDot:e=>({class:["hidden w-[6px] h-[6px] m-[3px] rounded-full bg-black",{"!flex":!e.detail||x(e.detail)}],"data-wv-section":"markerDot"}),contentHeader:{class:["leading-5 cursor-pointer truncate !text-xs !font-bold"]},contentDetailKey:{class:["text-general-400 whitespace-nowrap"]},contentDetailValue:{class:["text-xs text-general-800"]},contentDate:{class:["text-xs font-medium"]},connector:({props:e})=>({class:["w-[2px] grow bg-grayscale-900"]}),content:({props:e,context:t})=>({class:["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]})},ue={root:({props:e})=>({class:["w-full max-w-[496px]",{"-translate-x-2/4":e.position=="top-center"||e.position=="bottom-center"}],style:`z-index: ${e.baseZIndex}`}),container:({props:e})=>({class:["border-l-4 mt-6","rounded-[7px] w-full","shadow-lg",{"border-success-500 text-success-500 bg-success-50":e.message.severity==="success","border-danger-500 text-danger-500 bg-danger-50":e.message.severity==="error","border-fixed-primary-500 text-fixed-primary-500 bg-fixed-primary-50":e.message.severity==="info"}],"data-wv-severity":e.message.severity}),content:{class:"flex items-center py-3 px-3 text-inherit gap-2"},icon:{class:"hidden"},text:{class:["text-xs leading-4 font-normal tracking-[0.02em] text-inherit","flex-1"]},summary:{class:"font-medium block"},detail:{class:"text-inherit"},closebutton:({props:e})=>({class:["flex items-center justify-center","w-6 h-6","ml-auto relative","rounded-full","bg-transparent",{"text-success-500 hover:bg-success-100":e.message.severity==="success","text-danger-500 hover:bg-danger-100":e.message.severity==="error","text-fixed-primary-500 hover:bg-fixed-primary-100":e.message.severity==="info"},"transition duration-200 ease-in-out","overflow-hidden"]}),closeicon:{class:["w-[13px] h-[13px]","shrink-0"]},transition:{enterFromClass:"opacity-0 translate-y-2/4",enterActiveClass:"transition-[transform,opacity] duration-300",leaveFromClass:"max-h-[1000px]",leaveActiveClass:"!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",leaveToClass:"max-h-0 opacity-0 mb-0"}},ge={root:{class:["relative","inline-flex","align-bottom","cursor-pointer","select-none"]},box:({props:e})=>({class:["items-center inline-flex flex-1 text-center align-bottom justify-center","px-2.5 py-1.5","text-sm","rounded-md shadow-sm","text-surface-700/80","ring-1 ring-surface-200",{"bg-surface-0 ":!e.modelValue,"bg-surface-100":e.modelValue},"peer-hover:bg-surface-200",{"peer-focus-visible:ring-2 peer-focus-visible:ring-inset peer-focus-visible:ring-primary-500":!e.disabled},"transition-all duration-200",{"cursor-pointer":!e.disabled,"opacity-60 select-none pointer-events-none cursor-default":e.disabled}]}),label:{class:"font-semibold text-center w-full"},input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","opacity-0","rounded-md","outline-none","border border-surface-200","appareance-none","cursor-pointer"]},icon:{class:[" mr-2","text-surface-700/80"]}},fe={root:({context:e,props:t})=>({class:["absolute",{"pb-1":e==null?void 0:e.top,"pt-1":e==null?void 0:e.bottom,"pl-1":e==null?void 0:e.right,"pr-1":e==null?void 0:e.left},"!transition"]}),arrow:{class:"hidden"},text:{class:["rounded-[10px]","bg-white","px-3 py-1","text-xs font-normal leading-4 text-left","text-grayscale-900","shadow-[0px_4px_4px_0px_#00000040]","whitespace-pre-line","break-words"]}},me={root:{class:["relative","w-full h-full","rounded-md","min-h-8"]},loadingOverlay:{class:["flex justify-center items-center absolute z-1 h-full w-full"]},wrapper:{class:["overflow-auto"]},container:{class:["m-0 p-0","list-none overflow-auto"]},node:{class:["p-0","!pl-1","rounded-md","focus:outline-none focus:outline-offset-0"]},content:({context:e,props:t})=>({class:["flex items-center","rounded-md","p-1","text-surface-700",{"bg-fixed-primary-50 !text-fixed-primary-500 [&_*]:text-fixed-primary-500":e.selected&&t.selectionMode==="single"},{"hover:bg-fixed-primary-50":(t.selectionMode=="single"||t.selectionMode=="multiple")&&!e.disabled&&!e.exactDisabled},{"!text-general-200":e.disabled&&!e.exactDisabled,"!cursor-default":e.disabled||e.exactDisabled},"transition-shadow duration-200",{"cursor-pointer select-none":t.selectionMode=="single"||t.selectionMode=="multiple"},{"cursor-pointer":!e.disabled}]}),toggler:({context:e})=>({class:["inline-flex items-center justify-center","shrink-0","border-0 rounded-full","w-4 h-4","mr-0.5","!text-general-800","bg-transparent",{invisible:e.leaf},"hover:bg-surface-100","transition duration-200","cursor-pointer select-none !pointer-events-auto"],"data-wv-section":"tree-node-toggler"}),togglericon:{class:["w-4 h-4"]},nodeCheckbox:{root:{class:["relative","inline-flex","align-bottom","w-4","h-4","mr-2","cursor-default","select-none"]},box:({props:e,context:t})=>({class:["flex","items-center","justify-center","w-4","h-4","rounded","border","text-surface-600",{"border-surface-300 bg-surface-0":!t.checked,"border-fixed-primary-500 bg-fixed-primary-500":t.checked},{"ring-2 ring-fixed-primary-500":!e.disabled&&t.focused,"cursor-default opacity-60":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-fixed-primary-500":!e.disabled,"cursor-default opacity-60":e.disabled},"transition-colors","duration-200"]}),input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","border","opacity-0","rounded-md","outline-none","border-2 border-surface-300","appareance-none"]},icon:{class:["text-normal","w-3","h-3","text-white","transition-all","duration-200"]}},nodeicon:()=>({class:["!hidden"]}),subgroup:{class:["!m-0 list-none p-0 !pl-1"]},filtercontainer:{class:["relative block","mb-2","w-full"]},input:{class:["relative","font-sans leading-6","sm:text-sm","m-0","py-1.5 px-3 pr-10","w-full","rounded-md","text-surface-900","placeholder:text-surface-400","bg-surface-0","ring-1 ring-inset ring-surface-300","hover:border-fixed-primary-500","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-fixed-primary-500","appearance-none","transition-colors duration-200"]},loadingicon:{class:["text-general-400","absolute text-lg top-[50%] right-[50%] -mt-2 -mr-2 animate-spin"]},searchicon:{class:["absolute top-1/2 -mt-2 right-3","text-surface-600"]},label:({props:e,context:t})=>({class:["inline-flex justify-between items-center gap-2","w-full","text-xs font-medium",{"!text-general-200 !cursor-default":t.exactDisabled&&e.node.key!=-1},{"!text-general-800":e.node.isPlacementGroup}]})},be={root:({props:e,state:t})=>({class:["inline-flex","relative","w-full md:w-56","rounded-md","shadow-sm","bg-surface-0",{"ring-1 ring-inset ring-surface-300":!t.focused,"ring-2 ring-inset ring-primary-500":t.focused},"cursor-default","select-none",{"opacity-60":e.disabled,"pointer-events-none":e.disabled}]}),labelContainer:{class:["overflow-hidden flex flex-auto cursor-pointer"]},label:{class:["block leading-5","py-1.5 px-3","text-surface-800/80","transition duration-200","overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis"]},trigger:{class:["sm:text-sm","flex items-center justify-center","shrink-0","bg-transparent","text-surface-500","w-12","rounded-tr-md","rounded-br-md"]},panel:{class:["absolute top-0 left-0","mt-2","border-0","rounded-md","shadow-md","bg-surface-0","text-surface-800/80","ring-1 ring-inset ring-surface-300"]},wrapper:{class:["max-h-[200px]","overflow-auto"]},tree:{root:{class:["relative","p-1.5"]},wrapper:{class:["overflow-auto"]},container:{class:["m-0 p-0","list-none overflow-auto"]},node:{class:["p-0","rounded-md","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500"]},content:({context:e,props:t})=>({class:["flex items-center","rounded-md","p-2","text-surface-700",{"bg-surface-100 text-primary-500":e.selected},{"hover:bg-surface-200":t.selectionMode=="single"||t.selectionMode=="multiple"},"transition-shadow duration-200",{"cursor-pointer select-none":t.selectionMode=="single"||t.selectionMode=="multiple"}]}),toggler:({context:e})=>({class:["inline-flex items-center justify-center","border-0 rounded-full","mr-2","w-6 h-6","mr-2","text-surface-500","bg-transparent",{invisible:e.leaf},"hover:text-surface-700","hover:bg-surface-100","focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset","focus:ring-primary-500","transition duration-200","cursor-pointer select-none"]}),togglericon:{class:["w-4 h-4","text-surface-500/70"]},nodeCheckbox:{root:{class:["relative","inline-flex","align-bottom","w-4","h-4","mr-2","cursor-default","select-none"]},box:({props:e,context:t})=>({class:["flex","items-center","justify-center","w-4","h-4","rounded","border","text-surface-600",{"border-surface-300 bg-surface-0":!t.checked,"border-primary-500 bg-primary-500":t.checked},{"ring-2 ring-primary-500":!e.disabled&&t.focused,"cursor-default opacity-60":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500":!e.disabled,"cursor-default opacity-60":e.disabled},"transition-colors","duration-200"]}),input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","border","opacity-0","rounded-md","outline-none","border-2 border-surface-300","appareance-none"]},icon:{class:["text-normal","w-3","h-3","text-white","transition-all","duration-200"]}},nodeicon:{class:["mr-2","text-surface-600/70"]},subgroup:{class:["m-0 list-none p-0 pl-2 mt-1"]},filtercontainer:{class:["relative block","mb-2","w-full"]},input:{class:["relative","font-sans leading-6","sm:text-sm","m-0","py-1.5 px-3 pr-10","w-full","rounded-md","text-surface-900","placeholder:text-surface-400","bg-surface-0","ring-1 ring-inset ring-surface-300","hover:border-primary-500","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500","appearance-none","transition-colors duration-200"]},loadingicon:{class:["text-surface-500","absolute top-[50%] right-[50%] -mt-2 -mr-2 animate-spin"]},searchicon:{class:["absolute top-1/2 -mt-2 right-3","text-surface-600"]}},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},xe={root:{class:["relative","w-4 h-4","inline-flex","align-bottom","transition-all","duration-200"]},box:({props:e,context:t})=>({class:["flex","items-center","justify-center","w-full","h-full","rounded","border-2","text-surface-0",{"border-general-100 bg-surface-0":!t.active&&!e.disabled,"border-primary-500 bg-primary-500":t.active&&!e.disabled},{"ring-2 ring-primary-500":!e.disabled&&t.focused,"cursor-default":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-offset-1 peer-focus-visible:ring-primary":!e.disabled,"cursor-default bg-general-50 border-general-200":e.disabled&&!t.active,"bg-general-200 border-general-200":e.disabled&&t.active},"transition-colors","duration-200"]}),input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","border","opacity-0","rounded-md","outline-none","border-2 border-surface-300","appareance-none","cursor-pointer"]},checkicon:{class:["text-normal","w-3","h-3","text-surface-0","transition-all","duration-200"]},uncheckicon:{class:["text-normal","w-3","h-3","text-surface-0","transition-all","duration-200"]}},he={root:{class:["!mt-0 text-danger-500 text-xs font-light tracking-[0.02em]"],"data-wv-name":"validatormessage","data-wv-section":"root"}},ve={root:{class:"flex gap-2 items-center shrink-0","data-wv-name":"buttonbulkaction","data-wv-section":"root"},menu:{id:"bulkaction-overlay-menu",class:"flex gap-2 items-center","data-wv-section":"menu"},selectionmessage:{class:"text-xs text-grayscale-900 cursor-default whitespace-nowrap","data-wv-section":"selectionmessage"},buttonselectall:({context:e})=>({class:["!px-1.5 !py-1 -ml-1.5 -mr-1.5 !text-xs",{"pointer-events-none":e.selectedAll}],"data-wv-section":"buttonselectall"}),bulkactiontoggle:{class:"rounded-full","data-wv-section":"bulkactiontoggle"},dropdownmenu:{root:({props:e,state:t})=>({class:["flex items-center gap-1 transition-all shrink-0","py-[5px] px-3","ring-inset ring-1 ring-primary-500 rounded",{"opacity-60":e.disabled,"pointer-events-none":e.disabled}],"data-wv-section":"dropdownmenu"}),input:({props:e,state:t})=>({class:["w-full h-full transition-transform !text-primary-500 cursor-pointer","text-xs font-medium outline-none tracking-[0.02em] leading-4"]}),trigger:{class:["text-primary-500 [&_i]:w-4 [&_i]:h-4 shrink-0"]},item:()=>""},applybutton:{class:"shrink-0","data-wv-section":"applybutton"},buttonclearselection:{class:"!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5","data-wv-section":"buttonclearselection"}},ye={root:{class:"flex flex-nowrap items-center gap-1","data-wv-name":"badgegroup","data-wv-section":"root"},showmorebutton:{class:"!p-1 !h-auto text-primary-500 !font-medium text-xs leading-4 tracking-[0.02em]","data-wv-section":"showmorebutton"},showmoredialog:{root:{class:[p.root({state:{}}).class,"w-[400px]"],"data-wv-section":"showmoredialog"},title:{class:["text-general-900 text-sm font-semibold leading-5"],"data-wv-section":"showmoredialogtitle"},content:{class:["flex flex-wrap gap-1"],"data-wv-section":"showmoredialogcontent"}}},we={root:{class:["flex gap-[5px] items-center text-left h-[26px]","text-general-800","text-xs font-medium leading-4 tracking-[0.02em]"],"data-wv-name":"breadcrumb","data-wv-section":"root"},item:({context:e})=>({class:{"font-bold text-general-400":e.lastItem,"text-primary-500":!e.lastItem&&!e.firstItem},"data-wv-section":"breadcrumb-menu"}),itemlink:{class:"cursor-pointer text-primary","data-wv-section":"itemlink"},separator:{content:">","data-wv-section":"separator"}},pe={currency:e=>({class:[...f(e),"!rounded-l !rounded-r-none"],"data-wv-section":"currency"}),value:e=>({class:[...f(e),"!rounded-r !rounded-l-none -ml-[1px]"],"data-wv-section":"value"})},ke={root:{"data-wv-name":"fileupload","data-wv-section":"root"},wrapper:{class:["w-full"],"data-wv-section":"wrapper"},input:({state:e})=>({class:[{"":e.fileName!=null}]}),buttonupload:({props:e})=>({class:[{"mb-[21px]":e.fileExtensions||e.fileRequirements}]}),requirements:{class:"flex justify-start"}},Ce={root:{class:["flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"],"data-wv-name":"fieldwrapper","data-wv-section":"root"},label:({props:e,slots:t})=>({class:[["text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]",e.labelClass],{"w-full":t["label-addon"]}],"data-wv-section":"fieldlabel"}),info:{class:"w-2.5 h-2.5 text-primary-500"},optionaltext:{class:"text-grayscale-700 text-[10px] font-normal leading-4"},arterisksign:{class:"text-danger-500"}},je={root:{class:["bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0","grid items-end p-3 gap-x-3 gap-y-4"]}},ze={root:{class:["w-screen h-screen fixed top-0 left-0 z-[9999999]","bg-white","text-base","flex flex-col items-center justify-center","transition-opacity"]},animation:{class:["w-[700px] h-auto"]}},Ae={root:{class:"flex items-center gap-1"},displayname:({props:e})=>({class:["text-xs font-normal cursor-pointer",{"text-primary-400 cursor-pointer":e.type==="icon"},{"text-general-800":e.type!=="icon"}]}),panel:{background:{class:"bg-primary-100 absolute top-0 h-[42px] w-full"},username:{class:"font-semibold text-[10px] leading-[15px] text-center text-balance"},useremail:{class:"text-[8px] font-normal leading-3"},positiondivision:{class:"text-[8px] font-normal leading-3"},userdetaillink:{class:"underline text-primary-400 text-[10px] leading-4 cursor-pointer hover:text-primary-500 transition-colors duration-100"},contentwrapper:{class:"relative overflow-hidden flex flex-col gap-2 w-[200px] h-max items-center justify-center p-3 rounded-[10px] border border-grayscale-900 text-grayscale-900"},detailwrapper:{class:"flex flex-col gap-0.5 items-center justify-center"}}},_e=b("WANGS-INPUT-OTP",{root:{class:["flex items-center","gap-1.5","w-max"]},input:({props:e,context:t,parent:a})=>({class:["text-[14px] leading-none font-medium",{"flex-1 w-[1%]":a.tagName=="WANGS-INPUT-GROUP"},"text-center","m-0","w-[42px] h-[42px]",{"rounded-md":a.tagName!=="WANGS-INPUT-GROUP"},{"first:rounded-l-md rounded-none last:rounded-r-md":a.tagName=="WANGS-INPUT-GROUP"},{"border-0 border-y border-l last:border-r":a.tagName=="WANGS-INPUT-GROUP"},"text-general-800 dark:text-general-800","placeholder:text-surface-400 dark:placeholder:text-surface-500","bg-white dark:bg-white",{"ring-1":navigator.userAgent.includes("Firefox"),"ring-[0.5px]":!navigator.userAgent.includes("Firefox")},{"ring-general-200 dark:ring-general-200":!e.invalid},{"ring-danger-500 dark:ring-danger-500":e.invalid},{"hover:bg-primary-50/30 hover:ring-primary-500 dark:hover:ring-primary-400":!t.disabled&&!e.invalid,"focus:bg-primary-50/30 focus:ring-primary-500 dark:focus:ring-primary-400":!t.disabled&&!e.invalid,"focus:outline-none focus:outline-offset-0":!t.disabled,"opacity-60 select-none pointer-events-none cursor-default":t.disabled},{filled:a.tagName=="WANGS-FLOAT-LABEL"&&t.filled},"appearance-none","transition-colors duration-200"]})}),Pe=s("default",{global:H,directives:{badge:N,ripple:le,tooltip:fe},form:W,filtercontainer:je,dropdown:M,inputnumber:Q,inputphonenumber:X,inputcurrency:pe,inputtext:k,inputbadge:q,inputotp:_e,calendar:U,checkbox:g,buttonradio:ie,multiselect:n,togglebutton:ge,toggleswitch:m,inputgroup:J,inputgroupaddon:Z,treeselect:be,tristatecheckbox:xe,textarea:de,password:ne,validatormessage:he,fileupload:ke,fieldwrapper:Ce,button:S,buttondownload:T,buttonbulkaction:ve,buttonsearch:I,buttonsplit:F,buttonfilter:P,paginator:re,datatable:O,customcolumn:L,tree:me,timeline:ce,changelog:G,accordion:o,card:V,menu:ee,steps:se,breadcrumb:we,tabmenu:oe,dialog:p,dialogconfirm:$,dialogform:R,overlaypanel:ae,message:te,inlinemessage:Y,toast:ue,carousel:E,badge:u,badgegroup:ye,image:K,loading:ze,codesnippet:B,username:Ae})}}});
76
+ `},K={root:({props:e})=>({class:["relative inline-block","shrink-0",{"rounded-full":e.rounded},{"rounded-lg":!e.rounded},e.class,"w-max h-max"],style:!e.size&&e.width?{width:`${e.width}px`,height:`${e.width}px`}:void 0}),image:({props:e,context:t})=>({class:["object-cover",{"!rounded-full":e.rounded},{"!rounded-lg":!e.rounded}],style:`width: ${t.imageSize}px; height: ${t.imageSize}px;`}),button:{class:["flex items-center justify-center","absolute","w-full h-full","inset-0 opacity-0 transition-opacity duration-300","bg-transparent text-white","hover:cursor-pointer hover:bg-grayscale-900 hover:opacity-50"],style:"border-radius: inherit"},icon:{class:"text-white w-6 h-6 opacity-100 max-w-[50%]"},mask:{class:["flex items-center justify-center","fixed top-0 left-0","w-full h-full","bg-grayscale-950/90"]},toolbar:{class:["flex","absolute top-0 right-0","p-4"]},rotaterightbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},rotaterighticon:{class:"w-4 h-4"},rotateleftbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},rotatelefticon:{class:"w-4 h-4"},zoomoutbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},zoomouticon:{class:"w-4 h-4"},zoominbutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},zoominicon:{class:"w-4 h-4"},closebutton:{class:["z-20","flex justify-center items-center","w-6 h-6","mr-2","rounded-full","text-white bg-transparent","hover:text-white hover:bg-white/10","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50","transition duration-200 ease-in-out"]},closeicon:{class:"w-4 h-4"},transition:{enterFromClass:"opacity-0 scale-75",enterActiveClass:"transition-all duration-150 ease-in-out",leaveActiveClass:"transition-all duration-150 ease-in",leaveToClass:"opacity-0 scale-75"}},Y={root:({props:e})=>({class:["rounded-md p-3","w-full",{"bg-success-50 text-success-500":e.severity=="success","bg-danger-50 text-danger-500":e.severity=="danger","bg-grayscale-50 text-general-800":e.severity=="secondary"}],"data-wv-name":"inlinemessage","data-wv-section":"root"}),icon:({props:e})=>({class:["w-4 h-4 !cursor-auto",{"animate-spin duration-200 text-general-100":e.loading}],"data-wv-section":"messageicon"}),text:{class:["w-full flex gap-3 flex-col","text-[12px] leading-[normal] tracking-[0.24px]","font-medium"]}},k={root:({props:e,context:t,parent:a})=>{var r,i;return{class:["px-3 py-[5px] w-full bg-transparent","h-max",{"max-h-[43px]":(i=(r=a.instance)==null?void 0:r.placeholder)==null?void 0:i.includes("password")},"text-general-800 text-xs tracking-[0.02em] font-medium","placeholder:text-general-200","placeholder:!font-light","appearance-none",{"outline-none":!t.disabled,"!text-general-200 select-none pointer-events-none cursor-default":t.disabled}]}}},C=navigator.userAgent.includes("Chrome"),q={root:({context:e})=>({class:["flex flex-wrap gap-x-0.5 gap-y-[5px] items-center","min-h-[26px] h-fit w-full","ring-inset rounded px-[12px] py-[3px]",{"ring-[1px]":!C,"ring-[0.5px]":C},{"!ring-danger-500 !dark:ring-danger-500":e.invalidInput},{"!ring-general-200 !dark:ring-general-200":!e.invalidInput},{"pointer-events-none":e.disabled}]}),input:({context:e,parent:t,props:a})=>({class:[...k.root({props:a,context:e,parent:t}).class,"outline-none !w-full !bg-transparent !p-0 !shadow-none h-max !leading-4 min-w-[70px]",{"placeholder:text-transparent":e.showPlaceholder},"focus:placeholder:text-general-200"]}),erroricon:{class:["mr-1 text-warning-600 text-base"]},erroroverlaypanel:{class:["px-3 py-1 text-[12px] text-general-800"]}},j=navigator.userAgent.includes("Chrome"),J={root:({props:e})=>({class:[{"!ring-danger-500 [&_.inputgroupaddon]:ring-danger-500":e.invalid&&e.ring!=="none","[&_.inputgroupaddon]:ring-general-200":!e.invalid&&e.ring!=="none","!bg-general-50 ":e.disabled},{"[&:has(:focus)]:!ring-primary-500 [&:has(:focus)_.inputgroupaddon]:!ring-primary-500":e.ring!=="none"},{"ring-[1px] [&_.inputgroupaddon]:ring-[1px]":!j&&e.ring!=="none","ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]":j&&e.ring!=="none"},"[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]","[&:has(input)]:cursor-text","flex items-stretch","w-full","ring-inset ring-general-200 rounded","bg-white",e.class],"data-wv-section":"inputgroup"})},Z={root:({props:e})=>({class:["inputgroupaddon","inline-flex items-center justify-center","first:rounded-tl first:rounded-bl","last:rounded-tr last:rounded-br","ring-inset","px-3 gap-3","w-max","text-general-800","text-xs font-medium leading-none tracking-tight",{"bg-general-50":e.addonVariant!=="plain"},{"!text-general-200":e.disabled,"!px-2":e.showButtons}],"data-addon-variant":e.addonVariant})},z="text-xs font-medium tracking-[0.02em] leading-[18px]",A="h-[26px]",Q={root:({props:e,parent:t})=>({class:["flex items-center self-stretch shrink-0 grow",A,"py-1 px-3","rounded","appearance-none"]}),input:{root:({parent:e,context:t})=>({class:["border-0 h-full w-full outline-none","bg-inherit",z,"placeholder:text-general-200 placeholder:font-light",t.disabled?"text-general-200":"text-general-800"]})},inputresizer:{class:[z,A,"user-select-none py-1 px-3 block min-w-4 text-transparent"]},buttongroup:{class:["flex"]},incrementbutton:{root:({parent:e})=>({class:[]}),label:{class:"h-0 w-0"}},decrementbutton:{root:({parent:e})=>({class:[]}),label:{class:"h-0 w-0"}},incrementicon:({props:e})=>({class:["!text-base text-general-500",{"!text-general-200":e.disabled}]}),decrementicon:({props:e})=>({class:["!text-base text-general-500",{"!text-general-200":e.disabled}]})},f=({isChromeBased:e,invalidInput:t})=>[{"ring-[1px]":!e,"ring-[0.5px]":e},{"!ring-danger-500":t},"ring-inset","ring-general-200","[&:has(:focus)]:bg-none","[&:has(:focus)]:ring-primary-500","[&:has(:focus)]:ring-1","bg-white","z-[0] [&:has(:focus)]:z-[12]"],X={dialcode:{root:e=>({class:[...f(e),"!rounded-l !rounded-r-none"]}),dropdownicon:({state:e})=>n.dropdownicon({state:e})},input:e=>({class:[...f(e),"!rounded-r !rounded-l-none -ml-[1px]","focus:bg-none","focus:ring-primary-500","focus:ring-1"]})},ee={root:{class:["transition-transform","z-[7299]","w-max min-w-52","min-w-[196px]","max-h-[90vh] overflow-y-auto","rounded-md","max-w-[400px]","translate-y-1","shadow","overflow-hidden","bg-white","text-general-800"]},menu:{class:["list-none","m-0","p-0","outline-none","w-full"]},start:{class:["flex justify-end","py-[3px] px-4"]},menuitem:{class:["cursor-pointer"]},content:({context:e})=>({class:["w-full","rounded-md","text-inherit","transition-shadow","duration-200"]}),action:{class:["flex items-center justify-start gap-2","px-4 py-[7px]","hover:bg-primary-50/80","text-xs","no-underline","overflow-hidden","cursor-pointer","select-none"]},icon:{class:["w-4 h-4"]},label:({props:e})=>({class:["text-inherit",{"!text-danger-500":e.danger}]}),submenuheader:{class:["text-inherit"]},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},te={root:({props:e})=>({class:["my-2 mx-0","rounded-md","ring-1 ring-inset ring-surface-200","bg-surface-0",{"text-blue-500":e.severity=="info","text-green-500":e.severity=="success","text-orange-500":e.severity=="warn","text-red-500":e.severity=="error"}]}),wrapper:{class:["flex items-center","p-4"]},icon:{class:["w-5 h-5","mr-3 shrink-0"]},text:{class:["text-sm leading-none","font-medium"]},button:({props:e})=>({class:["flex items-center justify-center","w-6 h-6","ml-auto relative","rounded-full","bg-transparent","text-surface-700/80","transition duration-200 ease-in-out","hover:bg-surface-100","outline-none focus:ring-1 focus:ring-inset","focus:ring-primary-500","overflow-hidden"]}),closeicon:{class:["w-3 h-3","shrink-0"]},transition:{enterFromClass:"opacity-0",enterActiveClass:"transition-opacity duration-300",leaveFromClass:"max-h-40",leaveActiveClass:"overflow-hidden transition-all duration-300 ease-in",leaveToClass:"max-h-0 opacity-0 !m-0"}},ae={root:{class:["h-max","rounded-lg","shadow-xl","border-0","absolute left-0 top-0 mt-2","z-40 transform origin-center","bg-white","text-general-800","before:absolute before:-top-2 before:ml-4 before:z-50","before:w-0 before:h-0 before:shadow-xl"]},content:{class:"items-center flex"},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},re={root:{class:["flex items-center justify-start flex-wrap gap-0.5","bg-white","text-grayscale-900"]},paginatorwrapper:{class:"mt-1.5"},pages:{class:"flex gap-0.5"},firstpagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),previouspagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),nextpagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),lastpagebutton:({context:e})=>({class:["relative","text-2xl font-medium","inline-flex items-center justify-center","border-t-2 border-transparent","w-6 h-6","text-general-300","transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),pagebutton:({context:e})=>({class:["relative","text-xs font-normal","rounded-full","w-6 h-6",{"text-general-300 border-none hover:bg-grayscale-50":!e.active,"text-white bg-grayscale-900":e.active},{"hover:border-surface-300":!e.disabled&&!e.active,"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500":!e.disabled},"transition duration-200","user-none overflow-hidden",{"cursor-default pointer-events-none opacity-60":e.disabled}]}),rowperpagedropdown:{root:({props:e,state:t})=>({class:["inline-flex items-center justify-center","relative","w-max","px-3 py-1","rounded-[50px]","bg-transparent","border-[0.5px] border-primary-100","transition-all","duration-200",{"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600":!t.focused},"cursor-pointer","select-none",{"opacity-60":e.disabled,"pointer-events-none":e.disabled,"cursor-default":e.disabled}]}),input:{class:["text-xs","flex items-center","bg-transparent","text-general-800","w-max","rounded-none","transition","duration-200","focus-visible:outline-none focus-visible:shadow-none","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]},trigger:{class:["text-xs","flex items-center justify-center","shrink-0","w-2","h-2","ml-0.5","rounded-tr-md","rounded-br-md"]},dropdownicon:{class:"w-2 h-2"},panel:{class:["absolute top-0 left-0","mt-1","border-0","rounded-md","bg-white","text-general-800","ring-1 ring-inset ring-primary-100"]},wrapper:{class:["max-h-[15rem]","overflow-auto"]},list:{class:"py-0.5 list-none m-0"},item:({context:e})=>({class:["text-xs","leading-none",{"font-normal":!e.selected,"font-bold":e.selected},"relative","border-0","rounded-none","m-0","py-2 px-4","hover:bg-primary-50","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},jumptopageinput:{root:{class:"inline-flex mx-2"},input:{root:{class:["relative","leading-6","text-xs","text-center","block","flex-auto","bg-transparent","border-primary-100 border-[0.5px]","text-general-800","max-w-[3rem] w-fit","px-3 py-1","rounded-[50px] h-6","transition","duration-200","hover:ring-general-200","focus-visible:outline-none focus-visible:shadow-none","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]}}},jumptopagedropdown:{root:({props:e,state:t})=>({class:["inline-flex","relative","h-8","rounded-md","mx-2","bg-transparent","transition-all","duration-200",{"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600":!t.focused},"cursor-pointer","select-none",{"opacity-60":e.disabled,"pointer-events-none":e.disabled,"cursor-default":e.disabled}]}),input:{class:["font-sans","leading-6","text-xs","block","flex-auto","flex items-center","bg-transparent","border-0","text-surface-800/80","w-[1%]","py-1.5 px-3 pr-0","rounded-none","transition","duration-200","focus-visible:outline-none focus-visible:shadow-none","relative","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]},trigger:{class:["text-xs","flex items-center justify-center","shrink-0","bg-transparent","text-surface-500","w-12","h-8","rounded-tr-md","rounded-br-md"]},panel:{class:["absolute top-0 left-0","mt-1","border-0","rounded-md","shadow-md","bg-surface-0","text-surface-800/80","ring-1 ring-inset ring-surface-300"]},wrapper:{class:["max-h-[15rem]","overflow-auto"]},list:{class:"py-1 list-none m-0"},item:({context:e})=>({class:["text-xs","leading-none",{"font-normal":!e.selected,"font-bold":e.selected},"relative","border-0","rounded-none","m-0","py-2 px-4",{"text-surface-700/80":!e.focused&&!e.selected},{"bg-primary-500 text-white":e.focused&&e.selected},{"bg-transparent text-surface-700/80":!e.focused&&e.selected},"hover:bg-primary-500 hover:text-white","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},current:{class:["text-xs font-normal leading-6 px-3"]}},ne={root:({props:e})=>({class:["w-full","inline-flex relative","text-general-800",{"opacity-60 select-none pointer-events-none cursor-default":e.disabled}]}),input:{class:["!bg-primary-500","placeholder:!font-normal"]},panel:{class:["p-3","border-0","shadow-md rounded-md","bg-white","text-general-800",""]},meter:{class:["overflow-hidden","relative","border-0","h-2","rounded-md","mb-2","bg-surface-100"]},meterlabel:({instance:e})=>{var t,a,r;return{class:["h-full",{"bg-red-500/50":((t=e==null?void 0:e.meter)==null?void 0:t.strength)=="weak","bg-orange-500/50":((a=e==null?void 0:e.meter)==null?void 0:a.strength)=="medium","bg-green-500/50":((r=e==null?void 0:e.meter)==null?void 0:r.strength)=="strong"},"transition-all duration-1000 ease-in-out"]}},showicon:{class:["absolute top-[54%] right-3 -mt-2","text-general-200","focus-visible:text-general-500 hover:text-general-500"]},hideicon:{class:["absolute top-[54%] right-3 -mt-2","text-general-200"]},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},_=navigator.userAgent.includes("Chrome"),m={root:({props:e})=>({class:["inline-flex relative align-middle","shrink-0","rounded-[60px]","h-4 w-8","cursor-pointer",{"select-none pointer-events-none cursor-default":e.disabled}]}),slider:({props:e})=>({class:["absolute top-0 left-0 right-0 bottom-0","rounded-[60px]","before:absolute before:top-1/2","before:-translate-y-1/2","before:h-3 before:w-3","before:rounded-full","before:duration-200 before:transition before:ease-in-out",{"before:transform before:translate-x-[calc(18px)]":e.modelValue==e.trueValue},{"before:left-0.5":e.modelValue!=e.trueValue},"ring-1",{"ring-1":!_,"ring-[0.5px]":_},{"before:bg-white":e.modelValue==e.trueValue,"before:bg-general-100":e.modelValue!==e.trueValue,"bg-white ring-general-100":e.modelValue!==e.trueValue&&!e.disabled,"bg-primary-500 ring-transparent":e.modelValue==e.trueValue&&!e.disabled,"bg-general-200 ring-transparent":e.modelValue==e.trueValue&&e.disabled,"bg-general-200 ring-general-100":e.modelValue!==e.trueValue&&e.disabled},e.triState&&{"!bg-danger-500 before:!bg-white ring-transparent":e.modelValue==e.falseValue&&!e.disabled,"!bg-success-500 before:!bg-white ring-transparent":e.modelValue==e.trueValue&&!e.disabled},"peer-focus-visible:!outline peer-focus-visible:!outline-offset-0 peer-focus-visible:!outline-primary-500/[5%]","transition-colors duration-200","cursor-pointer"]}),input:({props:e})=>({class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","opacity-0","rounded-md","outline-none","appearance-none",{"cursor-default":e.disabled,"cursor-pointer":!e.disabled}]}),label:{class:["relative","w-max h-max items-start cursor-pointer","flex items-start select-none text-xs tracking-[0.02em] font-medium","text-general-800","shrink-0","inline-flex","align-bottom","transition-all","duration-200"]},labeltext:{class:"ml-1 leading-4"},tooltipicon:{class:"text-primary-500 w-[10px] h-[10px]"}},ie={root:({props:e,state:t})=>({class:["relative","inline-flex","w-4 h-4","ring-inset","ring-2","rounded-full",{"bg-white":!e.disabled||t.checked,"bg-general-50":e.disabled&&!t.checked,"ring-general-100":!e.disabled&&!t.checked,"ring-primary-500":!e.disabled&&t.checked,"ring-general-200":e.disabled},{"!ring-danger-500":e.invalid},"cursor-pointer"],"data-wv-name":"buttonradio","data-wv-section":"root"}),box:({props:e,state:t})=>({class:["w-2 h-2","text-sm","font-medium","translate-x-1/2","translate-y-1/2","rounded-full","transition duration-200 ease-in-out",{"bg-primary-500":t.checked&&e.value!==void 0&&!e.disabled,"bg-general-200":t.checked&&e.value!==void 0&&e.disabled},{"outline-none outline-offset-0":!e.disabled,"peer-focus-visible:ring-8 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary-400/[8%]":!e.disabled}]}),input:({props:e})=>({class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","opacity-0","rounded-md","outline-none","appearance-none",{"cursor-default":e.disabled,"cursor-pointer":!e.disabled}]}),icon:{class:"hidden"},label:m.label,labeltext:m.labeltext,tooltipicon:m.tooltipicon},le={root:{class:["block absolute bg-surface-0/50 rounded-full pointer-events-none"],style:"transform: scale(0)"}},se={root:{class:"relative"},menu:{class:"p-0 m-0 list-none flex justify-center"},menuitem:{class:["relative","flex","justify-center"]},action:({props:e,context:t,state:a})=>({class:["inline-flex items-start relative","flex-col","transition-shadow","rounded-md",{"pr-4 min-[576px]:pr-32 md:pr-40":e.model.length!==t.index+1},"bg-surface-0","",{"cursor-pointer":!e.readonly},"after:border-t-2",{"after:border-surface-200":a.d_activeStep<=t.index},{"after:border-primary-500":a.d_activeStep>t.index},"after:w-full","after:absolute","after:top-1/2","after:left-0","after:transform","after:-mt-3",{"after:hidden":e.model.length==t.index+1}]}),step:({context:e,props:t,state:a})=>({class:["flex items-center justify-center","z-40","rounded-full","border-2","w-[2rem]","h-[2rem]","text-sm","leading-[2rem]",{"text-surface-400/60":!e.active&&a.d_activeStep<e.index,"border-surface-100":!e.active&&a.d_activeStep<e.index,"bg-surface-0":a.d_activeStep<=e.index},{"border-primary-500":e.active,"text-primary-500":e.active},{"bg-primary-500":a.d_activeStep>e.index,"text-surface-0":a.d_activeStep>e.index,"border-primary-500":a.d_activeStep>e.index},{"hover:border-surface-300":!e.active&&!t.readonly},"transition-colors duration-200 ease-in-out"]}),label:({context:e})=>({class:["relative","text-sm leading-none",{"font-medium":e.active},"block","mt-2",{"text-surface-400/60":!e.active,"text-surface-800/80":e.active},"whitespace-nowrap","overflow-ellipsis","max-w-full"]})};function b(e,t){return{[e]:t}[e]}b("WANGS-TAB-MENU",{root:{class:"overflow-x-visible"},menu:({props:e})=>({class:["flex flex-1","list-none","p-0 m-0","text-general-100",{"w-max ring-1 ring-inset ring-general-100 rounded":e.type==="segmented"}]}),menuitem:{class:"mr-0"},action:({props:e,context:t})=>{var a,r;return{class:["relative","font-medium","text-xs leading-4 tracking-[0.02em]","flex items-center",{"rounded-xl py-1 px-3":e.type==="pill",rounded:e.type==="segmented","p-2 pb-1.5 pt-0.5 !h-6":e.type==="tab","py-[5px] px-3 !h-6":e.type==="segmented","ml-1":e.type==="pill"&&t.index!==0,"gap-1":t.item.icon},{"border-b-2":e.type==="tab","shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible":e.type==="segmented"&&t.active},{"border-primary-700":t.active,"border-grayscale-400":!t.active,"text-grayscale-600":!t.active&&e.type==="tab","text-primary-700":t.active&&e.type==="tab","bg-primary-700 text-white":e.type==="pill"&&t.active,"bg-grayscale-100 text-grayscale-800":e.type==="pill"&&!t.active,"bg-primary-500 text-white":e.type==="segmented"&&t.active,"!text-general-800":e.type==="segmented"&&!t.active,"bg-transparent ":e.type!=="pill"&&!t.active},{"hover:bg-primary-50":e.type==="tab"},"focus-visible:outline-none focus-visible:outline-offset-0",{"focus-visible:border-primary-200 focus-visible:text-primary-400":!t.active},{"pointer-events-none":(a=t.item)==null?void 0:a.disabled,"opacity-60":(r=t.item)==null?void 0:r.disabled},"transition-all duration-200","cursor-pointer select-none text-decoration-none","overflow-hidden","user-select-none","!no-underline","whitespace-nowrap"]}},icon:{class:"mr-2"},inkbar:({props:e})=>({class:["grow border-b-2 border-grayscale-400",{hidden:e.type==="pill"||e.useTrailingLine===!1||e.type==="segmented"}]})}),b("WANGS-INPUT-OTP",{root:{class:["flex items-center","gap-[6px]","w-max"]},input:({props:e,context:t,parent:a})=>({class:["text-[14px] leading-none font-medium",{"flex-1 w-[1%]":a.tagName=="WANGS-INPUT-GROUP"},"text-center","m-0","w-[42px] h-[42px]",{"rounded-md":a.tagName!=="WANGS-INPUT-GROUP"},{"first:rounded-l-md rounded-none last:rounded-r-md":a.tagName=="WANGS-INPUT-GROUP"},{"border-0 border-y border-l last:border-r":a.tagName=="WANGS-INPUT-GROUP"},"text-general-800 dark:text-general-800","placeholder:text-surface-400 dark:placeholder:text-surface-500","bg-white dark:bg-white",{"ring-1":navigator.userAgent.includes("Firefox"),"ring-[0.5px]":!navigator.userAgent.includes("Firefox")},{"ring-general-200 dark:ring-general-200":!e.invalid},{"ring-danger-500 dark:ring-danger-500":e.invalid},{"hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400":!t.disabled&&!e.invalid,"focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400":!t.disabled&&!e.invalid,"focus:outline-none focus:outline-offset-0":!t.disabled,"opacity-60 select-none pointer-events-none cursor-default":t.disabled},{filled:a.tagName=="WANGS-FLOAT-LABEL"&&t.filled},"appearance-none","transition-colors duration-200"]})});const d=class d{constructor(){y(this,"_baseUrl","");if(globalThis[d.SINGLETON_KEY])return globalThis[d.SINGLETON_KEY];globalThis[d.SINGLETON_KEY]=this}setNavigationBaseUrl(t){this._baseUrl=this.normalizeBase(t)}getNavigationBaseUrl(){return this._baseUrl}normalizeBase(t){return t.replace(/\/+$/,"").concat("/")}normalizePath(t){if(!t.startsWith("/"))return new URL(t,window.location.href).pathname;const a=this.getNavigationBaseUrl();if(!a)return t;const r=t.slice(1);return`${a}${r}`}stripBase(t,a){return a||(a=this.getNavigationBaseUrl()),a!=="/"&&t.startsWith(a)?"/"+t.slice(a.length).replace(/^\/+/,""):t}push(t,a={},r=""){var h;const i={...a,...history.state??{},current:t,back:(h=history.state)==null?void 0:h.current,forward:void 0,replaced:!1,position:history.length+1};window.history.pushState(i,r,t)}replace(t,a={},r=""){const i={...a,...history.state??{},forward:void 0,current:t,replaced:!0};window.history.replaceState(i,r,t)}dispatchBeforeNavigationEvent(t,a,r){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:t,mode:a,state:r}}))}dispatchNavigationEvent(t,a,r){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:t,mode:a,state:r}}))}navigateToRoute(t,a="push",r=history.state,i=""){if(!t)return;const h=typeof t=="string"?t:t.toString(),c=this.normalizePath(h);if(c===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(c,a,r),a==="push"?this.push(c,r,i):this.replace(c,r,i),this.dispatchNavigationEvent(c,a,r)}};y(d,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__");let v=d;new v;const oe=b("WANGS-TAB-MENU",{root:{class:"overflow-x-auto",style:"scrollbar-width: none"},menu:({props:e})=>({class:["flex flex-1","list-none","p-0 m-0","text-general-100",{"w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]":e.type==="segmented"}]}),menuitem:{class:"mr-0"},action:({props:e,context:t})=>{var a,r;return{class:["relative","font-medium","text-xs leading-4 tracking-[0.02em]","flex items-center",{"rounded-xl py-1 px-3":e.type==="pill",rounded:e.type==="segmented","p-2 pb-1.5 pt-0.5 !h-6":e.type==="tab","py-[5px] px-3 !h-[26px]":e.type==="segmented","ml-1":e.type==="pill"&&t.index!==0},{"border-b-2":e.type==="tab"},{"border-primary-500":t.active,"border-grayscale-400":!t.active,"text-grayscale-600":!t.active,"text-primary-500":t.active&&e.type==="tab","bg-primary-500 text-white":e.type==="pill"&&t.active,"bg-grayscale-200 text-grayscale-800":e.type==="pill"&&!t.active,"bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)]":e.type==="segmented"&&t.active,"!text-general-800":e.type==="segmented"&&!t.active,"bg-transparent ":e.type!=="pill"&&!t.active},"focus-visible:outline-none focus-visible:outline-offset-0",{"focus-visible:border-primary-200 focus-visible:text-primary-400":!t.active},{"pointer-events-none":(a=t.item)==null?void 0:a.disabled,"opacity-60":(r=t.item)==null?void 0:r.disabled},"transition-all duration-200","cursor-pointer select-none text-decoration-none","overflow-hidden","user-select-none","!no-underline","whitespace-nowrap"]}},icon:{class:"mr-2"},inkbar:({props:e})=>({class:["grow border-b-2 border-primary-100",{hidden:e.type==="pill"||e.useTrailingLine===!1||e.type==="segmented"}]})}),de={root:({context:e,props:t})=>({class:["font-medium text-xs tracking-[0.02em]","placeholder:text-general-200 placeholder:!font-light",{"w-full":t.cols==null},{"resize-none":t.autoResize,resize:!t.autoResize},t.inputClass,"m-0","py-1 px-3","rounded","appearance-none",...D,{"!ring-danger-500":e.invalidInput},{"bg-white text-general-800":!e.disabled,"bg-general-50 text-general-200":e.disabled},"focus-visible:outline-none","appearance-none","transition-colors duration-200"],"data-wv-name":"textarea","data-wv-section":"root"})},x=e=>{if(!e)return!0;const t=Object.keys(e);return t.length?t.every(a=>{const r=e[a];return typeof r=="object"?Array.isArray(r)?!r.length||r.every(i=>typeof i=="object"?x(i):i==null):x(r):r==null}):!0},ce={root:({props:e})=>({class:["flex flex-col grow","text-xs font-normal text-grayscale-900"]}),event:({props:e,context:t})=>({class:["grid grid-cols-[max-content,1fr] gap-x-[10px] gap-y-1"]}),opposite:({props:e,context:t})=>({class:"hidden"}),separator:({props:e})=>({class:["flex items-center flex-initial",{"flex-col":e.layout==="vertical","flex-row":e.layout==="horizontal"}]}),marker:{class:["w-max","rounded-full","bg-transparent","ring-2 ring-inset ring-primary-400 p-0.5","flex items-center justify-center"]},markerArrow:e=>({class:["w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",{"!visible":e.detail&&!x(e.detail)},{"rotate-180":e.showDetail}],"data-wv-section":"markerArrow"}),markerDot:e=>({class:["hidden w-[6px] h-[6px] m-[3px] rounded-full bg-black",{"!flex":!e.detail||x(e.detail)}],"data-wv-section":"markerDot"}),contentHeader:{class:["leading-5 cursor-pointer truncate !text-xs !font-bold"]},contentDetailKey:{class:["text-general-400 whitespace-nowrap"]},contentDetailValue:{class:["text-xs text-general-800"]},contentDate:{class:["text-xs font-medium"]},connector:({props:e})=>({class:["w-[2px] grow bg-grayscale-900"]}),content:({props:e,context:t})=>({class:["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]})},ue={root:({props:e})=>({class:["w-full max-w-[496px]",{"-translate-x-2/4":e.position=="top-center"||e.position=="bottom-center"}],style:`z-index: ${e.baseZIndex}`}),container:({props:e})=>({class:["border-l-4 mt-6","rounded-[7px] w-full","shadow-lg",{"border-success-500 text-success-500 bg-success-50":e.message.severity==="success","border-danger-500 text-danger-500 bg-danger-50":e.message.severity==="error","border-fixed-primary-500 text-fixed-primary-500 bg-fixed-primary-50":e.message.severity==="info"}],"data-wv-severity":e.message.severity}),content:{class:"flex items-center py-3 px-3 text-inherit gap-2"},icon:{class:"hidden"},text:{class:["text-xs leading-4 font-normal tracking-[0.02em] text-inherit","flex-1"]},summary:{class:"font-medium block"},detail:{class:"text-inherit"},closebutton:({props:e})=>({class:["flex items-center justify-center","w-6 h-6","ml-auto relative","rounded-full","bg-transparent",{"text-success-500 hover:bg-success-100":e.message.severity==="success","text-danger-500 hover:bg-danger-100":e.message.severity==="error","text-fixed-primary-500 hover:bg-fixed-primary-100":e.message.severity==="info"},"transition duration-200 ease-in-out","overflow-hidden"]}),closeicon:{class:["w-[13px] h-[13px]","shrink-0"]},transition:{enterFromClass:"opacity-0 translate-y-2/4",enterActiveClass:"transition-[transform,opacity] duration-300",leaveFromClass:"max-h-[1000px]",leaveActiveClass:"!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",leaveToClass:"max-h-0 opacity-0 mb-0"}},ge={root:{class:["relative","inline-flex","align-bottom","cursor-pointer","select-none"]},box:({props:e})=>({class:["items-center inline-flex flex-1 text-center align-bottom justify-center","px-2.5 py-1.5","text-sm","rounded-md shadow-sm","text-surface-700/80","ring-1 ring-surface-200",{"bg-surface-0 ":!e.modelValue,"bg-surface-100":e.modelValue},"peer-hover:bg-surface-200",{"peer-focus-visible:ring-2 peer-focus-visible:ring-inset peer-focus-visible:ring-primary-500":!e.disabled},"transition-all duration-200",{"cursor-pointer":!e.disabled,"opacity-60 select-none pointer-events-none cursor-default":e.disabled}]}),label:{class:"font-semibold text-center w-full"},input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","opacity-0","rounded-md","outline-none","border border-surface-200","appareance-none","cursor-pointer"]},icon:{class:[" mr-2","text-surface-700/80"]}},fe={root:({context:e,props:t})=>({class:["absolute",{"pb-1":e==null?void 0:e.top,"pt-1":e==null?void 0:e.bottom,"pl-1":e==null?void 0:e.right,"pr-1":e==null?void 0:e.left},"!transition"]}),arrow:{class:"hidden"},text:{class:["rounded-[10px]","bg-white","px-3 py-1","text-xs font-normal leading-4 text-left","text-grayscale-900","shadow-[0px_4px_4px_0px_#00000040]","whitespace-pre-line","break-words"]}},me={root:{class:["relative","w-full h-full","rounded-md","min-h-8"]},loadingOverlay:{class:["flex justify-center items-center absolute z-1 h-full w-full"]},wrapper:{class:["overflow-auto"]},container:{class:["m-0 p-0","list-none overflow-auto"]},node:{class:["p-0","!pl-1","rounded-md","focus:outline-none focus:outline-offset-0"]},content:({context:e,props:t})=>({class:["flex items-center","rounded-md","p-1","text-surface-700",{"bg-fixed-primary-50 !text-fixed-primary-500 [&_*]:text-fixed-primary-500":e.selected&&t.selectionMode==="single"},{"hover:bg-fixed-primary-50":(t.selectionMode=="single"||t.selectionMode=="multiple")&&!e.disabled&&!e.exactDisabled},{"!text-general-200":e.disabled&&!e.exactDisabled,"!cursor-default":e.disabled||e.exactDisabled},"transition-shadow duration-200",{"cursor-pointer select-none":t.selectionMode=="single"||t.selectionMode=="multiple"},{"cursor-pointer":!e.disabled}]}),toggler:({context:e})=>({class:["inline-flex items-center justify-center","shrink-0","border-0 rounded-full","w-4 h-4","mr-0.5","!text-general-800","bg-transparent",{invisible:e.leaf},"hover:bg-surface-100","transition duration-200","cursor-pointer select-none !pointer-events-auto"],"data-wv-section":"tree-node-toggler"}),togglericon:{class:["w-4 h-4"]},nodeCheckbox:{root:{class:["relative","inline-flex","align-bottom","w-4","h-4","mr-2","cursor-default","select-none"]},box:({props:e,context:t})=>({class:["flex","items-center","justify-center","w-4","h-4","rounded","border","text-surface-600",{"border-surface-300 bg-surface-0":!t.checked,"border-fixed-primary-500 bg-fixed-primary-500":t.checked},{"ring-2 ring-fixed-primary-500":!e.disabled&&t.focused,"cursor-default opacity-60":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-fixed-primary-500":!e.disabled,"cursor-default opacity-60":e.disabled},"transition-colors","duration-200"]}),input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","border","opacity-0","rounded-md","outline-none","border-2 border-surface-300","appareance-none"]},icon:{class:["text-normal","w-3","h-3","text-white","transition-all","duration-200"]}},nodeicon:()=>({class:["!hidden"]}),subgroup:{class:["!m-0 list-none p-0 !pl-1"]},filtercontainer:{class:["relative block","mb-2","w-full"]},input:{class:["relative","font-sans leading-6","sm:text-sm","m-0","py-1.5 px-3 pr-10","w-full","rounded-md","text-surface-900","placeholder:text-surface-400","bg-surface-0","ring-1 ring-inset ring-surface-300","hover:border-fixed-primary-500","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-fixed-primary-500","appearance-none","transition-colors duration-200"]},loadingicon:{class:["text-general-400","absolute text-lg top-[50%] right-[50%] -mt-2 -mr-2 animate-spin"]},searchicon:{class:["absolute top-1/2 -mt-2 right-3","text-surface-600"]},label:({props:e,context:t})=>({class:["inline-flex justify-between items-center gap-2","w-full","text-xs font-medium",{"!text-general-200 !cursor-default":t.exactDisabled&&e.node.key!=-1},{"!text-general-800":e.node.isPlacementGroup}]})},be={root:({props:e,state:t})=>({class:["inline-flex","relative","w-full md:w-56","rounded-md","shadow-sm","bg-surface-0",{"ring-1 ring-inset ring-surface-300":!t.focused,"ring-2 ring-inset ring-primary-500":t.focused},"cursor-default","select-none",{"opacity-60":e.disabled,"pointer-events-none":e.disabled}]}),labelContainer:{class:["overflow-hidden flex flex-auto cursor-pointer"]},label:{class:["block leading-5","py-1.5 px-3","text-surface-800/80","transition duration-200","overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis"]},trigger:{class:["sm:text-sm","flex items-center justify-center","shrink-0","bg-transparent","text-surface-500","w-12","rounded-tr-md","rounded-br-md"]},panel:{class:["absolute top-0 left-0","mt-2","border-0","rounded-md","shadow-md","bg-surface-0","text-surface-800/80","ring-1 ring-inset ring-surface-300"]},wrapper:{class:["max-h-[200px]","overflow-auto"]},tree:{root:{class:["relative","p-1.5"]},wrapper:{class:["overflow-auto"]},container:{class:["m-0 p-0","list-none overflow-auto"]},node:{class:["p-0","rounded-md","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500"]},content:({context:e,props:t})=>({class:["flex items-center","rounded-md","p-2","text-surface-700",{"bg-surface-100 text-primary-500":e.selected},{"hover:bg-surface-200":t.selectionMode=="single"||t.selectionMode=="multiple"},"transition-shadow duration-200",{"cursor-pointer select-none":t.selectionMode=="single"||t.selectionMode=="multiple"}]}),toggler:({context:e})=>({class:["inline-flex items-center justify-center","border-0 rounded-full","mr-2","w-6 h-6","mr-2","text-surface-500","bg-transparent",{invisible:e.leaf},"hover:text-surface-700","hover:bg-surface-100","focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset","focus:ring-primary-500","transition duration-200","cursor-pointer select-none"]}),togglericon:{class:["w-4 h-4","text-surface-500/70"]},nodeCheckbox:{root:{class:["relative","inline-flex","align-bottom","w-4","h-4","mr-2","cursor-default","select-none"]},box:({props:e,context:t})=>({class:["flex","items-center","justify-center","w-4","h-4","rounded","border","text-surface-600",{"border-surface-300 bg-surface-0":!t.checked,"border-primary-500 bg-primary-500":t.checked},{"ring-2 ring-primary-500":!e.disabled&&t.focused,"cursor-default opacity-60":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500":!e.disabled,"cursor-default opacity-60":e.disabled},"transition-colors","duration-200"]}),input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","border","opacity-0","rounded-md","outline-none","border-2 border-surface-300","appareance-none"]},icon:{class:["text-normal","w-3","h-3","text-white","transition-all","duration-200"]}},nodeicon:{class:["mr-2","text-surface-600/70"]},subgroup:{class:["m-0 list-none p-0 pl-2 mt-1"]},filtercontainer:{class:["relative block","mb-2","w-full"]},input:{class:["relative","font-sans leading-6","sm:text-sm","m-0","py-1.5 px-3 pr-10","w-full","rounded-md","text-surface-900","placeholder:text-surface-400","bg-surface-0","ring-1 ring-inset ring-surface-300","hover:border-primary-500","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500","appearance-none","transition-colors duration-200"]},loadingicon:{class:["text-surface-500","absolute top-[50%] right-[50%] -mt-2 -mr-2 animate-spin"]},searchicon:{class:["absolute top-1/2 -mt-2 right-3","text-surface-600"]}},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},xe={root:{class:["relative","w-4 h-4","inline-flex","align-bottom","transition-all","duration-200"]},box:({props:e,context:t})=>({class:["flex","items-center","justify-center","w-full","h-full","rounded","border-2","text-surface-0",{"border-general-100 bg-surface-0":!t.active&&!e.disabled,"border-primary-500 bg-primary-500":t.active&&!e.disabled},{"ring-2 ring-primary-500":!e.disabled&&t.focused,"cursor-default":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-offset-1 peer-focus-visible:ring-primary":!e.disabled,"cursor-default bg-general-50 border-general-200":e.disabled&&!t.active,"bg-general-200 border-general-200":e.disabled&&t.active},"transition-colors","duration-200"]}),input:{class:["peer","w-full ","h-full","absolute","top-0 left-0","z-10","p-0","m-0","rounded","border","opacity-0","rounded-md","outline-none","border-2 border-surface-300","appareance-none","cursor-pointer"]},checkicon:{class:["text-normal","w-3","h-3","text-surface-0","transition-all","duration-200"]},uncheckicon:{class:["text-normal","w-3","h-3","text-surface-0","transition-all","duration-200"]}},he={root:{class:["!mt-0 text-danger-500 text-xs font-light tracking-[0.02em]"],"data-wv-name":"validatormessage","data-wv-section":"root"}},ve={root:{class:"flex gap-2 items-center shrink-0","data-wv-name":"buttonbulkaction","data-wv-section":"root"},menu:{id:"bulkaction-overlay-menu",class:"flex gap-2 items-center","data-wv-section":"menu"},selectionmessage:{class:"text-xs text-grayscale-900 cursor-default whitespace-nowrap","data-wv-section":"selectionmessage"},buttonselectall:({context:e})=>({class:["!px-1.5 !py-1 -ml-1.5 -mr-1.5 !text-xs",{"pointer-events-none":e.selectedAll}],"data-wv-section":"buttonselectall"}),bulkactiontoggle:{class:"rounded-full","data-wv-section":"bulkactiontoggle"},dropdownmenu:{root:({props:e,state:t})=>({class:["flex items-center gap-1 transition-all shrink-0","py-[5px] px-3","ring-inset ring-1 ring-primary-500 rounded",{"opacity-60":e.disabled,"pointer-events-none":e.disabled}],"data-wv-section":"dropdownmenu"}),input:({props:e,state:t})=>({class:["w-full h-full transition-transform !text-primary-500 cursor-pointer","text-xs font-medium outline-none tracking-[0.02em] leading-4"]}),trigger:{class:["text-primary-500 [&_i]:w-4 [&_i]:h-4 shrink-0"]},item:()=>""},applybutton:{class:"shrink-0","data-wv-section":"applybutton"},buttonclearselection:{class:"!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5","data-wv-section":"buttonclearselection"}},ye={root:{class:"flex flex-nowrap items-center gap-1","data-wv-name":"badgegroup","data-wv-section":"root"},showmorebutton:{class:"!p-1 !h-auto text-primary-500 !font-medium text-xs leading-4 tracking-[0.02em]","data-wv-section":"showmorebutton"},showmoredialog:{root:{class:[p.root({state:{}}).class,"w-[400px]"],"data-wv-section":"showmoredialog"},title:{class:["text-general-900 text-sm font-semibold leading-5"],"data-wv-section":"showmoredialogtitle"},content:{class:["flex flex-wrap gap-1"],"data-wv-section":"showmoredialogcontent"}}},we={root:{class:["flex gap-[5px] items-center text-left h-[26px]","text-general-800","text-xs font-medium leading-4 tracking-[0.02em]"],"data-wv-name":"breadcrumb","data-wv-section":"root"},item:({context:e})=>({class:{"font-bold text-general-400":e.lastItem,"text-primary-500":!e.lastItem&&!e.firstItem},"data-wv-section":"breadcrumb-menu"}),itemlink:{class:"cursor-pointer text-primary","data-wv-section":"itemlink"},separator:{content:">","data-wv-section":"separator"}},pe={currency:e=>({class:[...f(e),"!rounded-l !rounded-r-none"],"data-wv-section":"currency"}),value:e=>({class:[...f(e),"!rounded-r !rounded-l-none -ml-[1px]"],"data-wv-section":"value"})},ke={root:{"data-wv-name":"fileupload","data-wv-section":"root"},wrapper:{class:["w-full"],"data-wv-section":"wrapper"},input:({state:e})=>({class:[{"":e.fileName!=null}]}),buttonupload:({props:e})=>({class:[{"mb-[21px]":e.fileExtensions||e.fileRequirements}]}),requirements:{class:"flex justify-start"}},Ce={root:{class:["flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"],"data-wv-name":"fieldwrapper","data-wv-section":"root"},label:({props:e,slots:t})=>({class:[["text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]",e.labelClass],{"w-full":t["label-addon"]}],"data-wv-section":"fieldlabel"}),info:{class:"w-2.5 h-2.5 text-primary-500"},optionaltext:{class:"text-grayscale-700 text-[10px] font-normal leading-4"},arterisksign:{class:"text-danger-500"}},je={root:{class:["bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0","grid items-end p-3 gap-x-3 gap-y-4"]}},ze={root:{class:["w-screen h-screen fixed top-0 left-0 z-[9999999]","bg-white","text-base","flex flex-col items-center justify-center","transition-opacity"]},animation:{class:["w-[700px] h-auto"]}},Ae={root:{class:"flex items-center gap-1"},displayname:({props:e})=>({class:["text-xs font-normal cursor-pointer",{"text-primary-400 cursor-pointer":e.type==="icon"},{"text-general-800":e.type!=="icon"}]}),panel:{background:{class:"bg-primary-100 absolute top-0 h-[42px] w-full"},username:{class:"font-semibold text-[10px] leading-[15px] text-center text-balance"},useremail:{class:"text-[8px] font-normal leading-3"},positiondivision:{class:"text-[8px] font-normal leading-3"},userdetaillink:{class:"underline text-primary-400 text-[10px] leading-4 cursor-pointer hover:text-primary-500 transition-colors duration-100"},contentwrapper:{class:"relative overflow-hidden flex flex-col gap-2 w-[200px] h-max items-center justify-center p-3 rounded-[10px] border border-grayscale-900 text-grayscale-900"},detailwrapper:{class:"flex flex-col gap-0.5 items-center justify-center"}}},_e=b("WANGS-INPUT-OTP",{root:{class:["flex items-center","gap-1.5","w-max"]},input:({props:e,context:t,parent:a})=>({class:["text-[14px] leading-none font-medium",{"flex-1 w-[1%]":a.tagName=="WANGS-INPUT-GROUP"},"text-center","m-0","w-[42px] h-[42px]",{"rounded-md":a.tagName!=="WANGS-INPUT-GROUP"},{"first:rounded-l-md rounded-none last:rounded-r-md":a.tagName=="WANGS-INPUT-GROUP"},{"border-0 border-y border-l last:border-r":a.tagName=="WANGS-INPUT-GROUP"},"text-general-800 dark:text-general-800","placeholder:text-surface-400 dark:placeholder:text-surface-500","bg-white dark:bg-white",{"ring-1":navigator.userAgent.includes("Firefox"),"ring-[0.5px]":!navigator.userAgent.includes("Firefox")},{"ring-general-200 dark:ring-general-200":!e.invalid},{"ring-danger-500 dark:ring-danger-500":e.invalid},{"hover:bg-primary-50/30 hover:ring-primary-500 dark:hover:ring-primary-400":!t.disabled&&!e.invalid,"focus:bg-primary-50/30 focus:ring-primary-500 dark:focus:ring-primary-400":!t.disabled&&!e.invalid,"focus:outline-none focus:outline-offset-0":!t.disabled,"opacity-60 select-none pointer-events-none cursor-default":t.disabled},{filled:a.tagName=="WANGS-FLOAT-LABEL"&&t.filled},"appearance-none","transition-colors duration-200"]})}),Pe=s("default",{global:H,directives:{badge:N,ripple:le,tooltip:fe},form:W,filtercontainer:je,dropdown:M,inputnumber:Q,inputphonenumber:X,inputcurrency:pe,inputtext:k,inputbadge:q,inputotp:_e,calendar:U,checkbox:g,buttonradio:ie,multiselect:n,togglebutton:ge,toggleswitch:m,inputgroup:J,inputgroupaddon:Z,treeselect:be,tristatecheckbox:xe,textarea:de,password:ne,validatormessage:he,fileupload:ke,fieldwrapper:Ce,button:S,buttondownload:T,buttonbulkaction:ve,buttonsearch:I,buttonsplit:F,buttonfilter:P,paginator:re,datatable:O,customcolumn:L,tree:me,timeline:ce,changelog:G,accordion:o,card:V,menu:ee,steps:se,breadcrumb:we,tabmenu:oe,dialog:p,dialogconfirm:$,dialogform:R,overlaypanel:ae,message:te,inlinemessage:Y,toast:ue,carousel:E,badge:u,badgegroup:ye,image:K,loading:ze,codesnippet:B,username:Ae})}}});