@fewbox/den 0.2.0-preview.21 → 0.2.0-preview.22
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/engine.js +1 -1
- package/engine.js.map +1 -1
- package/index.css +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.app.tsbuildinfo +1 -1
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import{Children as o,Fragment as a,cloneElement as i,memo as l,createElement as c,useRef as s,useState as u,useEffect as d,useCallback as f,useLayoutEffect as h,useId as p,Component as g}from"react";import{createPortal as m}from"react-dom";var v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},v(e,t)};function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)};function w(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function S(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var C={Font:"font",Body:"body",White:"white",Black:"black",Light:"light",Light75:"light75",Light50:"light50",Light25:"light25",Dark:"dark",Dark75:"dark75",Dark50:"dark50",Dark25:"dark25",Primary:"primary",Primary75:"primary75",Primary50:"primary50",Primary25:"primary25",Secondary:"secondary",Secondary75:"secondary75",Secondary50:"secondary50",Secondary25:"secondary25",Tertiary:"tertiary",Tertiary75:"tertiary75",Tertiary50:"tertiary50",Tertiary25:"tertiary25",Info:"info",Info75:"info75",Info50:"info50",Info25:"info25",Success:"success",Success75:"success75",Success50:"success50",Success25:"success25",Warning:"warning",Warning75:"warning75",Warning50:"warning50",Warning25:"warning25",Error:"error",Error75:"error75",Error50:"error50",Error25:"error25",Border:"border",Border75:"border75",Border50:"border50",Border25:"border25",Placeholder:"placeholder",Placeholder75:"placeholder75",Placeholder50:"placeholder50",Placeholder25:"placeholder25",Transparent:"transparent"},k={Thin:"font-weight-thin",ExtraLight:"font-weight-extra-light",Light:"font-weight-light",Regular:"font-weight-regular",Medium:"font-weight-medium",SemiBold:"font-weight-semi-bold",Bold:"font-weight-bold",ExtraBold:"font-weight-extra-bold",Black:"font-weight-black"},_={Default:"font-family"},x={Default:"line-height"},N={Default:"padding",Normal:"padding-normal",ExtraSmall:"padding-extra-small",Small:"padding-small",Large:"padding-large",ExtraLarge:"padding-extra-large"},O={Default:"margin",Normal:"margin-normal",ExtraSmall:"margin-extra-small",Small:"margin-small",Large:"margin-large",ExtraLarge:"margin-extra-large"},I={Default:"gap",Normal:"gap-normal",ExtraSmall:"gap-extra-small",Small:"gap-small",Large:"gap-large",ExtraLarge:"gap-extra-large"},B={Default:"letter-spacing",Normal:"letter-spacing-normal",ExtraSmall:"letter-spacing-extra-small",Small:"letter-spacing-small",Large:"letter-spacing-large",ExtraLarge:"letter-spacing-extra-large"},D={Default:"border-radius",Normal:"border-radius-normal",ExtraSmall:"border-radius-extra-small",Small:"border-radius-small",Large:"border-radius-large",ExtraLarge:"border-radius-extra-large",Max:"border-radius-max"},L={None:"border-style-none",Solid:"border-style-solid",Dashed:"border-style-dashed",Dotted:"border-style-dotted",Double:"border-style-double",Groove:"border-style-groove",Ridge:"border-style-ridge",Inset:"border-style-inset",Outset:"border-style-outset",Hidden:"border-style-hidden"},z={Default:"border-width",Normal:"border-width-normal",ExtraSmall:"border-width-extra-small",Small:"border-width-small",Large:"border-width-large",ExtraLarge:"border-width-extra-large"},R={Visible:"visibility-visible",Hidden:"visibility-hidden",Collapse:"visibility-collapse"},T={None:"display-none",Block:"display-block",Inline:"display-inline",InlineBlock:"display-inline-block",Flex:"display-flex",InlineFlex:"display-inline-flex",Grid:"display-grid",InlineGrid:"display-inline-grid",Table:"display-table",TableRow:"display-table-row",TableCell:"display-table-cell",Contents:"display-contents",FlowRoot:"display-flow-root"},E={Auto:"cursor-auto",Default:"cursor-default",None:"cursor-none",ContextMenu:"cursor-context-menu",Help:"cursor-help",Pointer:"cursor-pointer",Progress:"cursor-progress",Wait:"cursor-wait",Cell:"cursor-cell",Crosshair:"cursor-crosshair",Text:"cursor-text",VerticalText:"cursor-vertical-text",Alias:"cursor-alias",Copy:"cursor-copy",Move:"cursor-move",NoDrop:"cursor-no-drop",NotAllowed:"cursor-not-allowed",Grab:"cursor-grab",Grabbing:"cursor-grabbing",AllScroll:"cursor-all-scroll",ColResize:"cursor-col-resize",RowResize:"cursor-row-resize",NResize:"cursor-n-resize",EResize:"cursor-e-resize",SResize:"cursor-s-resize",WResize:"cursor-w-resize",NeResize:"cursor-ne-resize",NwResize:"cursor-nw-resize",SeResize:"cursor-se-resize",SwResize:"cursor-sw-resize",EwResize:"cursor-ew-resize",NsResize:"cursor-ns-resize",NeswResize:"cursor-nesw-resize",NwseResize:"cursor-nwse-resize",ZoomIn:"cursor-zoom-in",ZoomOut:"cursor-zoom-out"},F={Visible:"overflow-visible",Hidden:"overflow-hidden",Scroll:"overflow-scroll",Auto:"overflow-auto",Clip:"overflow-clip"},P={Visible:"overflow-x-visible",Hidden:"overflow-x-hidden",Scroll:"overflow-x-scroll",Auto:"overflow-x-auto",Clip:"overflow-x-clip"},V={Visible:"overflow-y-visible",Hidden:"overflow-y-hidden",Scroll:"overflow-y-scroll",Auto:"overflow-y-auto",Clip:"overflow-y-clip"},W={_0:"opacity-0",_10:"opacity-10",_20:"opacity-20",_25:"opacity-25",_30:"opacity-30",_40:"opacity-40",_50:"opacity-50",_60:"opacity-60",_70:"opacity-70",_75:"opacity-75",_80:"opacity-80",_90:"opacity-90",_100:"opacity-100"},j={Ellipse:"v-ellipse-size",Rectangle:"v-rectangle-size",Image:"v-image-size",Svg:"v-svg-size",Window:"v-window-size"},A=function(e){var t;switch(e){case k.Thin:t=100;break;case k.ExtraLight:t=200;break;case k.Light:t=300;break;case k.Regular:t=400;break;case k.Medium:t=500;break;case k.SemiBold:t=600;break;case k.Bold:t=700;break;case k.ExtraBold:t=800;break;case k.Black:t=900;break;default:t=400}return t},H={Default:"font-size",Normal:"font-size-normal",Small:"font-size-small",ExtraSmall:"font-size-extra-small",Large:"font-size-large",ExtraLarge:"font-size-extra-large",AutoNormal:"auto-font-size-normal",AutoSmall:"auto-font-size-small",AutoExtraSmall:"auto-font-size-extra-small",AutoLarge:"auto-font-size-large",AutoExtraLarge:"auto-font-size-extra-large"},U={All:"all",Before:"before",After:"after"},M={All:"all",Top:"top",Right:"right",Bottom:"bottom",Left:"left",ExceptTop:"except-top",ExceptRight:"except-right",ExceptBottom:"except-bottom",ExceptLeft:"except-left",RightTop:"right-top",RightBottom:"right-bottom",LeftTop:"left-top",LeftBottom:"left-bottom",TopBottom:"top-bottom",LeftRight:"left-right"},X=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),Y=function(e){this.component=e},Z=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.sizeType=n,o.isAuto=r,o}return y(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(H).includes(this.sizeType)?this.sizeType:"font-size-".concat(this.sizeType),"".concat(this.component.getClassName()," ").concat(this.isAuto?"auto-".concat(e):e)}return this.component.getClassName()},t}(Y),G=function(e){function t(t,n){var r=e.call(this,t)||this;return r.weightType=n,r}return y(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(Y),q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.visibility=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.visibility){var e=void 0;return e=Object.values(R).includes(this.visibility)?this.visibility:"visibility-".concat(this.visibility),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),J=function(e){function t(t,n){var r=e.call(this,t)||this;return r.cursor=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.cursor){var e=void 0;return e=Object.values(E).includes(this.cursor)?this.cursor:"cursor-".concat(this.cursor),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),K=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflow=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.overflow){var e=void 0;return e=Object.values(F).includes(this.overflow)?this.overflow:"overflow-".concat(this.overflow),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),Q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowX=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.overflowX){var e=void 0;return e=Object.values(P).includes(this.overflowX)?this.overflowX:Object.values(F).includes(this.overflowX)?this.overflowX.replace("overflow-","overflow-x-"):"overflow-x-".concat(this.overflowX),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),$=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowY=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.overflowY){var e=void 0;return e=Object.values(V).includes(this.overflowY)?this.overflowY:Object.values(F).includes(this.overflowY)?this.overflowY.replace("overflow-","overflow-y-"):"overflow-y-".concat(this.overflowY),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.display=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.display){var e=void 0;return e=Object.values(T).includes(this.display)?this.display:"display-".concat(this.display),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.opacityType=n,r}return y(t,e),t.prototype.getClassName=function(){return this.opacityType&&Object.values(W).includes(this.opacityType)?"".concat(this.component.getClassName()," ").concat(this.opacityType):this.component.getClassName()},t}(Y),ne=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderRadius=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.borderRadius){var e=void 0;return e=Object.values(D).includes(this.borderRadius)?this.borderRadius:"border-radius-".concat(this.borderRadius),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderStyle=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.borderStyle){var e=void 0;return e=Object.values(L).includes(this.borderStyle)?this.borderStyle:"border-style-".concat(this.borderStyle),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.padding=n,r}return y(t,e),t.prototype.getClassName=function(){return this.padding&&Object.values(N).includes(this.padding)?"".concat(this.component.getClassName()," ").concat(this.padding):this.component.getClassName()},t}(Y),ae=function(e){function t(t,n){var r=e.call(this,t)||this;return r.letterSpacing=n,r}return y(t,e),t.prototype.getClassName=function(){return this.letterSpacing&&Object.values(B).includes(this.letterSpacing)?"".concat(this.component.getClassName()," ").concat(this.letterSpacing):this.component.getClassName()},t}(Y),ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.margin=n,r}return y(t,e),t.prototype.getClassName=function(){return this.margin&&Object.values(O).includes(this.margin)?"".concat(this.component.getClassName()," ").concat(this.margin):this.component.getClassName()},t}(Y),le=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderWidth=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.borderWidth){var e=void 0;return e=Object.values(z).includes(this.borderWidth)?this.borderWidth:"border-width-".concat(this.borderWidth),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),ce=function(e){function t(t,n,r,o,a,i,l,c,s,u,d){var f=e.call(this,t)||this;return f.isDefaultValue=n,f.frontColorType=r,f.backgroundColorType=o,f.borderColorType=a,f.borderDirectionType=i,f.pseudoType=l,f.pseudoFrontColorType=c,f.pseudoBackgroundColorType=s,f.pseudoBorderColorType=u,f.pseudoBorderDirectionType=d,f}return y(t,e),t.prototype.getBorderPrefix=function(e){return e?"-".concat(e):""},t.prototype.getBorderColorClassName=function(e,t,n){var r,o=this.getBorderPrefix(n);switch(t){case M.Bottom:r=" ".concat(e).concat(o,"-border-bottom");break;case M.ExceptBottom:r=" ".concat(e).concat(o,"-border-except-bottom");break;case M.ExceptLeft:r=" ".concat(e).concat(o,"-border-except-left");break;case M.ExceptRight:r=" ".concat(e).concat(o,"-border-except-right");break;case M.ExceptTop:r=" ".concat(e).concat(o,"-border-except-top");break;case M.Left:r=" ".concat(e).concat(o,"-border-left");break;case M.LeftBottom:r=" ".concat(e).concat(o,"-border-left-bottom");break;case M.LeftRight:r=" ".concat(e).concat(o,"-border-left-right");break;case M.LeftTop:r=" ".concat(e).concat(o,"-border-left-top");break;case M.Right:r=" ".concat(e).concat(o,"-border-right");break;case M.RightBottom:r=" ".concat(e).concat(o,"-border-right-bottom");break;case M.RightTop:r=" ".concat(e).concat(o,"-border-right-top");break;case M.Top:r=" ".concat(e).concat(o,"-border-top");break;case M.TopBottom:r=" ".concat(e).concat(o,"-border-bottom");break;default:r=" ".concat(e).concat(o,"-border")}return r},t.prototype.getClassName=function(){var e,t,n=this.backgroundColorType?" ".concat(this.backgroundColorType,"-background"):this.isDefaultValue?" ".concat(C.Transparent,"-background"):"",r=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(C.Transparent,"-before-background"):"",o=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(C.Transparent,"-after-background"):"",a="".concat(r).concat(o),i=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(C.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(C.Black,"-before-front"):"",c=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(C.Black,"-after-front"):"",s="".concat(l).concat(c);return e=this.borderColorType?this.borderDirectionType?this.getBorderColorClassName(this.borderColorType,this.borderDirectionType):" ".concat(this.borderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(C.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"",t=this.pseudoType?this.pseudoBorderColorType?this.pseudoBorderDirectionType?this.getBorderColorClassName(this.pseudoBorderColorType,this.pseudoBorderDirectionType,this.pseudoType):" ".concat(this.pseudoBorderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(C.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(a).concat(i).concat(s).concat(e).concat(t)},t}(Y),se=function(e,t,n,r,o,a,i,l,c,s,u,d,f,h,p,g,m,v,y,b,w,S,C,k,_,x,N){return new ce(new $(new Q(new K(new J(new q(new ee(new te(new ie(new ae(new oe(new le(new re(new ne(new Z(new G(new X(e),o),n,r),p),g),m),v),N),y),b),w),S),C),k),_),x),t,a,i,l,c,s,u,d,f,h).getClassName()},ue=["onClick","onDoubleClick","onContextMenu","onDrag","onDragStart","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDrop","onCopy","onCut","onPaste","onBlur","onFocus","onMouseDown","onMouseUp","onMouseEnter","onMouseLeave","onMouseMove","onMouseEndter","onMouseOut","onKeyDown","onKeyUp","onKeyPress","onTouchStart","onTouchEnd","onTouchMove","onTouchCancel","onWheel","onScroll","onSelect","onBeforeInput","onInput"],de=["id","title","dir","lang","translate","tabIndex","accessKey","contentEditable","spellCheck","draggable","enterKeyHint","inputMode","autoCapitalize","role","slot","htmlFor","hidden","is"],fe=["onError","onLoad"],he=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],pe={div:S(S([],ue,!0),de,!0),input:S(S(S(S([],ue,!0),de,!0),["onChange","onInput","onInvalid","onSelect"],!0),["name","value","defaultValue","checked","defaultChecked","type","accept","autoComplete","autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","height","width","list","max","min","maxLength","maxLength","minLength","multiple","pattern","placeholder","readOnly","required","size","step","src"],!0),textarea:S(S(S([],ue,!0),de,!0),["rows","cols","wrap","name","autoFocus","autoComplete","placeholder","maxLength","minLength","required","readOnly","disabled","wrap","spellcheck","dirname"],!0),template:S(S([],ue,!0),de,!0),abbr:S(S([],ue,!0),de,!0),span:S(S([],ue,!0),de,!0),h1:S(S([],ue,!0),de,!0),h2:S(S([],ue,!0),de,!0),h3:S(S([],ue,!0),de,!0),h4:S(S([],ue,!0),de,!0),h5:S(S([],ue,!0),de,!0),h6:S(S([],ue,!0),de,!0),i:S(S([],ue,!0),de,!0),b:S(S([],ue,!0),de,!0),u:S(S([],ue,!0),de,!0),em:S(S([],ue,!0),de,!0),strong:S(S([],ue,!0),de,!0),blockquote:S(S([],ue,!0),de,!0),cite:S(S([],ue,!0),de,!0),code:S(S([],ue,!0),de,!0),del:S(S([],ue,!0),de,!0),dfn:S(S([],ue,!0),de,!0),ins:S(S([],ue,!0),de,!0),kbd:S(S([],ue,!0),de,!0),mark:S(S([],ue,!0),de,!0),pre:S(S([],ue,!0),de,!0),q:S(S([],ue,!0),de,!0),s:S(S([],ue,!0),de,!0),samp:S(S([],ue,!0),de,!0),small:S(S([],ue,!0),de,!0),summary:S(S([],ue,!0),de,!0),sup:S(S([],ue,!0),de,!0),sub:S(S([],ue,!0),de,!0),time:S(S([],ue,!0),de,!0),var:S(S([],ue,!0),de,!0),wbr:S(S([],ue,!0),de,!0),p:S(S([],ue,!0),de,!0),address:S(S([],ue,!0),de,!0),article:S(S([],ue,!0),de,!0),aside:S(S([],ue,!0),de,!0),details:S(S(S([],ue,!0),de,!0),["onToggle"],!0),nav:S(S([],ue,!0),de,!0),section:S(S([],ue,!0),de,!0),form:S(S(S([],ue,!0),de,!0),["onReset","onSubmit"],!0),dialog:S(S(S([],ue,!0),de,!0),["onCancel","onClose"],!0),img:S(S(S(S([],ue,!0),de,!0),fe,!0),["src","alt","width","height","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","title","role"],!0),iframe:S(S(S(S([],ue,!0),de,!0),fe,!0),["src","srcDoc","width","height","name","sandbox","allow","allowFullScreen","loading","referrerPolicy","title","role"],!0),object:S(S(S([],ue,!0),de,!0),fe,!0),embed:S(S(S([],ue,!0),de,!0),fe,!0),link:S(S(S([],ue,!0),de,!0),fe,!0),svg:S(S(S([],ue,!0),de,!0),fe,!0),audio:S(S(S([],ue,!0),de,!0),he,!0),video:S(S(S([],ue,!0),de,!0),he,!0)},ge=["className","style","fontSize","isAutoSize","fontWeight","frontColor","backgroundColor","borderColor","borderDirection","pseudoType","pseudoFrontColor","pseudoBackgroundColor","pseudoBorderColor","pseudoBorderDirection","display","visibility","zIndex","fontFamily","borderWidth","borderRadius","borderStyle","padding","margin","height","width","minHeight","minWidth","maxHeight","maxWidth","opacity","letterSpacing","lineHeight","cursor","overflow","overflowX","overflowY","isDefaultValue","customAttributes"],me=function(t){return{getClassName:function(e){var n=se(e,t.isDefaultValue,t.fontSize,t.isAutoSize,t.fontWeight,t.frontColor,t.backgroundColor,t.borderColor,t.borderDirection,t.pseudoType,t.pseudoFrontColor,t.pseudoBackgroundColor,t.pseudoBorderColor,t.pseudoBorderDirection,t.borderRadius,t.borderStyle,t.borderWidth,t.padding,t.margin,t.opacity,t.display,t.visibility,t.cursor,t.overflow,t.overflowX,t.overflowY,t.letterSpacing);return t.className?"".concat(t.className," ").concat(n):n},getStyle:function(e){var n={height:t.height,width:t.width,minHeight:t.minHeight,minWidth:t.minWidth,maxHeight:t.maxHeight,maxWidth:t.maxWidth,zIndex:t.zIndex,fontFamily:t.fontFamily,lineHeight:t.lineHeight};return t.letterSpacing&&!Object.values(B).includes(t.letterSpacing)&&(n.letterSpacing=t.letterSpacing),t.opacity&&!Object.values(W).includes(t.opacity)&&(n.opacity=t.opacity),t.padding&&!Object.values(N).includes(t.padding)&&(n.padding=t.padding),t.margin&&!Object.values(O).includes(t.margin)&&(n.margin=t.margin),null!=t.selfShrink&&(n.flexShrink=t.selfShrink),null!=t.selfGrow&&(n.flexGrow=t.selfGrow),null!=t.selfBasis&&(n.flexBasis=t.selfBasis),b(b(b({},t.style),e),n)},getChildren:function(){var n=e("span",{className:"fb-bg-error",style:{display:"inline-block"},children:"[Base] No Children!"});if(t.children){if(Array.isArray(t.children)){var r=t.children.filter(Boolean);return r&&r.length>0?r:n}return t.children?t.children:n}return n},getProps:function(e){var n={},r={},o=Object.keys(t);return o.length>0&&o.forEach((function(o){ge.includes(o)?n[o]=t[o]:pe[e]&&pe[e].includes(o)&&(r[o]=t[o])})),{view:n,html:r}}}},ve={Display:"display",Rich:"rich"},ye=function(t){var n=(t.category==ve.Display?{}:t._base.getProps("div")).html;return e("div",b({ref:t.ref,className:t._base.getClassName(t.className),style:t._base.getStyle(t.style)},n,{children:t.children}))},be={Fluid:"fluid",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},we=function(t){var n=t.category,r=w(t,["category"]),o=me(r);return e(ye,{_base:o,className:"v-zone-".concat(n),children:t.children})},Se={Edge:"edge",Window:"window",Area:"area",Self:"self"},Ce={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",Center:"center"},ke=function(t){var n;if(t.category&&(n=t.type?"position-".concat(t.category,"-").concat(t.type):"position-".concat(t.category,"-custom")),t.isFullWidth&&(n="".concat(n," position-full-width")),t.type){var r=void 0;return r=b(b({},t.style),{zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})}r=void 0;return r=t.category!=Se.Self?b(b({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):b(b({},t.style),{top:"-".concat(t.top),right:"-".concat(t.right),bottom:"-".concat(t.bottom),left:"-".concat(t.left),zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})},_e={Default:"default",FullSize:"full-size"},xe=function(n){return e(t,{children:o.map(n.children,(function(e){return function(e){var t={className:"position-area-".concat(n.category?n.category:_e.Default," ").concat(e.props.className)};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,t)}(e)}))})},Ne=function(t){var n=me(t);return e(ye,{ref:t.ref,_base:n,className:"v-boundary",children:t.children})},Oe={Div:"div",Abbr:"abbr",Span:"span",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",I:"i",B:"b",U:"u",Em:"em",Strong:"strong",Blockquote:"blockquote",Cite:"cite",Code:"code",Del:"del",Dfn:"dfn",Ins:"ins",Kbd:"kbd",Mark:"mark",Pre:"pre",Q:"q",S:"s",Samp:"samp",Small:"small",Summary:"summary",Sup:"sup",Sub:"sub",Time:"time",Var:"var",Wbr:"wbr"},Ie={Default:"default",Circle:"circle"},Be={Justify:0,Left:1,Right:2,Center:3},De=function(t){var n,r,o=t.category,a=t.type,i=t.alignType,l=t.isTextOverflow,s=t.caption,u=w(t,["category","type","alignType","isTextOverflow","caption"]),d=me(b({display:null==t.category||t.category==Oe.Span?"inline-block":"block"},u)),f=d.getProps("div"),h=f.view,p=f.html;switch(i){case Be.Center:r="v-label-center";break;case Be.Justify:r="v-label-justify";break;case Be.Left:r="v-label";break;case Be.Right:r="v-label-right";break;default:r="v-label"}if(a==Ie.Circle&&(r="".concat(r,"-circle")),l&&(r+=" v-label-text-overflow"),u.fontWeight&&(r+=" v-label-inherit-font-weight"),u.fontSize&&(r+=" v-label-inherit-font-size"),o){var g=o,m=d.getProps(g).html;n=c(g,m,s)}else{var v=d.getProps("span").html;n=c("span",v,s)}return a==Ie.Circle?e(xe,{children:e(Ne,b({width:"1.6em",height:"1.6em",borderRadius:D.Max},h,{className:r},p,{children:e(ke,{category:Se.Area,type:Ce.Center,children:n})}))}):e(Ne,b({},h,{className:t.className?"".concat(t.className," ").concat(r):r},p,{children:n}))};De.displayName="VLabel";var Le=l(De),ze={ExtraSmall:"extra-small",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},Re={Visible:"visiable",Hidden:"hidden"},Te={Only:"only",Up:"up",Down:"down"},Ee=function(t){return t.children?e(Ne,{className:function(){if(t.breakpoint){if("string"!=typeof t.breakpoint)return t.breakpoint.map((function(e){return"".concat(e,"-").concat(t.category)})).join(" ");if(!t.type||t.type==Te.Only)return"".concat(t.breakpoint,"-").concat(t.category);if(t.type==Te.Up)return"".concat(t.breakpoint,"-up-").concat(t.category);if(t.type==Te.Down)return"".concat(t.breakpoint,"-down-").concat(t.category)}return t.category}(),style:{display:"contents"},children:t.children}):e(Le,{backgroundColor:C.Error,caption:"[BreakpointDisplay] No Children!"})},Fe=function(r){return n(t,{children:[e(Ee,{category:Re.Hidden,type:Te.Down,breakpoint:r.breakpointType?r.breakpointType:ze.Small,children:r.desktop}),e(Ee,{category:Re.Hidden,type:Te.Up,breakpoint:r.breakpointType?r.breakpointType:ze.Small,children:r.mobile})]})},Pe=2147483647,Ve={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",InnerTop:"inner-top",InnerRight:"inner-right",InnerBottom:"inner-bottom",InnerLeft:"inner-left",InnerLeftTop:"inner-left-top",InnerRightTop:"inner-right-top",InnerLeftBottom:"inner-left-bottom",InnerRightBottom:"inner-right-bottom"},We={Horizontal:"horizontal",Vertical:"vertical"},je=function(r){var o=r.category,a=r.offset,i=void 0===a?0:a,l=r.overlayZIndex,c=void 0===l?Pe:l,p=r.renderOverlay,g=w(r,["category","offset","overlayZIndex","renderOverlay"]),v="alignment"in r?r.alignment:void 0,y=me(g),S=y.getProps("div").html,C=s(null),k=s(null),_=u(!1),x=_[0],N=_[1];d((function(){N(!0)}),[]);var O=f((function(){var e=C.current,t=k.current;if(e&&t){var n=function(e,t,n,r,o,a){var i=e.width,l=e.height,c=e.left+window.scrollX,s=e.top+window.scrollY;switch(r){case Ve.Top:c+=(i-t)/2,s+=-n-o;break;case Ve.Right:c+=i+o,s+=(l-n)/2;break;case Ve.Bottom:c+=(i-t)/2,s+=l+o;break;case Ve.Left:c+=-t-o,s+=(l-n)/2;break;case Ve.LeftTop:a==We.Horizontal?(c+=-t-o,s+=o):a==We.Vertical?(c+=o,s+=-n-o):(c+=-t-o,s+=-n-o);break;case Ve.RightTop:a==We.Horizontal?(c+=i+o,s+=o):a==We.Vertical?(c+=i-t-o,s+=-n-o):(c+=i+o,s+=-n-o);break;case Ve.LeftBottom:a==We.Horizontal?(c+=-t-o,s+=l-n-o):a==We.Vertical?(c+=o,s+=l+o):(c+=-t-o,s+=l+o);break;case Ve.RightBottom:a==We.Horizontal?(c+=i+o,s+=l-n-o):a==We.Vertical?(c+=i-t-o,s+=l+o):(c+=i+o,s+=l+o);break;case Ve.InnerTop:c+=(i-t)/2,s+=o;break;case Ve.InnerRight:c+=i-t-o,s+=(l-n)/2;break;case Ve.InnerBottom:c+=(i-t)/2,s+=l-n-o;break;case Ve.InnerLeft:c+=o,s+=(l-n)/2;break;case Ve.InnerLeftTop:c+=o,s+=o;break;case Ve.InnerRightTop:c+=i-t-o,s+=o;break;case Ve.InnerLeftBottom:c+=o,s+=l-n-o;break;case Ve.InnerRightBottom:c+=i-t-o,s+=l-n-o}return{x:c,y:s}}(e.getBoundingClientRect(),t.offsetWidth,t.offsetHeight,o,i,v),r=n.x,a=n.y;t.style.transform="translate3d(".concat(r,"px, ").concat(a,"px, 0)")}}),[o,i,v]);h((function(){O()}),[O,p,c]),d((function(){var e=function(){return O()},t=function(){return O()};return window.addEventListener("resize",e),window.addEventListener("scroll",t,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",t,!0)}}),[O]);var I=x&&m(e("div",{ref:k,className:"dock-overlay",style:{zIndex:c},children:p()}),document.body);return n(t,{children:[e("div",b({ref:C,className:y.getClassName("dock"),style:y.getStyle()},S,{children:r.children})),I]})},Ae={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},He={NoWrap:"nowrap",Wrap:"wrap"},Ue={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Me={Start:"flex-start",Center:"center",End:"flex-end",Stretch:"stretch",Baseline:"baseline"},Xe={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Ye=function(t){t.vClassName;var n=t.direction,r=t.wrap,o=t.justifyContent,a=t.alignItems,i=t.alignContent,l=t.gap,c=t.overflow,s=w(t,["vClassName","direction","wrap","justifyContent","alignItems","alignContent","gap","overflow"]);!s.cursor&&t.onClick&&(s.cursor=E.Pointer);var u=me(s),d=u.getProps("div").html,f=l&&Object.values(I).includes(l),h=!l||f?u.getStyle():b(b({},u.getStyle()),{gap:l}),p=c?"flex-".concat(c):s.overflowX||s.overflowY?"flex":"flex-hidden",g=n?" flex-direction-".concat(n):"",m=r?" flex-wrap-".concat(r):"",v=o?" flex-justify-content-".concat(o):"",y=a?" flex-align-items-".concat(a):"",S=i?" flex-align-content-".concat(i):"",C=f?" ".concat(l):"",k="".concat(p).concat(g).concat(m).concat(v).concat(y).concat(S).concat(C),_=u.getClassName(k);return e("div",b({className:_,style:h},d,{children:t.children}))},Ze={Start:"start",Center:"center",End:"end",Stretch:"stretch",Baseline:"baseline"},Ge=function(t){var n={};null!=t.order&&(n.order=t.order),null!=t.basis&&(n.flexBasis=t.basis),null!=t.grow&&(n.flexGrow=t.grow),null!=t.shrink&&(n.flexShrink=t.shrink);var r=t.alignSelf?" flex-align-self-".concat(t.alignSelf):"",o="flex-item".concat(r);return e("div",{className:o,style:b(b({},n),{display:"flex",flexDirection:"column"}),children:t.children})},qe=function(n){return e(t,{children:n.children})},Je=function(n){return e(t,{children:n.children})},Ke=function(n){return e(t,{children:n.children})},Qe=function(n){return e(t,{children:n.children})},$e=function(n){return e(t,{children:n.children})},et=function(n){return e(t,{children:n.children})},tt=function(n){return e(t,{children:n.children})},nt=function(n){return e(t,{children:n.children})},rt={Top:"top",Middle:"middle",Bottom:"bottom",Stretch:"stretch",Baseline:"baseline"},ot=function(n,r,a,i,l){n.cross;var c=n.itemsShrink,s=w(n,["cross","itemsShrink"]),u=me(s),d=function(t,n,o){return r?r(t,n,o,c):e(Ge,{alignSelf:o,shrink:c,children:t},"child".concat(n))};return e(Ye,b({vClassName:"v-xbase",alignItems:function(){var e;if(n.cross)switch(n.cross){case rt.Stretch:e=Me.Stretch;break;case rt.Baseline:e=Me.Baseline;break;case rt.Bottom:e=Me.End;break;case rt.Middle:e=Me.Center;break;case rt.Top:e=Me.Start;break;default:e=Me.Center}else e=Me.Center;return e}(),wrap:a?a():He.NoWrap,justifyContent:i?i():Ue.Start,alignContent:l?l():Xe.Start},s,{children:o.map(u.getChildren(),(function(n,r){var o=n;return o.type?o.type===nt?d(o.props.children,r,Ze.Start):o.type===Qe?d(o.props.children,r,Ze.Center):o.type===Je?d(o.props.children,r,Ze.End):o.type===tt?d(o.props.children,r,Ze.Stretch):o.type===qe?d(o.props.children,r,Ze.Baseline):d(o,r):(console.debug(o),e(t,{children:"Please check X layout children."}))}))}))},at=function(t){return ot(t,(function(t,n,r,o){return e(Ge,{grow:1,alignSelf:r,shrink:o,children:t})}))},it=function(e){return ot(e,void 0,void 0,(function(){return Ue.SpaceAround}))},lt=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},ct=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:0,alignSelf:a,shrink:i,children:t})}))},st=function(t){return ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},ut=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},dt=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:1,shrink:i,children:t}):e(Ge,{grow:0,shrink:i,children:t})}))},ft=function(t){return ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},ht=function(e){return ot(e,void 0,void 0,(function(){return Ue.SpaceBetween}))},pt=function(e){return ot(e,void 0,void 0,(function(){return Ue.Center}))},gt=function(t){return ot(t,(function(n,r,o,a){var i=e(Ge,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ge,{basis:t.basises[r],shrink:a,children:n})),i}))},mt=function(t){var n=me(t);return ot(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ge,{basis:t.basis,shrink:l,children:r}):e(Ge,{grow:1,shrink:l,children:r})}))},vt=function(e){return ot(e,void 0,void 0,(function(){return Ue.SpaceEvenly}))},yt=function(e){return ot(e)},bt=function(e){return ot(e,void 0,void 0,(function(){return Ue.End}))},wt=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.SpaceAround}))},St=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.SpaceBetween}))},Ct=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.End}))},kt=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.SpaceEvenly}))},_t=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.Center}))},xt=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.Start}))},Nt={Left:"left",Center:"center",Right:"right",Baseline:"baseline",Stretch:"stretch"},Ot=function(n,r,a,i,l){var c=n.cross,s=n.itemsShrink,u=w(n,["cross","itemsShrink"]),d=me(u),f=function(t,n,o){return r?r(t,n,o,s):e(Ge,{alignSelf:o,shrink:s,children:t},"child".concat(n))};return e(Ye,b({vClassName:"v-ybase",wrap:a?a():He.NoWrap,alignContent:i?i():Xe.Start,alignItems:function(){var e;if(c)switch(c){case Nt.Left:e=Me.Start;break;case Nt.Center:e=Me.Center;break;case Nt.Right:e=Me.End;break;case Nt.Baseline:e=Me.Baseline;break;default:e=Me.Stretch}else e=Me.Stretch;return e}(),direction:Ae.Column,justifyContent:l?l():Ue.Start},u,{children:o.map(d.getChildren(),(function(n,r){var o=n;return o.type?o.type===Ke?f(o.props.children,r,Ze.Start):o.type===Qe||o.type===et?f(o.props.children,r,Ze.Center):o.type===$e?f(o.props.children,r,Ze.End):o.type===tt?f(o.props.children,r,Ze.Stretch):o.type===qe?f(o.props.children,r,Ze.Baseline):f(n,r):(console.debug(o),e(t,{children:"Please check Y layout children."}))}))}))},It=function(t){return Ot(t,(function(t,n,r,o){return e(Ge,{grow:1,alignSelf:r,shrink:o,children:t})}))},Bt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.SpaceBetween}))},Dt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.Center}))},Lt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.Start}))},zt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.End}))},Rt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.SpaceAround}))},Tt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.SpaceEvenly}))},Et=function(t){return Ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},Ft=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:0,alignSelf:a,shrink:i,children:t})}))},Pt=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:1,shrink:i,children:t}):e(Ge,{grow:0,shrink:i,children:t})}))},Vt=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},Wt=function(t){return Ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},jt=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},At=function(t){return Ot(t,(function(n,r,o,a){var i=e(Ge,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ge,{basis:t.basises[r],shrink:a,children:n})),i}))},Ht=function(t){var n=me(t);return Ot(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ge,{basis:t.basis,shrink:l,children:r}):e(Ge,{grow:1,shrink:l,children:r})}))},Ut=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.Start}))},Mt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.Center}))},Xt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.End}))},Yt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.SpaceAround}),void 0)},Zt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.SpaceBetween}))},Gt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.SpaceEvenly}))},qt={Top:"top",Right:"right",Bottom:"bottom",Left:"left",Center:"center"},Jt=function(t){t.image,t.imageWidth,t.imageHeight,t.position;var n,r=w(t,["image","imageWidth","imageHeight","position"]);n=t.imageWidth&&t.imageHeight?{backgroundImage:'url("'.concat(t.image,'")'),backgroundSize:"".concat(t.imageWidth," ").concat(t.imageHeight)}:{backgroundImage:'url("'.concat(t.image,'")')};var o=me(b(b({},r),{style:n}));return e(ye,{_base:o,className:t.position?"v-background-".concat(t.position):"v-background",children:t.children})},Kt=function(e){var t={};return e.forEach((function(e,n){var r,o=!1;n.startsWith("#")?(o=!0,r=n.substring(1).split(".")):r=n.split(".");var a=t;r.forEach((function(t,n){if(n==r.length-1)if(t.endsWith("[]")){var i=t.replace("[]","");Object.keys(a).filter((function(e){return e==i})).length>0?a[i]=S(S([],a[i],!0),[o?JSON.parse(e.toString()):e],!1):a[i]=[o?JSON.parse(e.toString()):e]}else a[t]=o?JSON.parse(e.toString()):e;else t in a||(a[t]={}),a=a[t]}))})),t},Qt={Json:"json",FormData:"formdata"},$t=function(t){var n=t.handleSubmitCategory,r=t.handleSubmit,o=t.handleValidateError,a=w(t,["handleSubmitCategory","handleSubmit","handleValidateError"]),i=me(a),l=i.getProps("form").html;return e("form",b({noValidate:!!o,className:i.getClassName("v-form"),style:i.getStyle(),onSubmit:function(e){e.preventDefault();var t=e.currentTarget,a=e.nativeEvent.submitter;if((null==a?void 0:a.formNoValidate)||!o||t.checkValidity()){for(var i=0;i<t.elements.length;i++){(u=(s=t.elements.item(i)).closest(".v-validity"))&&u.classList.remove("invalid")}var l=new FormData(t);r(n===Qt.FormData?l:Kt(l))}else{var c=[];for(i=0;i<t.elements.length;i++){var s,u;(u=(s=t.elements.item(i)).closest(".v-validity"))&&(s.checkValidity()?u.classList.remove("invalid"):(u.classList.add("invalid"),c.push(s)))}o(c)}}},l,{children:t.children}))},en=function(t){return e("form",b({className:"v-action-form"},t,{children:t.children}))},tn=function(t){var r=t.ref,o=t.type,a=t.label,i=t.icon,l=t.value,c=t.valueHook,f=t.setStateHook,h=t.isValueShow,p=t.gap,g=t.valueSize,m=t.frontColor;t.valueCategory;var v,y=t.valuePadding,S=t.inputStyle,k=t.inputClassName,_=t.placeholderColor,x=t.overWrite,N=t.renderOptions,O=t.onChange,I=t.inheritClassName,B=t.customAttributes,D=w(t,["ref","type","label","icon","value","valueHook","setStateHook","isValueShow","gap","valueSize","frontColor","valueCategory","valuePadding","inputStyle","inputClassName","placeholderColor","overWrite","renderOptions","onChange","inheritClassName","customAttributes"]),L=me(D),z=L.getProps("input").html,R=u({value:void 0!==t.value?t.value:""}),E=R[0],F=R[1],P=s(null);return d((function(){"object"==typeof r&&r?r.current=P.current:"function"==typeof r&&r(P.current),t.autoFocus&&P.current&&P.current.focus()}),[r,t.autoFocus]),x&&(v=x(P)),n(ye,{_base:L,className:"v-validity v-input ".concat((_||C.Placeholder)+"-placeholder").concat(I?" ".concat(I):""),children:[n(It,{display:v?T.None:void 0,children:[n(ct,{gap:p,children:[e(Ne,{children:i}),n(Ne,{children:[e("input",b({ref:P},B,{className:(k?"".concat(k," "):"")+"".concat(L.getClassName("v-input-native")),style:S,type:o,value:c||E.value,onChange:function(e){var t;h&&F({value:null===(t=P.current)||void 0===t?void 0:t.value}),O&&O(e),f?f(e.target.value):F({value:e.target.value})}},z)),!!a&&e("label",{htmlFor:t.id?t.id:t.name,children:a})]}),N?N(P):e(Ne,{})]}),!!h&&e(pt,{children:e(Le,{padding:y,isAutoSize:t.isAutoSize,fontSize:g||H.Normal,frontColor:m||C.Black,caption:void 0!==E.value?E.value.toString():l?l.toString():""})})]}),!!v&&v]})},nn={Default:"default",Circle:"circle",Squared:"squared",Custom:"custom"},rn=function(n){var r=b({},n);!r.cursor&&n.onClick&&(r.cursor=E.Pointer);var l=me(r);return e(t,{children:o.map(n.children,(function(e){return function(e){var t=n.category?n.category:nn.Default,r=l.getClassName("v-svg-".concat(t)),o=n.onClick,c=n.onMouseEnter,s=n.onMouseLeave,u={className:r,style:b({},l.getStyle()),onClick:o,onMouseEnter:c,onMouseLeave:s};return e.type===a?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,u)}(e)}))})};rn.displayName="VSvg";var on,an,ln=l(rn);function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(null,arguments)}var sn,un=function(e){return r.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),on||(on=r.createElement("path",{fill:"currentColor",d:"M198.132 64.763a6 6 0 0 0-6-6H65.753a6 6 0 0 0-6 6v126.473a6 6 0 0 0 6 6h126.399a6 6 0 0 0 6-6.001z"})),an||(an=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(null,arguments)}var fn,hn=function(e){return r.createElement("svg",dn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),sn||(sn=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))},pn=function(t){var r=t.isChecked,o=w(t,["isChecked"]);return e(tn,b({isAutoSize:t.isAutoSize,customAttributes:{checked:!!r},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(o){return n(yt,{gap:"0.2em",role:"checkbox","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(ln,{frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?un:hn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}},o))},gn=function(t){return e(tn,b({type:"color",isDefaultValue:!0},t))},mn=function(t){return e(tn,b({type:"date",isDefaultValue:!0},t))},vn=function(t){return e(tn,b({type:"datetime-local",isDefaultValue:!0},t))},yn=function(t){return e(tn,b({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},bn={Bounce:"animate__bounce",Flash:"animate__flash",Pulse:"animate__pulse",RubberBand:"animate__rubberBand",ShakeX:"animate__shakeX",ShakeY:"animate__shakeY",HeadShake:"animate__headShake",Swing:"animate__swing",Tada:"animate__tada",Wobble:"animate__wobble",Jello:"animate__jello",HeartBeat:"animate__heartBeat",BackInDown:"animate__backInDown",BackInLeft:"animate__backInLeft",BackInRight:"animate__backInRight",BackInUp:"animate__backInUp",BackOutDown:"animate__backOutDown",BackOutLeft:"animate__backOutLeft",BackOutRight:"animate__backOutRight",BackOutUp:"animate__backOutUp",BounceIn:"animate__bounceIn",BounceInDown:"animate__bounceInDown",BounceInLeft:"animate__bounceInLeft",BounceInRight:"animate__bounceInRight",BounceInUp:"animate__bounceInUp",BounceOut:"animate__bounceOut",BounceOutDown:"animate__bounceOutDown",BounceOutLeft:"animate__bounceOutLeft",BounceOutRight:"animate__bounceOutRight",BounceOutUp:"animate__bounceOutUp",FadeIn:"animate__fadeIn",FadeInDown:"animate__fadeInDown",FadeInDownBig:"animate__fadeInDownBig",FadeInLeft:"animate__fadeInLeft",FadeInLeftBig:"animate__fadeInLeftBig",FadeInRight:"animate__fadeInRight",FadeInRightBig:"animate__fadeInRightBig",FadeInUp:"animate__fadeInUp",FadeInUpBig:"animate__fadeInUpBig",FadeInTopLeft:"animate__fadeInTopLeft",FadeInTopRight:"animate__fadeInTopRight",FadeInBottomLeft:"animate__fadeInBottomLeft",FadeInBottomRight:"animate__fadeInBottomRight",FadeOut:"animate__fadeOut",FadeOutDown:"animate__fadeOutDown",FadeOutDownBig:"animate__fadeOutDownBig",FadeOutLeft:"animate__fadeOutLeft",FadeOutLeftBig:"animate__fadeOutLeftBig",FadeOutRight:"animate__fadeOutRight",FadeOutRightBig:"animate__fadeOutRightBig",FadeOutUp:"animate__fadeOutUp",FadeOutUpBig:"animate__fadeOutUpBig",FadeOutTopLeft:"animate__fadeOutTopLeft",FadeOutTopRight:"animate__fadeOutTopRight",FadeOutBottomLeft:"animate__fadeOutBottomLeft",FadeOutBottomRight:"animate__fadeOutBottomRight",Flip:"animate__flip",FlipInX:"animate__flipInX",FlipInY:"animate__flipInY",FlipOutX:"animate__flipOutX",FlipOutY:"animate__flipOutY",LightSpeedInRight:"animate__lightSpeedInRight",LightSpeedInLeft:"animate__lightSpeedInLeft",LightSpeedOutRight:"animate__lightSpeedOutRight",LightSpeedOutLeft:"animate__lightSpeedOutLeft",RotateIn:"animate__rotateIn",RotateInDownLeft:"animate__rotateInDownLeft",RotateInDownRight:"animate__rotateInDownRight",RotateInUpLeft:"animate__rotateInUpLeft",RotateInUpRight:"animate__rotateInUpRight",RotateOut:"animate__rotateOut",RotateOutDownLeft:"animate__rotateOutDownLeft",RotateOutDownRight:"animate__rotateOutDownRight",RotateOutUpLeft:"animate__rotateOutUpLeft",RotateOutUpRight:"animate__rotateOutUpRight",Hinge:"animate__hinge",JackInTheBox:"animate__jackInTheBox",RollIn:"animate__rollIn",RollOut:"animate__rollOut",ZoomIn:"animate__zoomIn",ZoomInDown:"animate__zoomInDown",ZoomInLeft:"animate__zoomInLeft",ZoomInRight:"animate__zoomInRight",ZoomInUp:"animate__zoomInUp",ZoomOut:"animate__zoomOut",ZoomOutDown:"animate__zoomOutDown",ZoomOutLeft:"animate__zoomOutLeft",ZoomOutRight:"animate__zoomOutRight",ZoomOutUp:"animate__zoomOutUp",SlideInDown:"animate__slideInDown",SlideInLeft:"animate__slideInLeft",SlideInRight:"animate__slideInRight",SlideInUp:"animate__slideInUp",SlideOutDown:"animate__slideOutDown",SlideOutLeft:"animate__slideOutLeft",SlideOutRight:"animate__slideOutRight",SlideOutUp:"animate__slideOutUp"},wn={Once:"animate__repeat-1",Twice:"animate__repeat-2",Thrice:"animate__repeat-3",Infinite:"animate__infinite"},Sn={Slow:"animate__slow",Slower:"animate__slower",Fast:"animate__fast",Faster:"animate__faster"},Cn={Delay1Second:"animate__delay-1s",Delay2Second:"animate__delay-2s",Delay3Second:"animate__delay-3s",Delay4Second:"animate__delay-4s",Delay5Second:"animate__delay-5s"},kn=function(t){var n;return e("div",{className:(n=[],n.push(t.category),t.repeat&&n.push(t.repeat),t.speed&&n.push(t.speed),t.delay&&n.push(t.delay),"animate__animated ".concat(n.join(" "))),children:t.children})},_n=function(t){t.animationCategory,t.animationSpeed;var n=w(t,["animationCategory","animationSpeed"]),r=me(n);return e(ye,{_base:r,className:"v-loading",children:e(kn,{category:t.animationCategory?t.animationCategory:bn.Flip,speed:t.animationSpeed?t.animationSpeed:Sn.Slower,repeat:wn.Infinite,children:t.children})})};function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(null,arguments)}var Nn=function(e){return r.createElement("svg",xn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),fn||(fn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M142.37 28c14.247 0 25.795 11.548 25.795 25.795s-11.548 25.799-25.795 25.799-25.796-11.551-25.796-25.799S128.122 28 142.37 28m65.108 50.223c7.122 7.125 7.122 18.673 0 25.796-7.122 7.125-18.673 7.125-25.795 0-7.126-7.123-7.126-18.67 0-25.796 7.122-7.122 18.673-7.122 25.795 0m13.977 76.209c0 9.032-7.318 16.35-16.35 16.35-9.03 0-16.348-7.318-16.348-16.35 0-9.03 7.318-16.348 16.348-16.348 9.032 0 16.35 7.318 16.35 16.348m-45.928 59.961c-4.277 4.278-11.215 4.278-15.493 0-4.28-4.28-4.28-11.218 0-15.496 4.278-4.28 11.216-4.28 15.493 0 4.281 4.278 4.281 11.216 0 15.496M104.469 228c-5.98 0-10.83-4.847-10.83-10.83s4.85-10.83 10.83-10.83c5.983 0 10.83 4.847 10.83 10.83S110.452 228 104.469 228m-58.417-41.95c-3.426-3.426-3.426-8.982 0-12.411 3.43-3.426 8.985-3.426 12.412 0a8.77 8.77 0 0 1 0 12.411 8.773 8.773 0 0 1-12.412 0M34 116.534a7.733 7.733 0 1 1 15.466-.002 7.733 7.733 0 0 1-15.466.002m41.858-55.412a4.53 4.53 0 0 1 6.398 0 4.52 4.52 0 0 1 0 6.399 4.52 4.52 0 0 1-6.398 0 4.53 4.53 0 0 1 0-6.399",clipRule:"evenodd"})))},On={Vertical:"Vertical",Horizontal:"Horizontal"},In=function(e){return e.name.endsWith(".jpg")||e.name.endsWith(".jpeg")||e.name.endsWith(".png")},Bn=function(t){var r=t.category,o=t.appearance;t.loader;var a=t.loaderSize,i=t.loaderColor,l=t.isPreview,c=t.previewImageWidth,f=t.textLength,h=t.autoUpload,p=t.renderLoader,g=t.renderPreview,m=w(t,["category","appearance","loader","loaderSize","loaderColor","isPreview","previewImageWidth","textLength","autoUpload","renderLoader","renderPreview"]),v=s(null),y=u({inputFiles:[],isLoading:!1}),S=y[0],C=y[1],k=function(){C((function(e){return b(b({},e),{isLoading:!1})}))};d((function(){return function(){return S.inputFiles.forEach((function(e){e.objectUrl&&URL.revokeObjectURL(e.objectUrl)}))}}),[S.inputFiles]);var _=function(e){e.preventDefault(),e.currentTarget.className="v-file"},x=me(b({onDrop:function(e){e.preventDefault();var t=Array.from(e.dataTransfer.files),n=t.map((function(e){return{name:e.name,objectUrl:In(e)?URL.createObjectURL(e):void 0}}));n.length>0&&(h?(C(b(b({},S),{inputFiles:n,isLoading:!0})),h(t,k),e.currentTarget.className="v-file"):(C(b(b({},S),{inputFiles:n})),e.currentTarget.className="v-file"))},onDragOver:function(e){e.preventDefault(),e.currentTarget.className="v-file on-drag"},onDragEnd:_,onDragLeave:_,onDragExit:_},m));return e(ye,{_base:x,className:"v-file",children:e(tn,b({type:"file",isDefaultValue:!0,ref:v},m,{onChange:function(e){var t,n=Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),r=n.map((function(e){return{name:e.name,objectUrl:In(e)?URL.createObjectURL(e):void 0}}));C(b(b({},S),{inputFiles:r})),h&&(C(b(b({},S),{inputFiles:r,isLoading:!0})),h(n,k))},overWrite:function(t){return l?g?e(Ne,{cursor:E.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:g(S.inputFiles,S.isLoading)}):r==On.Vertical?n(It,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},cross:Nt.Center,children:[!(0!=S.inputFiles.length)&&o,!(0==S.inputFiles.length)&&e(It,{gap:"0.6em",children:S.inputFiles.map((function(t){return n(It,{cross:Nt.Center,children:[!!t.objectUrl&&e(Ne,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:H.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))}),!!S.isLoading&&(p?p():e(_n,{animationCategory:bn.Flash,children:e(pt,{children:e(ln,{fontSize:a,frontColor:i,children:e(Nn,{})})})}))]}):n(at,{gap:"1em",children:[n(at,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:[!(0!=S.inputFiles.length)&&o,!(0==S.inputFiles.length)&&e(It,{gap:"0.6em",children:S.inputFiles.map((function(t){return n(It,{cross:Nt.Center,children:[!!t.objectUrl&&e(Ne,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:H.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))})]}),!!S.isLoading&&(p?p():e(_n,{animationCategory:bn.Flash,children:e(ln,{fontSize:a,frontColor:i,children:e(Nn,{})})}))]}):e(Ne,{cursor:E.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:o})}}))})},Dn={Default:"default",Circle:"circle",Squared:"squared",FullSize:"full-size",Scale:"scale"},Ln=function(t){var n=t.category,r=w(t,["category"]),o=me(r),a=o.getProps("img").html,i=n||Dn.Default;return e("img",b({className:o.getClassName("v-image-".concat(i)),style:o.getStyle()},a))};Ln.displayName="VImage";var zn,Rn,Tn=l(Ln),En=function(t){return e(tn,b({display:T.None,type:"hidden"},t))},Fn=function(t){var r=t.fileIcon,o=t.base64Image,a=w(t,["fileIcon","base64Image"]),i=me(a),l=u({base64Image:o}),c=l[0],s=l[1];return n(ye,{_base:i,className:"v-base64file",children:[e(En,{name:t.name,value:c.base64Image}),e(tn,b({type:"file",isDefaultValue:!0,onChange:function(e){if(e.target.files&&1==e.target.files.length){var t=e.target.files[0],n=new FileReader;n.onloadend=function(){var e;e=n.result&&"string"==typeof n.result?n.result.replace("data:","").replace(/^.+,/,""):"Todo",s({base64Image:e})},n.readAsDataURL(t)}},overWrite:function(o){return n(It,{gap:"0.2em",onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},children:[r,e(Tn,{fontSize:t.fontSize,category:Dn.Scale,src:"data:image/png;base64,".concat(c.base64Image),alt:"file"})]})}},a))]})},Pn=function(t){return e(tn,b({type:"month",isDefaultValue:!0},t))},Vn=function(t){return e(tn,b({type:"number",isDefaultValue:!0},t))},Wn=function(t){return e(tn,b({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))};function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(null,arguments)}var An,Hn=function(e){return r.createElement("svg",jn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),zn||(zn=r.createElement("path",{fill:"currentColor",d:"M128 188c33.138 0 60-26.862 60-60s-26.862-60-60-60-60 26.862-60 60 26.862 60 60 60"})),Rn||(Rn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un.apply(null,arguments)}var Mn,Xn,Yn=function(e){return r.createElement("svg",Un({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),An||(An=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))},Zn=function(t){var r=t.isChecked,o=w(t,["isChecked"]);return e(tn,b({type:"radio",customAttributes:{checked:!!r},isDefaultValue:!0},o,{overWrite:function(o){return n(yt,{role:"radio","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(ln,{padding:"0.4em",frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?Hn:Yn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}}))},Gn=function(t){var n=t.thumbColor,r=t.thumbBorderColor,o=t.trackColor,a=t.trackHeight,i=t.inputStyle,l=w(t,["thumbColor","thumbBorderColor","trackColor","trackHeight","inputStyle"]),c="".concat(n,"-thumb-background ").concat(r,"-thumb-border ").concat(o,"-track-background"),s=a?b(b({},i),{"--den-range-track-height":a}):i;return e(tn,b({type:"range",inputClassName:c},l,{inputStyle:s}))},qn=function(t){return e(tn,b({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},Jn=function(t){var r=t.ref;t.caption,t.isFormNoValidate;var o=w(t,["ref","caption","isFormNoValidate"]),a=s(null);d((function(){"object"==typeof r&&r?r.current=a.current:"function"==typeof r&&r(a.current),t.autoFocus&&a.current&&a.current.focus()}),[r,t.autoFocus]);var i=me(b({onClick:function(){a.current.click()}},o)),l=i.getProps("input").html;return n(ye,{_base:i,className:"v-submit",children:[n(pt,{cross:rt.Middle,children:[!!t.icon&&e("span",{children:t.icon}),!!t.caption&&e("span",{children:t.caption})]}),e("input",b({formNoValidate:t.isFormNoValidate,ref:a,type:"submit"},l))]})},Kn=function(t){var r=me(t),o=s(null);return n("div",{className:r.getClassName("v-submit-wrapper"),style:r.getStyle(),children:[t.body,e("input",{ref:o,type:"submit"})]})},Qn=function(t){return e(tn,b({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))};function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}var er,tr=function(e){return r.createElement("svg",$n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Mn||(Mn=r.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),Xn||(Xn=r.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},nr=function(t){var r=t.enableClear,o=w(t,["enableClear"]);return e(tn,r?b({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o,{renderOptions:function(r){return n(at,{gap:"0.2em",children:[t.renderOptions&&t.renderOptions(r),e(ln,{fontSize:H.ExtraSmall,frontColor:C.Placeholder,role:"button","aria-label":"Clear",tabIndex:0,onClick:function(){r.current&&(r.current.value="")},onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||!r.current||(e.preventDefault(),r.current.value="")},children:e(tr,{})})]})}}):b({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o))},rr=function(t){return e(tn,b({type:"time",isDefaultValue:!0},t))},or=function(t){return e(tn,b({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},ar=function(t){return e(tn,b({type:"week",isDefaultValue:!0},t))},ir=function(n){var r=u({selectedValue:n.selectedValue}),o=r[0],a=r[1];return e(t,{children:n.renderGroup(o.selectedValue,(function(e){a({selectedValue:e.currentTarget.value})}))})};function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr.apply(null,arguments)}var cr=function(e){return r.createElement("svg",lr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),er||(er=r.createElement("circle",{cx:128,cy:128,r:100,fill:"currentColor"})))},sr=function(t){var r=t.isOn,o=t.icon,a=t.gap,i=t.isDisabled,l=t.onSwitch,c=w(t,["isOn","icon","gap","isDisabled","onSwitch"]),s=u({isOn:r}),f=s[0],h=s[1];d((function(){h({isOn:r})}),[r]);var p=o?e(ln,{style:{margin:f.isOn?"0 0.6em 0 0":"0 0 0 0.6em"},frontColor:C.White,fontSize:H.Normal,children:o}):e(Ne,{width:"1em",height:"1em"}),g=t.isDisabled?void 0:function(){t.isDisabled||(l&&l(!f.isOn),h({isOn:!f.isOn}))},m=me(b({onClick:g},c));return e(ye,{_base:m,className:i?"v-switch-disabled":"v-switch",children:n(ht,{role:"switch","aria-checked":f.isOn,"aria-disabled":i,tabIndex:i?-1:0,onKeyDown:g?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),g())}:void 0,borderRadius:D.ExtraLarge,backgroundColor:f.isOn?t.frontColor?t.frontColor:C.Success:t.backgroundColor?t.backgroundColor:C.Placeholder,gap:a||"0.6em",children:[f.isOn?e(ln,{category:nn.Circle,frontColor:C.White,children:e(cr,{})}):p,f.isOn?p:e(ln,{category:nn.Circle,frontColor:C.White,children:e(cr,{})})]})})},ur=function(t){var n=t.name;t.items;var r=t.value,o=t.isMultiple;t.fontFamily;var a=w(t,["name","items","value","isMultiple","fontFamily"]),i=me(a),l=i.getProps("select").html;return e(ye,{_base:i,className:"v-select",children:e("select",b({multiple:o,name:n,defaultValue:r,"aria-label":n},l,{children:t.items.map((function(t){return e("option",{value:t.value,children:t.caption},t.value)}))}))})},dr=function(t){var r,o,a,i,l=t.ref,c=t.value,f=t.name,h=t.icon,g=t.emptyIcon,m=t.downIcon,v=t.upIcon,y=t.enableClear,S=t.items,k=t.dockCategory,_=t.dockAlignment,x=t.menuBackgroundColor,O=t.menuZIndex,B=t.menuGap;t.onClick;var D=t.isSelectOnly,z=t.overWriteDropdownMenu,T=t.overWriteDropdownItem,E=t.handleChange,F=t.readOnly,P=w(t,["ref","value","name","icon","emptyIcon","downIcon","upIcon","enableClear","items","dockCategory","dockAlignment","menuBackgroundColor","menuZIndex","menuGap","onClick","isSelectOnly","overWriteDropdownMenu","overWriteDropdownItem","handleChange","readOnly"]),V=me(P),W=u({isSelectionShow:!1,selectValue:c||"",selectCaption:c?S.filter((function(e){return e.value==c}))[0].caption:"",items:S}),j=W[0],A=W[1],U=s(null),M=p(),X=s(null),Y=s(null);d((function(){if(j.isSelectionShow){var e=function(e){var t=e.target;X.current&&!X.current.contains(t)&&Y.current&&!Y.current.contains(t)&&A((function(e){return b(b({},e),{isSelectionShow:!1,items:S})}))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[j.isSelectionShow,S]);d((function(){"object"==typeof l&&l?l.current=U.current:"function"==typeof l&&l(U.current),t.autoFocus&&U.current&&U.current.focus()}),[l,t.autoFocus]);var Z=O||Pe;if(F)return n(st,{className:V.getClassName("v-dropdown"),style:V.getStyle(t.style),children:[e(Le,{caption:(null===(r=j.selectCaption)||void 0===r?void 0:r.toString())||"",fontSize:t.fontSize,frontColor:t.frontColor}),e(En,{name:f,valueHook:null===(o=j.selectValue)||void 0===o?void 0:o.toString()}),e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:m})]});var G=X.current?"".concat(X.current.offsetWidth,"px"):void 0;return e(je,{width:"fit-content",overlayZIndex:j.isSelectionShow?Z:-2147483648,category:k||Ve.RightBottom,alignment:_||We.Vertical,renderOverlay:function(){return e(Ne,{ref:Y,minWidth:G,className:"v-dropdown-overlay",children:e(Ne,{visibility:j.isSelectionShow?R.Visible:R.Hidden,borderRadius:t.borderRadius,role:"listbox",id:M,children:z?z(j.items):e(It,{gap:B,padding:t.padding,backgroundColor:x||C.White,borderRadius:t.borderRadius,borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:L.Solid,children:0==j.items.length?e(pt,{children:e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:g})}):j.items.map((function(r){return T?e(Ne,{borderRadius:t.borderRadius,role:"option","aria-selected":r.value===j.selectValue,children:T(r)},r.value):n(yt,{padding:N.ExtraSmall,gap:I.Small,borderRadius:t.borderRadius,className:"item",role:"option","aria-selected":r.value===j.selectValue,onClick:function(){A(b(b({},j),{isSelectionShow:!1,selectIcon:r.icon,selectCaption:r.caption,selectValue:r.value,items:S})),E&&E(r.value)},children:[r.icon?e(ln,{fontSize:H.ExtraSmall,children:r.icon}):void 0,e(Le,{caption:r.caption})]},r.value)}))})})})},children:e(Ne,{ref:X,children:n(st,b({className:V.getClassName("v-dropdown"),style:V.getStyle(t.style)},P,{role:"combobox","aria-expanded":j.isSelectionShow,"aria-haspopup":"listbox","aria-controls":M,onClick:function(){A(b(b({},j),{isSelectionShow:!j.isSelectionShow}))},children:[n(Ne,{children:[e(nr,{ref:U,id:t.id,style:{padding:0},fontSize:t.fontSize,frontColor:t.frontColor,icon:e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:j.selectIcon?j.selectIcon:h}),valueHook:null===(a=j.selectCaption)||void 0===a?void 0:a.toString(),enableClear:y,renderOptions:t.renderOptions,readOnly:D,onChange:D?void 0:function(e){var t;t=e.target.value,A(b(b({},j),{isSelectionShow:!0,selectCaption:t,items:S.filter((function(e){return e.caption.toLowerCase().indexOf(t.toLowerCase())>-1}))}))}}),e(En,{name:f,valueHook:null===(i=j.selectValue)||void 0===i?void 0:i.toString()})]}),e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:j.isSelectionShow?v:m})]}))})})},fr={NewWindow:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},hr=function(t){var n=t.category,r=t.to,o=w(t,["category","to"]),a=me(o),i=a.getProps("a").html;return e(ye,{_base:a,className:"v-hyperlink",children:e("a",b({href:r,target:n},i,{children:t.children}))})},pr={P:"p",Address:"address",Article:"article",Aside:"aside",Details:"details",Section:"section"},gr={Justify:0,Left:1,Right:2,Center:3},mr=function(t){var n=t.category;t.alignType;var r,o,a=t.renderContent,i=w(t,["category","alignType","renderContent"]),l=me(i);switch(t.alignType){case gr.Center:o="v-text-center";break;case gr.Justify:o="v-text-justify";break;case gr.Left:o="v-text";break;case gr.Right:o="v-text-right";break;default:o="v-text"}if(n){var s=n,u=l.getProps(s).html;r=c(s,u,a())}else{u=l.getProps("span").html;r=c("span",u,a())}return e(ye,{_base:l,className:o,children:r})},vr=function(t){var r=t.ref;t.icon;var o=t.valueHook,a=t.setStateHook,i=t.placeholderColor,l=w(t,["ref","icon","valueHook","setStateHook","placeholderColor"]),c=me(l),f=c.getProps("textarea").html,h=u({value:t.value}),p=h[0],g=h[1],m=s(null);return d((function(){"object"==typeof r&&r?r.current=m.current:"function"==typeof r&&r(m.current),t.autoFocus&&m.current&&m.current.focus()}),[r,t.autoFocus]),e(ye,{category:ve.Display,_base:c,className:"v-validity v-textarea ".concat((i||C.Placeholder)+"-placeholder"),children:n(dt,{cross:rt.Top,gap:"0.6em",children:[t.icon,e(Ne,{children:e("textarea",b({ref:m},f,{id:t.id?t.id:t.name,value:o?t.valueHook:p.value,onChange:function(e){t.onChange&&t.onChange(e),a?a(e.target.value):g({value:e.target.value})}}))})]})})},yr={Default:"default",Fixed:"fixed"},br=function(t){t.category;var n=w(t,["category"]),r=me(n);return e(ye,{_base:r,className:"v-ellipse-".concat(t.category?t.category:yr.Default),children:t.children})},wr={Vertical:"vertical",Horizontal:"horizontal"},Sr=function(t){t.category;var n=w(t,["category"]),r=me(n);return e(ye,{_base:r,className:"v-line-".concat(t.category)})},Cr="default",kr=function(t){t.category;var n=w(t,["category"]),r=me(n);return e(ye,{_base:r,className:"v-rectangle-".concat(t.category?t.category:Cr)})},_r={Default:"default",Max:"max"},xr=function(n){var r=me(n);return 0===o.toArray(n.children).length?e(Le,{backgroundColor:C.Error,caption:"[VShadow] No Children!"}):e(t,{children:o.map(n.children,(function(e){return function(e){if(null==e||"boolean"==typeof e)return null;var t={};n.x&&n.y&&n.blur&&n.spread&&n.color&&(t.boxShadow="".concat(n.x,"px ").concat(n.y,"px ").concat(n.blur,"px ").concat(n.spread,"px ").concat(n.color));var o={className:r.getClassName("v-shadow-".concat(n.category?n.category:_r.Default)),style:b(b({},t),r.getStyle())};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,o)}(e)}))})},Nr=function(t){t.sources;var n=w(t,["sources"]),r=me(n),o=r.getProps("audio").html;return e("audio",b({className:r.getClassName("v-audio"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},Or=function(t){t.sources;var n=w(t,["sources"]),r=me(n),o=r.getProps("video").html;return e("video",b({className:r.getClassName("v-video"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},Ir=function(t){var n=me(t),r=n.getProps("header").html;return e("header",b({className:n.getClassName("v-header"),style:n.getStyle()},r,{children:t.children}))},Br=function(t){var n=me(t),r=n.getProps("main").html;return e("main",b({className:n.getClassName("v-main"),style:n.getStyle()},r,{children:t.children}))},Dr=function(t){var n=me(t),r=n.getProps("footer").html;return e("footer",b({className:n.getClassName("v-footer"),style:n.getStyle()},r,{children:t.children}))},Lr=function(t){var n=me(t),r=n.getProps("aside").html;return e("aside",b({className:n.getClassName("v-aside"),style:n.getStyle()},r,{children:t.children}))},zr=function(t){var n=me(t),r=n.getProps("nav").html;return e("nav",b({className:n.getClassName("v-nav"),style:n.getStyle()},r,{children:t.children}))},Rr=function(t){var n=me(t),r=n.getProps("hr").html;return e("hr",b({className:n.getClassName("v-hr"),style:n.getStyle()},r))},Tr=function(t){var n=me(t),r=n.getProps("section").html;return e("section",b({className:n.getClassName("v-section"),style:n.getStyle()},r,{children:t.children}))},Er=function(t){var n=me(b({width:"100vw",height:"100vh",backgroundColor:C.Dark75},t));return e(ke,{zIndex:t.zIndex?t.zIndex:Pe,category:Se.Window,type:Ce.Center,children:e(xe,{children:e(ye,{_base:n,className:"v-mask",children:e(ke,{category:Se.Area,type:Ce.Center,children:t.children})})})})},Fr=function(t){var n,r=t.image,o=t.backingBoard,a=t.style,i=w(t,["image","backingBoard","style"]),l=me(i);return o&&(n=b(b({},a),{background:"linear-gradient(".concat(o.degree,", ").concat(o.startColor,", ").concat(o.endColor,")")})),e(ye,b({_base:l,className:"v-frame",style:n},t.customAttributes,{children:e("div",{style:{backgroundImage:"url(".concat(r,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:t.children})}))},Pr="--den-",Vr={Global:"global",Area:"area"},Wr=function(t){var n=t.category,r=t.area,o=t.variables,a=w(t,["category","area","variables"]),i=me(b({id:r},a));return d((function(){var e;n==Vr.Area?r&&(e=document.getElementById(r)):e=document.documentElement,e&&(Object.keys(o.colors).forEach((function(t){e.style.setProperty("".concat(Pr,"color-").concat(t),o.colors[t])})),Object.keys(o.fontSizes).forEach((function(t){e.style.setProperty("".concat(Pr).concat(t),o.fontSizes[t])})),Object.keys(o.fontWeights).forEach((function(t){e.style.setProperty("".concat(Pr).concat(t),o.fontWeights[t])})))}),[]),n==Vr.Area?e(ye,{_base:i,className:"v-theme",children:t.children}):e(Le,{backgroundColor:C.Error,caption:"[VTheme] No Area!"})},jr={Hover:"hover",Click:"click"},Ar=function(t){var n,r=t.category,o=t.dockCategory,a=t.dockAlignment,i=t.renderOverlay,l=w(t,["category","dockCategory","dockAlignment","renderOverlay"]),c=me(l),s=u({isShow:!1}),d=s[0],f=s[1],h=p();return n=r||jr.Hover,e(ye,{_base:c,className:"v-tooltip",children:e(je,{category:o,alignment:a,renderOverlay:function(){return d.isShow?e(Ne,{role:"tooltip",id:h,children:i()}):e(Ne,{className:"v-tooltip-overlay-fragment","aria-hidden":!0})},children:e(Ne,{"aria-describedby":d.isShow?h:void 0,onClick:function(){n==jr.Click&&f({isShow:!d.isShow})},onMouseEnter:function(){n==jr.Hover&&f({isShow:!0})},onMouseLeave:function(){n==jr.Hover&&f({isShow:!1})},onFocus:function(){n==jr.Hover&&f({isShow:!0})},onBlur:function(){n==jr.Hover&&f({isShow:!1})},children:t.children})})})},Hr=function(t){function n(e){var n=t.call(this,e)||this;return n.state={hasError:!1,error:null,errorInfo:null},n}return y(n,t),n.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},n.prototype.componentDidCatch=function(e,t){this.setState({errorInfo:t}),this.props.onError&&this.props.onError(e,t)},n.prototype.render=function(){var t;return this.state.hasError?this.props.fallback?"function"==typeof this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):this.props.fallback:e("div",{className:"v-error-boundary",role:"alert",children:e(Le,{backgroundColor:C.Error,frontColor:C.White,padding:"1em",caption:"Component Error: ".concat((null===(t=this.state.error)||void 0===t?void 0:t.message)||"Unknown error")})}):this.props.children},n}(g),Ur=function(t){return e(xe,{children:!!t.badge&&e(ke,{category:Se.Area,bottom:"0",right:"0",children:"string"==typeof t.badge||t.badge instanceof String?e(Tn,{category:Dn.Circle,fontSize:H.Small,src:t.badge,alt:"null",borderStyle:"solid",borderWidth:"1px",borderColor:C.Light}):e(ln,{category:nn.Circle,frontColor:C.Secondary,backgroundColor:C.White,fontSize:H.Small,children:t.badge})})})},Mr=function(t){var n=me(t),r=n.getProps("template").html;return e("template",b({className:n.getClassName("v-template"),style:n.getStyle()},r,{children:t.children}))},Xr=function(t){return e("div",{id:t.id})};export{bn as AnimationCategory,Cn as AnimationDelay,wn as AnimationRepeat,Sn as AnimationSpeed,qt as BackgroundPositionType,me as Base,D as BorderRadiusType,L as BorderStyleType,z as BorderWidthType,Re as BreakpointCategory,Ee as BreakpointDisplay,Te as BreakpointType,C as ColorType,E as CursorType,M as DirectionType,T as DisplayType,je as Dock,We as DockAlignment,Ve as DockCategory,yr as EllipseCategory,On as FileCategory,Ye as Flex,Xe as FlexAlignContentType,Me as FlexAlignItemsType,Ae as FlexDirectionType,Ge as FlexItem,Ze as FlexItemAlignSelfType,Ue as FlexJustifyContentType,He as FlexWrapType,_ as FontFamilyType,H as FontSizeType,k as FontWeightType,I as GapType,Qt as HandleSubmitCategory,fr as HyperlinkCategory,Dn as ImageCategory,Be as LabelAlignType,Oe as LabelCategory,Ie as LabelType,B as LetterSpacingType,wr as LineCategory,x as LineHeightType,O as MarginType,W as OpacityType,F as OverflowType,P as OverflowXType,V as OverflowYType,N as PaddingType,ke as Position,xe as PositionArea,_e as PositionAreaCategory,Se as PositionCategory,Ce as PositionType,U as PseudoType,Fe as Responsive,ve as RootCategory,qe as SBaseline,Je as SBottom,et as SCenter,Ke as SLeft,Qe as SMiddle,$e as SRight,tt as SStretch,nt as STop,ze as ScreenSizeType,_r as ShadowCategory,nn as SvgCategory,gr as TextAlignType,pr as TextCategory,Vr as ThemeCategory,jr as TooltipCategory,en as VActionForm,kn as VAnimation,Lr as VAside,Nr as VAudio,Jt as VBackground,Ur as VBadge,Fn as VBase64File,Ne as VBoundary,pn as VCheckBox,gn as VColor,mn as VDate,vn as VDatetimeLocal,dr as VDropdown,br as VEllipse,yn as VEmail,Hr as VErrorBoundary,Bn as VFile,Dr as VFooter,$t as VForm,Fr as VFrame,ir as VGroup,Rr as VHR,Ir as VHeader,En as VHidden,hr as VHyperlink,Tn as VImage,Le as VLabel,Sr as VLine,_n as VLoading,Br as VMain,Er as VMask,Pn as VMonth,Xr as VMount,zr as VNav,Vn as VNumber,Wn as VPassword,Zn as VRadio,Gn as VRange,kr as VRectangle,qn as VSearch,Tr as VSection,ur as VSelect,xr as VShadow,Jn as VSubmit,Kn as VSubmitWrapper,ln as VSvg,sr as VSwitch,Qn as VTel,Mr as VTemplate,mr as VText,vr as VTextArea,nr as VTextBox,Wr as VTheme,rr as VTime,Ar as VTooltip,or as VUrl,Or as VVideo,ar as VWeek,we as VZone,j as ViewSizeType,R as VisibilityType,at as X,it as XAround,lt as XAutoBoth,ct as XAutoCenter,st as XAutoLeft,ut as XAutoLefts,dt as XAutoRight,ft as XAutoRights,ht as XBetween,pt as XCenter,rt as XCrossType,gt as XCustom,mt as XCustomBoth,vt as XEvenly,yt as XLeft,bt as XRight,wt as XWrapAround,St as XWrapBetween,Ct as XWrapBottom,kt as XWrapEvenly,_t as XWrapMiddle,xt as XWrapTop,It as Y,Rt as YAround,jt as YAutoBoth,Pt as YAutoBottom,Wt as YAutoBottoms,Ft as YAutoCenter,Et as YAutoTop,Vt as YAutoTops,Bt as YBetween,zt as YBottom,Nt as YCrossType,At as YCustom,Ht as YCustomBoth,Tt as YEvenly,Dt as YMiddle,Lt as YTop,Yt as YWrapAround,Zt as YWrapBetween,Mt as YWrapCenter,Gt as YWrapEvenly,Ut as YWrapLeft,Xt as YWrapRight,be as ZoneCategory,Kt as convertFormDataToJson,se as getGeneratedClassName,A as getWeightValue};
|
|
2
|
+
import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import{Children as o,Fragment as a,cloneElement as i,memo as l,createElement as c,useRef as s,useState as u,useEffect as d,useCallback as f,useLayoutEffect as h,useId as p,Component as g}from"react";import{createPortal as m}from"react-dom";var v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},v(e,t)};function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)};function w(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function S(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var C={Font:"font",Body:"body",White:"white",Black:"black",Light:"light",Light75:"light75",Light50:"light50",Light25:"light25",Dark:"dark",Dark75:"dark75",Dark50:"dark50",Dark25:"dark25",Primary:"primary",Primary75:"primary75",Primary50:"primary50",Primary25:"primary25",Secondary:"secondary",Secondary75:"secondary75",Secondary50:"secondary50",Secondary25:"secondary25",Tertiary:"tertiary",Tertiary75:"tertiary75",Tertiary50:"tertiary50",Tertiary25:"tertiary25",Info:"info",Info75:"info75",Info50:"info50",Info25:"info25",Success:"success",Success75:"success75",Success50:"success50",Success25:"success25",Warning:"warning",Warning75:"warning75",Warning50:"warning50",Warning25:"warning25",Error:"error",Error75:"error75",Error50:"error50",Error25:"error25",Border:"border",Border75:"border75",Border50:"border50",Border25:"border25",Placeholder:"placeholder",Placeholder75:"placeholder75",Placeholder50:"placeholder50",Placeholder25:"placeholder25",Transparent:"transparent"},k={Thin:"font-weight-thin",ExtraLight:"font-weight-extra-light",Light:"font-weight-light",Regular:"font-weight-regular",Medium:"font-weight-medium",SemiBold:"font-weight-semi-bold",Bold:"font-weight-bold",ExtraBold:"font-weight-extra-bold",Black:"font-weight-black"},_={Default:"font-family"},x={Default:"line-height"},N={Default:"padding",Normal:"padding-normal",ExtraSmall:"padding-extra-small",Small:"padding-small",Large:"padding-large",ExtraLarge:"padding-extra-large"},O={Default:"margin",Normal:"margin-normal",ExtraSmall:"margin-extra-small",Small:"margin-small",Large:"margin-large",ExtraLarge:"margin-extra-large"},I={Default:"gap",Normal:"gap-normal",ExtraSmall:"gap-extra-small",Small:"gap-small",Large:"gap-large",ExtraLarge:"gap-extra-large"},B={Default:"letter-spacing",Normal:"letter-spacing-normal",ExtraSmall:"letter-spacing-extra-small",Small:"letter-spacing-small",Large:"letter-spacing-large",ExtraLarge:"letter-spacing-extra-large"},D={Default:"border-radius",Normal:"border-radius-normal",ExtraSmall:"border-radius-extra-small",Small:"border-radius-small",Large:"border-radius-large",ExtraLarge:"border-radius-extra-large",Max:"border-radius-max"},L={None:"border-style-none",Solid:"border-style-solid",Dashed:"border-style-dashed",Dotted:"border-style-dotted",Double:"border-style-double",Groove:"border-style-groove",Ridge:"border-style-ridge",Inset:"border-style-inset",Outset:"border-style-outset",Hidden:"border-style-hidden"},R={Default:"border-width",Normal:"border-width-normal",ExtraSmall:"border-width-extra-small",Small:"border-width-small",Large:"border-width-large",ExtraLarge:"border-width-extra-large"},z={Visible:"visibility-visible",Hidden:"visibility-hidden",Collapse:"visibility-collapse"},T={None:"display-none",Block:"display-block",Inline:"display-inline",InlineBlock:"display-inline-block",Flex:"display-flex",InlineFlex:"display-inline-flex",Grid:"display-grid",InlineGrid:"display-inline-grid",Table:"display-table",TableRow:"display-table-row",TableCell:"display-table-cell",Contents:"display-contents",FlowRoot:"display-flow-root"},E={Auto:"cursor-auto",Default:"cursor-default",None:"cursor-none",ContextMenu:"cursor-context-menu",Help:"cursor-help",Pointer:"cursor-pointer",Progress:"cursor-progress",Wait:"cursor-wait",Cell:"cursor-cell",Crosshair:"cursor-crosshair",Text:"cursor-text",VerticalText:"cursor-vertical-text",Alias:"cursor-alias",Copy:"cursor-copy",Move:"cursor-move",NoDrop:"cursor-no-drop",NotAllowed:"cursor-not-allowed",Grab:"cursor-grab",Grabbing:"cursor-grabbing",AllScroll:"cursor-all-scroll",ColResize:"cursor-col-resize",RowResize:"cursor-row-resize",NResize:"cursor-n-resize",EResize:"cursor-e-resize",SResize:"cursor-s-resize",WResize:"cursor-w-resize",NeResize:"cursor-ne-resize",NwResize:"cursor-nw-resize",SeResize:"cursor-se-resize",SwResize:"cursor-sw-resize",EwResize:"cursor-ew-resize",NsResize:"cursor-ns-resize",NeswResize:"cursor-nesw-resize",NwseResize:"cursor-nwse-resize",ZoomIn:"cursor-zoom-in",ZoomOut:"cursor-zoom-out"},F={Visible:"overflow-visible",Hidden:"overflow-hidden",Scroll:"overflow-scroll",Auto:"overflow-auto",Clip:"overflow-clip"},P={Visible:"overflow-x-visible",Hidden:"overflow-x-hidden",Scroll:"overflow-x-scroll",Auto:"overflow-x-auto",Clip:"overflow-x-clip"},V={Visible:"overflow-y-visible",Hidden:"overflow-y-hidden",Scroll:"overflow-y-scroll",Auto:"overflow-y-auto",Clip:"overflow-y-clip"},W={_0:"opacity-0",_10:"opacity-10",_20:"opacity-20",_25:"opacity-25",_30:"opacity-30",_40:"opacity-40",_50:"opacity-50",_60:"opacity-60",_70:"opacity-70",_75:"opacity-75",_80:"opacity-80",_90:"opacity-90",_100:"opacity-100"},j={Ellipse:"v-ellipse-size",Rectangle:"v-rectangle-size",Image:"v-image-size",Svg:"v-svg-size",Window:"v-window-size"},A=function(e){var t;switch(e){case k.Thin:t=100;break;case k.ExtraLight:t=200;break;case k.Light:t=300;break;case k.Regular:t=400;break;case k.Medium:t=500;break;case k.SemiBold:t=600;break;case k.Bold:t=700;break;case k.ExtraBold:t=800;break;case k.Black:t=900;break;default:t=400}return t},H={Default:"font-size",Normal:"font-size-normal",Small:"font-size-small",ExtraSmall:"font-size-extra-small",Large:"font-size-large",ExtraLarge:"font-size-extra-large",AutoNormal:"auto-font-size-normal",AutoSmall:"auto-font-size-small",AutoExtraSmall:"auto-font-size-extra-small",AutoLarge:"auto-font-size-large",AutoExtraLarge:"auto-font-size-extra-large"},U={All:"all",Before:"before",After:"after"},M={All:"all",Top:"top",Right:"right",Bottom:"bottom",Left:"left",ExceptTop:"except-top",ExceptRight:"except-right",ExceptBottom:"except-bottom",ExceptLeft:"except-left",RightTop:"right-top",RightBottom:"right-bottom",LeftTop:"left-top",LeftBottom:"left-bottom",TopBottom:"top-bottom",LeftRight:"left-right"},X=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),Y=function(e){this.component=e},Z=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.sizeType=n,o.isAuto=r,o}return y(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(H).includes(this.sizeType)?this.sizeType:"font-size-".concat(this.sizeType),"".concat(this.component.getClassName()," ").concat(this.isAuto?"auto-".concat(e):e)}return this.component.getClassName()},t}(Y),G=function(e){function t(t,n){var r=e.call(this,t)||this;return r.weightType=n,r}return y(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(Y),q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.visibility=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.visibility){var e=void 0;return e=Object.values(z).includes(this.visibility)?this.visibility:"visibility-".concat(this.visibility),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),J=function(e){function t(t,n){var r=e.call(this,t)||this;return r.cursor=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.cursor){var e=void 0;return e=Object.values(E).includes(this.cursor)?this.cursor:"cursor-".concat(this.cursor),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),K=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflow=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.overflow){var e=void 0;return e=Object.values(F).includes(this.overflow)?this.overflow:"overflow-".concat(this.overflow),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),Q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowX=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.overflowX){var e=void 0;return e=Object.values(P).includes(this.overflowX)?this.overflowX:Object.values(F).includes(this.overflowX)?this.overflowX.replace("overflow-","overflow-x-"):"overflow-x-".concat(this.overflowX),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),$=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowY=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.overflowY){var e=void 0;return e=Object.values(V).includes(this.overflowY)?this.overflowY:Object.values(F).includes(this.overflowY)?this.overflowY.replace("overflow-","overflow-y-"):"overflow-y-".concat(this.overflowY),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.display=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.display){var e=void 0;return e=Object.values(T).includes(this.display)?this.display:"display-".concat(this.display),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.opacityType=n,r}return y(t,e),t.prototype.getClassName=function(){return this.opacityType&&Object.values(W).includes(this.opacityType)?"".concat(this.component.getClassName()," ").concat(this.opacityType):this.component.getClassName()},t}(Y),ne=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderRadius=n,r}return y(t,e),t.prototype.getClassName=function(){return this.borderRadius&&Object.values(D).includes(this.borderRadius)?"".concat(this.component.getClassName()," ").concat(this.borderRadius):this.component.getClassName()},t}(Y),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderStyle=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.borderStyle){var e=void 0;return e=Object.values(L).includes(this.borderStyle)?this.borderStyle:"border-style-".concat(this.borderStyle),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.padding=n,r}return y(t,e),t.prototype.getClassName=function(){return this.padding&&Object.values(N).includes(this.padding)?"".concat(this.component.getClassName()," ").concat(this.padding):this.component.getClassName()},t}(Y),ae=function(e){function t(t,n){var r=e.call(this,t)||this;return r.letterSpacing=n,r}return y(t,e),t.prototype.getClassName=function(){return this.letterSpacing&&Object.values(B).includes(this.letterSpacing)?"".concat(this.component.getClassName()," ").concat(this.letterSpacing):this.component.getClassName()},t}(Y),ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.margin=n,r}return y(t,e),t.prototype.getClassName=function(){return this.margin&&Object.values(O).includes(this.margin)?"".concat(this.component.getClassName()," ").concat(this.margin):this.component.getClassName()},t}(Y),le=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderWidth=n,r}return y(t,e),t.prototype.getClassName=function(){if(this.borderWidth){var e=void 0;return e=Object.values(R).includes(this.borderWidth)?this.borderWidth:"border-width-".concat(this.borderWidth),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Y),ce=function(e){function t(t,n,r,o,a,i,l,c,s,u,d){var f=e.call(this,t)||this;return f.isDefaultValue=n,f.frontColorType=r,f.backgroundColorType=o,f.borderColorType=a,f.borderDirectionType=i,f.pseudoType=l,f.pseudoFrontColorType=c,f.pseudoBackgroundColorType=s,f.pseudoBorderColorType=u,f.pseudoBorderDirectionType=d,f}return y(t,e),t.prototype.getBorderPrefix=function(e){return e?"-".concat(e):""},t.prototype.getBorderColorClassName=function(e,t,n){var r,o=this.getBorderPrefix(n);switch(t){case M.Bottom:r=" ".concat(e).concat(o,"-border-bottom");break;case M.ExceptBottom:r=" ".concat(e).concat(o,"-border-except-bottom");break;case M.ExceptLeft:r=" ".concat(e).concat(o,"-border-except-left");break;case M.ExceptRight:r=" ".concat(e).concat(o,"-border-except-right");break;case M.ExceptTop:r=" ".concat(e).concat(o,"-border-except-top");break;case M.Left:r=" ".concat(e).concat(o,"-border-left");break;case M.LeftBottom:r=" ".concat(e).concat(o,"-border-left-bottom");break;case M.LeftRight:r=" ".concat(e).concat(o,"-border-left-right");break;case M.LeftTop:r=" ".concat(e).concat(o,"-border-left-top");break;case M.Right:r=" ".concat(e).concat(o,"-border-right");break;case M.RightBottom:r=" ".concat(e).concat(o,"-border-right-bottom");break;case M.RightTop:r=" ".concat(e).concat(o,"-border-right-top");break;case M.Top:r=" ".concat(e).concat(o,"-border-top");break;case M.TopBottom:r=" ".concat(e).concat(o,"-border-bottom");break;default:r=" ".concat(e).concat(o,"-border")}return r},t.prototype.getClassName=function(){var e,t,n=this.backgroundColorType?" ".concat(this.backgroundColorType,"-background"):this.isDefaultValue?" ".concat(C.Transparent,"-background"):"",r=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(C.Transparent,"-before-background"):"",o=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(C.Transparent,"-after-background"):"",a="".concat(r).concat(o),i=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(C.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(C.Black,"-before-front"):"",c=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(C.Black,"-after-front"):"",s="".concat(l).concat(c);return e=this.borderColorType?this.borderDirectionType?this.getBorderColorClassName(this.borderColorType,this.borderDirectionType):" ".concat(this.borderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(C.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"",t=this.pseudoType?this.pseudoBorderColorType?this.pseudoBorderDirectionType?this.getBorderColorClassName(this.pseudoBorderColorType,this.pseudoBorderDirectionType,this.pseudoType):" ".concat(this.pseudoBorderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(C.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(a).concat(i).concat(s).concat(e).concat(t)},t}(Y),se=function(e,t,n,r,o,a,i,l,c,s,u,d,f,h,p,g,m,v,y,b,w,S,C,k,_,x,N){return new ce(new $(new Q(new K(new J(new q(new ee(new te(new ie(new ae(new oe(new le(new re(new ne(new Z(new G(new X(e),o),n,r),p),g),m),v),N),y),b),w),S),C),k),_),x),t,a,i,l,c,s,u,d,f,h).getClassName()},ue=["onClick","onDoubleClick","onContextMenu","onDrag","onDragStart","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDrop","onCopy","onCut","onPaste","onBlur","onFocus","onMouseDown","onMouseUp","onMouseEnter","onMouseLeave","onMouseMove","onMouseEndter","onMouseOut","onKeyDown","onKeyUp","onKeyPress","onTouchStart","onTouchEnd","onTouchMove","onTouchCancel","onWheel","onScroll","onSelect","onBeforeInput","onInput"],de=["id","title","dir","lang","translate","tabIndex","accessKey","contentEditable","spellCheck","draggable","enterKeyHint","inputMode","autoCapitalize","role","slot","htmlFor","hidden","is"],fe=["onError","onLoad"],he=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],pe={div:S(S([],ue,!0),de,!0),input:S(S(S(S([],ue,!0),de,!0),["onChange","onInput","onInvalid","onSelect"],!0),["name","value","defaultValue","checked","defaultChecked","type","accept","autoComplete","autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","height","width","list","max","min","maxLength","maxLength","minLength","multiple","pattern","placeholder","readOnly","required","size","step","src"],!0),textarea:S(S(S([],ue,!0),de,!0),["rows","cols","wrap","name","autoFocus","autoComplete","placeholder","maxLength","minLength","required","readOnly","disabled","wrap","spellcheck","dirname"],!0),template:S(S([],ue,!0),de,!0),abbr:S(S([],ue,!0),de,!0),span:S(S([],ue,!0),de,!0),h1:S(S([],ue,!0),de,!0),h2:S(S([],ue,!0),de,!0),h3:S(S([],ue,!0),de,!0),h4:S(S([],ue,!0),de,!0),h5:S(S([],ue,!0),de,!0),h6:S(S([],ue,!0),de,!0),i:S(S([],ue,!0),de,!0),b:S(S([],ue,!0),de,!0),u:S(S([],ue,!0),de,!0),em:S(S([],ue,!0),de,!0),strong:S(S([],ue,!0),de,!0),blockquote:S(S([],ue,!0),de,!0),cite:S(S([],ue,!0),de,!0),code:S(S([],ue,!0),de,!0),del:S(S([],ue,!0),de,!0),dfn:S(S([],ue,!0),de,!0),ins:S(S([],ue,!0),de,!0),kbd:S(S([],ue,!0),de,!0),mark:S(S([],ue,!0),de,!0),pre:S(S([],ue,!0),de,!0),q:S(S([],ue,!0),de,!0),s:S(S([],ue,!0),de,!0),samp:S(S([],ue,!0),de,!0),small:S(S([],ue,!0),de,!0),summary:S(S([],ue,!0),de,!0),sup:S(S([],ue,!0),de,!0),sub:S(S([],ue,!0),de,!0),time:S(S([],ue,!0),de,!0),var:S(S([],ue,!0),de,!0),wbr:S(S([],ue,!0),de,!0),p:S(S([],ue,!0),de,!0),address:S(S([],ue,!0),de,!0),article:S(S([],ue,!0),de,!0),aside:S(S([],ue,!0),de,!0),details:S(S(S([],ue,!0),de,!0),["onToggle"],!0),nav:S(S([],ue,!0),de,!0),section:S(S([],ue,!0),de,!0),form:S(S(S([],ue,!0),de,!0),["onReset","onSubmit"],!0),dialog:S(S(S([],ue,!0),de,!0),["onCancel","onClose"],!0),img:S(S(S(S([],ue,!0),de,!0),fe,!0),["src","alt","width","height","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","title","role"],!0),iframe:S(S(S(S([],ue,!0),de,!0),fe,!0),["src","srcDoc","width","height","name","sandbox","allow","allowFullScreen","loading","referrerPolicy","title","role"],!0),object:S(S(S([],ue,!0),de,!0),fe,!0),embed:S(S(S([],ue,!0),de,!0),fe,!0),link:S(S(S([],ue,!0),de,!0),fe,!0),svg:S(S(S([],ue,!0),de,!0),fe,!0),audio:S(S(S([],ue,!0),de,!0),he,!0),video:S(S(S([],ue,!0),de,!0),he,!0)},ge=["className","style","fontSize","isAutoSize","fontWeight","frontColor","backgroundColor","borderColor","borderDirection","pseudoType","pseudoFrontColor","pseudoBackgroundColor","pseudoBorderColor","pseudoBorderDirection","display","visibility","zIndex","fontFamily","borderWidth","borderRadius","borderStyle","padding","margin","height","width","minHeight","minWidth","maxHeight","maxWidth","opacity","letterSpacing","lineHeight","cursor","overflow","overflowX","overflowY","isDefaultValue","customAttributes"],me=function(t){return{getClassName:function(e){var n=se(e,t.isDefaultValue,t.fontSize,t.isAutoSize,t.fontWeight,t.frontColor,t.backgroundColor,t.borderColor,t.borderDirection,t.pseudoType,t.pseudoFrontColor,t.pseudoBackgroundColor,t.pseudoBorderColor,t.pseudoBorderDirection,t.borderRadius,t.borderStyle,t.borderWidth,t.padding,t.margin,t.opacity,t.display,t.visibility,t.cursor,t.overflow,t.overflowX,t.overflowY,t.letterSpacing);return t.className?"".concat(t.className," ").concat(n):n},getStyle:function(e){var n={height:t.height,width:t.width,minHeight:t.minHeight,minWidth:t.minWidth,maxHeight:t.maxHeight,maxWidth:t.maxWidth,zIndex:t.zIndex,fontFamily:t.fontFamily,lineHeight:t.lineHeight};return t.letterSpacing&&!Object.values(B).includes(t.letterSpacing)&&(n.letterSpacing=t.letterSpacing),t.opacity&&!Object.values(W).includes(t.opacity)&&(n.opacity=t.opacity),t.padding&&!Object.values(N).includes(t.padding)&&(n.padding=t.padding),t.margin&&!Object.values(O).includes(t.margin)&&(n.margin=t.margin),t.borderRadius&&!Object.values(D).includes(t.borderRadius)&&(n.borderRadius=t.borderRadius),null!=t.selfShrink&&(n.flexShrink=t.selfShrink),null!=t.selfGrow&&(n.flexGrow=t.selfGrow),null!=t.selfBasis&&(n.flexBasis=t.selfBasis),b(b(b({},t.style),e),n)},getChildren:function(){var n=e("span",{className:"fb-bg-error",style:{display:"inline-block"},children:"[Base] No Children!"});if(t.children){if(Array.isArray(t.children)){var r=t.children.filter(Boolean);return r&&r.length>0?r:n}return t.children?t.children:n}return n},getProps:function(e){var n={},r={},o=Object.keys(t);return o.length>0&&o.forEach((function(o){ge.includes(o)?n[o]=t[o]:pe[e]&&pe[e].includes(o)&&(r[o]=t[o])})),{view:n,html:r}}}},ve={Display:"display",Rich:"rich"},ye=function(t){var n=(t.category==ve.Display?{}:t._base.getProps("div")).html;return e("div",b({ref:t.ref,className:t._base.getClassName(t.className),style:t._base.getStyle(t.style)},n,{children:t.children}))},be={Fluid:"fluid",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},we=function(t){var n=t.category,r=w(t,["category"]),o=me(r);return e(ye,{_base:o,className:"v-zone-".concat(n),children:t.children})},Se={Edge:"edge",Window:"window",Area:"area",Self:"self"},Ce={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",Center:"center"},ke=function(t){var n;if(t.category&&(n=t.type?"position-".concat(t.category,"-").concat(t.type):"position-".concat(t.category,"-custom")),t.isFullWidth&&(n="".concat(n," position-full-width")),t.type){var r=void 0;return r=b(b({},t.style),{zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})}r=void 0;return r=t.category!=Se.Self?b(b({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):b(b({},t.style),{top:"-".concat(t.top),right:"-".concat(t.right),bottom:"-".concat(t.bottom),left:"-".concat(t.left),zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})},_e={Default:"default",FullSize:"full-size"},xe=function(n){return e(t,{children:o.map(n.children,(function(e){return function(e){var t={className:"position-area-".concat(n.category?n.category:_e.Default," ").concat(e.props.className)};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,t)}(e)}))})},Ne=function(t){var n=me(t);return e(ye,{ref:t.ref,_base:n,className:"v-boundary",children:t.children})},Oe={Div:"div",Abbr:"abbr",Span:"span",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",I:"i",B:"b",U:"u",Em:"em",Strong:"strong",Blockquote:"blockquote",Cite:"cite",Code:"code",Del:"del",Dfn:"dfn",Ins:"ins",Kbd:"kbd",Mark:"mark",Pre:"pre",Q:"q",S:"s",Samp:"samp",Small:"small",Summary:"summary",Sup:"sup",Sub:"sub",Time:"time",Var:"var",Wbr:"wbr"},Ie={Default:"default",Circle:"circle"},Be={Justify:0,Left:1,Right:2,Center:3},De=function(t){var n,r,o=t.category,a=t.type,i=t.alignType,l=t.isTextOverflow,s=t.caption,u=w(t,["category","type","alignType","isTextOverflow","caption"]),d=me(b({display:null==t.category||t.category==Oe.Span?"inline-block":"block"},u)),f=d.getProps("div"),h=f.view,p=f.html;switch(i){case Be.Center:r="v-label-center";break;case Be.Justify:r="v-label-justify";break;case Be.Left:r="v-label";break;case Be.Right:r="v-label-right";break;default:r="v-label"}if(a==Ie.Circle&&(r="".concat(r,"-circle")),l&&(r+=" v-label-text-overflow"),u.fontWeight&&(r+=" v-label-inherit-font-weight"),u.fontSize&&(r+=" v-label-inherit-font-size"),o){var g=o,m=d.getProps(g).html;n=c(g,m,s)}else{var v=d.getProps("span").html;n=c("span",v,s)}return a==Ie.Circle?e(xe,{children:e(Ne,b({width:"1.6em",height:"1.6em",borderRadius:D.Max},h,{className:r},p,{children:e(ke,{category:Se.Area,type:Ce.Center,children:n})}))}):e(Ne,b({},h,{className:t.className?"".concat(t.className," ").concat(r):r},p,{children:n}))};De.displayName="VLabel";var Le=l(De),Re={ExtraSmall:"extra-small",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},ze={Visible:"visiable",Hidden:"hidden"},Te={Only:"only",Up:"up",Down:"down"},Ee=function(t){return t.children?e(Ne,{className:function(){if(t.breakpoint){if("string"!=typeof t.breakpoint)return t.breakpoint.map((function(e){return"".concat(e,"-").concat(t.category)})).join(" ");if(!t.type||t.type==Te.Only)return"".concat(t.breakpoint,"-").concat(t.category);if(t.type==Te.Up)return"".concat(t.breakpoint,"-up-").concat(t.category);if(t.type==Te.Down)return"".concat(t.breakpoint,"-down-").concat(t.category)}return t.category}(),style:{display:"contents"},children:t.children}):e(Le,{backgroundColor:C.Error,caption:"[BreakpointDisplay] No Children!"})},Fe=function(r){return n(t,{children:[e(Ee,{category:ze.Hidden,type:Te.Down,breakpoint:r.breakpointType?r.breakpointType:Re.Small,children:r.desktop}),e(Ee,{category:ze.Hidden,type:Te.Up,breakpoint:r.breakpointType?r.breakpointType:Re.Small,children:r.mobile})]})},Pe=2147483647,Ve={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",InnerTop:"inner-top",InnerRight:"inner-right",InnerBottom:"inner-bottom",InnerLeft:"inner-left",InnerLeftTop:"inner-left-top",InnerRightTop:"inner-right-top",InnerLeftBottom:"inner-left-bottom",InnerRightBottom:"inner-right-bottom"},We={Horizontal:"horizontal",Vertical:"vertical"},je=function(r){var o=r.category,a=r.offset,i=void 0===a?0:a,l=r.overlayZIndex,c=void 0===l?Pe:l,p=r.renderOverlay,g=w(r,["category","offset","overlayZIndex","renderOverlay"]),v="alignment"in r?r.alignment:void 0,y=me(g),S=y.getProps("div").html,C=s(null),k=s(null),_=u(!1),x=_[0],N=_[1];d((function(){N(!0)}),[]);var O=f((function(){var e=C.current,t=k.current;if(e&&t){var n=function(e,t,n,r,o,a){var i=e.width,l=e.height,c=e.left+window.scrollX,s=e.top+window.scrollY;switch(r){case Ve.Top:c+=(i-t)/2,s+=-n-o;break;case Ve.Right:c+=i+o,s+=(l-n)/2;break;case Ve.Bottom:c+=(i-t)/2,s+=l+o;break;case Ve.Left:c+=-t-o,s+=(l-n)/2;break;case Ve.LeftTop:a==We.Horizontal?(c+=-t-o,s+=o):a==We.Vertical?(c+=o,s+=-n-o):(c+=-t-o,s+=-n-o);break;case Ve.RightTop:a==We.Horizontal?(c+=i+o,s+=o):a==We.Vertical?(c+=i-t-o,s+=-n-o):(c+=i+o,s+=-n-o);break;case Ve.LeftBottom:a==We.Horizontal?(c+=-t-o,s+=l-n-o):a==We.Vertical?(c+=o,s+=l+o):(c+=-t-o,s+=l+o);break;case Ve.RightBottom:a==We.Horizontal?(c+=i+o,s+=l-n-o):a==We.Vertical?(c+=i-t-o,s+=l+o):(c+=i+o,s+=l+o);break;case Ve.InnerTop:c+=(i-t)/2,s+=o;break;case Ve.InnerRight:c+=i-t-o,s+=(l-n)/2;break;case Ve.InnerBottom:c+=(i-t)/2,s+=l-n-o;break;case Ve.InnerLeft:c+=o,s+=(l-n)/2;break;case Ve.InnerLeftTop:c+=o,s+=o;break;case Ve.InnerRightTop:c+=i-t-o,s+=o;break;case Ve.InnerLeftBottom:c+=o,s+=l-n-o;break;case Ve.InnerRightBottom:c+=i-t-o,s+=l-n-o}return{x:c,y:s}}(e.getBoundingClientRect(),t.offsetWidth,t.offsetHeight,o,i,v),r=n.x,a=n.y;t.style.transform="translate3d(".concat(r,"px, ").concat(a,"px, 0)")}}),[o,i,v]);h((function(){O()}),[O,p,c]),d((function(){var e=function(){return O()},t=function(){return O()};return window.addEventListener("resize",e),window.addEventListener("scroll",t,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",t,!0)}}),[O]);var I=x&&m(e("div",{ref:k,className:"dock-overlay",style:{zIndex:c},children:p()}),document.body);return n(t,{children:[e("div",b({ref:C,className:y.getClassName("dock"),style:y.getStyle()},S,{children:r.children})),I]})},Ae={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},He={NoWrap:"nowrap",Wrap:"wrap"},Ue={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Me={Start:"flex-start",Center:"center",End:"flex-end",Stretch:"stretch",Baseline:"baseline"},Xe={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Ye=function(t){t.vClassName;var n=t.direction,r=t.wrap,o=t.justifyContent,a=t.alignItems,i=t.alignContent,l=t.gap,c=t.overflow,s=w(t,["vClassName","direction","wrap","justifyContent","alignItems","alignContent","gap","overflow"]);!s.cursor&&t.onClick&&(s.cursor=E.Pointer);var u=me(s),d=u.getProps("div").html,f=l&&Object.values(I).includes(l),h=!l||f?u.getStyle():b(b({},u.getStyle()),{gap:l}),p=c?"flex-".concat(c):s.overflowX||s.overflowY?"flex":"flex-hidden",g=n?" flex-direction-".concat(n):"",m=r?" flex-wrap-".concat(r):"",v=o?" flex-justify-content-".concat(o):"",y=a?" flex-align-items-".concat(a):"",S=i?" flex-align-content-".concat(i):"",C=f?" ".concat(l):"",k="".concat(p).concat(g).concat(m).concat(v).concat(y).concat(S).concat(C),_=u.getClassName(k);return e("div",b({className:_,style:h},d,{children:t.children}))},Ze={Start:"start",Center:"center",End:"end",Stretch:"stretch",Baseline:"baseline"},Ge=function(t){var n={};null!=t.order&&(n.order=t.order),null!=t.basis&&(n.flexBasis=t.basis),null!=t.grow&&(n.flexGrow=t.grow),null!=t.shrink&&(n.flexShrink=t.shrink);var r=t.alignSelf?" flex-align-self-".concat(t.alignSelf):"",o="flex-item".concat(r);return e("div",{className:o,style:b(b({},n),{display:"flex",flexDirection:"column"}),children:t.children})},qe=function(n){return e(t,{children:n.children})},Je=function(n){return e(t,{children:n.children})},Ke=function(n){return e(t,{children:n.children})},Qe=function(n){return e(t,{children:n.children})},$e=function(n){return e(t,{children:n.children})},et=function(n){return e(t,{children:n.children})},tt=function(n){return e(t,{children:n.children})},nt=function(n){return e(t,{children:n.children})},rt={Top:"top",Middle:"middle",Bottom:"bottom",Stretch:"stretch",Baseline:"baseline"},ot=function(n,r,a,i,l){n.cross;var c=n.itemsShrink,s=w(n,["cross","itemsShrink"]),u=me(s),d=function(t,n,o){return r?r(t,n,o,c):e(Ge,{alignSelf:o,shrink:c,children:t},"child".concat(n))};return e(Ye,b({vClassName:"v-xbase",alignItems:function(){var e;if(n.cross)switch(n.cross){case rt.Stretch:e=Me.Stretch;break;case rt.Baseline:e=Me.Baseline;break;case rt.Bottom:e=Me.End;break;case rt.Middle:e=Me.Center;break;case rt.Top:e=Me.Start;break;default:e=Me.Center}else e=Me.Center;return e}(),wrap:a?a():He.NoWrap,justifyContent:i?i():Ue.Start,alignContent:l?l():Xe.Start},s,{children:o.map(u.getChildren(),(function(n,r){var o=n;return o.type?o.type===nt?d(o.props.children,r,Ze.Start):o.type===Qe?d(o.props.children,r,Ze.Center):o.type===Je?d(o.props.children,r,Ze.End):o.type===tt?d(o.props.children,r,Ze.Stretch):o.type===qe?d(o.props.children,r,Ze.Baseline):d(o,r):(console.debug(o),e(t,{children:"Please check X layout children."}))}))}))},at=function(t){return ot(t,(function(t,n,r,o){return e(Ge,{grow:1,alignSelf:r,shrink:o,children:t})}))},it=function(e){return ot(e,void 0,void 0,(function(){return Ue.SpaceAround}))},lt=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},ct=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:0,alignSelf:a,shrink:i,children:t})}))},st=function(t){return ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},ut=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},dt=function(t){var n=me(t);return ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:1,shrink:i,children:t}):e(Ge,{grow:0,shrink:i,children:t})}))},ft=function(t){return ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},ht=function(e){return ot(e,void 0,void 0,(function(){return Ue.SpaceBetween}))},pt=function(e){return ot(e,void 0,void 0,(function(){return Ue.Center}))},gt=function(t){return ot(t,(function(n,r,o,a){var i=e(Ge,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ge,{basis:t.basises[r],shrink:a,children:n})),i}))},mt=function(t){var n=me(t);return ot(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ge,{basis:t.basis,shrink:l,children:r}):e(Ge,{grow:1,shrink:l,children:r})}))},vt=function(e){return ot(e,void 0,void 0,(function(){return Ue.SpaceEvenly}))},yt=function(e){return ot(e)},bt=function(e){return ot(e,void 0,void 0,(function(){return Ue.End}))},wt=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.SpaceAround}))},St=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.SpaceBetween}))},Ct=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.End}))},kt=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.SpaceEvenly}))},_t=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.Center}))},xt=function(e){return ot(e,void 0,(function(){return He.Wrap}),void 0,(function(){return Xe.Start}))},Nt={Left:"left",Center:"center",Right:"right",Baseline:"baseline",Stretch:"stretch"},Ot=function(n,r,a,i,l){var c=n.cross,s=n.itemsShrink,u=w(n,["cross","itemsShrink"]),d=me(u),f=function(t,n,o){return r?r(t,n,o,s):e(Ge,{alignSelf:o,shrink:s,children:t},"child".concat(n))};return e(Ye,b({vClassName:"v-ybase",wrap:a?a():He.NoWrap,alignContent:i?i():Xe.Start,alignItems:function(){var e;if(c)switch(c){case Nt.Left:e=Me.Start;break;case Nt.Center:e=Me.Center;break;case Nt.Right:e=Me.End;break;case Nt.Baseline:e=Me.Baseline;break;default:e=Me.Stretch}else e=Me.Stretch;return e}(),direction:Ae.Column,justifyContent:l?l():Ue.Start},u,{children:o.map(d.getChildren(),(function(n,r){var o=n;return o.type?o.type===Ke?f(o.props.children,r,Ze.Start):o.type===Qe||o.type===et?f(o.props.children,r,Ze.Center):o.type===$e?f(o.props.children,r,Ze.End):o.type===tt?f(o.props.children,r,Ze.Stretch):o.type===qe?f(o.props.children,r,Ze.Baseline):f(n,r):(console.debug(o),e(t,{children:"Please check Y layout children."}))}))}))},It=function(t){return Ot(t,(function(t,n,r,o){return e(Ge,{grow:1,alignSelf:r,shrink:o,children:t})}))},Bt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.SpaceBetween}))},Dt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.Center}))},Lt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.Start}))},Rt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.End}))},zt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.SpaceAround}))},Tt=function(e){return Ot(e,void 0,void 0,void 0,(function(){return Ue.SpaceEvenly}))},Et=function(t){return Ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},Ft=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:0,alignSelf:a,shrink:i,children:t})}))},Pt=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:1,shrink:i,children:t}):e(Ge,{grow:0,shrink:i,children:t})}))},Vt=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},Wt=function(t){return Ot(t,(function(t,n,r,o){return e(Ge,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},jt=function(t){var n=me(t);return Ot(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ge,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ge,{grow:1,alignSelf:a,shrink:i,children:t})}))},At=function(t){return Ot(t,(function(n,r,o,a){var i=e(Ge,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ge,{basis:t.basises[r],shrink:a,children:n})),i}))},Ht=function(t){var n=me(t);return Ot(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ge,{basis:t.basis,shrink:l,children:r}):e(Ge,{grow:1,shrink:l,children:r})}))},Ut=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.Start}))},Mt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.Center}))},Xt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.End}))},Yt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.SpaceAround}),void 0)},Zt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.SpaceBetween}))},Gt=function(e){return Ot(e,void 0,(function(){return He.Wrap}),(function(){return Xe.SpaceEvenly}))},qt={Top:"top",Right:"right",Bottom:"bottom",Left:"left",Center:"center"},Jt=function(t){t.image,t.imageWidth,t.imageHeight,t.position;var n,r=w(t,["image","imageWidth","imageHeight","position"]);n=t.imageWidth&&t.imageHeight?{backgroundImage:'url("'.concat(t.image,'")'),backgroundSize:"".concat(t.imageWidth," ").concat(t.imageHeight)}:{backgroundImage:'url("'.concat(t.image,'")')};var o=me(b(b({},r),{style:n}));return e(ye,{_base:o,className:t.position?"v-background-".concat(t.position):"v-background",children:t.children})},Kt=function(e){var t={};return e.forEach((function(e,n){var r,o=!1;n.startsWith("#")?(o=!0,r=n.substring(1).split(".")):r=n.split(".");var a=t;r.forEach((function(t,n){if(n==r.length-1)if(t.endsWith("[]")){var i=t.replace("[]","");Object.keys(a).filter((function(e){return e==i})).length>0?a[i]=S(S([],a[i],!0),[o?JSON.parse(e.toString()):e],!1):a[i]=[o?JSON.parse(e.toString()):e]}else a[t]=o?JSON.parse(e.toString()):e;else t in a||(a[t]={}),a=a[t]}))})),t},Qt={Json:"json",FormData:"formdata"},$t=function(t){var n=t.handleSubmitCategory,r=t.handleSubmit,o=t.handleValidateError,a=w(t,["handleSubmitCategory","handleSubmit","handleValidateError"]),i=me(a),l=i.getProps("form").html;return e("form",b({noValidate:!!o,className:i.getClassName("v-form"),style:i.getStyle(),onSubmit:function(e){e.preventDefault();var t=e.currentTarget,a=e.nativeEvent.submitter;if((null==a?void 0:a.formNoValidate)||!o||t.checkValidity()){for(var i=0;i<t.elements.length;i++){(u=(s=t.elements.item(i)).closest(".v-validity"))&&u.classList.remove("invalid")}var l=new FormData(t);r(n===Qt.FormData?l:Kt(l))}else{var c=[];for(i=0;i<t.elements.length;i++){var s,u;(u=(s=t.elements.item(i)).closest(".v-validity"))&&(s.checkValidity()?u.classList.remove("invalid"):(u.classList.add("invalid"),c.push(s)))}o(c)}}},l,{children:t.children}))},en=function(t){return e("form",b({className:"v-action-form"},t,{children:t.children}))},tn=function(t){var r=t.ref,o=t.type,a=t.label,i=t.icon,l=t.value,c=t.valueHook,f=t.setStateHook,h=t.isValueShow,p=t.gap,g=t.valueSize,m=t.frontColor;t.valueCategory;var v,y=t.valuePadding,S=t.inputStyle,k=t.inputClassName,_=t.placeholderColor,x=t.overWrite,N=t.renderOptions,O=t.onChange,I=t.inheritClassName,B=t.customAttributes,D=w(t,["ref","type","label","icon","value","valueHook","setStateHook","isValueShow","gap","valueSize","frontColor","valueCategory","valuePadding","inputStyle","inputClassName","placeholderColor","overWrite","renderOptions","onChange","inheritClassName","customAttributes"]),L=me(D),R=L.getProps("input").html,z=u({value:void 0!==t.value?t.value:""}),E=z[0],F=z[1],P=s(null);return d((function(){"object"==typeof r&&r?r.current=P.current:"function"==typeof r&&r(P.current),t.autoFocus&&P.current&&P.current.focus()}),[r,t.autoFocus]),x&&(v=x(P)),n(ye,{_base:L,className:"v-validity v-input ".concat((_||C.Placeholder)+"-placeholder").concat(I?" ".concat(I):""),children:[n(It,{display:v?T.None:void 0,children:[n(ct,{gap:p,children:[e(Ne,{children:i}),n(Ne,{children:[e("input",b({ref:P},B,{className:(k?"".concat(k," "):"")+"".concat(L.getClassName("v-input-native")),style:S,type:o,value:c||E.value,onChange:function(e){var t;h&&F({value:null===(t=P.current)||void 0===t?void 0:t.value}),O&&O(e),f?f(e.target.value):F({value:e.target.value})}},R)),!!a&&e("label",{htmlFor:t.id?t.id:t.name,children:a})]}),N?N(P):e(Ne,{})]}),!!h&&e(pt,{children:e(Le,{padding:y,isAutoSize:t.isAutoSize,fontSize:g||H.Normal,frontColor:m||C.Black,caption:void 0!==E.value?E.value.toString():l?l.toString():""})})]}),!!v&&v]})},nn={Default:"default",Circle:"circle",Squared:"squared",Custom:"custom"},rn=function(n){var r=b({},n);!r.cursor&&n.onClick&&(r.cursor=E.Pointer);var l=me(r);return e(t,{children:o.map(n.children,(function(e){return function(e){var t=n.category?n.category:nn.Default,r=l.getClassName("v-svg-".concat(t)),o=n.onClick,c=n.onMouseEnter,s=n.onMouseLeave,u={className:r,style:b({},l.getStyle()),onClick:o,onMouseEnter:c,onMouseLeave:s};return e.type===a?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,u)}(e)}))})};rn.displayName="VSvg";var on,an,ln=l(rn);function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(null,arguments)}var sn,un=function(e){return r.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),on||(on=r.createElement("path",{fill:"currentColor",d:"M198.132 64.763a6 6 0 0 0-6-6H65.753a6 6 0 0 0-6 6v126.473a6 6 0 0 0 6 6h126.399a6 6 0 0 0 6-6.001z"})),an||(an=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(null,arguments)}var fn,hn=function(e){return r.createElement("svg",dn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),sn||(sn=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))},pn=function(t){var r=t.isChecked,o=w(t,["isChecked"]);return e(tn,b({isAutoSize:t.isAutoSize,customAttributes:{checked:!!r},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(o){return n(yt,{gap:"0.2em",role:"checkbox","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(ln,{frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?un:hn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}},o))},gn=function(t){return e(tn,b({type:"color",isDefaultValue:!0},t))},mn=function(t){return e(tn,b({type:"date",isDefaultValue:!0},t))},vn=function(t){return e(tn,b({type:"datetime-local",isDefaultValue:!0},t))},yn=function(t){return e(tn,b({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},bn={Bounce:"animate__bounce",Flash:"animate__flash",Pulse:"animate__pulse",RubberBand:"animate__rubberBand",ShakeX:"animate__shakeX",ShakeY:"animate__shakeY",HeadShake:"animate__headShake",Swing:"animate__swing",Tada:"animate__tada",Wobble:"animate__wobble",Jello:"animate__jello",HeartBeat:"animate__heartBeat",BackInDown:"animate__backInDown",BackInLeft:"animate__backInLeft",BackInRight:"animate__backInRight",BackInUp:"animate__backInUp",BackOutDown:"animate__backOutDown",BackOutLeft:"animate__backOutLeft",BackOutRight:"animate__backOutRight",BackOutUp:"animate__backOutUp",BounceIn:"animate__bounceIn",BounceInDown:"animate__bounceInDown",BounceInLeft:"animate__bounceInLeft",BounceInRight:"animate__bounceInRight",BounceInUp:"animate__bounceInUp",BounceOut:"animate__bounceOut",BounceOutDown:"animate__bounceOutDown",BounceOutLeft:"animate__bounceOutLeft",BounceOutRight:"animate__bounceOutRight",BounceOutUp:"animate__bounceOutUp",FadeIn:"animate__fadeIn",FadeInDown:"animate__fadeInDown",FadeInDownBig:"animate__fadeInDownBig",FadeInLeft:"animate__fadeInLeft",FadeInLeftBig:"animate__fadeInLeftBig",FadeInRight:"animate__fadeInRight",FadeInRightBig:"animate__fadeInRightBig",FadeInUp:"animate__fadeInUp",FadeInUpBig:"animate__fadeInUpBig",FadeInTopLeft:"animate__fadeInTopLeft",FadeInTopRight:"animate__fadeInTopRight",FadeInBottomLeft:"animate__fadeInBottomLeft",FadeInBottomRight:"animate__fadeInBottomRight",FadeOut:"animate__fadeOut",FadeOutDown:"animate__fadeOutDown",FadeOutDownBig:"animate__fadeOutDownBig",FadeOutLeft:"animate__fadeOutLeft",FadeOutLeftBig:"animate__fadeOutLeftBig",FadeOutRight:"animate__fadeOutRight",FadeOutRightBig:"animate__fadeOutRightBig",FadeOutUp:"animate__fadeOutUp",FadeOutUpBig:"animate__fadeOutUpBig",FadeOutTopLeft:"animate__fadeOutTopLeft",FadeOutTopRight:"animate__fadeOutTopRight",FadeOutBottomLeft:"animate__fadeOutBottomLeft",FadeOutBottomRight:"animate__fadeOutBottomRight",Flip:"animate__flip",FlipInX:"animate__flipInX",FlipInY:"animate__flipInY",FlipOutX:"animate__flipOutX",FlipOutY:"animate__flipOutY",LightSpeedInRight:"animate__lightSpeedInRight",LightSpeedInLeft:"animate__lightSpeedInLeft",LightSpeedOutRight:"animate__lightSpeedOutRight",LightSpeedOutLeft:"animate__lightSpeedOutLeft",RotateIn:"animate__rotateIn",RotateInDownLeft:"animate__rotateInDownLeft",RotateInDownRight:"animate__rotateInDownRight",RotateInUpLeft:"animate__rotateInUpLeft",RotateInUpRight:"animate__rotateInUpRight",RotateOut:"animate__rotateOut",RotateOutDownLeft:"animate__rotateOutDownLeft",RotateOutDownRight:"animate__rotateOutDownRight",RotateOutUpLeft:"animate__rotateOutUpLeft",RotateOutUpRight:"animate__rotateOutUpRight",Hinge:"animate__hinge",JackInTheBox:"animate__jackInTheBox",RollIn:"animate__rollIn",RollOut:"animate__rollOut",ZoomIn:"animate__zoomIn",ZoomInDown:"animate__zoomInDown",ZoomInLeft:"animate__zoomInLeft",ZoomInRight:"animate__zoomInRight",ZoomInUp:"animate__zoomInUp",ZoomOut:"animate__zoomOut",ZoomOutDown:"animate__zoomOutDown",ZoomOutLeft:"animate__zoomOutLeft",ZoomOutRight:"animate__zoomOutRight",ZoomOutUp:"animate__zoomOutUp",SlideInDown:"animate__slideInDown",SlideInLeft:"animate__slideInLeft",SlideInRight:"animate__slideInRight",SlideInUp:"animate__slideInUp",SlideOutDown:"animate__slideOutDown",SlideOutLeft:"animate__slideOutLeft",SlideOutRight:"animate__slideOutRight",SlideOutUp:"animate__slideOutUp"},wn={Once:"animate__repeat-1",Twice:"animate__repeat-2",Thrice:"animate__repeat-3",Infinite:"animate__infinite"},Sn={Slow:"animate__slow",Slower:"animate__slower",Fast:"animate__fast",Faster:"animate__faster"},Cn={Delay1Second:"animate__delay-1s",Delay2Second:"animate__delay-2s",Delay3Second:"animate__delay-3s",Delay4Second:"animate__delay-4s",Delay5Second:"animate__delay-5s"},kn=function(t){var n;return e("div",{className:(n=[],n.push(t.category),t.repeat&&n.push(t.repeat),t.speed&&n.push(t.speed),t.delay&&n.push(t.delay),"animate__animated ".concat(n.join(" "))),children:t.children})},_n=function(t){t.animationCategory,t.animationSpeed;var n=w(t,["animationCategory","animationSpeed"]),r=me(n);return e(ye,{_base:r,className:"v-loading",children:e(kn,{category:t.animationCategory?t.animationCategory:bn.Flip,speed:t.animationSpeed?t.animationSpeed:Sn.Slower,repeat:wn.Infinite,children:t.children})})};function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(null,arguments)}var Nn=function(e){return r.createElement("svg",xn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),fn||(fn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M142.37 28c14.247 0 25.795 11.548 25.795 25.795s-11.548 25.799-25.795 25.799-25.796-11.551-25.796-25.799S128.122 28 142.37 28m65.108 50.223c7.122 7.125 7.122 18.673 0 25.796-7.122 7.125-18.673 7.125-25.795 0-7.126-7.123-7.126-18.67 0-25.796 7.122-7.122 18.673-7.122 25.795 0m13.977 76.209c0 9.032-7.318 16.35-16.35 16.35-9.03 0-16.348-7.318-16.348-16.35 0-9.03 7.318-16.348 16.348-16.348 9.032 0 16.35 7.318 16.35 16.348m-45.928 59.961c-4.277 4.278-11.215 4.278-15.493 0-4.28-4.28-4.28-11.218 0-15.496 4.278-4.28 11.216-4.28 15.493 0 4.281 4.278 4.281 11.216 0 15.496M104.469 228c-5.98 0-10.83-4.847-10.83-10.83s4.85-10.83 10.83-10.83c5.983 0 10.83 4.847 10.83 10.83S110.452 228 104.469 228m-58.417-41.95c-3.426-3.426-3.426-8.982 0-12.411 3.43-3.426 8.985-3.426 12.412 0a8.77 8.77 0 0 1 0 12.411 8.773 8.773 0 0 1-12.412 0M34 116.534a7.733 7.733 0 1 1 15.466-.002 7.733 7.733 0 0 1-15.466.002m41.858-55.412a4.53 4.53 0 0 1 6.398 0 4.52 4.52 0 0 1 0 6.399 4.52 4.52 0 0 1-6.398 0 4.53 4.53 0 0 1 0-6.399",clipRule:"evenodd"})))},On={Vertical:"Vertical",Horizontal:"Horizontal"},In=function(e){return e.name.endsWith(".jpg")||e.name.endsWith(".jpeg")||e.name.endsWith(".png")},Bn=function(t){var r=t.category,o=t.appearance;t.loader;var a=t.loaderSize,i=t.loaderColor,l=t.isPreview,c=t.previewImageWidth,f=t.textLength,h=t.autoUpload,p=t.renderLoader,g=t.renderPreview,m=w(t,["category","appearance","loader","loaderSize","loaderColor","isPreview","previewImageWidth","textLength","autoUpload","renderLoader","renderPreview"]),v=s(null),y=u({inputFiles:[],isLoading:!1}),S=y[0],C=y[1],k=function(){C((function(e){return b(b({},e),{isLoading:!1})}))};d((function(){return function(){return S.inputFiles.forEach((function(e){e.objectUrl&&URL.revokeObjectURL(e.objectUrl)}))}}),[S.inputFiles]);var _=function(e){e.preventDefault(),e.currentTarget.className="v-file"},x=me(b({onDrop:function(e){e.preventDefault();var t=Array.from(e.dataTransfer.files),n=t.map((function(e){return{name:e.name,objectUrl:In(e)?URL.createObjectURL(e):void 0}}));n.length>0&&(h?(C(b(b({},S),{inputFiles:n,isLoading:!0})),h(t,k),e.currentTarget.className="v-file"):(C(b(b({},S),{inputFiles:n})),e.currentTarget.className="v-file"))},onDragOver:function(e){e.preventDefault(),e.currentTarget.className="v-file on-drag"},onDragEnd:_,onDragLeave:_,onDragExit:_},m));return e(ye,{_base:x,className:"v-file",children:e(tn,b({type:"file",isDefaultValue:!0,ref:v},m,{onChange:function(e){var t,n=Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),r=n.map((function(e){return{name:e.name,objectUrl:In(e)?URL.createObjectURL(e):void 0}}));C(b(b({},S),{inputFiles:r})),h&&(C(b(b({},S),{inputFiles:r,isLoading:!0})),h(n,k))},overWrite:function(t){return l?g?e(Ne,{cursor:E.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:g(S.inputFiles,S.isLoading)}):r==On.Vertical?n(It,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},cross:Nt.Center,children:[!(0!=S.inputFiles.length)&&o,!(0==S.inputFiles.length)&&e(It,{gap:"0.6em",children:S.inputFiles.map((function(t){return n(It,{cross:Nt.Center,children:[!!t.objectUrl&&e(Ne,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:H.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))}),!!S.isLoading&&(p?p():e(_n,{animationCategory:bn.Flash,children:e(pt,{children:e(ln,{fontSize:a,frontColor:i,children:e(Nn,{})})})}))]}):n(at,{gap:"1em",children:[n(at,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:[!(0!=S.inputFiles.length)&&o,!(0==S.inputFiles.length)&&e(It,{gap:"0.6em",children:S.inputFiles.map((function(t){return n(It,{cross:Nt.Center,children:[!!t.objectUrl&&e(Ne,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:H.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))})]}),!!S.isLoading&&(p?p():e(_n,{animationCategory:bn.Flash,children:e(ln,{fontSize:a,frontColor:i,children:e(Nn,{})})}))]}):e(Ne,{cursor:E.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:o})}}))})},Dn={Default:"default",Circle:"circle",Squared:"squared",FullSize:"full-size",Scale:"scale"},Ln=function(t){var n=t.category,r=w(t,["category"]),o=me(r),a=o.getProps("img").html,i=n||Dn.Default;return e("img",b({className:o.getClassName("v-image-".concat(i)),style:o.getStyle()},a))};Ln.displayName="VImage";var Rn,zn,Tn=l(Ln),En=function(t){return e(tn,b({display:T.None,type:"hidden"},t))},Fn=function(t){var r=t.fileIcon,o=t.base64Image,a=w(t,["fileIcon","base64Image"]),i=me(a),l=u({base64Image:o}),c=l[0],s=l[1];return n(ye,{_base:i,className:"v-base64file",children:[e(En,{name:t.name,value:c.base64Image}),e(tn,b({type:"file",isDefaultValue:!0,onChange:function(e){if(e.target.files&&1==e.target.files.length){var t=e.target.files[0],n=new FileReader;n.onloadend=function(){var e;e=n.result&&"string"==typeof n.result?n.result.replace("data:","").replace(/^.+,/,""):"Todo",s({base64Image:e})},n.readAsDataURL(t)}},overWrite:function(o){return n(It,{gap:"0.2em",onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},children:[r,e(Tn,{fontSize:t.fontSize,category:Dn.Scale,src:"data:image/png;base64,".concat(c.base64Image),alt:"file"})]})}},a))]})},Pn=function(t){return e(tn,b({type:"month",isDefaultValue:!0},t))},Vn=function(t){return e(tn,b({type:"number",isDefaultValue:!0},t))},Wn=function(t){return e(tn,b({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))};function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(null,arguments)}var An,Hn=function(e){return r.createElement("svg",jn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Rn||(Rn=r.createElement("path",{fill:"currentColor",d:"M128 188c33.138 0 60-26.862 60-60s-26.862-60-60-60-60 26.862-60 60 26.862 60 60 60"})),zn||(zn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un.apply(null,arguments)}var Mn,Xn,Yn=function(e){return r.createElement("svg",Un({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),An||(An=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))},Zn=function(t){var r=t.isChecked,o=w(t,["isChecked"]);return e(tn,b({type:"radio",customAttributes:{checked:!!r},isDefaultValue:!0},o,{overWrite:function(o){return n(yt,{role:"radio","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(ln,{padding:"0.4em",frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?Hn:Yn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}}))},Gn=function(t){var n=t.thumbColor,r=t.thumbBorderColor,o=t.trackColor,a=t.trackHeight,i=t.inputStyle,l=w(t,["thumbColor","thumbBorderColor","trackColor","trackHeight","inputStyle"]),c="".concat(n,"-thumb-background ").concat(r,"-thumb-border ").concat(o,"-track-background"),s=a?b(b({},i),{"--den-range-track-height":a}):i;return e(tn,b({type:"range",inputClassName:c},l,{inputStyle:s}))},qn=function(t){return e(tn,b({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},Jn=function(t){var r=t.ref;t.caption,t.isFormNoValidate;var o=w(t,["ref","caption","isFormNoValidate"]),a=s(null);d((function(){"object"==typeof r&&r?r.current=a.current:"function"==typeof r&&r(a.current),t.autoFocus&&a.current&&a.current.focus()}),[r,t.autoFocus]);var i=me(b({onClick:function(){a.current.click()}},o)),l=i.getProps("input").html;return n(ye,{_base:i,className:"v-submit",children:[n(pt,{cross:rt.Middle,children:[!!t.icon&&e("span",{children:t.icon}),!!t.caption&&e("span",{children:t.caption})]}),e("input",b({formNoValidate:t.isFormNoValidate,ref:a,type:"submit"},l))]})},Kn=function(t){var r=me(t),o=s(null);return n("div",{className:r.getClassName("v-submit-wrapper"),style:r.getStyle(),children:[t.body,e("input",{ref:o,type:"submit"})]})},Qn=function(t){return e(tn,b({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))};function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}var er,tr=function(e){return r.createElement("svg",$n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Mn||(Mn=r.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),Xn||(Xn=r.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},nr=function(t){var r=t.enableClear,o=w(t,["enableClear"]);return e(tn,r?b({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o,{renderOptions:function(r){return n(at,{gap:"0.2em",children:[t.renderOptions&&t.renderOptions(r),e(ln,{fontSize:H.ExtraSmall,frontColor:C.Placeholder,role:"button","aria-label":"Clear",tabIndex:0,onClick:function(){r.current&&(r.current.value="")},onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||!r.current||(e.preventDefault(),r.current.value="")},children:e(tr,{})})]})}}):b({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o))},rr=function(t){return e(tn,b({type:"time",isDefaultValue:!0},t))},or=function(t){return e(tn,b({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},ar=function(t){return e(tn,b({type:"week",isDefaultValue:!0},t))},ir=function(n){var r=u({selectedValue:n.selectedValue}),o=r[0],a=r[1];return e(t,{children:n.renderGroup(o.selectedValue,(function(e){a({selectedValue:e.currentTarget.value})}))})};function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr.apply(null,arguments)}var cr=function(e){return r.createElement("svg",lr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),er||(er=r.createElement("circle",{cx:128,cy:128,r:100,fill:"currentColor"})))},sr=function(t){var r=t.isOn,o=t.icon,a=t.gap,i=t.isDisabled,l=t.onSwitch,c=w(t,["isOn","icon","gap","isDisabled","onSwitch"]),s=u({isOn:r}),f=s[0],h=s[1];d((function(){h({isOn:r})}),[r]);var p=o?e(ln,{style:{margin:f.isOn?"0 0.6em 0 0":"0 0 0 0.6em"},frontColor:C.White,fontSize:H.Normal,children:o}):e(Ne,{width:"1em",height:"1em"}),g=t.isDisabled?void 0:function(){t.isDisabled||(l&&l(!f.isOn),h({isOn:!f.isOn}))},m=me(b({onClick:g},c));return e(ye,{_base:m,className:i?"v-switch-disabled":"v-switch",children:n(ht,{role:"switch","aria-checked":f.isOn,"aria-disabled":i,tabIndex:i?-1:0,onKeyDown:g?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),g())}:void 0,borderRadius:D.ExtraLarge,backgroundColor:f.isOn?t.frontColor?t.frontColor:C.Success:t.backgroundColor?t.backgroundColor:C.Placeholder,gap:a||"0.6em",children:[f.isOn?e(ln,{category:nn.Circle,frontColor:C.White,children:e(cr,{})}):p,f.isOn?p:e(ln,{category:nn.Circle,frontColor:C.White,children:e(cr,{})})]})})},ur=function(t){var n=t.name;t.items;var r=t.value,o=t.isMultiple;t.fontFamily;var a=w(t,["name","items","value","isMultiple","fontFamily"]),i=me(a),l=i.getProps("select").html;return e(ye,{_base:i,className:"v-select",children:e("select",b({multiple:o,name:n,defaultValue:r,"aria-label":n},l,{children:t.items.map((function(t){return e("option",{value:t.value,children:t.caption},t.value)}))}))})},dr=function(t){var r,o,a,i,l=t.ref,c=t.value,f=t.name,h=t.icon,g=t.emptyIcon,m=t.downIcon,v=t.upIcon,y=t.enableClear,S=t.items,k=t.dockCategory,_=t.dockAlignment,x=t.menuBackgroundColor,O=t.menuZIndex,B=t.menuGap;t.onClick;var D=t.isSelectOnly,R=t.overWriteDropdownMenu,T=t.overWriteDropdownItem,E=t.handleChange,F=t.readOnly,P=w(t,["ref","value","name","icon","emptyIcon","downIcon","upIcon","enableClear","items","dockCategory","dockAlignment","menuBackgroundColor","menuZIndex","menuGap","onClick","isSelectOnly","overWriteDropdownMenu","overWriteDropdownItem","handleChange","readOnly"]),V=me(P),W=u({isSelectionShow:!1,selectValue:c||"",selectCaption:c?S.filter((function(e){return e.value==c}))[0].caption:"",items:S}),j=W[0],A=W[1],U=s(null),M=p(),X=s(null),Y=s(null);d((function(){if(j.isSelectionShow){var e=function(e){var t=e.target;X.current&&!X.current.contains(t)&&Y.current&&!Y.current.contains(t)&&A((function(e){return b(b({},e),{isSelectionShow:!1,items:S})}))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[j.isSelectionShow,S]);d((function(){"object"==typeof l&&l?l.current=U.current:"function"==typeof l&&l(U.current),t.autoFocus&&U.current&&U.current.focus()}),[l,t.autoFocus]);var Z=O||Pe;if(F)return n(st,{className:V.getClassName("v-dropdown"),style:V.getStyle(t.style),children:[e(Le,{caption:(null===(r=j.selectCaption)||void 0===r?void 0:r.toString())||"",fontSize:t.fontSize,frontColor:t.frontColor}),e(En,{name:f,valueHook:null===(o=j.selectValue)||void 0===o?void 0:o.toString()}),e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:m})]});var G=X.current?"".concat(X.current.offsetWidth,"px"):void 0;return e(je,{width:"fit-content",overlayZIndex:j.isSelectionShow?Z:-2147483648,category:k||Ve.RightBottom,alignment:_||We.Vertical,renderOverlay:function(){return e(Ne,{ref:Y,minWidth:G,className:"v-dropdown-overlay",children:e(Ne,{visibility:j.isSelectionShow?z.Visible:z.Hidden,borderRadius:t.borderRadius,role:"listbox",id:M,children:R?R(j.items):e(It,{gap:B,padding:t.padding,backgroundColor:x||C.White,borderRadius:t.borderRadius,borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:L.Solid,children:0==j.items.length?e(pt,{children:e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:g})}):j.items.map((function(r){return T?e(Ne,{borderRadius:t.borderRadius,role:"option","aria-selected":r.value===j.selectValue,children:T(r)},r.value):n(yt,{padding:N.ExtraSmall,gap:I.Small,borderRadius:t.borderRadius,className:"item",role:"option","aria-selected":r.value===j.selectValue,onClick:function(){A(b(b({},j),{isSelectionShow:!1,selectIcon:r.icon,selectCaption:r.caption,selectValue:r.value,items:S})),E&&E(r.value)},children:[r.icon?e(ln,{fontSize:H.ExtraSmall,children:r.icon}):void 0,e(Le,{caption:r.caption})]},r.value)}))})})})},children:e(Ne,{ref:X,children:n(st,b({className:V.getClassName("v-dropdown"),style:V.getStyle(t.style)},P,{role:"combobox","aria-expanded":j.isSelectionShow,"aria-haspopup":"listbox","aria-controls":M,onClick:function(){A(b(b({},j),{isSelectionShow:!j.isSelectionShow}))},children:[n(Ne,{children:[e(nr,{ref:U,id:t.id,style:{padding:0},fontSize:t.fontSize,frontColor:t.frontColor,icon:e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:j.selectIcon?j.selectIcon:h}),valueHook:null===(a=j.selectCaption)||void 0===a?void 0:a.toString(),enableClear:y,renderOptions:t.renderOptions,readOnly:D,onChange:D?void 0:function(e){var t;t=e.target.value,A(b(b({},j),{isSelectionShow:!0,selectCaption:t,items:S.filter((function(e){return e.caption.toLowerCase().indexOf(t.toLowerCase())>-1}))}))}}),e(En,{name:f,valueHook:null===(i=j.selectValue)||void 0===i?void 0:i.toString()})]}),e(ln,{fontSize:t.iconSize?t.iconSize:H.Small,children:j.isSelectionShow?v:m})]}))})})},fr={NewWindow:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},hr=function(t){var n=t.category,r=t.to,o=w(t,["category","to"]),a=me(o),i=a.getProps("a").html;return e(ye,{_base:a,className:"v-hyperlink",children:e("a",b({href:r,target:n},i,{children:t.children}))})},pr={P:"p",Address:"address",Article:"article",Aside:"aside",Details:"details",Section:"section"},gr={Justify:0,Left:1,Right:2,Center:3},mr=function(t){var n=t.category;t.alignType;var r,o,a=t.renderContent,i=w(t,["category","alignType","renderContent"]),l=me(i);switch(t.alignType){case gr.Center:o="v-text-center";break;case gr.Justify:o="v-text-justify";break;case gr.Left:o="v-text";break;case gr.Right:o="v-text-right";break;default:o="v-text"}if(n){var s=n,u=l.getProps(s).html;r=c(s,u,a())}else{u=l.getProps("span").html;r=c("span",u,a())}return e(ye,{_base:l,className:o,children:r})},vr=function(t){var r=t.ref;t.icon;var o=t.valueHook,a=t.setStateHook,i=t.placeholderColor,l=w(t,["ref","icon","valueHook","setStateHook","placeholderColor"]),c=me(l),f=c.getProps("textarea").html,h=u({value:t.value}),p=h[0],g=h[1],m=s(null);return d((function(){"object"==typeof r&&r?r.current=m.current:"function"==typeof r&&r(m.current),t.autoFocus&&m.current&&m.current.focus()}),[r,t.autoFocus]),e(ye,{category:ve.Display,_base:c,className:"v-validity v-textarea ".concat((i||C.Placeholder)+"-placeholder"),children:n(dt,{cross:rt.Top,gap:"0.6em",children:[t.icon,e(Ne,{children:e("textarea",b({ref:m},f,{id:t.id?t.id:t.name,value:o?t.valueHook:p.value,onChange:function(e){t.onChange&&t.onChange(e),a?a(e.target.value):g({value:e.target.value})}}))})]})})},yr={Default:"default",Fixed:"fixed"},br=function(t){t.category;var n=w(t,["category"]),r=me(n);return e(ye,{_base:r,className:"v-ellipse-".concat(t.category?t.category:yr.Default),children:t.children})},wr={Vertical:"vertical",Horizontal:"horizontal"},Sr=function(t){t.category;var n=w(t,["category"]),r=me(n);return e(ye,{_base:r,className:"v-line-".concat(t.category)})},Cr="default",kr=function(t){t.category;var n=w(t,["category"]),r=me(n);return e(ye,{_base:r,className:"v-rectangle-".concat(t.category?t.category:Cr)})},_r={Default:"default",Max:"max"},xr=function(n){var r=me(n);return 0===o.toArray(n.children).length?e(Le,{backgroundColor:C.Error,caption:"[VShadow] No Children!"}):e(t,{children:o.map(n.children,(function(e){return function(e){if(null==e||"boolean"==typeof e)return null;var t={};n.x&&n.y&&n.blur&&n.spread&&n.color&&(t.boxShadow="".concat(n.x,"px ").concat(n.y,"px ").concat(n.blur,"px ").concat(n.spread,"px ").concat(n.color));var o={className:r.getClassName("v-shadow-".concat(n.category?n.category:_r.Default)),style:b(b({},t),r.getStyle())};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,o)}(e)}))})},Nr=function(t){t.sources;var n=w(t,["sources"]),r=me(n),o=r.getProps("audio").html;return e("audio",b({className:r.getClassName("v-audio"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},Or=function(t){t.sources;var n=w(t,["sources"]),r=me(n),o=r.getProps("video").html;return e("video",b({className:r.getClassName("v-video"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},Ir=function(t){var n=me(t),r=n.getProps("header").html;return e("header",b({className:n.getClassName("v-header"),style:n.getStyle()},r,{children:t.children}))},Br=function(t){var n=me(t),r=n.getProps("main").html;return e("main",b({className:n.getClassName("v-main"),style:n.getStyle()},r,{children:t.children}))},Dr=function(t){var n=me(t),r=n.getProps("footer").html;return e("footer",b({className:n.getClassName("v-footer"),style:n.getStyle()},r,{children:t.children}))},Lr=function(t){var n=me(t),r=n.getProps("aside").html;return e("aside",b({className:n.getClassName("v-aside"),style:n.getStyle()},r,{children:t.children}))},Rr=function(t){var n=me(t),r=n.getProps("nav").html;return e("nav",b({className:n.getClassName("v-nav"),style:n.getStyle()},r,{children:t.children}))},zr=function(t){var n=me(t),r=n.getProps("hr").html;return e("hr",b({className:n.getClassName("v-hr"),style:n.getStyle()},r))},Tr=function(t){var n=me(t),r=n.getProps("section").html;return e("section",b({className:n.getClassName("v-section"),style:n.getStyle()},r,{children:t.children}))},Er=function(t){var n=me(b({width:"100vw",height:"100vh",backgroundColor:C.Dark75},t));return e(ke,{zIndex:t.zIndex?t.zIndex:Pe,category:Se.Window,type:Ce.Center,children:e(xe,{children:e(ye,{_base:n,className:"v-mask",children:e(ke,{category:Se.Area,type:Ce.Center,children:t.children})})})})},Fr=function(t){var n,r=t.image,o=t.backingBoard,a=t.style,i=w(t,["image","backingBoard","style"]),l=me(i);return o&&(n=b(b({},a),{background:"linear-gradient(".concat(o.degree,", ").concat(o.startColor,", ").concat(o.endColor,")")})),e(ye,b({_base:l,className:"v-frame",style:n},t.customAttributes,{children:e("div",{style:{backgroundImage:"url(".concat(r,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:t.children})}))},Pr="--den-",Vr={Global:"global",Area:"area"},Wr=function(t){var n=t.category,r=t.area,o=t.variables,a=w(t,["category","area","variables"]),i=me(b({id:r},a));return d((function(){var e;n==Vr.Area?r&&(e=document.getElementById(r)):e=document.documentElement,e&&(Object.keys(o.colors).forEach((function(t){e.style.setProperty("".concat(Pr,"color-").concat(t),o.colors[t])})),Object.keys(o.fontSizes).forEach((function(t){e.style.setProperty("".concat(Pr).concat(t),o.fontSizes[t])})),Object.keys(o.fontWeights).forEach((function(t){e.style.setProperty("".concat(Pr).concat(t),o.fontWeights[t])})))}),[]),n==Vr.Area?e(ye,{_base:i,className:"v-theme",children:t.children}):e(Le,{backgroundColor:C.Error,caption:"[VTheme] No Area!"})},jr={Hover:"hover",Click:"click"},Ar=function(t){var n,r=t.category,o=t.dockCategory,a=t.dockAlignment,i=t.renderOverlay,l=w(t,["category","dockCategory","dockAlignment","renderOverlay"]),c=me(l),s=u({isShow:!1}),d=s[0],f=s[1],h=p();return n=r||jr.Hover,e(ye,{_base:c,className:"v-tooltip",children:e(je,{category:o,alignment:a,renderOverlay:function(){return d.isShow?e(Ne,{role:"tooltip",id:h,children:i()}):e(Ne,{className:"v-tooltip-overlay-fragment","aria-hidden":!0})},children:e(Ne,{"aria-describedby":d.isShow?h:void 0,onClick:function(){n==jr.Click&&f({isShow:!d.isShow})},onMouseEnter:function(){n==jr.Hover&&f({isShow:!0})},onMouseLeave:function(){n==jr.Hover&&f({isShow:!1})},onFocus:function(){n==jr.Hover&&f({isShow:!0})},onBlur:function(){n==jr.Hover&&f({isShow:!1})},children:t.children})})})},Hr=function(t){function n(e){var n=t.call(this,e)||this;return n.state={hasError:!1,error:null,errorInfo:null},n}return y(n,t),n.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},n.prototype.componentDidCatch=function(e,t){this.setState({errorInfo:t}),this.props.onError&&this.props.onError(e,t)},n.prototype.render=function(){var t;return this.state.hasError?this.props.fallback?"function"==typeof this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):this.props.fallback:e("div",{className:"v-error-boundary",role:"alert",children:e(Le,{backgroundColor:C.Error,frontColor:C.White,padding:"1em",caption:"Component Error: ".concat((null===(t=this.state.error)||void 0===t?void 0:t.message)||"Unknown error")})}):this.props.children},n}(g),Ur=function(t){return e(xe,{children:!!t.badge&&e(ke,{category:Se.Area,bottom:"0",right:"0",children:"string"==typeof t.badge||t.badge instanceof String?e(Tn,{category:Dn.Circle,fontSize:H.Small,src:t.badge,alt:"null",borderStyle:"solid",borderWidth:"1px",borderColor:C.Light}):e(ln,{category:nn.Circle,frontColor:C.Secondary,backgroundColor:C.White,fontSize:H.Small,children:t.badge})})})},Mr=function(t){var n=me(t),r=n.getProps("template").html;return e("template",b({className:n.getClassName("v-template"),style:n.getStyle()},r,{children:t.children}))},Xr=function(t){return e("div",{id:t.id})};export{bn as AnimationCategory,Cn as AnimationDelay,wn as AnimationRepeat,Sn as AnimationSpeed,qt as BackgroundPositionType,me as Base,D as BorderRadiusType,L as BorderStyleType,R as BorderWidthType,ze as BreakpointCategory,Ee as BreakpointDisplay,Te as BreakpointType,C as ColorType,E as CursorType,M as DirectionType,T as DisplayType,je as Dock,We as DockAlignment,Ve as DockCategory,yr as EllipseCategory,On as FileCategory,Ye as Flex,Xe as FlexAlignContentType,Me as FlexAlignItemsType,Ae as FlexDirectionType,Ge as FlexItem,Ze as FlexItemAlignSelfType,Ue as FlexJustifyContentType,He as FlexWrapType,_ as FontFamilyType,H as FontSizeType,k as FontWeightType,I as GapType,Qt as HandleSubmitCategory,fr as HyperlinkCategory,Dn as ImageCategory,Be as LabelAlignType,Oe as LabelCategory,Ie as LabelType,B as LetterSpacingType,wr as LineCategory,x as LineHeightType,O as MarginType,W as OpacityType,F as OverflowType,P as OverflowXType,V as OverflowYType,N as PaddingType,ke as Position,xe as PositionArea,_e as PositionAreaCategory,Se as PositionCategory,Ce as PositionType,U as PseudoType,Fe as Responsive,ve as RootCategory,qe as SBaseline,Je as SBottom,et as SCenter,Ke as SLeft,Qe as SMiddle,$e as SRight,tt as SStretch,nt as STop,Re as ScreenSizeType,_r as ShadowCategory,nn as SvgCategory,gr as TextAlignType,pr as TextCategory,Vr as ThemeCategory,jr as TooltipCategory,en as VActionForm,kn as VAnimation,Lr as VAside,Nr as VAudio,Jt as VBackground,Ur as VBadge,Fn as VBase64File,Ne as VBoundary,pn as VCheckBox,gn as VColor,mn as VDate,vn as VDatetimeLocal,dr as VDropdown,br as VEllipse,yn as VEmail,Hr as VErrorBoundary,Bn as VFile,Dr as VFooter,$t as VForm,Fr as VFrame,ir as VGroup,zr as VHR,Ir as VHeader,En as VHidden,hr as VHyperlink,Tn as VImage,Le as VLabel,Sr as VLine,_n as VLoading,Br as VMain,Er as VMask,Pn as VMonth,Xr as VMount,Rr as VNav,Vn as VNumber,Wn as VPassword,Zn as VRadio,Gn as VRange,kr as VRectangle,qn as VSearch,Tr as VSection,ur as VSelect,xr as VShadow,Jn as VSubmit,Kn as VSubmitWrapper,ln as VSvg,sr as VSwitch,Qn as VTel,Mr as VTemplate,mr as VText,vr as VTextArea,nr as VTextBox,Wr as VTheme,rr as VTime,Ar as VTooltip,or as VUrl,Or as VVideo,ar as VWeek,we as VZone,j as ViewSizeType,z as VisibilityType,at as X,it as XAround,lt as XAutoBoth,ct as XAutoCenter,st as XAutoLeft,ut as XAutoLefts,dt as XAutoRight,ft as XAutoRights,ht as XBetween,pt as XCenter,rt as XCrossType,gt as XCustom,mt as XCustomBoth,vt as XEvenly,yt as XLeft,bt as XRight,wt as XWrapAround,St as XWrapBetween,Ct as XWrapBottom,kt as XWrapEvenly,_t as XWrapMiddle,xt as XWrapTop,It as Y,zt as YAround,jt as YAutoBoth,Pt as YAutoBottom,Wt as YAutoBottoms,Ft as YAutoCenter,Et as YAutoTop,Vt as YAutoTops,Bt as YBetween,Rt as YBottom,Nt as YCrossType,At as YCustom,Ht as YCustomBoth,Tt as YEvenly,Dt as YMiddle,Lt as YTop,Yt as YWrapAround,Zt as YWrapBetween,Mt as YWrapCenter,Gt as YWrapEvenly,Ut as YWrapLeft,Xt as YWrapRight,be as ZoneCategory,Kt as convertFormDataToJson,se as getGeneratedClassName,A as getWeightValue};
|
|
3
3
|
//# sourceMappingURL=index.js.map
|