@fewbox/den-web 0.2.0-preview.17 → 0.2.0-preview.18

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/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 m}from"react";import{createPortal as g}from"react-dom";import{jwtDecode as v}from"jwt-decode";var y=function(e,t){return y=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])},y(e,t)};function b(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}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return w=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},w.apply(this,arguments)};function C(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 k={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"},_={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"},x={Default:"font-family"},N={Default:"line-height"},O={Default:"padding",Normal:"padding-normal",ExtraSmall:"padding-extra-small",Small:"padding-small",Large:"padding-large",ExtraLarge:"padding-extra-large"},I={Default:"margin",Normal:"margin-normal",ExtraSmall:"margin-extra-small",Small:"margin-small",Large:"margin-large",ExtraLarge:"margin-extra-large"},B={Default:"gap",Normal:"gap-normal",ExtraSmall:"gap-extra-small",Small:"gap-small",Large:"gap-large",ExtraLarge:"gap-extra-large"},D={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"},R={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"},E={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"},F={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"},P={Visible:"overflow-visible",Hidden:"overflow-hidden",Scroll:"overflow-scroll",Auto:"overflow-auto",Clip:"overflow-clip"},j={Visible:"overflow-x-visible",Hidden:"overflow-x-hidden",Scroll:"overflow-x-scroll",Auto:"overflow-x-auto",Clip:"overflow-x-clip"},W={Visible:"overflow-y-visible",Hidden:"overflow-y-hidden",Scroll:"overflow-y-scroll",Auto:"overflow-y-auto",Clip:"overflow-y-clip"},V={_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"},A={Ellipse:"v-ellipse-size",Rectangle:"v-rectangle-size",Image:"v-image-size",Svg:"v-svg-size",Window:"v-window-size"},H=function(e){var t;switch(e){case _.Thin:t=100;break;case _.ExtraLight:t=200;break;case _.Light:t=300;break;case _.Regular:t=400;break;case _.Medium:t=500;break;case _.SemiBold:t=600;break;case _.Bold:t=700;break;case _.ExtraBold:t=800;break;case _.Black:t=900;break;default:t=400}return t},U={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"},M={All:"all",Before:"before",After:"after"},q={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"},G=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),X=function(e){this.component=e},Y=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.sizeType=n,o.isAuto=r,o}return b(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(U).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}(X),Z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.weightType=n,r}return b(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(X),J=function(e){function t(t,n){var r=e.call(this,t)||this;return r.visibility=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.visibility){var e=void 0;return e=Object.values(E).includes(this.visibility)?this.visibility:"visibility-".concat(this.visibility),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),K=function(e){function t(t,n){var r=e.call(this,t)||this;return r.cursor=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.cursor){var e=void 0;return e=Object.values(F).includes(this.cursor)?this.cursor:"cursor-".concat(this.cursor),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),Q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflow=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflow){var e=void 0;return e=Object.values(P).includes(this.overflow)?this.overflow:"overflow-".concat(this.overflow),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),$=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowX=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflowX){var e=void 0;return e=Object.values(j).includes(this.overflowX)?this.overflowX:Object.values(P).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}(X),ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowY=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflowY){var e=void 0;return e=Object.values(W).includes(this.overflowY)?this.overflowY:Object.values(P).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}(X),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.display=n,r}return b(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}(X),ne=function(e){function t(t,n){var r=e.call(this,t)||this;return r.opacityType=n,r}return b(t,e),t.prototype.getClassName=function(){return this.opacityType&&Object.values(V).includes(this.opacityType)?"".concat(this.component.getClassName()," ").concat(this.opacityType):this.component.getClassName()},t}(X),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderRadius=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.borderRadius){var e=void 0;return e=Object.values(R).includes(this.borderRadius)?this.borderRadius:"border-radius-".concat(this.borderRadius),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderStyle=n,r}return b(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}(X),ae=function(e){function t(t,n){var r=e.call(this,t)||this;return r.padding=n,r}return b(t,e),t.prototype.getClassName=function(){return this.padding&&Object.values(O).includes(this.padding)?"".concat(this.component.getClassName()," ").concat(this.padding):this.component.getClassName()},t}(X),ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.letterSpacing=n,r}return b(t,e),t.prototype.getClassName=function(){return this.letterSpacing&&Object.values(D).includes(this.letterSpacing)?"".concat(this.component.getClassName()," ").concat(this.letterSpacing):this.component.getClassName()},t}(X),le=function(e){function t(t,n){var r=e.call(this,t)||this;return r.margin=n,r}return b(t,e),t.prototype.getClassName=function(){return this.margin&&Object.values(I).includes(this.margin)?"".concat(this.component.getClassName()," ").concat(this.margin):this.component.getClassName()},t}(X),ce=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderWidth=n,r}return b(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}(X),se=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 b(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 q.Bottom:r=" ".concat(e).concat(o,"-border-bottom");break;case q.ExceptBottom:r=" ".concat(e).concat(o,"-border-except-bottom");break;case q.ExceptLeft:r=" ".concat(e).concat(o,"-border-except-left");break;case q.ExceptRight:r=" ".concat(e).concat(o,"-border-except-right");break;case q.ExceptTop:r=" ".concat(e).concat(o,"-border-except-top");break;case q.Left:r=" ".concat(e).concat(o,"-border-left");break;case q.LeftBottom:r=" ".concat(e).concat(o,"-border-left-bottom");break;case q.LeftRight:r=" ".concat(e).concat(o,"-border-left-right");break;case q.LeftTop:r=" ".concat(e).concat(o,"-border-left-top");break;case q.Right:r=" ".concat(e).concat(o,"-border-right");break;case q.RightBottom:r=" ".concat(e).concat(o,"-border-right-bottom");break;case q.RightTop:r=" ".concat(e).concat(o,"-border-right-top");break;case q.Top:r=" ".concat(e).concat(o,"-border-top");break;case q.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(k.Transparent,"-background"):"",r=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(k.Transparent,"-before-background"):"",o=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(k.Transparent,"-after-background"):"",a="".concat(r).concat(o),i=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(k.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(k.Black,"-before-front"):"",c=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(k.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(k.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(k.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(a).concat(i).concat(s).concat(e).concat(t)},t}(X),ue=function(e,t,n,r,o,a,i,l,c,s,u,d,f,h,p,m,g,v,y,b,w,C,S,k,_,x,N){return new se(new ee(new $(new Q(new K(new J(new te(new ne(new le(new ie(new ae(new ce(new oe(new re(new Y(new Z(new G(e),o),n,r),p),m),g),v),N),y),b),w),C),S),k),_),x),t,a,i,l,c,s,u,d,f,h).getClassName()},de=["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"],fe=["id","title","dir","lang","translate","tabIndex","accessKey","contentEditable","spellCheck","draggable","enterKeyHint","inputMode","autoCapitalize","role","slot","htmlFor","hidden","is"],he=["onError","onLoad"],pe=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],me={div:S(S([],de,!0),fe,!0),input:S(S(S(S([],de,!0),fe,!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([],de,!0),fe,!0),["rows","cols","wrap","name","autoFocus","autoComplete","placeholder","maxLength","minLength","required","readOnly","disabled","wrap","spellcheck","dirname"],!0),template:S(S([],de,!0),fe,!0),abbr:S(S([],de,!0),fe,!0),span:S(S([],de,!0),fe,!0),h1:S(S([],de,!0),fe,!0),h2:S(S([],de,!0),fe,!0),h3:S(S([],de,!0),fe,!0),h4:S(S([],de,!0),fe,!0),h5:S(S([],de,!0),fe,!0),h6:S(S([],de,!0),fe,!0),i:S(S([],de,!0),fe,!0),b:S(S([],de,!0),fe,!0),u:S(S([],de,!0),fe,!0),em:S(S([],de,!0),fe,!0),strong:S(S([],de,!0),fe,!0),blockquote:S(S([],de,!0),fe,!0),cite:S(S([],de,!0),fe,!0),code:S(S([],de,!0),fe,!0),del:S(S([],de,!0),fe,!0),dfn:S(S([],de,!0),fe,!0),ins:S(S([],de,!0),fe,!0),kbd:S(S([],de,!0),fe,!0),mark:S(S([],de,!0),fe,!0),pre:S(S([],de,!0),fe,!0),q:S(S([],de,!0),fe,!0),s:S(S([],de,!0),fe,!0),samp:S(S([],de,!0),fe,!0),small:S(S([],de,!0),fe,!0),summary:S(S([],de,!0),fe,!0),sup:S(S([],de,!0),fe,!0),sub:S(S([],de,!0),fe,!0),time:S(S([],de,!0),fe,!0),var:S(S([],de,!0),fe,!0),wbr:S(S([],de,!0),fe,!0),p:S(S([],de,!0),fe,!0),address:S(S([],de,!0),fe,!0),article:S(S([],de,!0),fe,!0),aside:S(S([],de,!0),fe,!0),details:S(S(S([],de,!0),fe,!0),["onToggle"],!0),nav:S(S([],de,!0),fe,!0),section:S(S([],de,!0),fe,!0),form:S(S(S([],de,!0),fe,!0),["onReset","onSubmit"],!0),dialog:S(S(S([],de,!0),fe,!0),["onCancel","onClose"],!0),img:S(S(S(S([],de,!0),fe,!0),he,!0),["src","alt","width","height","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","title","role"],!0),iframe:S(S(S(S([],de,!0),fe,!0),he,!0),["src","srcDoc","width","height","name","sandbox","allow","allowFullScreen","loading","referrerPolicy","title","role"],!0),object:S(S(S([],de,!0),fe,!0),he,!0),embed:S(S(S([],de,!0),fe,!0),he,!0),link:S(S(S([],de,!0),fe,!0),he,!0),svg:S(S(S([],de,!0),fe,!0),he,!0),audio:S(S(S([],de,!0),fe,!0),pe,!0),video:S(S(S([],de,!0),fe,!0),pe,!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"],ve=function(t){return{getClassName:function(e){var n=ue(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(D).includes(t.letterSpacing)&&(n.letterSpacing=t.letterSpacing),t.opacity&&!Object.values(V).includes(t.opacity)&&(n.opacity=t.opacity),t.padding&&!Object.values(O).includes(t.padding)&&(n.padding=t.padding),t.margin&&!Object.values(I).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),w(w(w({},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]:me[e]&&me[e].includes(o)&&(r[o]=t[o])})),{view:n,html:r}}}},ye={Display:"display",Rich:"rich"},be=function(t){var n=(t.category==ye.Display?{}:t._base.getProps("div")).html;return e("div",w({ref:t.ref,className:t._base.getClassName(t.className),style:t._base.getStyle(t.style)},n,{children:t.children}))},we={Fluid:"fluid",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},Ce=function(t){var n=t.category,r=C(t,["category"]),o=ve(r);return e(be,{_base:o,className:"v-zone-".concat(n),children:t.children})},Se={Edge:"edge",Window:"window",Area:"area",Self:"self"},ke={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",Center:"center"},_e=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=w(w({},t.style),{zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})}r=void 0;return r=t.category!=Se.Self?w(w({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):w(w({},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})},xe={Default:"default",FullSize:"full-size"},Ne=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:xe.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)}))})},Oe=function(t){var n=ve(t);return e(be,{ref:t.ref,_base:n,className:"v-boundary",children:t.children})},Ie={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"},Be={Default:"default",Circle:"circle"},De={Justify:0,Left:1,Right:2,Center:3},Re=function(t){var n,r,o=t.category,a=t.type,i=t.alignType,l=t.isTextOverflow,s=t.caption,u=C(t,["category","type","alignType","isTextOverflow","caption"]),d=ve(w({display:null==t.category||t.category==Ie.Span?"inline-block":"block"},u)),f=d.getProps("div"),h=f.view,p=f.html;switch(i){case De.Center:r="v-label-center";break;case De.Justify:r="v-label-justify";break;case De.Left:r="v-label";break;case De.Right:r="v-label-right";break;default:r="v-label"}if(a==Be.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 m=o,g=d.getProps(m).html;n=c(m,g,s)}else{var v=d.getProps("span").html;n=c("span",v,s)}return a==Be.Circle?e(Ne,{children:e(Oe,w({width:"1.6em",height:"1.6em",borderRadius:R.Max},h,{className:r},p,{children:e(_e,{category:Se.Area,type:ke.Center,children:n})}))}):e(Oe,w({},h,{className:t.className?"".concat(t.className," ").concat(r):r},p,{children:n}))};Re.displayName="VLabel";var Le=l(Re),ze={ExtraSmall:"extra-small",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},Ee={Visible:"visiable",Hidden:"hidden"},Te={Only:"only",Up:"up",Down:"down"},Fe=function(t){return t.children?e(Oe,{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}(),display:"contents",children:t.children}):e(Le,{backgroundColor:k.Error,caption:"[BreakpointDisplay] No Children!"})},Pe=function(r){return n(t,{children:[e(Fe,{category:Ee.Hidden,type:Te.Down,breakpoint:r.breakpointType?r.breakpointType:ze.Small,children:r.desktop}),e(Fe,{category:Ee.Hidden,type:Te.Up,breakpoint:r.breakpointType?r.breakpointType:ze.Small,children:r.mobile})]})},je=2147483647,We={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"},Ve={Horizontal:"horizontal",Vertical:"vertical"},Ae=function(r){var o=r.category,a=r.offset,i=void 0===a?0:a,l=r.overlayZIndex,c=void 0===l?je:l,p=r.renderOverlay,m=C(r,["category","offset","overlayZIndex","renderOverlay"]),v="alignment"in r?r.alignment:void 0,y=ve(m),b=y.getProps("div").html,S=s(null),k=s(null),_=u(!1),x=_[0],N=_[1];d((function(){N(!0)}),[]);var O=f((function(){var e=S.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 We.Top:c+=(i-t)/2,s+=-n-o;break;case We.Right:c+=i+o,s+=(l-n)/2;break;case We.Bottom:c+=(i-t)/2,s+=l+o;break;case We.Left:c+=-t-o,s+=(l-n)/2;break;case We.LeftTop:a==Ve.Horizontal?(c+=-t-o,s+=o):a==Ve.Vertical?(c+=o,s+=-n-o):(c+=-t-o,s+=-n-o);break;case We.RightTop:a==Ve.Horizontal?(c+=i+o,s+=o):a==Ve.Vertical?(c+=i-t-o,s+=-n-o):(c+=i+o,s+=-n-o);break;case We.LeftBottom:a==Ve.Horizontal?(c+=-t-o,s+=l-n-o):a==Ve.Vertical?(c+=o,s+=l+o):(c+=-t-o,s+=l+o);break;case We.RightBottom:a==Ve.Horizontal?(c+=i+o,s+=l-n-o):a==Ve.Vertical?(c+=i-t-o,s+=l+o):(c+=i+o,s+=l+o);break;case We.InnerTop:c+=(i-t)/2,s+=o;break;case We.InnerRight:c+=i-t-o,s+=(l-n)/2;break;case We.InnerBottom:c+=(i-t)/2,s+=l-n-o;break;case We.InnerLeft:c+=o,s+=(l-n)/2;break;case We.InnerLeftTop:c+=o,s+=o;break;case We.InnerRightTop:c+=i-t-o,s+=o;break;case We.InnerLeftBottom:c+=o,s+=l-n-o;break;case We.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&&g(e("div",{ref:k,className:"dock-overlay",style:{zIndex:c},children:p()}),document.body);return n(t,{children:[e("div",w({ref:S,className:y.getClassName("dock"),style:y.getStyle()},b,{children:r.children})),I]})},He={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},Ue={NoWrap:"nowrap",Wrap:"wrap"},Me={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},qe={Start:"flex-start",Center:"center",End:"flex-end",Stretch:"stretch",Baseline:"baseline"},Ge={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Xe=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=C(t,["vClassName","direction","wrap","justifyContent","alignItems","alignContent","gap","overflow"]);!s.cursor&&t.onClick&&(s.cursor=F.Pointer);var u=ve(s),d=u.getProps("div").html,f=l&&Object.values(B).includes(l),h=!l||f?u.getStyle():w(w({},u.getStyle()),{gap:l}),p=c?"flex-".concat(c):s.overflowX||s.overflowY?"flex":"flex-hidden",m=n?" flex-direction-".concat(n):"",g=r?" flex-wrap-".concat(r):"",v=o?" flex-justify-content-".concat(o):"",y=a?" flex-align-items-".concat(a):"",b=i?" flex-align-content-".concat(i):"",S=f?" ".concat(l):"",k="".concat(p).concat(m).concat(g).concat(v).concat(y).concat(b).concat(S),_=u.getClassName(k);return e("div",w({className:_,style:h},d,{children:t.children}))},Ye={Start:"start",Center:"center",End:"end",Stretch:"stretch",Baseline:"baseline"},Ze=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:w(w({},n),{display:"flex",flexDirection:"column"}),children:t.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=function(n){return e(t,{children:n.children})},ot={Top:"top",Middle:"middle",Bottom:"bottom",Stretch:"stretch",Baseline:"baseline"},at=function(n,r,a,i,l){n.cross;var c=n.itemsShrink,s=C(n,["cross","itemsShrink"]),u=ve(s),d=function(t,n,o){return r?r(t,n,o,c):e(Ze,{alignSelf:o,shrink:c,children:t},"child".concat(n))};return e(Xe,w({vClassName:"v-xbase",alignItems:function(){var e;if(n.cross)switch(n.cross){case ot.Stretch:e=qe.Stretch;break;case ot.Baseline:e=qe.Baseline;break;case ot.Bottom:e=qe.End;break;case ot.Middle:e=qe.Center;break;case ot.Top:e=qe.Start;break;default:e=qe.Center}else e=qe.Center;return e}(),wrap:a?a():Ue.NoWrap,justifyContent:i?i():Me.Start,alignContent:l?l():Ge.Start},s,{children:o.map(u.getChildren(),(function(n,r){var o=n;return o.type?o.type===rt?d(o.props.children,r,Ye.Start):o.type===$e?d(o.props.children,r,Ye.Center):o.type===Ke?d(o.props.children,r,Ye.End):o.type===nt?d(o.props.children,r,Ye.Stretch):o.type===Je?d(o.props.children,r,Ye.Baseline):d(o,r):(console.debug(o),e(t,{children:"Please check X layout children."}))}))}))},it=function(t){return at(t,(function(t,n,r,o){return e(Ze,{grow:1,alignSelf:r,shrink:o,children:t})}))},lt=function(e){return at(e,void 0,void 0,(function(){return Me.SpaceAround}))},ct=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},st=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:0,alignSelf:a,shrink:i,children:t})}))},ut=function(t){return at(t,(function(t,n,r,o){return e(Ze,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},dt=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},ft=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:1,shrink:i,children:t}):e(Ze,{grow:0,shrink:i,children:t})}))},ht=function(t){return at(t,(function(t,n,r,o){return e(Ze,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},pt=function(e){return at(e,void 0,void 0,(function(){return Me.SpaceBetween}))},mt=function(e){return at(e,void 0,void 0,(function(){return Me.Center}))},gt=function(t){return at(t,(function(n,r,o,a){var i=e(Ze,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ze,{basis:t.basises[r],shrink:a,children:n})),i}))},vt=function(t){var n=ve(t);return at(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ze,{basis:t.basis,shrink:l,children:r}):e(Ze,{grow:1,shrink:l,children:r})}))},yt=function(e){return at(e,void 0,void 0,(function(){return Me.SpaceEvenly}))},bt=function(e){return at(e)},wt=function(e){return at(e,void 0,void 0,(function(){return Me.End}))},Ct=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.SpaceAround}))},St=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.SpaceBetween}))},kt=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.End}))},_t=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.SpaceEvenly}))},xt=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.Center}))},Nt=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.Start}))},Ot={Left:"left",Center:"center",Right:"right",Baseline:"baseline",Stretch:"stretch"},It=function(n,r,a,i,l){var c=n.cross,s=n.itemsShrink,u=C(n,["cross","itemsShrink"]),d=ve(u),f=function(t,n,o){return r?r(t,n,o,s):e(Ze,{alignSelf:o,shrink:s,children:t},"child".concat(n))};return e(Xe,w({vClassName:"v-ybase",wrap:a?a():Ue.NoWrap,alignContent:i?i():Ge.Start,alignItems:function(){var e;if(c)switch(c){case Ot.Left:e=qe.Start;break;case Ot.Center:e=qe.Center;break;case Ot.Right:e=qe.End;break;case Ot.Baseline:e=qe.Baseline;break;default:e=qe.Stretch}else e=qe.Stretch;return e}(),direction:He.Column,justifyContent:l?l():Me.Start},u,{children:o.map(d.getChildren(),(function(n,r){var o=n;return o.type?o.type===Qe?f(o.props.children,r,Ye.Start):o.type===$e||o.type===tt?f(o.props.children,r,Ye.Center):o.type===et?f(o.props.children,r,Ye.End):o.type===nt?f(o.props.children,r,Ye.Stretch):o.type===Je?f(o.props.children,r,Ye.Baseline):f(n,r):(console.debug(o),e(t,{children:"Please check Y layout children."}))}))}))},Bt=function(t){return It(t,(function(t,n,r,o){return e(Ze,{grow:1,alignSelf:r,shrink:o,children:t})}))},Dt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.SpaceBetween}))},Rt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.Center}))},Lt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.Start}))},zt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.End}))},Et=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.SpaceAround}))},Tt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.SpaceEvenly}))},Ft=function(t){return It(t,(function(t,n,r,o){return e(Ze,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},Pt=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:0,alignSelf:a,shrink:i,children:t})}))},jt=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:1,shrink:i,children:t}):e(Ze,{grow:0,shrink:i,children:t})}))},Wt=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},Vt=function(t){return It(t,(function(t,n,r,o){return e(Ze,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},At=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},Ht=function(t){return It(t,(function(n,r,o,a){var i=e(Ze,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ze,{basis:t.basises[r],shrink:a,children:n})),i}))},Ut=function(t){var n=ve(t);return It(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ze,{basis:t.basis,shrink:l,children:r}):e(Ze,{grow:1,shrink:l,children:r})}))},Mt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.Start}))},qt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.Center}))},Gt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.End}))},Xt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.SpaceAround}),void 0)},Yt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.SpaceBetween}))},Zt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.SpaceEvenly}))},Jt={Top:"top",Right:"right",Bottom:"bottom",Left:"left",Center:"center"},Kt=function(t){t.image,t.imageWidth,t.imageHeight,t.position;var n,r=C(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=ve(w(w({},r),{style:n}));return e(be,{_base:o,className:t.position?"v-background-".concat(t.position):"v-background",children:t.children})},Qt=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},$t={Json:"json",FormData:"formdata"},en=function(t){var n=t.handleSubmitCategory,r=t.handleSubmit,o=t.handleValidateError,a=C(t,["handleSubmitCategory","handleSubmit","handleValidateError"]),i=ve(a),l=i.getProps("form").html;return e("form",w({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===$t.FormData?l:Qt(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}))},tn=function(t){return e("form",w({className:"v-action-form"},t,{children:t.children}))},nn=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,m=t.valueSize,g=t.frontColor;t.valueCategory;var v,y=t.valuePadding,b=t.inputStyle,S=t.inputClassName,_=t.placeholderColor,x=t.overWrite,N=t.renderOptions,O=t.onChange,I=t.inheritClassName,B=t.customAttributes,D=C(t,["ref","type","label","icon","value","valueHook","setStateHook","isValueShow","gap","valueSize","frontColor","valueCategory","valuePadding","inputStyle","inputClassName","placeholderColor","overWrite","renderOptions","onChange","inheritClassName","customAttributes"]),R=ve(D),L=R.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(be,{_base:R,className:"v-validity v-input ".concat((_||k.Placeholder)+"-placeholder").concat(I?" ".concat(I):""),children:[n(Bt,{display:v?T.None:void 0,children:[n(st,{gap:p,children:[e(Oe,{children:i}),n(Oe,{children:[e("input",w({ref:P},B,{className:(S?"".concat(S," "):"")+"".concat(R.getClassName("v-input-native")),style:b,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})}},L)),!!a&&e("label",{htmlFor:t.id?t.id:t.name,children:a})]}),N?N(P):e(Oe,{})]}),!!h&&e(mt,{children:e(Le,{padding:y,isAutoSize:t.isAutoSize,fontSize:m||U.Normal,frontColor:g||k.Black,caption:void 0!==E.value?E.value.toString():l?l.toString():""})})]}),!!v&&v]})},rn={Default:"default",Circle:"circle",Squared:"squared",Custom:"custom"},on=function(n){var r=w({},n);!r.cursor&&n.onClick&&(r.cursor=F.Pointer);var l=ve(r);return e(t,{children:o.map(n.children,(function(e){return function(e){var t=n.category?n.category:rn.Default,r=l.getClassName("v-svg-".concat(t)),o=n.onClick,c=n.onMouseEnter,s=n.onMouseLeave,u={className:r,style:w({},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)}))})};on.displayName="VSvg";var an,ln,cn=l(on);function sn(){return sn=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},sn.apply(null,arguments)}var un,dn=function(e){return r.createElement("svg",sn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),an||(an=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"})),ln||(ln=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 fn(){return fn=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},fn.apply(null,arguments)}var hn,pn=function(e){return r.createElement("svg",fn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),un||(un=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"})))},mn=function(t){var r=t.isChecked,o=C(t,["isChecked"]);return e(nn,w({isAutoSize:t.isAutoSize,customAttributes:{checked:!!r},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(o){return n(bt,{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(cn,{frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?dn:pn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}},o))},gn=function(t){return e(nn,w({type:"color",isDefaultValue:!0},t))},vn=function(t){return e(nn,w({type:"date",isDefaultValue:!0},t))},yn=function(t){return e(nn,w({type:"datetime-local",isDefaultValue:!0},t))},bn=function(t){return e(nn,w({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},wn={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"},Cn={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"},kn={Delay1Second:"animate__delay-1s",Delay2Second:"animate__delay-2s",Delay3Second:"animate__delay-3s",Delay4Second:"animate__delay-4s",Delay5Second:"animate__delay-5s"},_n=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})},xn=function(t){t.animationCategory,t.animationSpeed;var n=C(t,["animationCategory","animationSpeed"]),r=ve(n);return e(be,{_base:r,className:"v-loading",children:e(_n,{category:t.animationCategory?t.animationCategory:wn.Flip,speed:t.animationSpeed?t.animationSpeed:Sn.Slower,repeat:Cn.Infinite,children:t.children})})};function Nn(){return Nn=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},Nn.apply(null,arguments)}var On=function(e){return r.createElement("svg",Nn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),hn||(hn=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"})))},In={Vertical:"Vertical",Horizontal:"Horizontal"},Bn=function(e){return e.name.endsWith(".jpg")||e.name.endsWith(".jpeg")||e.name.endsWith(".png")},Dn=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,m=t.renderPreview,g=C(t,["category","appearance","loader","loaderSize","loaderColor","isPreview","previewImageWidth","textLength","autoUpload","renderLoader","renderPreview"]),v=s(null),y=u({inputFiles:[],isLoading:!1}),b=y[0],S=y[1],k=function(){S((function(e){return w(w({},e),{isLoading:!1})}))};d((function(){return function(){return b.inputFiles.forEach((function(e){e.objectUrl&&URL.revokeObjectURL(e.objectUrl)}))}}),[b.inputFiles]);var _=function(e){e.preventDefault(),e.currentTarget.className="v-file"},x=ve(w({onDrop:function(e){e.preventDefault();var t=Array.from(e.dataTransfer.files),n=t.map((function(e){return{name:e.name,objectUrl:Bn(e)?URL.createObjectURL(e):void 0}}));n.length>0&&(h?(S(w(w({},b),{inputFiles:n,isLoading:!0})),h(t,k),e.currentTarget.className="v-file"):(S(w(w({},b),{inputFiles:n})),e.currentTarget.className="v-file"))},onDragOver:function(e){e.preventDefault(),e.currentTarget.className="v-file on-drag"},onDragEnd:_,onDragLeave:_,onDragExit:_},g));return e(be,{_base:x,className:"v-file",children:e(nn,w({type:"file",isDefaultValue:!0,ref:v},g,{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:Bn(e)?URL.createObjectURL(e):void 0}}));S(w(w({},b),{inputFiles:r})),h&&(S(w(w({},b),{inputFiles:r,isLoading:!0})),h(n,k))},overWrite:function(t){return l?m?e(Oe,{cursor:F.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:m(b.inputFiles,b.isLoading)}):r==In.Vertical?n(Bt,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},cross:Ot.Center,children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Bt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Bt,{cross:Ot.Center,children:[!!t.objectUrl&&e(Oe,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:U.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))}),!!b.isLoading&&(p?p():e(xn,{animationCategory:wn.Flash,children:e(mt,{children:e(cn,{fontSize:a,frontColor:i,children:e(On,{})})})}))]}):n(it,{gap:"1em",children:[n(it,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Bt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Bt,{cross:Ot.Center,children:[!!t.objectUrl&&e(Oe,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:U.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))})]}),!!b.isLoading&&(p?p():e(xn,{animationCategory:wn.Flash,children:e(cn,{fontSize:a,frontColor:i,children:e(On,{})})}))]}):e(Oe,{cursor:F.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:o})}}))})},Rn={Default:"default",Circle:"circle",Squared:"squared",FullSize:"full-size",Scale:"scale"},Ln=function(t){var n=t.category,r=C(t,["category"]),o=ve(r),a=o.getProps("img").html,i=n||Rn.Default;return e("img",w({className:o.getClassName("v-image-".concat(i)),style:o.getStyle()},a))};Ln.displayName="VImage";var zn,En,Tn=l(Ln),Fn=function(t){return e(nn,w({display:T.None,type:"hidden"},t))},Pn=function(t){var r=t.fileIcon,o=t.base64Image,a=C(t,["fileIcon","base64Image"]),i=ve(a),l=u({base64Image:o}),c=l[0],s=l[1];return n(be,{_base:i,className:"v-base64file",children:[e(Fn,{name:t.name,value:c.base64Image}),e(nn,w({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(Bt,{gap:"0.2em",onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},children:[r,e(Tn,{fontSize:t.fontSize,category:Rn.Scale,src:"data:image/png;base64,".concat(c.base64Image),alt:"file"})]})}},a))]})},jn=function(t){return e(nn,w({type:"month",isDefaultValue:!0},t))},Wn=function(t){return e(nn,w({type:"number",isDefaultValue:!0},t))},Vn=function(t){return e(nn,w({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))};function An(){return An=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},An.apply(null,arguments)}var Hn,Un=function(e){return r.createElement("svg",An({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"})),En||(En=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 Mn(){return Mn=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},Mn.apply(null,arguments)}var qn,Gn,Xn=function(e){return r.createElement("svg",Mn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Hn||(Hn=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"})))},Yn=function(t){var r=t.isChecked,o=C(t,["isChecked"]);return e(nn,w({type:"radio",customAttributes:{checked:!!r},isDefaultValue:!0},o,{overWrite:function(o){return n(bt,{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(cn,{padding:"0.4em",frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?Un:Xn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}}))},Zn=function(t){var n=t.thumbColor,r=t.thumbBorderColor,o=t.trackColor,a=t.trackHeight,i=t.inputStyle,l=C(t,["thumbColor","thumbBorderColor","trackColor","trackHeight","inputStyle"]),c="".concat(n,"-thumb-background ").concat(r,"-thumb-border ").concat(o,"-track-background"),s=a?w(w({},i),{"--den-range-track-height":a}):i;return e(nn,w({type:"range",inputClassName:c},l,{inputStyle:s}))},Jn=function(t){return e(nn,w({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},Kn=function(t){var r=t.ref;t.caption,t.isFormNoValidate;var o=C(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=ve(w({onClick:function(){a.current.click()}},o)),l=i.getProps("input").html;return n(be,{_base:i,className:"v-submit",children:[n(mt,{cross:ot.Middle,children:[!!t.icon&&e("span",{children:t.icon}),!!t.caption&&e("span",{children:t.caption})]}),e("input",w({formNoValidate:t.isFormNoValidate,ref:a,type:"submit"},l))]})},Qn=function(t){var r=ve(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"})]})},$n=function(t){return e(nn,w({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))};function er(){return er=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},er.apply(null,arguments)}var tr,nr=function(e){return r.createElement("svg",er({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),qn||(qn=r.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),Gn||(Gn=r.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},rr=function(t){var r=t.enableClear,o=C(t,["enableClear"]);return e(nn,r?w({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o,{renderOptions:function(r){return n(it,{gap:"0.2em",children:[t.renderOptions&&t.renderOptions(r),e(cn,{fontSize:U.ExtraSmall,frontColor:k.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(nr,{})})]})}}):w({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o))},or=function(t){return e(nn,w({type:"time",isDefaultValue:!0},t))},ar=function(t){return e(nn,w({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},ir=function(t){return e(nn,w({type:"week",isDefaultValue:!0},t))},lr=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 cr(){return cr=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},cr.apply(null,arguments)}var sr=function(e){return r.createElement("svg",cr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),tr||(tr=r.createElement("circle",{cx:128,cy:128,r:100,fill:"currentColor"})))},ur=function(t){var r=t.isOn,o=t.icon,a=t.gap,i=t.isDisabled,l=t.onSwitch,c=C(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(cn,{style:{margin:f.isOn?"0 0.6em 0 0":"0 0 0 0.6em"},frontColor:k.White,fontSize:U.Normal,children:o}):e(Oe,{width:"1em",height:"1em"}),m=t.isDisabled?void 0:function(){t.isDisabled||(l&&l(!f.isOn),h({isOn:!f.isOn}))},g=ve(w({onClick:m},c));return e(be,{_base:g,className:i?"v-switch-disabled":"v-switch",children:n(pt,{role:"switch","aria-checked":f.isOn,"aria-disabled":i,tabIndex:i?-1:0,onKeyDown:m?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),m())}:void 0,borderRadius:R.ExtraLarge,backgroundColor:f.isOn?t.frontColor?t.frontColor:k.Success:t.backgroundColor?t.backgroundColor:k.Placeholder,gap:a||"0.6em",children:[f.isOn?e(cn,{category:rn.Circle,frontColor:k.White,children:e(sr,{})}):p,f.isOn?p:e(cn,{category:rn.Circle,frontColor:k.White,children:e(sr,{})})]})})},dr=function(t){var n=t.name;t.items;var r=t.value,o=t.isMultiple;t.fontFamily;var a=C(t,["name","items","value","isMultiple","fontFamily"]),i=ve(a),l=i.getProps("select").html;return e(be,{_base:i,className:"v-select",children:e("select",w({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)}))}))})},fr=function(t){var r,o,a,i,l=t.ref,c=t.value,f=t.name,h=t.icon,m=t.emptyIcon,g=t.downIcon,v=t.upIcon,y=t.enableClear,b=t.items,S=t.dockCategory,_=t.dockAlignment,x=t.menuBackgroundColor,N=t.menuZIndex,I=t.menuGap;t.onClick;var D=t.isSelectOnly,R=t.overWriteDropdownMenu,z=t.overWriteDropdownItem,T=t.handleChange,F=t.readOnly,P=C(t,["ref","value","name","icon","emptyIcon","downIcon","upIcon","enableClear","items","dockCategory","dockAlignment","menuBackgroundColor","menuZIndex","menuGap","onClick","isSelectOnly","overWriteDropdownMenu","overWriteDropdownItem","handleChange","readOnly"]),j=ve(P),W=u({isSelectionShow:!1,selectValue:c||"",selectCaption:c?b.filter((function(e){return e.value==c}))[0].caption:"",items:b}),V=W[0],A=W[1],H=s(null),M=p(),q=s(null),G=s(null);d((function(){if(V.isSelectionShow){var e=function(e){var t=e.target;q.current&&!q.current.contains(t)&&G.current&&!G.current.contains(t)&&A((function(e){return w(w({},e),{isSelectionShow:!1,items:b})}))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[V.isSelectionShow,b]);d((function(){"object"==typeof l&&l?l.current=H.current:"function"==typeof l&&l(H.current),t.autoFocus&&H.current&&H.current.focus()}),[l,t.autoFocus]);var X=N||je;if(F)return n(ut,{className:j.getClassName("v-dropdown"),style:j.getStyle(t.style),children:[e(Le,{caption:(null===(r=V.selectCaption)||void 0===r?void 0:r.toString())||"",fontSize:t.fontSize,frontColor:t.frontColor}),e(Fn,{name:f,valueHook:null===(o=V.selectValue)||void 0===o?void 0:o.toString()}),e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:g})]});var Y=q.current?"".concat(q.current.offsetWidth,"px"):void 0;return e(Ae,{width:"fit-content",overlayZIndex:V.isSelectionShow?X:-2147483648,category:S||We.RightBottom,alignment:_||Ve.Vertical,renderOverlay:function(){return e(Oe,{ref:G,minWidth:Y,className:"v-dropdown-overlay",children:e(Oe,{visibility:V.isSelectionShow?E.Visible:E.Hidden,borderRadius:t.borderRadius,role:"listbox",id:M,children:R?R(V.items):e(Bt,{gap:I,padding:t.padding,backgroundColor:x||k.White,borderRadius:t.borderRadius,borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:L.Solid,children:0==V.items.length?e(mt,{children:e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:m})}):V.items.map((function(r){return z?e(Oe,{borderRadius:t.borderRadius,role:"option","aria-selected":r.value===V.selectValue,children:z(r)},r.value):n(bt,{padding:O.ExtraSmall,gap:B.Small,borderRadius:t.borderRadius,className:"item",role:"option","aria-selected":r.value===V.selectValue,onClick:function(){A(w(w({},V),{isSelectionShow:!1,selectIcon:r.icon,selectCaption:r.caption,selectValue:r.value,items:b})),T&&T(r.value)},children:[r.icon?e(cn,{fontSize:U.ExtraSmall,children:r.icon}):void 0,e(Le,{caption:r.caption})]},r.value)}))})})})},children:e(Oe,{ref:q,children:n(ut,w({className:j.getClassName("v-dropdown"),style:j.getStyle(t.style)},P,{role:"combobox","aria-expanded":V.isSelectionShow,"aria-haspopup":"listbox","aria-controls":M,onClick:function(){A(w(w({},V),{isSelectionShow:!V.isSelectionShow}))},children:[n(Oe,{children:[e(rr,{ref:H,id:t.id,style:{padding:0},fontSize:t.fontSize,frontColor:t.frontColor,icon:e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:V.selectIcon?V.selectIcon:h}),valueHook:null===(a=V.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(w(w({},V),{isSelectionShow:!0,selectCaption:t,items:b.filter((function(e){return e.caption.toLowerCase().indexOf(t.toLowerCase())>-1}))}))}}),e(Fn,{name:f,valueHook:null===(i=V.selectValue)||void 0===i?void 0:i.toString()})]}),e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:V.isSelectionShow?v:g})]}))})})},hr={NewWindow:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},pr=function(t){var n=t.category,r=t.to,o=C(t,["category","to"]),a=ve(o),i=a.getProps("a").html;return e(be,{_base:a,className:"v-hyperlink",children:e("a",w({href:r,target:n},i,{children:t.children}))})},mr={P:"p",Address:"address",Article:"article",Aside:"aside",Details:"details",Section:"section"},gr={Justify:0,Left:1,Right:2,Center:3},vr=function(t){var n=t.category;t.alignType;var r,o,a=t.renderContent,i=C(t,["category","alignType","renderContent"]),l=ve(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(be,{_base:l,className:o,children:r})},yr=function(t){var r=t.ref;t.icon;var o=t.valueHook,a=t.setStateHook,i=t.placeholderColor,l=C(t,["ref","icon","valueHook","setStateHook","placeholderColor"]),c=ve(l),f=c.getProps("textarea").html,h=u({value:t.value}),p=h[0],m=h[1],g=s(null);return d((function(){"object"==typeof r&&r?r.current=g.current:"function"==typeof r&&r(g.current),t.autoFocus&&g.current&&g.current.focus()}),[r,t.autoFocus]),e(be,{category:ye.Display,_base:c,className:"v-validity v-textarea ".concat((i||k.Placeholder)+"-placeholder"),children:n(ft,{cross:ot.Top,gap:"0.6em",children:[t.icon,e(Oe,{children:e("textarea",w({ref:g},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):m({value:e.target.value})}}))})]})})},br={Default:"default",Fixed:"fixed"},wr=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-ellipse-".concat(t.category?t.category:br.Default),children:t.children})},Cr={Vertical:"vertical",Horizontal:"horizontal"},Sr=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-line-".concat(t.category)})},kr="default",_r=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-rectangle-".concat(t.category?t.category:kr)})},xr={Default:"default",Max:"max"},Nr=function(n){var r=ve(n);return 0===o.toArray(n.children).length?e(Le,{backgroundColor:k.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:xr.Default)),style:w(w({},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)}))})},Or=function(t){t.sources;var n=C(t,["sources"]),r=ve(n),o=r.getProps("audio").html;return e("audio",w({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))}))}))},Ir=function(t){t.sources;var n=C(t,["sources"]),r=ve(n),o=r.getProps("video").html;return e("video",w({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))}))}))},Br=function(t){var n=ve(t),r=n.getProps("header").html;return e("header",w({className:n.getClassName("v-header"),style:n.getStyle()},r,{children:t.children}))},Dr=function(t){var n=ve(t),r=n.getProps("main").html;return e("main",w({className:n.getClassName("v-main"),style:n.getStyle()},r,{children:t.children}))},Rr=function(t){var n=ve(t),r=n.getProps("footer").html;return e("footer",w({className:n.getClassName("v-footer"),style:n.getStyle()},r,{children:t.children}))},Lr=function(t){var n=ve(t),r=n.getProps("aside").html;return e("aside",w({className:n.getClassName("v-aside"),style:n.getStyle()},r,{children:t.children}))},zr=function(t){var n=ve(t),r=n.getProps("nav").html;return e("nav",w({className:n.getClassName("v-nav"),style:n.getStyle()},r,{children:t.children}))},Er=function(t){var n=ve(t),r=n.getProps("hr").html;return e("hr",w({className:n.getClassName("v-hr"),style:n.getStyle()},r))},Tr=function(t){var n=ve(t),r=n.getProps("section").html;return e("section",w({className:n.getClassName("v-section"),style:n.getStyle()},r,{children:t.children}))},Fr=function(t){var n=ve(w({width:"100vw",height:"100vh",backgroundColor:k.Dark75},t));return e(_e,{zIndex:t.zIndex?t.zIndex:je,category:Se.Window,type:ke.Center,children:e(Ne,{children:e(be,{_base:n,className:"v-mask",children:e(_e,{category:Se.Area,type:ke.Center,children:t.children})})})})},Pr=function(t){var n,r=t.image,o=t.backingBoard,a=t.style,i=C(t,["image","backingBoard","style"]),l=ve(i);return o&&(n=w(w({},a),{background:"linear-gradient(".concat(o.degree,", ").concat(o.startColor,", ").concat(o.endColor,")")})),e(be,w({_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})}))},jr="--den-",Wr={Global:"global",Area:"area"},Vr=function(t){var n=t.category,r=t.area,o=t.variables,a=C(t,["category","area","variables"]),i=ve(w({id:r},a));return d((function(){var e;n==Wr.Area?r&&(e=document.getElementById(r)):e=document.documentElement,e&&(Object.keys(o.colors).forEach((function(t){e.style.setProperty("".concat(jr,"color-").concat(t),o.colors[t])})),Object.keys(o.fontSizes).forEach((function(t){e.style.setProperty("".concat(jr).concat(t),o.fontSizes[t])})),Object.keys(o.fontWeights).forEach((function(t){e.style.setProperty("".concat(jr).concat(t),o.fontWeights[t])})))}),[]),n==Wr.Area?e(be,{_base:i,className:"v-theme",children:t.children}):e(Le,{backgroundColor:k.Error,caption:"[VTheme] No Area!"})},Ar={Hover:"hover",Click:"click"},Hr=function(t){var n,r=t.category,o=t.dockCategory,a=t.dockAlignment,i=t.renderOverlay,l=C(t,["category","dockCategory","dockAlignment","renderOverlay"]),c=ve(l),s=u({isShow:!1}),d=s[0],f=s[1],h=p();return n=r||Ar.Hover,e(be,{_base:c,className:"v-tooltip",children:e(Ae,{category:o,alignment:a,renderOverlay:function(){return d.isShow?e(Oe,{role:"tooltip",id:h,children:i()}):e(Oe,{className:"v-tooltip-overlay-fragment","aria-hidden":!0})},children:e(Oe,{"aria-describedby":d.isShow?h:void 0,onClick:function(){n==Ar.Click&&f({isShow:!d.isShow})},onMouseEnter:function(){n==Ar.Hover&&f({isShow:!0})},onMouseLeave:function(){n==Ar.Hover&&f({isShow:!1})},onFocus:function(){n==Ar.Hover&&f({isShow:!0})},onBlur:function(){n==Ar.Hover&&f({isShow:!1})},children:t.children})})})},Ur=function(t){function n(e){var n=t.call(this,e)||this;return n.state={hasError:!1,error:null,errorInfo:null},n}return b(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:k.Error,frontColor:k.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}(m),Mr=function(t){return e(Ne,{children:!!t.badge&&e(_e,{category:Se.Area,bottom:"0",right:"0",children:"string"==typeof t.badge||t.badge instanceof String?e(Tn,{category:Rn.Circle,fontSize:U.Small,src:t.badge,alt:"null",borderStyle:"solid",borderWidth:"1px",borderColor:k.Light}):e(cn,{category:rn.Circle,frontColor:k.Secondary,backgroundColor:k.White,fontSize:U.Small,children:t.badge})})})},qr=function(t){var n=ve(t),r=n.getProps("template").html;return e("template",w({className:n.getClassName("v-template"),style:n.getStyle()},r,{children:t.children}))},Gr=function(t){return e("div",{id:t.id})},Xr=function(t){return t.isDebug?e("div",{className:"debug",children:t.children}):e("div",{className:"no-debug",children:t.children})},Yr={Uninstalled:"uninstalled",Outdated:"outdated",Ready:"ready"},Zr=function(t){var n=u({}),r=n[0],o=n[1];if(d((function(){var e;r.status||(e="chrome-extension://".concat(t.extensionId,"/meta.json"),fetch(e).then((function(e){return e.ok?e.json():Promise.reject()})).then((function(e){var n=!t.version||e.version>=t.version;o({status:n?Yr.Ready:Yr.Outdated,meta:e})})).catch((function(){return o({status:Yr.Uninstalled})})))}),[]),r.status){if(t.overWrite)return t.overWrite(r.status,r.meta);var a=void 0;return r.status===Yr.Ready?e(Oe,{className:"v-chrome-extension-validator-fragment"}):(r.status===Yr.Uninstalled?a=t.uninstalledMessage:r.status===Yr.Outdated&&(a=t.outdatedMessage),e(pr,{category:hr.NewWindow,to:t.downloadUrl?t.downloadUrl:"mailto:support@fewbox.com",children:a}))}return e(Oe,{className:"v-chrome-extension-validator-fragment"})},Jr={Normal:"normal",Italic:"italic"},Kr=function(t){return d((function(){var e=document.createElement("link");e.rel="preconnect",e.href="https://fonts.googleapis.com";var n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin="crossorigin",document.head.appendChild(e),document.head.appendChild(n),t.typefaces.forEach((function(e,t){var n,r,o=e.family,a=null===(n=e.fonts)||void 0===n?void 0:n.filter((function(e){return e.type==Jr.Italic})),i=a&&a.length>0?"ital,wght":"wght",l=document.createElement("link");l.rel="stylesheet";var c=[];e.fonts&&e.fonts.length>1?(null===(r=e.fonts)||void 0===r||r.forEach((function(e,t){"ital,wght"==i?e.type==Jr.Normal?c.push("0,".concat(H(e.weight))):e.type==Jr.Italic&&c.push("1,".concat(H(e.weight))):c.push(H(e.weight).toString())})),l.href="https://fonts.googleapis.com/css2?family=".concat(o,":").concat(i,"@").concat(c.join(";"),"&display=swap")):l.href="https://fonts.googleapis.com/css2?family=".concat(o,"&display=swap"),document.head.appendChild(l)}))}),[]),e(Oe,{className:"google-font-fragment"})},Qr={Popup:"popup",Redirect:"redirect"},$r={Implicit:"implicit",AuthorizationCode:"authorization-code"},eo="fewbox-google-grant",to=function(t){return d((function(){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",t.category==$r.Implicit?e.onload=function(){var e=google.accounts.oauth2.initTokenClient({client_id:t.clientId,scope:t.scope,callback:function(e){var n={accessToken:e.access_token,expiresIn:e.expires_in,hd:e.hd,prompt:e.prompt,tokenType:e.token_type,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestAccessToken();else{var n=document.getElementById(eo);null==n||n.addEventListener("click",(function(){e.requestAccessToken()}))}t.enableGoogle()}:e.onload=function(){var e=google.accounts.oauth2.initCodeClient({client_id:t.clientId,scope:t.scope,ux_mode:t.uxMode,callback:function(e){var n={code:e.code,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestCode();else{var n=document.getElementById(eo);null==n||n.addEventListener("click",(function(){e.requestCode()}))}t.enableGoogle()},e.onerror=function(e){console.error(e),t.disableGoogle()},document.body.appendChild(e)}),[t.clientId,t.scope,t.uxMode,t.category,t.isAutoRequest]),t.isAutoRequest?e(Oe,{className:"google-grant-fragment"}):e(Gr,{id:eo,children:t.children})},no=function(t){return e("div",{className:"figma-signin",onClick:function(){window.location.href="https://www.figma.com/oauth?client_id=".concat(t.clientId,"&redirect_uri=").concat(t.redirectUrl,"&scope=").concat(t.scope,"&state=").concat("fewbox","&response_type=").concat(t.responseType)},children:t.children})},ro={Prompt:"prompt",Popup:"popup",Redirect:"redirect"},oo=function(t){var n=t.clientId,r=t.uxMode,o=t.redirectUrl,a=t.gsiButtonConfiguration,i=t.callback,l=t.switchAnotherIdentityProvider,c=t.enableGoogle,s=t.disableGoogle,u=t.googleAuthButtonId,f=u||"fewbox-google-auth";return d((function(){if("undefined"!=typeof document){var e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.onload=function(){if(google.accounts.id.initialize({client_id:n,ux_mode:r!=ro.Prompt?r:void 0,use_fedcm_for_prompt:r==ro.Prompt,callback:function(e){i(e.credential)},login_uri:o}),r==ro.Prompt)google.accounts.id.prompt((function(e){(e.isNotDisplayed()||e.isSkippedMoment())&&l&&l(e.getNotDisplayedReason())}));else{var e=document.getElementById(f);e?google.accounts.id.renderButton(e,a||{type:"icon",size:"large",theme:"outline",shape:"circle",logo_alignment:"center"}):(console.error("The element '".concat(f,"' not found!")),s())}c()},e.onerror=function(e){console.error(e),s()},document.body.appendChild(e),function(){e.remove()}}}),[n,r,o,a,i,l,c,s,f]),e(Gr,{id:f})},ao=function(t){return e("div",{className:"wecom-signin",onClick:function(){window.location.href="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=".concat(t.appId,"&agentid=").concat(t.agentId,"&redirect_uri=").concat(t.redirectUrl,"&state=").concat("fewbox")},children:t.children})},io=function(e){var t={},n=v(e,{header:!0});return t.role=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],t.mobile=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone"],t.name=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],t.email=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],t.exp=n.exp,t.iss=n.iss,t.aud=n.aud,t.expire=t.exp?new Date(1e3*t.exp):new Date(-864e13),t.tenant=n["http://schemas.fewbox.com/jwt/identity/claims/tenant"],t.id=n["http://schemas.fewbox.com/jwt/identity/claims/id"],t.api=n["http://schemas.fewbox.com/jwt/identity/claims/api"],t.issuer=n["http://schemas.fewbox.com/jwt/identity/claims/issuer"],t.audience=n["http://schemas.fewbox.com/jwt/identity/claims/audience"],t.avatar=n["http://schemas.fewbox.com/jwt/identity/claims/avatar"],t};export{wn as AnimationCategory,kn as AnimationDelay,Cn as AnimationRepeat,Sn as AnimationSpeed,Jt as BackgroundPositionType,ve as Base,R as BorderRadiusType,L as BorderStyleType,z as BorderWidthType,Ee as BreakpointCategory,Fe as BreakpointDisplay,Te as BreakpointType,k as ColorType,F as CursorType,Xr as Debug,q as DirectionType,T as DisplayType,Ae as Dock,Ve as DockAlignment,We as DockCategory,br as EllipseCategory,Yr as ExtensionStatus,no as FigmaSignin,In as FileCategory,Xe as Flex,Ge as FlexAlignContentType,qe as FlexAlignItemsType,He as FlexDirectionType,Ze as FlexItem,Ye as FlexItemAlignSelfType,Me as FlexJustifyContentType,Ue as FlexWrapType,x as FontFamilyType,U as FontSizeType,_ as FontWeightType,B as GapType,Jr as GoogleFontType,to as GoogleGrant,$r as GoogleGrantCategory,Qr as GoogleGrantUXMode,oo as GoogleSignin,ro as GoogleSigninUXMode,$t as HandleSubmitCategory,hr as HyperlinkCategory,Rn as ImageCategory,De as LabelAlignType,Ie as LabelCategory,Be as LabelType,D as LetterSpacingType,Cr as LineCategory,N as LineHeightType,I as MarginType,V as OpacityType,P as OverflowType,j as OverflowXType,W as OverflowYType,O as PaddingType,_e as Position,Ne as PositionArea,xe as PositionAreaCategory,Se as PositionCategory,ke as PositionType,M as PseudoType,Pe as Responsive,ye as RootCategory,Je as SBaseline,Ke as SBottom,tt as SCenter,Qe as SLeft,$e as SMiddle,et as SRight,nt as SStretch,rt as STop,ze as ScreenSizeType,xr as ShadowCategory,rn as SvgCategory,gr as TextAlignType,mr as TextCategory,Wr as ThemeCategory,Ar as TooltipCategory,tn as VActionForm,_n as VAnimation,Lr as VAside,Or as VAudio,Kt as VBackground,Mr as VBadge,Pn as VBase64File,Oe as VBoundary,mn as VCheckBox,Zr as VChromeExtensionValidator,gn as VColor,vn as VDate,yn as VDatetimeLocal,fr as VDropdown,wr as VEllipse,bn as VEmail,Ur as VErrorBoundary,Dn as VFile,Rr as VFooter,en as VForm,Pr as VFrame,Kr as VGoogleFont,lr as VGroup,Er as VHR,Br as VHeader,Fn as VHidden,pr as VHyperlink,Tn as VImage,Le as VLabel,Sr as VLine,xn as VLoading,Dr as VMain,Fr as VMask,jn as VMonth,Gr as VMount,zr as VNav,Wn as VNumber,Vn as VPassword,Yn as VRadio,Zn as VRange,_r as VRectangle,Jn as VSearch,Tr as VSection,dr as VSelect,Nr as VShadow,Kn as VSubmit,Qn as VSubmitWrapper,cn as VSvg,ur as VSwitch,$n as VTel,qr as VTemplate,vr as VText,yr as VTextArea,rr as VTextBox,Vr as VTheme,or as VTime,Hr as VTooltip,ar as VUrl,Ir as VVideo,ir as VWeek,Ce as VZone,A as ViewSizeType,E as VisibilityType,ao as WeComSignin,it as X,lt as XAround,ct as XAutoBoth,st as XAutoCenter,ut as XAutoLeft,dt as XAutoLefts,ft as XAutoRight,ht as XAutoRights,pt as XBetween,mt as XCenter,ot as XCrossType,gt as XCustom,vt as XCustomBoth,yt as XEvenly,bt as XLeft,wt as XRight,Ct as XWrapAround,St as XWrapBetween,kt as XWrapBottom,_t as XWrapEvenly,xt as XWrapMiddle,Nt as XWrapTop,Bt as Y,Et as YAround,At as YAutoBoth,jt as YAutoBottom,Vt as YAutoBottoms,Pt as YAutoCenter,Ft as YAutoTop,Wt as YAutoTops,Dt as YBetween,zt as YBottom,Ot as YCrossType,Ht as YCustom,Ut as YCustomBoth,Tt as YEvenly,Rt as YMiddle,Lt as YTop,Xt as YWrapAround,Yt as YWrapBetween,qt as YWrapCenter,Zt as YWrapEvenly,Mt as YWrapLeft,Gt as YWrapRight,we as ZoneCategory,Qt as convertFormDataToJson,ue as getGeneratedClassName,H as getWeightValue,io as parseJWT};
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";import{jwtDecode as v}from"jwt-decode";var y=function(e,t){return y=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])},y(e,t)};function b(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}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return w=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},w.apply(this,arguments)};function C(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 k={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"},_={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"},x={Default:"font-family"},N={Default:"line-height"},O={Default:"padding",Normal:"padding-normal",ExtraSmall:"padding-extra-small",Small:"padding-small",Large:"padding-large",ExtraLarge:"padding-extra-large"},I={Default:"margin",Normal:"margin-normal",ExtraSmall:"margin-extra-small",Small:"margin-small",Large:"margin-large",ExtraLarge:"margin-extra-large"},B={Default:"gap",Normal:"gap-normal",ExtraSmall:"gap-extra-small",Small:"gap-small",Large:"gap-large",ExtraLarge:"gap-extra-large"},D={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"},R={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"},E={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"},P={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"},j={Visible:"overflow-x-visible",Hidden:"overflow-x-hidden",Scroll:"overflow-x-scroll",Auto:"overflow-x-auto",Clip:"overflow-x-clip"},W={Visible:"overflow-y-visible",Hidden:"overflow-y-hidden",Scroll:"overflow-y-scroll",Auto:"overflow-y-auto",Clip:"overflow-y-clip"},V={_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"},A={Ellipse:"v-ellipse-size",Rectangle:"v-rectangle-size",Image:"v-image-size",Svg:"v-svg-size",Window:"v-window-size"},H=function(e){var t;switch(e){case _.Thin:t=100;break;case _.ExtraLight:t=200;break;case _.Light:t=300;break;case _.Regular:t=400;break;case _.Medium:t=500;break;case _.SemiBold:t=600;break;case _.Bold:t=700;break;case _.ExtraBold:t=800;break;case _.Black:t=900;break;default:t=400}return t},U={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"},M={All:"all",Before:"before",After:"after"},q={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"},G=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),X=function(e){this.component=e},Y=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.sizeType=n,o.isAuto=r,o}return b(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(U).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}(X),Z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.weightType=n,r}return b(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(X),J=function(e){function t(t,n){var r=e.call(this,t)||this;return r.visibility=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.visibility){var e=void 0;return e=Object.values(E).includes(this.visibility)?this.visibility:"visibility-".concat(this.visibility),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),K=function(e){function t(t,n){var r=e.call(this,t)||this;return r.cursor=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.cursor){var e=void 0;return e=Object.values(P).includes(this.cursor)?this.cursor:"cursor-".concat(this.cursor),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),Q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflow=n,r}return b(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}(X),$=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowX=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflowX){var e=void 0;return e=Object.values(j).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}(X),ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowY=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflowY){var e=void 0;return e=Object.values(W).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}(X),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.display=n,r}return b(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}(X),ne=function(e){function t(t,n){var r=e.call(this,t)||this;return r.opacityType=n,r}return b(t,e),t.prototype.getClassName=function(){return this.opacityType&&Object.values(V).includes(this.opacityType)?"".concat(this.component.getClassName()," ").concat(this.opacityType):this.component.getClassName()},t}(X),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderRadius=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.borderRadius){var e=void 0;return e=Object.values(R).includes(this.borderRadius)?this.borderRadius:"border-radius-".concat(this.borderRadius),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderStyle=n,r}return b(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}(X),ae=function(e){function t(t,n){var r=e.call(this,t)||this;return r.padding=n,r}return b(t,e),t.prototype.getClassName=function(){return this.padding&&Object.values(O).includes(this.padding)?"".concat(this.component.getClassName()," ").concat(this.padding):this.component.getClassName()},t}(X),ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.letterSpacing=n,r}return b(t,e),t.prototype.getClassName=function(){return this.letterSpacing&&Object.values(D).includes(this.letterSpacing)?"".concat(this.component.getClassName()," ").concat(this.letterSpacing):this.component.getClassName()},t}(X),le=function(e){function t(t,n){var r=e.call(this,t)||this;return r.margin=n,r}return b(t,e),t.prototype.getClassName=function(){return this.margin&&Object.values(I).includes(this.margin)?"".concat(this.component.getClassName()," ").concat(this.margin):this.component.getClassName()},t}(X),ce=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderWidth=n,r}return b(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}(X),se=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 b(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 q.Bottom:r=" ".concat(e).concat(o,"-border-bottom");break;case q.ExceptBottom:r=" ".concat(e).concat(o,"-border-except-bottom");break;case q.ExceptLeft:r=" ".concat(e).concat(o,"-border-except-left");break;case q.ExceptRight:r=" ".concat(e).concat(o,"-border-except-right");break;case q.ExceptTop:r=" ".concat(e).concat(o,"-border-except-top");break;case q.Left:r=" ".concat(e).concat(o,"-border-left");break;case q.LeftBottom:r=" ".concat(e).concat(o,"-border-left-bottom");break;case q.LeftRight:r=" ".concat(e).concat(o,"-border-left-right");break;case q.LeftTop:r=" ".concat(e).concat(o,"-border-left-top");break;case q.Right:r=" ".concat(e).concat(o,"-border-right");break;case q.RightBottom:r=" ".concat(e).concat(o,"-border-right-bottom");break;case q.RightTop:r=" ".concat(e).concat(o,"-border-right-top");break;case q.Top:r=" ".concat(e).concat(o,"-border-top");break;case q.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(k.Transparent,"-background"):"",r=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(k.Transparent,"-before-background"):"",o=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(k.Transparent,"-after-background"):"",a="".concat(r).concat(o),i=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(k.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(k.Black,"-before-front"):"",c=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(k.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(k.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(k.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(a).concat(i).concat(s).concat(e).concat(t)},t}(X),ue=function(e,t,n,r,o,a,i,l,c,s,u,d,f,h,p,g,m,v,y,b,w,C,S,k,_,x,N){return new se(new ee(new $(new Q(new K(new J(new te(new ne(new le(new ie(new ae(new ce(new oe(new re(new Y(new Z(new G(e),o),n,r),p),g),m),v),N),y),b),w),C),S),k),_),x),t,a,i,l,c,s,u,d,f,h).getClassName()},de=["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"],fe=["id","title","dir","lang","translate","tabIndex","accessKey","contentEditable","spellCheck","draggable","enterKeyHint","inputMode","autoCapitalize","role","slot","htmlFor","hidden","is"],he=["onError","onLoad"],pe=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],ge={div:S(S([],de,!0),fe,!0),input:S(S(S(S([],de,!0),fe,!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([],de,!0),fe,!0),["rows","cols","wrap","name","autoFocus","autoComplete","placeholder","maxLength","minLength","required","readOnly","disabled","wrap","spellcheck","dirname"],!0),template:S(S([],de,!0),fe,!0),abbr:S(S([],de,!0),fe,!0),span:S(S([],de,!0),fe,!0),h1:S(S([],de,!0),fe,!0),h2:S(S([],de,!0),fe,!0),h3:S(S([],de,!0),fe,!0),h4:S(S([],de,!0),fe,!0),h5:S(S([],de,!0),fe,!0),h6:S(S([],de,!0),fe,!0),i:S(S([],de,!0),fe,!0),b:S(S([],de,!0),fe,!0),u:S(S([],de,!0),fe,!0),em:S(S([],de,!0),fe,!0),strong:S(S([],de,!0),fe,!0),blockquote:S(S([],de,!0),fe,!0),cite:S(S([],de,!0),fe,!0),code:S(S([],de,!0),fe,!0),del:S(S([],de,!0),fe,!0),dfn:S(S([],de,!0),fe,!0),ins:S(S([],de,!0),fe,!0),kbd:S(S([],de,!0),fe,!0),mark:S(S([],de,!0),fe,!0),pre:S(S([],de,!0),fe,!0),q:S(S([],de,!0),fe,!0),s:S(S([],de,!0),fe,!0),samp:S(S([],de,!0),fe,!0),small:S(S([],de,!0),fe,!0),summary:S(S([],de,!0),fe,!0),sup:S(S([],de,!0),fe,!0),sub:S(S([],de,!0),fe,!0),time:S(S([],de,!0),fe,!0),var:S(S([],de,!0),fe,!0),wbr:S(S([],de,!0),fe,!0),p:S(S([],de,!0),fe,!0),address:S(S([],de,!0),fe,!0),article:S(S([],de,!0),fe,!0),aside:S(S([],de,!0),fe,!0),details:S(S(S([],de,!0),fe,!0),["onToggle"],!0),nav:S(S([],de,!0),fe,!0),section:S(S([],de,!0),fe,!0),form:S(S(S([],de,!0),fe,!0),["onReset","onSubmit"],!0),dialog:S(S(S([],de,!0),fe,!0),["onCancel","onClose"],!0),img:S(S(S(S([],de,!0),fe,!0),he,!0),["src","alt","width","height","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","title","role"],!0),iframe:S(S(S(S([],de,!0),fe,!0),he,!0),["src","srcDoc","width","height","name","sandbox","allow","allowFullScreen","loading","referrerPolicy","title","role"],!0),object:S(S(S([],de,!0),fe,!0),he,!0),embed:S(S(S([],de,!0),fe,!0),he,!0),link:S(S(S([],de,!0),fe,!0),he,!0),svg:S(S(S([],de,!0),fe,!0),he,!0),audio:S(S(S([],de,!0),fe,!0),pe,!0),video:S(S(S([],de,!0),fe,!0),pe,!0)},me=["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"],ve=function(t){return{getClassName:function(e){var n=ue(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(D).includes(t.letterSpacing)&&(n.letterSpacing=t.letterSpacing),t.opacity&&!Object.values(V).includes(t.opacity)&&(n.opacity=t.opacity),t.padding&&!Object.values(O).includes(t.padding)&&(n.padding=t.padding),t.margin&&!Object.values(I).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),w(w(w({},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){me.includes(o)?n[o]=t[o]:ge[e]&&ge[e].includes(o)&&(r[o]=t[o])})),{view:n,html:r}}}},ye={Display:"display",Rich:"rich"},be=function(t){var n=(t.category==ye.Display?{}:t._base.getProps("div")).html;return e("div",w({ref:t.ref,className:t._base.getClassName(t.className),style:t._base.getStyle(t.style)},n,{children:t.children}))},we={Fluid:"fluid",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},Ce=function(t){var n=t.category,r=C(t,["category"]),o=ve(r);return e(be,{_base:o,className:"v-zone-".concat(n),children:t.children})},Se={Edge:"edge",Window:"window",Area:"area",Self:"self"},ke={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",Center:"center"},_e=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=w(w({},t.style),{zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})}r=void 0;return r=t.category!=Se.Self?w(w({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):w(w({},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})},xe={Default:"default",FullSize:"full-size"},Ne=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:xe.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)}))})},Oe=function(t){var n=ve(t);return e(be,{ref:t.ref,_base:n,className:"v-boundary",children:t.children})},Ie={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"},Be={Default:"default",Circle:"circle"},De={Justify:0,Left:1,Right:2,Center:3},Re=function(t){var n,r,o=t.category,a=t.type,i=t.alignType,l=t.isTextOverflow,s=t.caption,u=C(t,["category","type","alignType","isTextOverflow","caption"]),d=ve(w({display:null==t.category||t.category==Ie.Span?"inline-block":"block"},u)),f=d.getProps("div"),h=f.view,p=f.html;switch(i){case De.Center:r="v-label-center";break;case De.Justify:r="v-label-justify";break;case De.Left:r="v-label";break;case De.Right:r="v-label-right";break;default:r="v-label"}if(a==Be.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==Be.Circle?e(Ne,{children:e(Oe,w({width:"1.6em",height:"1.6em",borderRadius:R.Max},h,{className:r},p,{children:e(_e,{category:Se.Area,type:ke.Center,children:n})}))}):e(Oe,w({},h,{className:t.className?"".concat(t.className," ").concat(r):r},p,{children:n}))};Re.displayName="VLabel";var Le=l(Re),ze={ExtraSmall:"extra-small",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},Ee={Visible:"visiable",Hidden:"hidden"},Te={Only:"only",Up:"up",Down:"down"},Pe=function(t){return t.children?e(Oe,{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}(),display:"contents",children:t.children}):e(Le,{backgroundColor:k.Error,caption:"[BreakpointDisplay] No Children!"})},Fe=function(r){return n(t,{children:[e(Pe,{category:Ee.Hidden,type:Te.Down,breakpoint:r.breakpointType?r.breakpointType:ze.Small,children:r.desktop}),e(Pe,{category:Ee.Hidden,type:Te.Up,breakpoint:r.breakpointType?r.breakpointType:ze.Small,children:r.mobile})]})},je=2147483647,We={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"},Ve={Horizontal:"horizontal",Vertical:"vertical"},Ae=function(r){var o=r.category,a=r.offset,i=void 0===a?0:a,l=r.overlayZIndex,c=void 0===l?je:l,p=r.renderOverlay,g=C(r,["category","offset","overlayZIndex","renderOverlay"]),v="alignment"in r?r.alignment:void 0,y=ve(g),b=y.getProps("div").html,S=s(null),k=s(null),_=u(!1),x=_[0],N=_[1];d((function(){N(!0)}),[]);var O=f((function(){var e=S.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 We.Top:c+=(i-t)/2,s+=-n-o;break;case We.Right:c+=i+o,s+=(l-n)/2;break;case We.Bottom:c+=(i-t)/2,s+=l+o;break;case We.Left:c+=-t-o,s+=(l-n)/2;break;case We.LeftTop:a==Ve.Horizontal?(c+=-t-o,s+=o):a==Ve.Vertical?(c+=o,s+=-n-o):(c+=-t-o,s+=-n-o);break;case We.RightTop:a==Ve.Horizontal?(c+=i+o,s+=o):a==Ve.Vertical?(c+=i-t-o,s+=-n-o):(c+=i+o,s+=-n-o);break;case We.LeftBottom:a==Ve.Horizontal?(c+=-t-o,s+=l-n-o):a==Ve.Vertical?(c+=o,s+=l+o):(c+=-t-o,s+=l+o);break;case We.RightBottom:a==Ve.Horizontal?(c+=i+o,s+=l-n-o):a==Ve.Vertical?(c+=i-t-o,s+=l+o):(c+=i+o,s+=l+o);break;case We.InnerTop:c+=(i-t)/2,s+=o;break;case We.InnerRight:c+=i-t-o,s+=(l-n)/2;break;case We.InnerBottom:c+=(i-t)/2,s+=l-n-o;break;case We.InnerLeft:c+=o,s+=(l-n)/2;break;case We.InnerLeftTop:c+=o,s+=o;break;case We.InnerRightTop:c+=i-t-o,s+=o;break;case We.InnerLeftBottom:c+=o,s+=l-n-o;break;case We.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",w({ref:S,className:y.getClassName("dock"),style:y.getStyle()},b,{children:r.children})),I]})},He={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},Ue={NoWrap:"nowrap",Wrap:"wrap"},Me={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},qe={Start:"flex-start",Center:"center",End:"flex-end",Stretch:"stretch",Baseline:"baseline"},Ge={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Xe=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=C(t,["vClassName","direction","wrap","justifyContent","alignItems","alignContent","gap","overflow"]);!s.cursor&&t.onClick&&(s.cursor=P.Pointer);var u=ve(s),d=u.getProps("div").html,f=l&&Object.values(B).includes(l),h=!l||f?u.getStyle():w(w({},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):"",b=i?" flex-align-content-".concat(i):"",S=f?" ".concat(l):"",k="".concat(p).concat(g).concat(m).concat(v).concat(y).concat(b).concat(S),_=u.getClassName(k);return e("div",w({className:_,style:h},d,{children:t.children}))},Ye={Start:"start",Center:"center",End:"end",Stretch:"stretch",Baseline:"baseline"},Ze=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:w(w({},n),{display:"flex",flexDirection:"column"}),children:t.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=function(n){return e(t,{children:n.children})},ot={Top:"top",Middle:"middle",Bottom:"bottom",Stretch:"stretch",Baseline:"baseline"},at=function(n,r,a,i,l){n.cross;var c=n.itemsShrink,s=C(n,["cross","itemsShrink"]),u=ve(s),d=function(t,n,o){return r?r(t,n,o,c):e(Ze,{alignSelf:o,shrink:c,children:t},"child".concat(n))};return e(Xe,w({vClassName:"v-xbase",alignItems:function(){var e;if(n.cross)switch(n.cross){case ot.Stretch:e=qe.Stretch;break;case ot.Baseline:e=qe.Baseline;break;case ot.Bottom:e=qe.End;break;case ot.Middle:e=qe.Center;break;case ot.Top:e=qe.Start;break;default:e=qe.Center}else e=qe.Center;return e}(),wrap:a?a():Ue.NoWrap,justifyContent:i?i():Me.Start,alignContent:l?l():Ge.Start},s,{children:o.map(u.getChildren(),(function(n,r){var o=n;return o.type?o.type===rt?d(o.props.children,r,Ye.Start):o.type===$e?d(o.props.children,r,Ye.Center):o.type===Ke?d(o.props.children,r,Ye.End):o.type===nt?d(o.props.children,r,Ye.Stretch):o.type===Je?d(o.props.children,r,Ye.Baseline):d(o,r):(console.debug(o),e(t,{children:"Please check X layout children."}))}))}))},it=function(t){return at(t,(function(t,n,r,o){return e(Ze,{grow:1,alignSelf:r,shrink:o,children:t})}))},lt=function(e){return at(e,void 0,void 0,(function(){return Me.SpaceAround}))},ct=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},st=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:0,alignSelf:a,shrink:i,children:t})}))},ut=function(t){return at(t,(function(t,n,r,o){return e(Ze,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},dt=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},ft=function(t){var n=ve(t);return at(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:1,shrink:i,children:t}):e(Ze,{grow:0,shrink:i,children:t})}))},ht=function(t){return at(t,(function(t,n,r,o){return e(Ze,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},pt=function(e){return at(e,void 0,void 0,(function(){return Me.SpaceBetween}))},gt=function(e){return at(e,void 0,void 0,(function(){return Me.Center}))},mt=function(t){return at(t,(function(n,r,o,a){var i=e(Ze,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ze,{basis:t.basises[r],shrink:a,children:n})),i}))},vt=function(t){var n=ve(t);return at(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ze,{basis:t.basis,shrink:l,children:r}):e(Ze,{grow:1,shrink:l,children:r})}))},yt=function(e){return at(e,void 0,void 0,(function(){return Me.SpaceEvenly}))},bt=function(e){return at(e)},wt=function(e){return at(e,void 0,void 0,(function(){return Me.End}))},Ct=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.SpaceAround}))},St=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.SpaceBetween}))},kt=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.End}))},_t=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.SpaceEvenly}))},xt=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.Center}))},Nt=function(e){return at(e,void 0,(function(){return Ue.Wrap}),void 0,(function(){return Ge.Start}))},Ot={Left:"left",Center:"center",Right:"right",Baseline:"baseline",Stretch:"stretch"},It=function(n,r,a,i,l){var c=n.cross,s=n.itemsShrink,u=C(n,["cross","itemsShrink"]),d=ve(u),f=function(t,n,o){return r?r(t,n,o,s):e(Ze,{alignSelf:o,shrink:s,children:t},"child".concat(n))};return e(Xe,w({vClassName:"v-ybase",wrap:a?a():Ue.NoWrap,alignContent:i?i():Ge.Start,alignItems:function(){var e;if(c)switch(c){case Ot.Left:e=qe.Start;break;case Ot.Center:e=qe.Center;break;case Ot.Right:e=qe.End;break;case Ot.Baseline:e=qe.Baseline;break;default:e=qe.Stretch}else e=qe.Stretch;return e}(),direction:He.Column,justifyContent:l?l():Me.Start},u,{children:o.map(d.getChildren(),(function(n,r){var o=n;return o.type?o.type===Qe?f(o.props.children,r,Ye.Start):o.type===$e||o.type===tt?f(o.props.children,r,Ye.Center):o.type===et?f(o.props.children,r,Ye.End):o.type===nt?f(o.props.children,r,Ye.Stretch):o.type===Je?f(o.props.children,r,Ye.Baseline):f(n,r):(console.debug(o),e(t,{children:"Please check Y layout children."}))}))}))},Bt=function(t){return It(t,(function(t,n,r,o){return e(Ze,{grow:1,alignSelf:r,shrink:o,children:t})}))},Dt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.SpaceBetween}))},Rt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.Center}))},Lt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.Start}))},zt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.End}))},Et=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.SpaceAround}))},Tt=function(e){return It(e,void 0,void 0,void 0,(function(){return Me.SpaceEvenly}))},Pt=function(t){return It(t,(function(t,n,r,o){return e(Ze,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},Ft=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:1,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:0,alignSelf:a,shrink:i,children:t})}))},jt=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:1,shrink:i,children:t}):e(Ze,{grow:0,shrink:i,children:t})}))},Wt=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},Vt=function(t){return It(t,(function(t,n,r,o){return e(Ze,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},At=function(t){var n=ve(t);return It(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(Ze,{grow:0,alignSelf:a,shrink:i,children:t}):e(Ze,{grow:1,alignSelf:a,shrink:i,children:t})}))},Ht=function(t){return It(t,(function(n,r,o,a){var i=e(Ze,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(Ze,{basis:t.basises[r],shrink:a,children:n})),i}))},Ut=function(t){var n=ve(t);return It(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(Ze,{basis:t.basis,shrink:l,children:r}):e(Ze,{grow:1,shrink:l,children:r})}))},Mt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.Start}))},qt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.Center}))},Gt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.End}))},Xt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.SpaceAround}),void 0)},Yt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.SpaceBetween}))},Zt=function(e){return It(e,void 0,(function(){return Ue.Wrap}),(function(){return Ge.SpaceEvenly}))},Jt={Top:"top",Right:"right",Bottom:"bottom",Left:"left",Center:"center"},Kt=function(t){t.image,t.imageWidth,t.imageHeight,t.position;var n,r=C(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=ve(w(w({},r),{style:n}));return e(be,{_base:o,className:t.position?"v-background-".concat(t.position):"v-background",children:t.children})},Qt=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},$t={Json:"json",FormData:"formdata"},en=function(t){var n=t.handleSubmitCategory,r=t.handleSubmit,o=t.handleValidateError,a=C(t,["handleSubmitCategory","handleSubmit","handleValidateError"]),i=ve(a),l=i.getProps("form").html;return e("form",w({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===$t.FormData?l:Qt(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}))},tn=function(t){return e("form",w({className:"v-action-form"},t,{children:t.children}))},nn=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,b=t.inputStyle,S=t.inputClassName,_=t.placeholderColor,x=t.overWrite,N=t.renderOptions,O=t.onChange,I=t.inheritClassName,B=t.customAttributes,D=C(t,["ref","type","label","icon","value","valueHook","setStateHook","isValueShow","gap","valueSize","frontColor","valueCategory","valuePadding","inputStyle","inputClassName","placeholderColor","overWrite","renderOptions","onChange","inheritClassName","customAttributes"]),R=ve(D),L=R.getProps("input").html,z=u({value:void 0!==t.value?t.value:""}),E=z[0],P=z[1],F=s(null);return d((function(){"object"==typeof r&&r?r.current=F.current:"function"==typeof r&&r(F.current),t.autoFocus&&F.current&&F.current.focus()}),[r,t.autoFocus]),x&&(v=x(F)),n(be,{_base:R,className:"v-validity v-input ".concat((_||k.Placeholder)+"-placeholder").concat(I?" ".concat(I):""),children:[n(Bt,{display:v?T.None:void 0,children:[n(st,{gap:p,children:[e(Oe,{children:i}),n(Oe,{children:[e("input",w({ref:F},B,{className:(S?"".concat(S," "):"")+"".concat(R.getClassName("v-input-native")),style:b,type:o,value:c||E.value,onChange:function(e){var t;h&&P({value:null===(t=F.current)||void 0===t?void 0:t.value}),O&&O(e),f?f(e.target.value):P({value:e.target.value})}},L)),!!a&&e("label",{htmlFor:t.id?t.id:t.name,children:a})]}),N?N(F):e(Oe,{})]}),!!h&&e(gt,{children:e(Le,{padding:y,isAutoSize:t.isAutoSize,fontSize:g||U.Normal,frontColor:m||k.Black,caption:void 0!==E.value?E.value.toString():l?l.toString():""})})]}),!!v&&v]})},rn={Default:"default",Circle:"circle",Squared:"squared",Custom:"custom"},on=function(n){var r=w({},n);!r.cursor&&n.onClick&&(r.cursor=P.Pointer);var l=ve(r);return e(t,{children:o.map(n.children,(function(e){return function(e){var t=n.category?n.category:rn.Default,r=l.getClassName("v-svg-".concat(t)),o=n.onClick,c=n.onMouseEnter,s=n.onMouseLeave,u={className:r,style:w({},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)}))})};on.displayName="VSvg";var an,ln,cn=l(on);function sn(){return sn=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},sn.apply(null,arguments)}var un,dn=function(e){return r.createElement("svg",sn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),an||(an=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"})),ln||(ln=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 fn(){return fn=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},fn.apply(null,arguments)}var hn,pn=function(e){return r.createElement("svg",fn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),un||(un=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"})))},gn=function(t){var r=t.isChecked,o=C(t,["isChecked"]);return e(nn,w({isAutoSize:t.isAutoSize,customAttributes:{checked:!!r},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(o){return n(bt,{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(cn,{frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?dn:pn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}},o))},mn=function(t){return e(nn,w({type:"color",isDefaultValue:!0},t))},vn=function(t){return e(nn,w({type:"date",isDefaultValue:!0},t))},yn=function(t){return e(nn,w({type:"datetime-local",isDefaultValue:!0},t))},bn=function(t){return e(nn,w({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},wn={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"},Cn={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"},kn={Delay1Second:"animate__delay-1s",Delay2Second:"animate__delay-2s",Delay3Second:"animate__delay-3s",Delay4Second:"animate__delay-4s",Delay5Second:"animate__delay-5s"},_n=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})},xn=function(t){t.animationCategory,t.animationSpeed;var n=C(t,["animationCategory","animationSpeed"]),r=ve(n);return e(be,{_base:r,className:"v-loading",children:e(_n,{category:t.animationCategory?t.animationCategory:wn.Flip,speed:t.animationSpeed?t.animationSpeed:Sn.Slower,repeat:Cn.Infinite,children:t.children})})};function Nn(){return Nn=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},Nn.apply(null,arguments)}var On=function(e){return r.createElement("svg",Nn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),hn||(hn=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"})))},In={Vertical:"Vertical",Horizontal:"Horizontal"},Bn=function(e){return e.name.endsWith(".jpg")||e.name.endsWith(".jpeg")||e.name.endsWith(".png")},Dn=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=C(t,["category","appearance","loader","loaderSize","loaderColor","isPreview","previewImageWidth","textLength","autoUpload","renderLoader","renderPreview"]),v=s(null),y=u({inputFiles:[],isLoading:!1}),b=y[0],S=y[1],k=function(){S((function(e){return w(w({},e),{isLoading:!1})}))};d((function(){return function(){return b.inputFiles.forEach((function(e){e.objectUrl&&URL.revokeObjectURL(e.objectUrl)}))}}),[b.inputFiles]);var _=function(e){e.preventDefault(),e.currentTarget.className="v-file"},x=ve(w({onDrop:function(e){e.preventDefault();var t=Array.from(e.dataTransfer.files),n=t.map((function(e){return{name:e.name,objectUrl:Bn(e)?URL.createObjectURL(e):void 0}}));n.length>0&&(h?(S(w(w({},b),{inputFiles:n,isLoading:!0})),h(t,k),e.currentTarget.className="v-file"):(S(w(w({},b),{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(be,{_base:x,className:"v-file",children:e(nn,w({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:Bn(e)?URL.createObjectURL(e):void 0}}));S(w(w({},b),{inputFiles:r})),h&&(S(w(w({},b),{inputFiles:r,isLoading:!0})),h(n,k))},overWrite:function(t){return l?g?e(Oe,{cursor:P.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:g(b.inputFiles,b.isLoading)}):r==In.Vertical?n(Bt,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},cross:Ot.Center,children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Bt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Bt,{cross:Ot.Center,children:[!!t.objectUrl&&e(Oe,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:U.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))}),!!b.isLoading&&(p?p():e(xn,{animationCategory:wn.Flash,children:e(gt,{children:e(cn,{fontSize:a,frontColor:i,children:e(On,{})})})}))]}):n(it,{gap:"1em",children:[n(it,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Bt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Bt,{cross:Ot.Center,children:[!!t.objectUrl&&e(Oe,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:U.Small,caption:t.name.length>(f||12)?t.name.slice(0,f||12)+"…":t.name})]},"file-".concat(t.name))}))})]}),!!b.isLoading&&(p?p():e(xn,{animationCategory:wn.Flash,children:e(cn,{fontSize:a,frontColor:i,children:e(On,{})})}))]}):e(Oe,{cursor:P.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:o})}}))})},Rn={Default:"default",Circle:"circle",Squared:"squared",FullSize:"full-size",Scale:"scale"},Ln=function(t){var n=t.category,r=C(t,["category"]),o=ve(r),a=o.getProps("img").html,i=n||Rn.Default;return e("img",w({className:o.getClassName("v-image-".concat(i)),style:o.getStyle()},a))};Ln.displayName="VImage";var zn,En,Tn=l(Ln),Pn=function(t){return e(nn,w({display:T.None,type:"hidden"},t))},Fn=function(t){var r=t.fileIcon,o=t.base64Image,a=C(t,["fileIcon","base64Image"]),i=ve(a),l=u({base64Image:o}),c=l[0],s=l[1];return n(be,{_base:i,className:"v-base64file",children:[e(Pn,{name:t.name,value:c.base64Image}),e(nn,w({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(Bt,{gap:"0.2em",onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},children:[r,e(Tn,{fontSize:t.fontSize,category:Rn.Scale,src:"data:image/png;base64,".concat(c.base64Image),alt:"file"})]})}},a))]})},jn=function(t){return e(nn,w({type:"month",isDefaultValue:!0},t))},Wn=function(t){return e(nn,w({type:"number",isDefaultValue:!0},t))},Vn=function(t){return e(nn,w({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))};function An(){return An=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},An.apply(null,arguments)}var Hn,Un=function(e){return r.createElement("svg",An({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"})),En||(En=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 Mn(){return Mn=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},Mn.apply(null,arguments)}var qn,Gn,Xn=function(e){return r.createElement("svg",Mn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Hn||(Hn=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"})))},Yn=function(t){var r=t.isChecked,o=C(t,["isChecked"]);return e(nn,w({type:"radio",customAttributes:{checked:!!r},isDefaultValue:!0},o,{overWrite:function(o){return n(bt,{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(cn,{padding:"0.4em",frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?Un:Xn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}}))},Zn=function(t){var n=t.thumbColor,r=t.thumbBorderColor,o=t.trackColor,a=t.trackHeight,i=t.inputStyle,l=C(t,["thumbColor","thumbBorderColor","trackColor","trackHeight","inputStyle"]),c="".concat(n,"-thumb-background ").concat(r,"-thumb-border ").concat(o,"-track-background"),s=a?w(w({},i),{"--den-range-track-height":a}):i;return e(nn,w({type:"range",inputClassName:c},l,{inputStyle:s}))},Jn=function(t){return e(nn,w({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},Kn=function(t){var r=t.ref;t.caption,t.isFormNoValidate;var o=C(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=ve(w({onClick:function(){a.current.click()}},o)),l=i.getProps("input").html;return n(be,{_base:i,className:"v-submit",children:[n(gt,{cross:ot.Middle,children:[!!t.icon&&e("span",{children:t.icon}),!!t.caption&&e("span",{children:t.caption})]}),e("input",w({formNoValidate:t.isFormNoValidate,ref:a,type:"submit"},l))]})},Qn=function(t){var r=ve(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"})]})},$n=function(t){return e(nn,w({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))};function er(){return er=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},er.apply(null,arguments)}var tr,nr=function(e){return r.createElement("svg",er({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),qn||(qn=r.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),Gn||(Gn=r.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},rr=function(t){var r=t.enableClear,o=C(t,["enableClear"]);return e(nn,r?w({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o,{renderOptions:function(r){return n(it,{gap:"0.2em",children:[t.renderOptions&&t.renderOptions(r),e(cn,{fontSize:U.ExtraSmall,frontColor:k.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(nr,{})})]})}}):w({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o))},or=function(t){return e(nn,w({type:"time",isDefaultValue:!0},t))},ar=function(t){return e(nn,w({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},ir=function(t){return e(nn,w({type:"week",isDefaultValue:!0},t))},lr=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 cr(){return cr=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},cr.apply(null,arguments)}var sr=function(e){return r.createElement("svg",cr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),tr||(tr=r.createElement("circle",{cx:128,cy:128,r:100,fill:"currentColor"})))},ur=function(t){var r=t.isOn,o=t.icon,a=t.gap,i=t.isDisabled,l=t.onSwitch,c=C(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(cn,{style:{margin:f.isOn?"0 0.6em 0 0":"0 0 0 0.6em"},frontColor:k.White,fontSize:U.Normal,children:o}):e(Oe,{width:"1em",height:"1em"}),g=t.isDisabled?void 0:function(){t.isDisabled||(l&&l(!f.isOn),h({isOn:!f.isOn}))},m=ve(w({onClick:g},c));return e(be,{_base:m,className:i?"v-switch-disabled":"v-switch",children:n(pt,{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:R.ExtraLarge,backgroundColor:f.isOn?t.frontColor?t.frontColor:k.Success:t.backgroundColor?t.backgroundColor:k.Placeholder,gap:a||"0.6em",children:[f.isOn?e(cn,{category:rn.Circle,frontColor:k.White,children:e(sr,{})}):p,f.isOn?p:e(cn,{category:rn.Circle,frontColor:k.White,children:e(sr,{})})]})})},dr=function(t){var n=t.name;t.items;var r=t.value,o=t.isMultiple;t.fontFamily;var a=C(t,["name","items","value","isMultiple","fontFamily"]),i=ve(a),l=i.getProps("select").html;return e(be,{_base:i,className:"v-select",children:e("select",w({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)}))}))})},fr=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,b=t.items,S=t.dockCategory,_=t.dockAlignment,x=t.menuBackgroundColor,N=t.menuZIndex,I=t.menuGap;t.onClick;var D=t.isSelectOnly,R=t.overWriteDropdownMenu,z=t.overWriteDropdownItem,T=t.handleChange,P=t.readOnly,F=C(t,["ref","value","name","icon","emptyIcon","downIcon","upIcon","enableClear","items","dockCategory","dockAlignment","menuBackgroundColor","menuZIndex","menuGap","onClick","isSelectOnly","overWriteDropdownMenu","overWriteDropdownItem","handleChange","readOnly"]),j=ve(F),W=u({isSelectionShow:!1,selectValue:c||"",selectCaption:c?b.filter((function(e){return e.value==c}))[0].caption:"",items:b}),V=W[0],A=W[1],H=s(null),M=p(),q=s(null),G=s(null);d((function(){if(V.isSelectionShow){var e=function(e){var t=e.target;q.current&&!q.current.contains(t)&&G.current&&!G.current.contains(t)&&A((function(e){return w(w({},e),{isSelectionShow:!1,items:b})}))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[V.isSelectionShow,b]);d((function(){"object"==typeof l&&l?l.current=H.current:"function"==typeof l&&l(H.current),t.autoFocus&&H.current&&H.current.focus()}),[l,t.autoFocus]);var X=N||je;if(P)return n(ut,{className:j.getClassName("v-dropdown"),style:j.getStyle(t.style),children:[e(Le,{caption:(null===(r=V.selectCaption)||void 0===r?void 0:r.toString())||"",fontSize:t.fontSize,frontColor:t.frontColor}),e(Pn,{name:f,valueHook:null===(o=V.selectValue)||void 0===o?void 0:o.toString()}),e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:m})]});var Y=q.current?"".concat(q.current.offsetWidth,"px"):void 0;return e(Ae,{width:"fit-content",overlayZIndex:V.isSelectionShow?X:-2147483648,category:S||We.RightBottom,alignment:_||Ve.Vertical,renderOverlay:function(){return e(Oe,{ref:G,minWidth:Y,className:"v-dropdown-overlay",children:e(Oe,{visibility:V.isSelectionShow?E.Visible:E.Hidden,borderRadius:t.borderRadius,role:"listbox",id:M,children:R?R(V.items):e(Bt,{gap:I,padding:t.padding,backgroundColor:x||k.White,borderRadius:t.borderRadius,borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:L.Solid,children:0==V.items.length?e(gt,{children:e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:g})}):V.items.map((function(r){return z?e(Oe,{borderRadius:t.borderRadius,role:"option","aria-selected":r.value===V.selectValue,children:z(r)},r.value):n(bt,{padding:O.ExtraSmall,gap:B.Small,borderRadius:t.borderRadius,className:"item",role:"option","aria-selected":r.value===V.selectValue,onClick:function(){A(w(w({},V),{isSelectionShow:!1,selectIcon:r.icon,selectCaption:r.caption,selectValue:r.value,items:b})),T&&T(r.value)},children:[r.icon?e(cn,{fontSize:U.ExtraSmall,children:r.icon}):void 0,e(Le,{caption:r.caption})]},r.value)}))})})})},children:e(Oe,{ref:q,children:n(ut,w({className:j.getClassName("v-dropdown"),style:j.getStyle(t.style)},F,{role:"combobox","aria-expanded":V.isSelectionShow,"aria-haspopup":"listbox","aria-controls":M,onClick:function(){A(w(w({},V),{isSelectionShow:!V.isSelectionShow}))},children:[n(Oe,{children:[e(rr,{ref:H,id:t.id,style:{padding:0},fontSize:t.fontSize,frontColor:t.frontColor,icon:e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:V.selectIcon?V.selectIcon:h}),valueHook:null===(a=V.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(w(w({},V),{isSelectionShow:!0,selectCaption:t,items:b.filter((function(e){return e.caption.toLowerCase().indexOf(t.toLowerCase())>-1}))}))}}),e(Pn,{name:f,valueHook:null===(i=V.selectValue)||void 0===i?void 0:i.toString()})]}),e(cn,{fontSize:t.iconSize?t.iconSize:U.Small,children:V.isSelectionShow?v:m})]}))})})},hr={NewWindow:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},pr=function(t){var n=t.category,r=t.to,o=C(t,["category","to"]),a=ve(o),i=a.getProps("a").html;return e(be,{_base:a,className:"v-hyperlink",children:e("a",w({href:r,target:n},i,{children:t.children}))})},gr={P:"p",Address:"address",Article:"article",Aside:"aside",Details:"details",Section:"section"},mr={Justify:0,Left:1,Right:2,Center:3},vr=function(t){var n=t.category;t.alignType;var r,o,a=t.renderContent,i=C(t,["category","alignType","renderContent"]),l=ve(i);switch(t.alignType){case mr.Center:o="v-text-center";break;case mr.Justify:o="v-text-justify";break;case mr.Left:o="v-text";break;case mr.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(be,{_base:l,className:o,children:r})},yr=function(t){var r=t.ref;t.icon;var o=t.valueHook,a=t.setStateHook,i=t.placeholderColor,l=C(t,["ref","icon","valueHook","setStateHook","placeholderColor"]),c=ve(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(be,{category:ye.Display,_base:c,className:"v-validity v-textarea ".concat((i||k.Placeholder)+"-placeholder"),children:n(ft,{cross:ot.Top,gap:"0.6em",children:[t.icon,e(Oe,{children:e("textarea",w({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})}}))})]})})},br={Default:"default",Fixed:"fixed"},wr=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-ellipse-".concat(t.category?t.category:br.Default),children:t.children})},Cr={Vertical:"vertical",Horizontal:"horizontal"},Sr=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-line-".concat(t.category)})},kr="default",_r=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-rectangle-".concat(t.category?t.category:kr)})},xr={Default:"default",Max:"max"},Nr=function(n){var r=ve(n);return 0===o.toArray(n.children).length?e(Le,{backgroundColor:k.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:xr.Default)),style:w(w({},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)}))})},Or=function(t){t.sources;var n=C(t,["sources"]),r=ve(n),o=r.getProps("audio").html;return e("audio",w({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))}))}))},Ir=function(t){t.sources;var n=C(t,["sources"]),r=ve(n),o=r.getProps("video").html;return e("video",w({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))}))}))},Br=function(t){var n=ve(t),r=n.getProps("header").html;return e("header",w({className:n.getClassName("v-header"),style:n.getStyle()},r,{children:t.children}))},Dr=function(t){var n=ve(t),r=n.getProps("main").html;return e("main",w({className:n.getClassName("v-main"),style:n.getStyle()},r,{children:t.children}))},Rr=function(t){var n=ve(t),r=n.getProps("footer").html;return e("footer",w({className:n.getClassName("v-footer"),style:n.getStyle()},r,{children:t.children}))},Lr=function(t){var n=ve(t),r=n.getProps("aside").html;return e("aside",w({className:n.getClassName("v-aside"),style:n.getStyle()},r,{children:t.children}))},zr=function(t){var n=ve(t),r=n.getProps("nav").html;return e("nav",w({className:n.getClassName("v-nav"),style:n.getStyle()},r,{children:t.children}))},Er=function(t){var n=ve(t),r=n.getProps("hr").html;return e("hr",w({className:n.getClassName("v-hr"),style:n.getStyle()},r))},Tr=function(t){var n=ve(t),r=n.getProps("section").html;return e("section",w({className:n.getClassName("v-section"),style:n.getStyle()},r,{children:t.children}))},Pr=function(t){var n=ve(w({width:"100vw",height:"100vh",backgroundColor:k.Dark75},t));return e(_e,{zIndex:t.zIndex?t.zIndex:je,category:Se.Window,type:ke.Center,children:e(Ne,{children:e(be,{_base:n,className:"v-mask",children:e(_e,{category:Se.Area,type:ke.Center,children:t.children})})})})},Fr=function(t){var n,r=t.image,o=t.backingBoard,a=t.style,i=C(t,["image","backingBoard","style"]),l=ve(i);return o&&(n=w(w({},a),{background:"linear-gradient(".concat(o.degree,", ").concat(o.startColor,", ").concat(o.endColor,")")})),e(be,w({_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})}))},jr="--den-",Wr={Global:"global",Area:"area"},Vr=function(t){var n=t.category,r=t.area,o=t.variables,a=C(t,["category","area","variables"]),i=ve(w({id:r},a));return d((function(){var e;n==Wr.Area?r&&(e=document.getElementById(r)):e=document.documentElement,e&&(Object.keys(o.colors).forEach((function(t){e.style.setProperty("".concat(jr,"color-").concat(t),o.colors[t])})),Object.keys(o.fontSizes).forEach((function(t){e.style.setProperty("".concat(jr).concat(t),o.fontSizes[t])})),Object.keys(o.fontWeights).forEach((function(t){e.style.setProperty("".concat(jr).concat(t),o.fontWeights[t])})))}),[]),n==Wr.Area?e(be,{_base:i,className:"v-theme",children:t.children}):e(Le,{backgroundColor:k.Error,caption:"[VTheme] No Area!"})},Ar={Hover:"hover",Click:"click"},Hr=function(t){var n,r=t.category,o=t.dockCategory,a=t.dockAlignment,i=t.renderOverlay,l=C(t,["category","dockCategory","dockAlignment","renderOverlay"]),c=ve(l),s=u({isShow:!1}),d=s[0],f=s[1],h=p();return n=r||Ar.Hover,e(be,{_base:c,className:"v-tooltip",children:e(Ae,{category:o,alignment:a,renderOverlay:function(){return d.isShow?e(Oe,{role:"tooltip",id:h,children:i()}):e(Oe,{className:"v-tooltip-overlay-fragment","aria-hidden":!0})},children:e(Oe,{"aria-describedby":d.isShow?h:void 0,onClick:function(){n==Ar.Click&&f({isShow:!d.isShow})},onMouseEnter:function(){n==Ar.Hover&&f({isShow:!0})},onMouseLeave:function(){n==Ar.Hover&&f({isShow:!1})},onFocus:function(){n==Ar.Hover&&f({isShow:!0})},onBlur:function(){n==Ar.Hover&&f({isShow:!1})},children:t.children})})})},Ur=function(t){function n(e){var n=t.call(this,e)||this;return n.state={hasError:!1,error:null,errorInfo:null},n}return b(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:k.Error,frontColor:k.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),Mr=function(t){return e(Ne,{children:!!t.badge&&e(_e,{category:Se.Area,bottom:"0",right:"0",children:"string"==typeof t.badge||t.badge instanceof String?e(Tn,{category:Rn.Circle,fontSize:U.Small,src:t.badge,alt:"null",borderStyle:"solid",borderWidth:"1px",borderColor:k.Light}):e(cn,{category:rn.Circle,frontColor:k.Secondary,backgroundColor:k.White,fontSize:U.Small,children:t.badge})})})},qr=function(t){var n=ve(t),r=n.getProps("template").html;return e("template",w({className:n.getClassName("v-template"),style:n.getStyle()},r,{children:t.children}))},Gr=function(t){return e("div",{id:t.id})},Xr=function(t){return t.isDebug?e("div",{className:"debug",children:t.children}):e("div",{className:"no-debug",children:t.children})},Yr={Uninstalled:"uninstalled",Outdated:"outdated",Ready:"ready"},Zr=function(t){var n=u({}),r=n[0],o=n[1];if(d((function(){var e;r.status||(e="chrome-extension://".concat(t.extensionId,"/meta.json"),fetch(e).then((function(e){return e.ok?e.json():Promise.reject()})).then((function(e){var n=!t.version||e.version>=t.version;o({status:n?Yr.Ready:Yr.Outdated,meta:e})})).catch((function(){return o({status:Yr.Uninstalled})})))}),[]),r.status){if(t.overWrite)return t.overWrite(r.status,r.meta);var a=void 0;return r.status===Yr.Ready?e(Oe,{className:"v-chrome-extension-validator-fragment"}):(r.status===Yr.Uninstalled?a=t.uninstalledMessage:r.status===Yr.Outdated&&(a=t.outdatedMessage),e(pr,{category:hr.NewWindow,to:t.downloadUrl?t.downloadUrl:"mailto:support@fewbox.com",children:a}))}return e(Oe,{className:"v-chrome-extension-validator-fragment"})},Jr={Normal:"normal",Italic:"italic"},Kr=function(t){return d((function(){var e=document.createElement("link");e.rel="preconnect",e.href="https://fonts.googleapis.com";var n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin="crossorigin",document.head.appendChild(e),document.head.appendChild(n),t.typefaces.forEach((function(e,t){var n,r,o=e.family,a=null===(n=e.fonts)||void 0===n?void 0:n.filter((function(e){return e.type==Jr.Italic})),i=a&&a.length>0?"ital,wght":"wght",l=document.createElement("link");l.rel="stylesheet";var c=[];e.fonts&&e.fonts.length>1?(null===(r=e.fonts)||void 0===r||r.forEach((function(e,t){"ital,wght"==i?e.type==Jr.Normal?c.push("0,".concat(H(e.weight))):e.type==Jr.Italic&&c.push("1,".concat(H(e.weight))):c.push(H(e.weight).toString())})),l.href="https://fonts.googleapis.com/css2?family=".concat(o,":").concat(i,"@").concat(c.join(";"),"&display=swap")):l.href="https://fonts.googleapis.com/css2?family=".concat(o,"&display=swap"),document.head.appendChild(l)}))}),[]),e(Oe,{className:"google-font-fragment"})},Qr={Popup:"popup",Redirect:"redirect"},$r={Implicit:"implicit",AuthorizationCode:"authorization-code"},eo="fewbox-google-grant",to=function(t){return d((function(){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",t.category==$r.Implicit?e.onload=function(){var e=google.accounts.oauth2.initTokenClient({client_id:t.clientId,scope:t.scope,callback:function(e){var n={accessToken:e.access_token,expiresIn:e.expires_in,hd:e.hd,prompt:e.prompt,tokenType:e.token_type,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestAccessToken();else{var n=document.getElementById(eo);null==n||n.addEventListener("click",(function(){e.requestAccessToken()}))}t.enableGoogle()}:e.onload=function(){var e=google.accounts.oauth2.initCodeClient({client_id:t.clientId,scope:t.scope,ux_mode:t.uxMode,callback:function(e){var n={code:e.code,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestCode();else{var n=document.getElementById(eo);null==n||n.addEventListener("click",(function(){e.requestCode()}))}t.enableGoogle()},e.onerror=function(e){console.error(e),t.disableGoogle()},document.body.appendChild(e)}),[t.clientId,t.scope,t.uxMode,t.category,t.isAutoRequest]),t.isAutoRequest?e(Oe,{className:"google-grant-fragment"}):e(Gr,{id:eo,children:t.children})},no=function(t){return e("div",{className:"figma-signin",onClick:function(){window.location.href="https://www.figma.com/oauth?client_id=".concat(t.clientId,"&redirect_uri=").concat(t.redirectUrl,"&scope=").concat(t.scope,"&state=").concat("fewbox","&response_type=").concat(t.responseType)},children:t.children})},ro={Prompt:"prompt",Popup:"popup",Redirect:"redirect"},oo="https://accounts.google.com/gsi/client",ao=function(n){var r=n.clientId,o=n.uxMode,a=n.redirectUrl,i=n.gsiButtonConfiguration,l=n.callback,c=n.switchAnotherIdentityProvider,u=n.enableGoogle,f=n.disableGoogle,h=n.googleAuthButtonId,p=h||"fewbox-google-auth",g=s(l),m=s(c),v=s(u),y=s(f);return g.current=l,m.current=c,v.current=u,y.current=f,d((function(){var e;if("undefined"!=typeof document){var t=function(){if(google.accounts.id.initialize({client_id:r,ux_mode:o!=ro.Prompt?o:void 0,use_fedcm_for_prompt:o==ro.Prompt,callback:function(e){g.current(e.credential)},login_uri:a}),o==ro.Prompt)google.accounts.id.prompt((function(e){if((e.isNotDisplayed()||e.isSkippedMoment())&&m.current){var t=e.isNotDisplayed()?e.getNotDisplayedReason():e.getSkippedReason();m.current(t)}})),v.current();else{var e=document.getElementById(p);e?(google.accounts.id.renderButton(e,i||{type:"icon",size:"large",theme:"outline",shape:"circle",logo_alignment:"center"}),v.current()):(console.error("The element '".concat(p,"' not found!")),y.current())}};if("undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id))return t(),function(){google.accounts.id.cancel()};var n=document.querySelector('script[src="'.concat(oo,'"]'));if(n)return n.addEventListener("load",t,{once:!0}),function(){var e;n.removeEventListener("load",t),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()};var l=document.createElement("script");return l.src=oo,l.onload=function(){t()},l.onerror=function(e){console.error(e),y.current()},document.body.appendChild(l),function(){var e;l.remove(),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()}}}),[r,o,a,i,p]),o==ro.Prompt?e(t,{}):e(Gr,{id:p})},io=function(t){return e("div",{className:"wecom-signin",onClick:function(){window.location.href="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=".concat(t.appId,"&agentid=").concat(t.agentId,"&redirect_uri=").concat(t.redirectUrl,"&state=").concat("fewbox")},children:t.children})},lo=function(e){var t={},n=v(e,{header:!0});return t.role=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],t.mobile=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone"],t.name=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],t.email=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],t.exp=n.exp,t.iss=n.iss,t.aud=n.aud,t.expire=t.exp?new Date(1e3*t.exp):new Date(-864e13),t.tenant=n["http://schemas.fewbox.com/jwt/identity/claims/tenant"],t.id=n["http://schemas.fewbox.com/jwt/identity/claims/id"],t.api=n["http://schemas.fewbox.com/jwt/identity/claims/api"],t.issuer=n["http://schemas.fewbox.com/jwt/identity/claims/issuer"],t.audience=n["http://schemas.fewbox.com/jwt/identity/claims/audience"],t.avatar=n["http://schemas.fewbox.com/jwt/identity/claims/avatar"],t};export{wn as AnimationCategory,kn as AnimationDelay,Cn as AnimationRepeat,Sn as AnimationSpeed,Jt as BackgroundPositionType,ve as Base,R as BorderRadiusType,L as BorderStyleType,z as BorderWidthType,Ee as BreakpointCategory,Pe as BreakpointDisplay,Te as BreakpointType,k as ColorType,P as CursorType,Xr as Debug,q as DirectionType,T as DisplayType,Ae as Dock,Ve as DockAlignment,We as DockCategory,br as EllipseCategory,Yr as ExtensionStatus,no as FigmaSignin,In as FileCategory,Xe as Flex,Ge as FlexAlignContentType,qe as FlexAlignItemsType,He as FlexDirectionType,Ze as FlexItem,Ye as FlexItemAlignSelfType,Me as FlexJustifyContentType,Ue as FlexWrapType,x as FontFamilyType,U as FontSizeType,_ as FontWeightType,B as GapType,Jr as GoogleFontType,to as GoogleGrant,$r as GoogleGrantCategory,Qr as GoogleGrantUXMode,ao as GoogleSignin,ro as GoogleSigninUXMode,$t as HandleSubmitCategory,hr as HyperlinkCategory,Rn as ImageCategory,De as LabelAlignType,Ie as LabelCategory,Be as LabelType,D as LetterSpacingType,Cr as LineCategory,N as LineHeightType,I as MarginType,V as OpacityType,F as OverflowType,j as OverflowXType,W as OverflowYType,O as PaddingType,_e as Position,Ne as PositionArea,xe as PositionAreaCategory,Se as PositionCategory,ke as PositionType,M as PseudoType,Fe as Responsive,ye as RootCategory,Je as SBaseline,Ke as SBottom,tt as SCenter,Qe as SLeft,$e as SMiddle,et as SRight,nt as SStretch,rt as STop,ze as ScreenSizeType,xr as ShadowCategory,rn as SvgCategory,mr as TextAlignType,gr as TextCategory,Wr as ThemeCategory,Ar as TooltipCategory,tn as VActionForm,_n as VAnimation,Lr as VAside,Or as VAudio,Kt as VBackground,Mr as VBadge,Fn as VBase64File,Oe as VBoundary,gn as VCheckBox,Zr as VChromeExtensionValidator,mn as VColor,vn as VDate,yn as VDatetimeLocal,fr as VDropdown,wr as VEllipse,bn as VEmail,Ur as VErrorBoundary,Dn as VFile,Rr as VFooter,en as VForm,Fr as VFrame,Kr as VGoogleFont,lr as VGroup,Er as VHR,Br as VHeader,Pn as VHidden,pr as VHyperlink,Tn as VImage,Le as VLabel,Sr as VLine,xn as VLoading,Dr as VMain,Pr as VMask,jn as VMonth,Gr as VMount,zr as VNav,Wn as VNumber,Vn as VPassword,Yn as VRadio,Zn as VRange,_r as VRectangle,Jn as VSearch,Tr as VSection,dr as VSelect,Nr as VShadow,Kn as VSubmit,Qn as VSubmitWrapper,cn as VSvg,ur as VSwitch,$n as VTel,qr as VTemplate,vr as VText,yr as VTextArea,rr as VTextBox,Vr as VTheme,or as VTime,Hr as VTooltip,ar as VUrl,Ir as VVideo,ir as VWeek,Ce as VZone,A as ViewSizeType,E as VisibilityType,io as WeComSignin,it as X,lt as XAround,ct as XAutoBoth,st as XAutoCenter,ut as XAutoLeft,dt as XAutoLefts,ft as XAutoRight,ht as XAutoRights,pt as XBetween,gt as XCenter,ot as XCrossType,mt as XCustom,vt as XCustomBoth,yt as XEvenly,bt as XLeft,wt as XRight,Ct as XWrapAround,St as XWrapBetween,kt as XWrapBottom,_t as XWrapEvenly,xt as XWrapMiddle,Nt as XWrapTop,Bt as Y,Et as YAround,At as YAutoBoth,jt as YAutoBottom,Vt as YAutoBottoms,Ft as YAutoCenter,Pt as YAutoTop,Wt as YAutoTops,Dt as YBetween,zt as YBottom,Ot as YCrossType,Ht as YCustom,Ut as YCustomBoth,Tt as YEvenly,Rt as YMiddle,Lt as YTop,Xt as YWrapAround,Yt as YWrapBetween,qt as YWrapCenter,Zt as YWrapEvenly,Mt as YWrapLeft,Gt as YWrapRight,we as ZoneCategory,Qt as convertFormDataToJson,ue as getGeneratedClassName,H as getWeightValue,lo as parseJWT};
3
3
  //# sourceMappingURL=index.js.map