@fewangsit/wangsvue-presets 1.0.104-alpha.6 → 1.0.104-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fixedasset/image/index.js +1 -5
- package/fixedasset/index.es.js +1 -5
- package/fixedasset/index.system.js +1 -1
- package/fixedasset/style.css +0 -16
- package/globalsettings/image/index.js +1 -5
- package/globalsettings/index.es.js +1 -5
- package/globalsettings/index.system.js +1 -1
- package/globalsettings/style.css +0 -16
- package/package.json +1 -1
- package/supplyasset/image/index.js +1 -5
- package/supplyasset/index.es.js +1 -5
- package/supplyasset/index.system.js +1 -1
- package/supplyasset/style.css +0 -16
- package/wangsvue/image/index.js +1 -5
- package/wangsvue/index.es.js +27 -31
- package/wangsvue/index.system.js +1 -1
- package/wangsvue/style.css +0 -16
|
@@ -73,4 +73,4 @@ var ye=Object.defineProperty;var pe=(s,l,o)=>l in s?ye(s,l,{enumerable:!0,config
|
|
|
73
73
|
right: -90%;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
`},Y={root:({props:e})=>({class:["relative inline-block","shrink-0",{"rounded-full":e.rounded},{"rounded-lg":!e.rounded},e.class,{"w-[30px] h-[30px]":e.size==="small","w-[80px] h-[80px]":e.size==="medium","w-[125px] h-[125px]":!e.size&&!e.width}],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"}},H={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 n,i;return{class:["px-3 py-[5px] w-full bg-transparent","h-max",{"max-h-[43px]":(i=(n=a.instance)==null?void 0:n.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-700 [&:has(:focus)_.inputgroupaddon]:!ring-primary-700":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-700","[&: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})=>r.dropdownicon({state:e})},input:e=>({class:[...f(e),"!rounded-r !rounded-l-none -ml-[1px]","focus:bg-none","focus:ring-primary-700","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-700","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"}},ne={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-700":!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-700 text-white":e.focused&&e.selected},{"bg-transparent text-surface-700/80":!e.focused&&e.selected},"hover:bg-primary-700 hover:text-white","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},current:{class:["text-xs font-normal leading-6 px-3"]}},re={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-700","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,n;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":((n=e==null?void 0:e.meter)==null?void 0:n.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"),b={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-[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-700 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-700/[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-700 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-700":!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-700":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:b.label,labeltext:b.labeltext,tooltipicon:b.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-700":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-700":e.active,"text-primary-700":e.active},{"bg-primary-700":a.d_activeStep>e.index,"text-surface-0":a.d_activeStep>e.index,"border-primary-700":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 h(e,t){return{[e]:t}[e]}h("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,n;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":(n=t.item)==null?void 0:n.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"}]})}),h("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 c=class c{constructor(){w(this,"_baseUrl","");if(globalThis[c.SINGLETON_KEY])return globalThis[c.SINGLETON_KEY];globalThis[c.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 n=t.slice(1);return`${a}${n}`}stripBase(t,a){return a||(a=this.getNavigationBaseUrl()),a!=="/"&&t.startsWith(a)?"/"+t.slice(a.length).replace(/^\/+/,""):t}push(t,a={},n=""){var x;const i={...a,...history.state??{},current:t,back:(x=history.state)==null?void 0:x.current,forward:void 0,replaced:!1,position:history.length+1};window.history.pushState(i,n,t)}replace(t,a={},n=""){const i={...a,...history.state??{},forward:void 0,current:t,replaced:!0};window.history.replaceState(i,n,t)}dispatchBeforeNavigationEvent(t,a,n){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:t,mode:a,state:n}}))}dispatchNavigationEvent(t,a,n){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:t,mode:a,state:n}}))}navigateToRoute(t,a="push",n=history.state,i=""){if(!t)return;const x=typeof t=="string"?t:t.toString(),u=this.normalizePath(x);if(u===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(u,a,n),a==="push"?this.push(u,n,i):this.replace(u,n,i),this.dispatchNavigationEvent(u,a,n)}};w(c,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__");let v=c;new v;const oe=h("WANGS-TAB-MENU",{root:{class:"overflow-x-auto"},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,n;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,"gap-1":t.item.icon},{"border-b-2":e.type==="tab"},{"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 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},{"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":(n=t.item)==null?void 0:n.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"}]})}),ce={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",...W,{"!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"})},m=e=>{if(!e)return!0;const t=Object.keys(e);return t.length?t.every(a=>{const n=e[a];return typeof n=="object"?Array.isArray(n)?!n.length||n.every(i=>typeof i=="object"?m(i):i==null):m(n):n==null}):!0},de={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&&!m(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||m(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-primary-700 text-primary-700 bg-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-primary-700 hover:bg-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-700":!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-primary-50","px-2 py-1","text-xs font-light leading-4 text-left tracking-[0.02em]","text-primary-700","shadow-[-4px_4px_20px_0px_#0000001A]","whitespace-pre-line","break-words"]}},be={root:{class:["relative","w-full h-full","grow overflow-auto","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-start","rounded-md","p-1","text-general-800",{"bg-primary-50 !text-general-800 [&_*]:text-general-800":e.selected&&t.selectionMode==="single"},{"hover:bg-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:d,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-primary-700","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-700","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 ml-2","w-full","text-xs font-medium",{"!text-general-200 !cursor-default":t.exactDisabled&&e.node.key!=-1},{"!text-general-800":e.node.isPlacementGroup}]})},me={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-700":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-700"]},content:({context:e,props:t})=>({class:["flex items-center","rounded-md","p-2","text-surface-700",{"bg-surface-100 text-primary-700":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-700","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-700 bg-primary-700":t.checked},{"ring-2 ring-primary-700":!e.disabled&&t.focused,"cursor-default opacity-60":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-primary-700":!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-700","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-700","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-700 bg-primary-700":t.active&&!e.disabled},{"ring-2 ring-primary-700":!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-700 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-700 cursor-pointer","text-xs font-medium outline-none tracking-[0.02em] leading-4"]}),trigger:{class:["text-primary-700 [&_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"}},we={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-700 !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"}}},Pe=s("default",{global:K,directives:{badge:S,ripple:le,tooltip:fe},form:D,filtercontainer:{root:{class:["bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0","grid items-end p-3 gap-x-3 gap-y-4"]}},dropdown:O,inputnumber:Q,inputphonenumber:X,inputcurrency:{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"})},inputtext:k,inputbadge:q,calendar:F,checkbox:d,buttonradio:ie,multiselect:r,togglebutton:ge,toggleswitch:b,inputgroup:J,inputgroupaddon:Z,treeselect:me,tristatecheckbox:xe,textarea:ce,password:re,validatormessage:he,fileupload:{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"}},fieldwrapper:{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-700"},optionaltext:{class:"text-grayscale-700 text-[10px] font-normal leading-4"},arterisksign:{class:"text-danger-500"}},button:T,buttondownload:N,buttonbulkaction:ve,buttonsearch:I,buttonsplit:V,buttonfilter:P,paginator:ne,datatable:G,customcolumn:L,tree:be,timeline:de,changelog:U,accordion:o,card:E,menu:ee,steps:se,breadcrumb:{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-700":!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"}},tabmenu:oe,dialog:p,dialogconfirm:R,dialogform:M,overlaypanel:ae,message:te,inlinemessage:H,toast:ue,carousel:$,badge:g,badgegroup:we,image:Y,loading:{root:{class:["w-screen h-screen fixed top-0 left-0 z-[9999999]","bg-white","flex flex-col items-center justify-center","transition-opacity"]},animation:{class:["w-[700px] h-auto"]}},codesnippet:B,username:{root:{class:"flex items-center gap-1"},displayname:({props:e})=>({class:["text-xs font-medium tracking-[0.02em] cursor-pointer",{"text-primary-700":e.type==="icon"},{"text-general-800":e.type!=="icon"}]}),panel:{background:{class:"bg-algae-green-300 absolute top-0 h-[42px] w-full"},username:{class:"font-semibold text-xs text-center text-balance"},useremail:{class:"text-[9px] font-normal leading-3"},positiondivision:{class:"text-[9px] font-normal leading-3"},userdetaillink:{class:"underline text-primary-700 text-xs leading-4 cursor-pointer hover:text-primary-800 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-[8px] text-grayscale-900 tracking-[0.02em]"},detailwrapper:{class:"flex flex-col gap-0.5 items-center justify-center"}}},progressbar:{root:({props:e})=>({class:[{"grid items-center gap-2":e.mode==="determinate","grid-cols-[max-content,auto]":e.valuePosition==="left-side","grid-cols-[auto,max-content]":e.valuePosition==="right-side"}],"data-wv-name":"progressbar","data-wv-section":"root"}),container:({props:e})=>({class:["relative overflow-hidden",{"order-2":e.valuePosition==="left-side","order-1":e.valuePosition==="right-side"},{"bg-general-100 m-0 border-0 progressbar-value-animate before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-success-500 after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000":e.mode==="indeterminate"},"h-3.5","border-0","rounded-sm","bg-general-100"],"data-wv-section":"container"}),value:({props:e})=>({class:["rounded-sm",{"absolute flex items-center justify-center":e.mode!=="indeterminate"},{"bg-warning-500":e.severity==="warning","min-w-[6px] !bg-grayscale-500":+e.value==0,"bg-success-500":e.severity==="success","bg-danger-500":e.severity==="danger","bg-primary-500":e.severity==="primary"},"m-0 h-3.5 w-0","border-0",{"transition-width duration-1000 ease-in-out":e.mode!=="indeterminate","progressbar-value-animate":e.mode==="indeterminate"},{"before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit ":e.mode==="indeterminate","after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000":e.mode==="indeterminate"}]}),label:({props:e})=>({class:["inline-flex justify-end","font-medium text-[14px] leading-4","leading-none",{"absolute inset-0 mr-1 !text-xs":e.valuePosition==="inside","order-1":e.valuePosition==="left-side","order-2":e.valuePosition==="right-side"}]})}})}}});
|
|
76
|
+
`},Y={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"}},H={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 n,i;return{class:["px-3 py-[5px] w-full bg-transparent","h-max",{"max-h-[43px]":(i=(n=a.instance)==null?void 0:n.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-700 [&:has(:focus)_.inputgroupaddon]:!ring-primary-700":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-700","[&: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})=>r.dropdownicon({state:e})},input:e=>({class:[...f(e),"!rounded-r !rounded-l-none -ml-[1px]","focus:bg-none","focus:ring-primary-700","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-700","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"}},ne={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-700":!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-700 text-white":e.focused&&e.selected},{"bg-transparent text-surface-700/80":!e.focused&&e.selected},"hover:bg-primary-700 hover:text-white","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},current:{class:["text-xs font-normal leading-6 px-3"]}},re={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-700","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,n;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":((n=e==null?void 0:e.meter)==null?void 0:n.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"),b={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-[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-700 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-700/[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-700 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-700":!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-700":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:b.label,labeltext:b.labeltext,tooltipicon:b.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-700":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-700":e.active,"text-primary-700":e.active},{"bg-primary-700":a.d_activeStep>e.index,"text-surface-0":a.d_activeStep>e.index,"border-primary-700":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 h(e,t){return{[e]:t}[e]}h("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,n;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":(n=t.item)==null?void 0:n.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"}]})}),h("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 c=class c{constructor(){w(this,"_baseUrl","");if(globalThis[c.SINGLETON_KEY])return globalThis[c.SINGLETON_KEY];globalThis[c.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 n=t.slice(1);return`${a}${n}`}stripBase(t,a){return a||(a=this.getNavigationBaseUrl()),a!=="/"&&t.startsWith(a)?"/"+t.slice(a.length).replace(/^\/+/,""):t}push(t,a={},n=""){var x;const i={...a,...history.state??{},current:t,back:(x=history.state)==null?void 0:x.current,forward:void 0,replaced:!1,position:history.length+1};window.history.pushState(i,n,t)}replace(t,a={},n=""){const i={...a,...history.state??{},forward:void 0,current:t,replaced:!0};window.history.replaceState(i,n,t)}dispatchBeforeNavigationEvent(t,a,n){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:t,mode:a,state:n}}))}dispatchNavigationEvent(t,a,n){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:t,mode:a,state:n}}))}navigateToRoute(t,a="push",n=history.state,i=""){if(!t)return;const x=typeof t=="string"?t:t.toString(),u=this.normalizePath(x);if(u===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(u,a,n),a==="push"?this.push(u,n,i):this.replace(u,n,i),this.dispatchNavigationEvent(u,a,n)}};w(c,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__");let v=c;new v;const oe=h("WANGS-TAB-MENU",{root:{class:"overflow-x-auto"},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,n;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,"gap-1":t.item.icon},{"border-b-2":e.type==="tab"},{"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 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},{"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":(n=t.item)==null?void 0:n.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"}]})}),ce={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",...W,{"!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"})},m=e=>{if(!e)return!0;const t=Object.keys(e);return t.length?t.every(a=>{const n=e[a];return typeof n=="object"?Array.isArray(n)?!n.length||n.every(i=>typeof i=="object"?m(i):i==null):m(n):n==null}):!0},de={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&&!m(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||m(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-primary-700 text-primary-700 bg-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-primary-700 hover:bg-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-700":!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-primary-50","px-2 py-1","text-xs font-light leading-4 text-left tracking-[0.02em]","text-primary-700","shadow-[-4px_4px_20px_0px_#0000001A]","whitespace-pre-line","break-words"]}},be={root:{class:["relative","w-full h-full","grow overflow-auto","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-start","rounded-md","p-1","text-general-800",{"bg-primary-50 !text-general-800 [&_*]:text-general-800":e.selected&&t.selectionMode==="single"},{"hover:bg-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:d,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-primary-700","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-700","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 ml-2","w-full","text-xs font-medium",{"!text-general-200 !cursor-default":t.exactDisabled&&e.node.key!=-1},{"!text-general-800":e.node.isPlacementGroup}]})},me={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-700":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-700"]},content:({context:e,props:t})=>({class:["flex items-center","rounded-md","p-2","text-surface-700",{"bg-surface-100 text-primary-700":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-700","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-700 bg-primary-700":t.checked},{"ring-2 ring-primary-700":!e.disabled&&t.focused,"cursor-default opacity-60":e.disabled},{"peer-focus-visible:ring-2 peer-focus-visible:ring-primary-700":!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-700","focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-700","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-700 bg-primary-700":t.active&&!e.disabled},{"ring-2 ring-primary-700":!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-700 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-700 cursor-pointer","text-xs font-medium outline-none tracking-[0.02em] leading-4"]}),trigger:{class:["text-primary-700 [&_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"}},we={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-700 !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"}}},Pe=s("default",{global:K,directives:{badge:S,ripple:le,tooltip:fe},form:D,filtercontainer:{root:{class:["bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0","grid items-end p-3 gap-x-3 gap-y-4"]}},dropdown:O,inputnumber:Q,inputphonenumber:X,inputcurrency:{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"})},inputtext:k,inputbadge:q,calendar:F,checkbox:d,buttonradio:ie,multiselect:r,togglebutton:ge,toggleswitch:b,inputgroup:J,inputgroupaddon:Z,treeselect:me,tristatecheckbox:xe,textarea:ce,password:re,validatormessage:he,fileupload:{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"}},fieldwrapper:{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-700"},optionaltext:{class:"text-grayscale-700 text-[10px] font-normal leading-4"},arterisksign:{class:"text-danger-500"}},button:T,buttondownload:N,buttonbulkaction:ve,buttonsearch:I,buttonsplit:V,buttonfilter:P,paginator:ne,datatable:G,customcolumn:L,tree:be,timeline:de,changelog:U,accordion:o,card:E,menu:ee,steps:se,breadcrumb:{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-700":!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"}},tabmenu:oe,dialog:p,dialogconfirm:R,dialogform:M,overlaypanel:ae,message:te,inlinemessage:H,toast:ue,carousel:$,badge:g,badgegroup:we,image:Y,loading:{root:{class:["w-screen h-screen fixed top-0 left-0 z-[9999999]","bg-white","flex flex-col items-center justify-center","transition-opacity"]},animation:{class:["w-[700px] h-auto"]}},codesnippet:B,username:{root:{class:"flex items-center gap-1"},displayname:({props:e})=>({class:["text-xs font-medium tracking-[0.02em] cursor-pointer",{"text-primary-700":e.type==="icon"},{"text-general-800":e.type!=="icon"}]}),panel:{background:{class:"bg-algae-green-300 absolute top-0 h-[42px] w-full"},username:{class:"font-semibold text-xs text-center text-balance"},useremail:{class:"text-[9px] font-normal leading-3"},positiondivision:{class:"text-[9px] font-normal leading-3"},userdetaillink:{class:"underline text-primary-700 text-xs leading-4 cursor-pointer hover:text-primary-800 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-[8px] text-grayscale-900 tracking-[0.02em]"},detailwrapper:{class:"flex flex-col gap-0.5 items-center justify-center"}}},progressbar:{root:({props:e})=>({class:[{"grid items-center gap-2":e.mode==="determinate","grid-cols-[max-content,auto]":e.valuePosition==="left-side","grid-cols-[auto,max-content]":e.valuePosition==="right-side"}],"data-wv-name":"progressbar","data-wv-section":"root"}),container:({props:e})=>({class:["relative overflow-hidden",{"order-2":e.valuePosition==="left-side","order-1":e.valuePosition==="right-side"},{"bg-general-100 m-0 border-0 progressbar-value-animate before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-success-500 after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000":e.mode==="indeterminate"},"h-3.5","border-0","rounded-sm","bg-general-100"],"data-wv-section":"container"}),value:({props:e})=>({class:["rounded-sm",{"absolute flex items-center justify-center":e.mode!=="indeterminate"},{"bg-warning-500":e.severity==="warning","min-w-[6px] !bg-grayscale-500":+e.value==0,"bg-success-500":e.severity==="success","bg-danger-500":e.severity==="danger","bg-primary-500":e.severity==="primary"},"m-0 h-3.5 w-0","border-0",{"transition-width duration-1000 ease-in-out":e.mode!=="indeterminate","progressbar-value-animate":e.mode==="indeterminate"},{"before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit ":e.mode==="indeterminate","after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000":e.mode==="indeterminate"}]}),label:({props:e})=>({class:["inline-flex justify-end","font-medium text-[14px] leading-4","leading-none",{"absolute inset-0 mr-1 !text-xs":e.valuePosition==="inside","order-1":e.valuePosition==="left-side","order-2":e.valuePosition==="right-side"}]})}})}}});
|
package/supplyasset/style.css
CHANGED
|
@@ -1554,10 +1554,6 @@
|
|
|
1554
1554
|
height: 10px;
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
|
-
.h-\[125px\]{
|
|
1558
|
-
height: 125px;
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
1557
|
.h-\[13px\]{
|
|
1562
1558
|
height: 13px;
|
|
1563
1559
|
}
|
|
@@ -1598,10 +1594,6 @@
|
|
|
1598
1594
|
height: 6px;
|
|
1599
1595
|
}
|
|
1600
1596
|
|
|
1601
|
-
.h-\[80px\]{
|
|
1602
|
-
height: 80px;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
1597
|
.h-\[calc\(100\%\+12px\)\]{
|
|
1606
1598
|
height: calc(100% + 12px);
|
|
1607
1599
|
}
|
|
@@ -1808,10 +1800,6 @@
|
|
|
1808
1800
|
width: 10px;
|
|
1809
1801
|
}
|
|
1810
1802
|
|
|
1811
|
-
.w-\[125px\]{
|
|
1812
|
-
width: 125px;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
1803
|
.w-\[13px\]{
|
|
1816
1804
|
width: 13px;
|
|
1817
1805
|
}
|
|
@@ -1892,10 +1880,6 @@
|
|
|
1892
1880
|
width: 800px;
|
|
1893
1881
|
}
|
|
1894
1882
|
|
|
1895
|
-
.w-\[80px\]{
|
|
1896
|
-
width: 80px;
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
1883
|
.w-\[calc\(100\%\+12px\)\]{
|
|
1900
1884
|
width: calc(100% + 12px);
|
|
1901
1885
|
}
|
package/wangsvue/image/index.js
CHANGED
|
@@ -7,14 +7,10 @@ exports.default = {
|
|
|
7
7
|
class: [
|
|
8
8
|
'relative inline-block',
|
|
9
9
|
'shrink-0',
|
|
10
|
+
'w-max h-max',
|
|
10
11
|
{ 'rounded-full': props.rounded },
|
|
11
12
|
{ 'rounded-lg': !props.rounded },
|
|
12
13
|
props.class,
|
|
13
|
-
{
|
|
14
|
-
'w-[30px] h-[30px]': props.size === 'small',
|
|
15
|
-
'w-[80px] h-[80px]': props.size === 'medium',
|
|
16
|
-
'w-[125px] h-[125px]': !props.size && !props.width,
|
|
17
|
-
},
|
|
18
14
|
],
|
|
19
15
|
style: !props.size && props.width
|
|
20
16
|
? {
|
package/wangsvue/index.es.js
CHANGED
|
@@ -294,7 +294,7 @@ const _ = {
|
|
|
294
294
|
}
|
|
295
295
|
}, I = {
|
|
296
296
|
root: ({ props: e, parent: t }) => {
|
|
297
|
-
var r, s,
|
|
297
|
+
var r, s, o;
|
|
298
298
|
return {
|
|
299
299
|
class: [
|
|
300
300
|
// Font
|
|
@@ -323,7 +323,7 @@ const _ = {
|
|
|
323
323
|
// Colors
|
|
324
324
|
"bg-general-300",
|
|
325
325
|
{
|
|
326
|
-
"border-gray-100": ((
|
|
326
|
+
"border-gray-100": ((o = t.instance.$style) == null ? void 0 : o.name) == "avatargroup"
|
|
327
327
|
},
|
|
328
328
|
"text-white"
|
|
329
329
|
]
|
|
@@ -3647,7 +3647,7 @@ const _ = {
|
|
|
3647
3647
|
optionaltext: {
|
|
3648
3648
|
class: "text-grayscale-700 text-[10px] font-normal leading-4"
|
|
3649
3649
|
}
|
|
3650
|
-
},
|
|
3650
|
+
}, oe = {
|
|
3651
3651
|
// :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
|
|
3652
3652
|
root: () => ({
|
|
3653
3653
|
class: [
|
|
@@ -3691,7 +3691,7 @@ const _ = {
|
|
|
3691
3691
|
"validator-message": {
|
|
3692
3692
|
class: ["static w-max transform-none"]
|
|
3693
3693
|
}
|
|
3694
|
-
},
|
|
3694
|
+
}, ne = [
|
|
3695
3695
|
{
|
|
3696
3696
|
"ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
|
|
3697
3697
|
"ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
|
|
@@ -3780,14 +3780,10 @@ const _ = {
|
|
|
3780
3780
|
class: [
|
|
3781
3781
|
"relative inline-block",
|
|
3782
3782
|
"shrink-0",
|
|
3783
|
+
"w-max h-max",
|
|
3783
3784
|
{ "rounded-full": e.rounded },
|
|
3784
3785
|
{ "rounded-lg": !e.rounded },
|
|
3785
|
-
e.class
|
|
3786
|
-
{
|
|
3787
|
-
"w-[30px] h-[30px]": e.size === "small",
|
|
3788
|
-
"w-[80px] h-[80px]": e.size === "medium",
|
|
3789
|
-
"w-[125px] h-[125px]": !e.size && !e.width
|
|
3790
|
-
}
|
|
3786
|
+
e.class
|
|
3791
3787
|
],
|
|
3792
3788
|
style: !e.size && e.width ? {
|
|
3793
3789
|
width: `${e.width}px`,
|
|
@@ -3945,14 +3941,14 @@ const _ = {
|
|
|
3945
3941
|
}
|
|
3946
3942
|
}, z = {
|
|
3947
3943
|
root: ({ props: e, context: t, parent: r }) => {
|
|
3948
|
-
var s,
|
|
3944
|
+
var s, o;
|
|
3949
3945
|
return {
|
|
3950
3946
|
class: [
|
|
3951
3947
|
"px-3 py-1 w-full bg-transparent",
|
|
3952
3948
|
// Size
|
|
3953
3949
|
"h-full",
|
|
3954
3950
|
{
|
|
3955
|
-
"max-h-[43px]": (
|
|
3951
|
+
"max-h-[43px]": (o = (s = r.instance) == null ? void 0 : s.placeholder) == null ? void 0 : o.includes("password")
|
|
3956
3952
|
},
|
|
3957
3953
|
// Font
|
|
3958
3954
|
"text-grayscale-900 text-xs font-normal",
|
|
@@ -8089,15 +8085,15 @@ p("WANGS-INPUT-OTP", {
|
|
|
8089
8085
|
]
|
|
8090
8086
|
})
|
|
8091
8087
|
});
|
|
8092
|
-
const
|
|
8088
|
+
const n = class n {
|
|
8093
8089
|
constructor() {
|
|
8094
8090
|
/**
|
|
8095
8091
|
* Stores base URLs associated with different app identifiers.
|
|
8096
8092
|
*/
|
|
8097
8093
|
g(this, "_baseUrl", "");
|
|
8098
|
-
if (globalThis[
|
|
8099
|
-
return globalThis[
|
|
8100
|
-
globalThis[
|
|
8094
|
+
if (globalThis[n.SINGLETON_KEY])
|
|
8095
|
+
return globalThis[n.SINGLETON_KEY];
|
|
8096
|
+
globalThis[n.SINGLETON_KEY] = this;
|
|
8101
8097
|
}
|
|
8102
8098
|
/**
|
|
8103
8099
|
* Registers a base URL for a specific app.
|
|
@@ -8170,7 +8166,7 @@ const o = class o {
|
|
|
8170
8166
|
*/
|
|
8171
8167
|
push(t, r = {}, s = "") {
|
|
8172
8168
|
var l;
|
|
8173
|
-
const
|
|
8169
|
+
const o = {
|
|
8174
8170
|
...r,
|
|
8175
8171
|
...history.state ?? {},
|
|
8176
8172
|
current: t,
|
|
@@ -8179,7 +8175,7 @@ const o = class o {
|
|
|
8179
8175
|
replaced: !1,
|
|
8180
8176
|
position: history.length + 1
|
|
8181
8177
|
};
|
|
8182
|
-
window.history.pushState(
|
|
8178
|
+
window.history.pushState(o, s, t);
|
|
8183
8179
|
}
|
|
8184
8180
|
/**
|
|
8185
8181
|
* Replaces the current entry in the browser's history stack.
|
|
@@ -8192,14 +8188,14 @@ const o = class o {
|
|
|
8192
8188
|
* Router.replace('/login', { reason: 'session expired' });
|
|
8193
8189
|
*/
|
|
8194
8190
|
replace(t, r = {}, s = "") {
|
|
8195
|
-
const
|
|
8191
|
+
const o = {
|
|
8196
8192
|
...r,
|
|
8197
8193
|
...history.state ?? {},
|
|
8198
8194
|
forward: void 0,
|
|
8199
8195
|
current: t,
|
|
8200
8196
|
replaced: !0
|
|
8201
8197
|
};
|
|
8202
|
-
window.history.replaceState(
|
|
8198
|
+
window.history.replaceState(o, s, t);
|
|
8203
8199
|
}
|
|
8204
8200
|
/**
|
|
8205
8201
|
* Dispatches a custom event before navigation occurs.
|
|
@@ -8244,17 +8240,17 @@ const o = class o {
|
|
|
8244
8240
|
* @example
|
|
8245
8241
|
* router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
|
|
8246
8242
|
*/
|
|
8247
|
-
navigateToRoute(t, r = "push", s = history.state,
|
|
8243
|
+
navigateToRoute(t, r = "push", s = history.state, o = "") {
|
|
8248
8244
|
if (!t)
|
|
8249
8245
|
return;
|
|
8250
8246
|
const l = typeof t == "string" ? t : t.toString(), a = this.normalizePath(l);
|
|
8251
8247
|
if (a === location.pathname)
|
|
8252
8248
|
return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
|
|
8253
|
-
this.dispatchBeforeNavigationEvent(a, r, s), r === "push" ? this.push(a, s,
|
|
8249
|
+
this.dispatchBeforeNavigationEvent(a, r, s), r === "push" ? this.push(a, s, o) : this.replace(a, s, o), this.dispatchNavigationEvent(a, r, s);
|
|
8254
8250
|
}
|
|
8255
8251
|
};
|
|
8256
|
-
g(
|
|
8257
|
-
let m =
|
|
8252
|
+
g(n, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
|
|
8253
|
+
let m = n;
|
|
8258
8254
|
new m();
|
|
8259
8255
|
const Oe = p("WANGS-TAB-MENU", {
|
|
8260
8256
|
root: {
|
|
@@ -8566,7 +8562,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
8566
8562
|
// Shape
|
|
8567
8563
|
"rounded",
|
|
8568
8564
|
"appearance-none",
|
|
8569
|
-
...
|
|
8565
|
+
...ne,
|
|
8570
8566
|
{
|
|
8571
8567
|
"!ring-danger-500": e.invalidInput
|
|
8572
8568
|
},
|
|
@@ -8692,7 +8688,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
8692
8688
|
return t.length ? t.every((r) => {
|
|
8693
8689
|
const s = e[r];
|
|
8694
8690
|
return typeof s == "object" ? Array.isArray(s) ? !s.length || s.every(
|
|
8695
|
-
(
|
|
8691
|
+
(o) => typeof o == "object" ? b(o) : o == null
|
|
8696
8692
|
) : b(s) : s == null;
|
|
8697
8693
|
}) : !0;
|
|
8698
8694
|
}, qe = {
|
|
@@ -9667,7 +9663,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9667
9663
|
class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
|
|
9668
9664
|
"data-wv-section": "buttonclearselection"
|
|
9669
9665
|
}
|
|
9670
|
-
},
|
|
9666
|
+
}, ot = {
|
|
9671
9667
|
root: {
|
|
9672
9668
|
class: "flex flex-nowrap items-center gap-1",
|
|
9673
9669
|
"data-wv-name": "badgegroup",
|
|
@@ -9692,7 +9688,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9692
9688
|
}
|
|
9693
9689
|
// All section in Dialog Preset can be added here
|
|
9694
9690
|
}
|
|
9695
|
-
},
|
|
9691
|
+
}, nt = {
|
|
9696
9692
|
root: {
|
|
9697
9693
|
class: [
|
|
9698
9694
|
"flex gap-[5px] items-center text-left h-[21px]",
|
|
@@ -9833,7 +9829,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9833
9829
|
global: ae,
|
|
9834
9830
|
directives: gt,
|
|
9835
9831
|
// Forms
|
|
9836
|
-
form:
|
|
9832
|
+
form: oe,
|
|
9837
9833
|
filtercontainer: dt,
|
|
9838
9834
|
autocomplete: T,
|
|
9839
9835
|
dropdown: re,
|
|
@@ -9901,7 +9897,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9901
9897
|
menu: ye,
|
|
9902
9898
|
menubar: we,
|
|
9903
9899
|
steps: Me,
|
|
9904
|
-
breadcrumb:
|
|
9900
|
+
breadcrumb: nt,
|
|
9905
9901
|
tieredmenu: Ye,
|
|
9906
9902
|
panelmenu: Te,
|
|
9907
9903
|
megamenu: he,
|
|
@@ -9922,7 +9918,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9922
9918
|
carousel: U,
|
|
9923
9919
|
// Misc
|
|
9924
9920
|
badge: c,
|
|
9925
|
-
badgegroup:
|
|
9921
|
+
badgegroup: ot,
|
|
9926
9922
|
avatar: I,
|
|
9927
9923
|
avatargroup: S,
|
|
9928
9924
|
tag: De,
|