@buildocsdev/sdk 1.1.22 → 1.1.24

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.
@@ -1,11 +1,11 @@
1
- import {ba as ba$1,R,F,Q}from'./chunk-AR42AC7J.js';import {a,c}from'./chunk-5TBO732O.js';import*as Z from'react';import Z__default,{createContext,memo,useState,forwardRef,useEffect,Component,useCallback,isValidElement,cloneElement,Children,useMemo,useLayoutEffect,useRef,useContext,Fragment as Fragment$1,useId}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {withTranslation}from'react-i18next';import {keyframes,jsx as jsx$1,css}from'@emotion/react';import jt,{createPortal}from'react-dom';import'@emotion/cache';var Di=a((hd,Gi)=>{Gi.exports=function r(e,n){if(e===n)return true;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return false;var i,t,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return false;for(t=i;t--!==0;)if(!r(e[t],n[t]))return false;return true}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return false;for(t=i;t--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[t]))return false;for(t=i;t--!==0;){var a=o[t];if(!r(e[a],n[a]))return false}return true}return e!==e&&n!==n};});var ee={cursor:"move",opacity:1},on=class r{static isObject(e){return e===Object(e)}static checkIsVisible(e){let n=e.getBoundingClientRect(),i=Math.max(document.documentElement.clientHeight,window.innerHeight);return !(n.bottom<0||n.top-i>=0)}static guid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=Math.random()*16|0;return (e==="x"?n:n&3|8).toString(16)})}static getClientHeight(){let e=document,n=e.documentElement,i=e.getElementsByTagName("body")[0];return window.innerHeight||n.clientHeight||i.clientHeight}static getScrollHeight(){let e=document.body;return Math.max(e.scrollHeight,r.getClientHeight())}static getViewportData(){let e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),n=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return {width:e,height:n}}static isMobileDeviceScreen(){return r.getViewportData().width<780}static isFloatingState(){return (window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<990}static shallowEqual(e,n){let i=Object.keys(e),t=Object.keys(n);if(i.length!==t.length)return false;for(let o of i)if(e[o]!==n[o])return false;return true}};var w={CONTAINER:"formcontainer",ROW:"formrow",TAB:"formtab",TABLE:"formtable",TABLECELL:"formtablecell",TABBOXPANEL:"formtabpanel",ROWSEGMENT:"formrowsegment",WIDGET:"formwidget"},Ti={CANCEL:"Cancel",CUSTOM:"Custom",NONE:"None",PRINT:"Print",SAVE:"Save"};var an={en:"USD","en-us":"USD","en-ca":"CAD","en-au":"AUD","en-nz":"NZD","en-gb":"GBP","en-ie":"EUR","en-za":"ZAR",de:"EUR","de-de":"EUR","de-at":"EUR","de-ch":"CHF",fr:"EUR","fr-fr":"EUR","fr-ch":"CHF","fr-ca":"CAD",es:"EUR","es-es":"EUR","es-mx":"MXN","es-ar":"ARS",it:"EUR","it-it":"EUR","it-ch":"CHF",nl:"EUR","nl-nl":"EUR","nl-be":"EUR",pt:"EUR","pt-pt":"EUR","pt-br":"BRL",pl:"PLN",cs:"CZK",sk:"EUR",hu:"HUF",et:"EUR","et-ee":"EUR",ro:"RON",bg:"BGN",hr:"EUR",sl:"EUR",lv:"EUR",lt:"EUR",ru:"RUB",uk:"UAH",tr:"TRY",ja:"JPY",zh:"CNY","zh-cn":"CNY","zh-tw":"TWD",ko:"KRW",ar:"SAR","ar-ae":"AED",he:"ILS",hi:"INR",sv:"SEK",no:"NOK",da:"DKK",fi:"EUR",nb:"NOK",nn:"NOK"},sn=r=>{var n;let e=r.toLowerCase();return (n=an[e])!=null?n:an[e.substring(0,2)]},nd=()=>{let r={};for(let[e,n]of Object.entries(an))r[e]=`${e} (${n})`;return r};var Ri=createContext({dragDropManager:void 0});function ce(r){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(r)}function Si(r,e){if(ce(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e);if(ce(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function nt(r){var e=Si(r,"string");return ce(e)=="symbol"?e:e+""}function me(r,e,n){return (e=nt(e))in r?Object.defineProperty(r,e,{value:n,enumerable:true,configurable:true,writable:true}):r[e]=n,r}function wi(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i);}return n}function T(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wi(Object(n),true).forEach(function(i){me(r,i,n[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i));});}return r}function ie(r,e,...n){if(Qa()&&e===void 0)throw new Error("invariant requires an error message argument");if(!r){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else {let t=0;i=new Error(e.replace(/%s/g,function(){return n[t++]})),i.name="Invariant Violation";}throw i.framesToPop=1,i}}function Qa(){return typeof process!="undefined"&&true}var Oi=c(Di(),1);var oe=typeof window!="undefined"?useLayoutEffect:useEffect;function Pi(r,e,n){let[i,t]=useState(()=>e(r)),o=useCallback(()=>{let a=e(r);(0, Oi.default)(i,a)||(t(a),n&&n());},[i,r,n]);return oe(o),[i,o]}function Bi(r,e,n){let[i,t]=Pi(r,e,n);return oe(function(){let a=r.getHandlerId();if(a!=null)return r.subscribeToStateChange(t,{handlerIds:[a]})},[r,t]),i}function it(r,e,n){return Bi(e,r||(()=>({})),()=>n.reconnect())}function rt(r,e){let n=[...e||[]];return e==null&&typeof r!="function"&&n.push(r),useMemo(()=>typeof r=="function"?r():r,n)}function Fi(r){return useMemo(()=>r.hooks.dragSource(),[r])}function Ni(r){return useMemo(()=>r.hooks.dragPreview(),[r])}var ln=false,un=false,ot=class{receiveHandlerId(e){this.sourceId=e;}getHandlerId(){return this.sourceId}canDrag(){ie(!ln,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ln=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ln=false;}}isDragging(){if(!this.sourceId)return false;ie(!un,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return un=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{un=false;}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor();}};var cn=false,at=class{receiveHandlerId(e){this.targetId=e;}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return false;ie(!cn,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return cn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{cn=false;}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):false}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor();}};function Mi(r,e,n){let i=n.getRegistry(),t=i.addTarget(r,e);return [t,()=>i.removeTarget(t)]}function Wi(r,e,n){let i=n.getRegistry(),t=i.addSource(r,e);return [t,()=>i.removeSource(t)]}function Oe(r,e,n,i){let t=void 0;if(t!==void 0)return !!t;if(r===e)return true;if(typeof r!="object"||!r||typeof e!="object"||!e)return false;let o=Object.keys(r),a=Object.keys(e);if(o.length!==a.length)return false;let l=Object.prototype.hasOwnProperty.bind(e);for(let s=0;s<o.length;s++){let u=o[s];if(!l(u))return false;let c=r[u],d=e[u];if(t=void 0,t===false||t===void 0&&c!==d)return false}return true}function Pe(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function is(r){if(typeof r.type=="string")return;let e=r.type.displayName||r.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function rs(r){return (e=null,n=null)=>{if(!isValidElement(e)){let o=e;return r(o,n),o}let i=e;return is(i),os(i,n?o=>r(o,n):r)}}function st(r){let e={};return Object.keys(r).forEach(n=>{let i=r[n];if(n.endsWith("Ref"))e[n]=r[n];else {let t=rs(i);e[n]=()=>t;}}),e}function Hi(r,e){typeof r=="function"?r(e):r.current=e;}function os(r,e){let n=r.ref;return ie(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?cloneElement(r,{ref:i=>{Hi(n,i),Hi(e,i);}}):cloneElement(r,{ref:e})}var lt=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect());}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e;}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e;}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e);}reconnectDragSource(){let e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=false){let n=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions));}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return !Oe(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return !Oe(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0);}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null);}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null;}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null;}constructor(e){this.hooks=st({dragSource:(n,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,Pe(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource();},dragPreview:(n,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,Pe(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview();}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e;}};var ut=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions));}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect());}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e;}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return !Oe(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0);}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null;}constructor(e){this.hooks=st({dropTarget:(n,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,Pe(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect();}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e;}};function se(){let{dragDropManager:r}=useContext(Ri);return ie(r!=null,"Expected drag drop context"),r}function Li(r,e){let n=se(),i=useMemo(()=>new lt(n.getBackend()),[n]);return oe(()=>(i.dragSourceOptions=r||null,i.reconnect(),()=>i.disconnectDragSource()),[i,r]),oe(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function Zi(){let r=se();return useMemo(()=>new ot(r),[r])}var ct=class{beginDrag(){let e=this.spec,n=this.monitor,i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(n):i={},i!=null?i:null}canDrag(){let e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):true}isDragging(e,n){let i=this.spec,t=this.monitor,{isDragging:o}=i;return o?o(t):n===e.getSourceId()}endDrag(){let e=this.spec,n=this.monitor,i=this.connector,{end:t}=e;t&&t(n.getItem(),n),i.reconnect();}constructor(e,n,i){this.spec=e,this.monitor=n,this.connector=i;}};function Yi(r,e,n){let i=useMemo(()=>new ct(r,e,n),[e,n]);return useEffect(()=>{i.spec=r;},[r]),i}function ki(r){return useMemo(()=>{let e=r.type;return ie(e!=null,"spec.type must be defined"),e},[r])}function Ji(r,e,n){let i=se(),t=Yi(r,e,n),o=ki(r);oe(function(){if(o!=null){let[l,s]=Wi(o,t,i);return e.receiveHandlerId(l),n.receiveHandlerId(l),s}},[i,e,n,t,o]);}function k(r,e){let n=rt(r,e);ie(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");let i=Zi(),t=Li(n.options,n.previewOptions);return Ji(n,i,t),[it(n.collect,i,t),Fi(t),Ni(t)]}function zi(r){return useMemo(()=>r.hooks.dropTarget(),[r])}function ji(r){let e=se(),n=useMemo(()=>new ut(e.getBackend()),[e]);return oe(()=>(n.dropTargetOptions=r||null,n.reconnect(),()=>n.disconnectDropTarget()),[r]),n}function _i(){let r=se();return useMemo(()=>new at(r),[r])}function Ui(r){let{accept:e}=r;return useMemo(()=>(ie(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}var dt=class{canDrop(){let e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):true}hover(){let e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n);}drop(){let e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n;}};function Qi(r,e){let n=useMemo(()=>new dt(r,e),[e]);return useEffect(()=>{n.spec=r;},[r]),n}function $i(r,e,n){let i=se(),t=Qi(r,e),o=Ui(r);oe(function(){let[l,s]=Mi(o,t,i);return e.receiveHandlerId(l),n.receiveHandlerId(l),s},[i,e,t,n,o.map(a=>a.toString()).join("|")]);}function L(r,e){let n=rt(r,e),i=_i(),t=ji(n.options);return $i(n,i,t),[it(n.collect,i,t),zi(t)]}var lr=c(ba$1());function dn(r){return e=>!!e.type&&e.type.tabsRole===r}var de=dn("Tab"),be=dn("TabList"),he=dn("TabPanel");function Is(r){return de(r)||be(r)||he(r)}function pt(r,e){return Children.map(r,n=>n===null?null:Is(n)?e(n):n.props&&n.props.children&&typeof n.props.children=="object"?cloneElement(n,Object.assign({},n.props,{children:pt(n.props.children,e)})):n)}function Ae(r,e){return Children.forEach(r,n=>{n!==null&&(de(n)||he(n)?e(n):n.props&&n.props.children&&typeof n.props.children=="object"&&(be(n)&&e(n),Ae(n.props.children,e)));})}function ft(r,e,n){let i,t=0,o=0,a=false,l=[],s=r[e];return Ae(s,u=>{be(u)&&(u.props&&u.props.children&&typeof u.props.children=="object"&&Ae(u.props.children,c=>l.push(c)),a&&(i=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),a=true),de(u)?((!a||l.indexOf(u)===-1)&&(i=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),t++):he(u)&&o++;}),!i&&t!==o&&(i=new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${n}\`. Received ${t} 'Tab' and ${o} 'TabPanel'.`)),i}function qi(r,e,n,i,t){let o=r[e],a=t||e,l=null;return o&&typeof o!="function"?l=new Error(`Invalid ${i} \`${a}\` of type \`${typeof o}\` supplied to \`${n}\`, expected \`function\`.`):r.selectedIndex!=null&&o==null&&(l=new Error(`The ${i} \`${a}\` is marked as required in \`${n}\`, but its value is \`undefined\` or \`null\`.
1
+ import {ba as ba$1,R,F,Q}from'./chunk-AR42AC7J.js';import {a,c}from'./chunk-5TBO732O.js';import*as L from'react';import L__default,{createContext,memo,useState,forwardRef,useEffect,Component,useCallback,isValidElement,cloneElement,Children,useMemo,useLayoutEffect,useRef,useContext,Fragment as Fragment$1,useId}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {withTranslation}from'react-i18next';import {keyframes,jsx as jsx$1,css}from'@emotion/react';import jt,{createPortal}from'react-dom';import'@emotion/cache';var Di=a((hd,Gi)=>{Gi.exports=function r(e,n){if(e===n)return true;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return false;var i,t,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return false;for(t=i;t--!==0;)if(!r(e[t],n[t]))return false;return true}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return false;for(t=i;t--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[t]))return false;for(t=i;t--!==0;){var a=o[t];if(!r(e[a],n[a]))return false}return true}return e!==e&&n!==n};});var ee={cursor:"move",opacity:1},on=class r{static isObject(e){return e===Object(e)}static checkIsVisible(e){let n=e.getBoundingClientRect(),i=Math.max(document.documentElement.clientHeight,window.innerHeight);return !(n.bottom<0||n.top-i>=0)}static guid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=Math.random()*16|0;return (e==="x"?n:n&3|8).toString(16)})}static getClientHeight(){let e=document,n=e.documentElement,i=e.getElementsByTagName("body")[0];return window.innerHeight||n.clientHeight||i.clientHeight}static getScrollHeight(){let e=document.body;return Math.max(e.scrollHeight,r.getClientHeight())}static getViewportData(){let e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),n=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return {width:e,height:n}}static isMobileDeviceScreen(){return r.getViewportData().width<780}static isFloatingState(){return (window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<990}static shallowEqual(e,n){let i=Object.keys(e),t=Object.keys(n);if(i.length!==t.length)return false;for(let o of i)if(e[o]!==n[o])return false;return true}};var w={CONTAINER:"formcontainer",ROW:"formrow",TAB:"formtab",TABLE:"formtable",TABLECELL:"formtablecell",TABBOXPANEL:"formtabpanel",ROWSEGMENT:"formrowsegment",WIDGET:"formwidget"},Ti={CANCEL:"Cancel",CUSTOM:"Custom",NONE:"None",PRINT:"Print",SAVE:"Save"};var an={en:"USD","en-us":"USD","en-ca":"CAD","en-au":"AUD","en-nz":"NZD","en-gb":"GBP","en-ie":"EUR","en-za":"ZAR",de:"EUR","de-de":"EUR","de-at":"EUR","de-ch":"CHF",fr:"EUR","fr-fr":"EUR","fr-ch":"CHF","fr-ca":"CAD",es:"EUR","es-es":"EUR","es-mx":"MXN","es-ar":"ARS",it:"EUR","it-it":"EUR","it-ch":"CHF",nl:"EUR","nl-nl":"EUR","nl-be":"EUR",pt:"EUR","pt-pt":"EUR","pt-br":"BRL",pl:"PLN",cs:"CZK",sk:"EUR",hu:"HUF",et:"EUR","et-ee":"EUR",ro:"RON",bg:"BGN",hr:"EUR",sl:"EUR",lv:"EUR",lt:"EUR",ru:"RUB",uk:"UAH",tr:"TRY",ja:"JPY",zh:"CNY","zh-cn":"CNY","zh-tw":"TWD",ko:"KRW",ar:"SAR","ar-ae":"AED",he:"ILS",hi:"INR",sv:"SEK",no:"NOK",da:"DKK",fi:"EUR",nb:"NOK",nn:"NOK"},sn=r=>{var n;let e=r.toLowerCase();return (n=an[e])!=null?n:an[e.substring(0,2)]},nd=()=>{let r={};for(let[e,n]of Object.entries(an))r[e]=`${e} (${n})`;return r};var Ri=createContext({dragDropManager:void 0});function ce(r){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(r)}function Si(r,e){if(ce(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e);if(ce(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function nt(r){var e=Si(r,"string");return ce(e)=="symbol"?e:e+""}function me(r,e,n){return (e=nt(e))in r?Object.defineProperty(r,e,{value:n,enumerable:true,configurable:true,writable:true}):r[e]=n,r}function wi(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i);}return n}function T(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wi(Object(n),true).forEach(function(i){me(r,i,n[i]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i));});}return r}function ie(r,e,...n){if(Qa()&&e===void 0)throw new Error("invariant requires an error message argument");if(!r){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else {let t=0;i=new Error(e.replace(/%s/g,function(){return n[t++]})),i.name="Invariant Violation";}throw i.framesToPop=1,i}}function Qa(){return typeof process!="undefined"&&true}var Oi=c(Di(),1);var oe=typeof window!="undefined"?useLayoutEffect:useEffect;function Pi(r,e,n){let[i,t]=useState(()=>e(r)),o=useCallback(()=>{let a=e(r);(0, Oi.default)(i,a)||(t(a),n&&n());},[i,r,n]);return oe(o),[i,o]}function Bi(r,e,n){let[i,t]=Pi(r,e,n);return oe(function(){let a=r.getHandlerId();if(a!=null)return r.subscribeToStateChange(t,{handlerIds:[a]})},[r,t]),i}function it(r,e,n){return Bi(e,r||(()=>({})),()=>n.reconnect())}function rt(r,e){let n=[...e||[]];return e==null&&typeof r!="function"&&n.push(r),useMemo(()=>typeof r=="function"?r():r,n)}function Fi(r){return useMemo(()=>r.hooks.dragSource(),[r])}function Ni(r){return useMemo(()=>r.hooks.dragPreview(),[r])}var ln=false,un=false,ot=class{receiveHandlerId(e){this.sourceId=e;}getHandlerId(){return this.sourceId}canDrag(){ie(!ln,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ln=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ln=false;}}isDragging(){if(!this.sourceId)return false;ie(!un,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return un=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{un=false;}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor();}};var cn=false,at=class{receiveHandlerId(e){this.targetId=e;}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return false;ie(!cn,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return cn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{cn=false;}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):false}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor();}};function Mi(r,e,n){let i=n.getRegistry(),t=i.addTarget(r,e);return [t,()=>i.removeTarget(t)]}function Wi(r,e,n){let i=n.getRegistry(),t=i.addSource(r,e);return [t,()=>i.removeSource(t)]}function Oe(r,e,n,i){let t=void 0;if(t!==void 0)return !!t;if(r===e)return true;if(typeof r!="object"||!r||typeof e!="object"||!e)return false;let o=Object.keys(r),a=Object.keys(e);if(o.length!==a.length)return false;let l=Object.prototype.hasOwnProperty.bind(e);for(let s=0;s<o.length;s++){let u=o[s];if(!l(u))return false;let c=r[u],d=e[u];if(t=void 0,t===false||t===void 0&&c!==d)return false}return true}function Pe(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function is(r){if(typeof r.type=="string")return;let e=r.type.displayName||r.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function rs(r){return (e=null,n=null)=>{if(!isValidElement(e)){let o=e;return r(o,n),o}let i=e;return is(i),os(i,n?o=>r(o,n):r)}}function st(r){let e={};return Object.keys(r).forEach(n=>{let i=r[n];if(n.endsWith("Ref"))e[n]=r[n];else {let t=rs(i);e[n]=()=>t;}}),e}function Hi(r,e){typeof r=="function"?r(e):r.current=e;}function os(r,e){let n=r.ref;return ie(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?cloneElement(r,{ref:i=>{Hi(n,i),Hi(e,i);}}):cloneElement(r,{ref:e})}var lt=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect());}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e;}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e;}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e);}reconnectDragSource(){let e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=false){let n=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions));}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return !Oe(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return !Oe(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0);}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null);}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null;}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null;}constructor(e){this.hooks=st({dragSource:(n,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,Pe(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource();},dragPreview:(n,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,Pe(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview();}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e;}};var ut=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions));}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect());}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e;}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return !Oe(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0);}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null;}constructor(e){this.hooks=st({dropTarget:(n,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,Pe(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect();}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e;}};function se(){let{dragDropManager:r}=useContext(Ri);return ie(r!=null,"Expected drag drop context"),r}function Li(r,e){let n=se(),i=useMemo(()=>new lt(n.getBackend()),[n]);return oe(()=>(i.dragSourceOptions=r||null,i.reconnect(),()=>i.disconnectDragSource()),[i,r]),oe(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function Zi(){let r=se();return useMemo(()=>new ot(r),[r])}var ct=class{beginDrag(){let e=this.spec,n=this.monitor,i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(n):i={},i!=null?i:null}canDrag(){let e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):true}isDragging(e,n){let i=this.spec,t=this.monitor,{isDragging:o}=i;return o?o(t):n===e.getSourceId()}endDrag(){let e=this.spec,n=this.monitor,i=this.connector,{end:t}=e;t&&t(n.getItem(),n),i.reconnect();}constructor(e,n,i){this.spec=e,this.monitor=n,this.connector=i;}};function Yi(r,e,n){let i=useMemo(()=>new ct(r,e,n),[e,n]);return useEffect(()=>{i.spec=r;},[r]),i}function ki(r){return useMemo(()=>{let e=r.type;return ie(e!=null,"spec.type must be defined"),e},[r])}function Ji(r,e,n){let i=se(),t=Yi(r,e,n),o=ki(r);oe(function(){if(o!=null){let[l,s]=Wi(o,t,i);return e.receiveHandlerId(l),n.receiveHandlerId(l),s}},[i,e,n,t,o]);}function J(r,e){let n=rt(r,e);ie(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");let i=Zi(),t=Li(n.options,n.previewOptions);return Ji(n,i,t),[it(n.collect,i,t),Fi(t),Ni(t)]}function zi(r){return useMemo(()=>r.hooks.dropTarget(),[r])}function ji(r){let e=se(),n=useMemo(()=>new ut(e.getBackend()),[e]);return oe(()=>(n.dropTargetOptions=r||null,n.reconnect(),()=>n.disconnectDropTarget()),[r]),n}function _i(){let r=se();return useMemo(()=>new at(r),[r])}function Ui(r){let{accept:e}=r;return useMemo(()=>(ie(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}var dt=class{canDrop(){let e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):true}hover(){let e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n);}drop(){let e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n;}};function Qi(r,e){let n=useMemo(()=>new dt(r,e),[e]);return useEffect(()=>{n.spec=r;},[r]),n}function $i(r,e,n){let i=se(),t=Qi(r,e),o=Ui(r);oe(function(){let[l,s]=Mi(o,t,i);return e.receiveHandlerId(l),n.receiveHandlerId(l),s},[i,e,t,n,o.map(a=>a.toString()).join("|")]);}function H(r,e){let n=rt(r,e),i=_i(),t=ji(n.options);return $i(n,i,t),[it(n.collect,i,t),zi(t)]}var lr=c(ba$1());function dn(r){return e=>!!e.type&&e.type.tabsRole===r}var de=dn("Tab"),be=dn("TabList"),he=dn("TabPanel");function Is(r){return de(r)||be(r)||he(r)}function pt(r,e){return Children.map(r,n=>n===null?null:Is(n)?e(n):n.props&&n.props.children&&typeof n.props.children=="object"?cloneElement(n,Object.assign({},n.props,{children:pt(n.props.children,e)})):n)}function Ae(r,e){return Children.forEach(r,n=>{n!==null&&(de(n)||he(n)?e(n):n.props&&n.props.children&&typeof n.props.children=="object"&&(be(n)&&e(n),Ae(n.props.children,e)));})}function ft(r,e,n){let i,t=0,o=0,a=false,l=[],s=r[e];return Ae(s,u=>{be(u)&&(u.props&&u.props.children&&typeof u.props.children=="object"&&Ae(u.props.children,c=>l.push(c)),a&&(i=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),a=true),de(u)?((!a||l.indexOf(u)===-1)&&(i=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),t++):he(u)&&o++;}),!i&&t!==o&&(i=new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${n}\`. Received ${t} 'Tab' and ${o} 'TabPanel'.`)),i}function qi(r,e,n,i,t){let o=r[e],a=t||e,l=null;return o&&typeof o!="function"?l=new Error(`Invalid ${i} \`${a}\` of type \`${typeof o}\` supplied to \`${n}\`, expected \`function\`.`):r.selectedIndex!=null&&o==null&&(l=new Error(`The ${i} \`${a}\` is marked as required in \`${n}\`, but its value is \`undefined\` or \`null\`.
2
2
  \`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.
3
3
  If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)),l}function er(r,e,n,i,t){let o=r[e],a=t||e,l=null;if(o!=null&&typeof o!="number")l=new Error(`Invalid ${i} \`${a}\` of type \`${typeof o}\` supplied to \`${n}\`, expected \`number\`.`);else if(r.defaultIndex!=null&&o!=null)return new Error(`The ${i} \`${a}\` cannot be used together with \`defaultIndex\` in \`${n}\`.
4
- Either remove \`${a}\` to let \`${n}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);return l}var rr=c(ba$1());function tr(r){var e,n,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(e=0;e<t;e++)r[e]&&(n=tr(r[e]))&&(i&&(i+=" "),i+=n);}else for(n in r)r[n]&&(i&&(i+=" "),i+=n);return i}function Cs(){for(var r,e,n=0,i="",t=arguments.length;n<t;n++)(r=arguments[n])&&(e=tr(r))&&(i&&(i+=" "),i+=e);return i}var fe=Cs;function gt(r){let e=0;return Ae(r,n=>{de(n)&&e++;}),e}var ys=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function xs(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}function or(r){return r&&"getAttribute"in r}function ir(r){return or(r)&&r.getAttribute("data-rttab")}function ve(r){return or(r)&&r.getAttribute("aria-disabled")==="true"}var mt;function Es(r){let e=r||(typeof window!="undefined"?window:void 0);try{mt=!!(typeof e!="undefined"&&e.document&&e.document.activeElement);}catch(n){mt=false;}}var Ts={className:"react-tabs",focus:false},Rs={children:ft},Ss=r=>{(0, rr.checkPropTypes)(Rs,r,"prop","UncontrolledTabs");let e=useRef([]),n=useRef([]),i=useRef();function t(p,y){if(p<0||p>=u())return;let{onSelect:x,selectedIndex:v}=r;x(p,v,y);}function o(p){let y=u();for(let x=p+1;x<y;x++)if(!ve(c(x)))return x;for(let x=0;x<p;x++)if(!ve(c(x)))return x;return p}function a(p){let y=p;for(;y--;)if(!ve(c(y)))return y;for(y=u();y-- >p;)if(!ve(c(y)))return y;return p}function l(){let p=u();for(let y=0;y<p;y++)if(!ve(c(y)))return y;return null}function s(){let p=u();for(;p--;)if(!ve(c(p)))return p;return null}function u(){let{children:p}=r;return gt(p)}function c(p){return e.current[`tabs-${p}`]}function d(){let p=0,{children:y,disabledTabClassName:x,focus:v,forceRenderTabPanel:h,selectedIndex:A,selectedTabClassName:R,selectedTabPanelClassName:O,environment:V}=r;n.current=n.current||[];let W=n.current.length-u(),j=useId();for(;W++<0;)n.current.push(`${j}${n.current.length}`);return pt(y,J=>{let X=J;if(be(J)){let G=0,M=false;mt==null&&Es(V);let N=V||(typeof window!="undefined"?window:void 0);mt&&N&&(M=Z__default.Children.toArray(J.props.children).filter(de).some(($,Q)=>N.document.activeElement===c(Q))),X=cloneElement(J,{children:pt(J.props.children,$=>{let Q=`tabs-${G}`,ne=A===G,Y={tabRef:D=>{e.current[Q]=D;},id:n.current[G],selected:ne,focus:ne&&(v||M)};return R&&(Y.selectedClassName=R),x&&(Y.disabledClassName=x),G++,cloneElement($,Y)})});}else if(he(J)){let G={id:n.current[p],selected:A===p};h&&(G.forceRender=h),O&&(G.selectedClassName=O),p++,X=cloneElement(J,G);}return X})}function g(p){let{direction:y,disableUpDownKeys:x,disableLeftRightKeys:v}=r;if(I(p.target)){let{selectedIndex:h}=r,A=false,R=false;(p.code==="Space"||p.keyCode===32||p.code==="Enter"||p.keyCode===13)&&(A=true,R=false,f(p)),!v&&(p.keyCode===37||p.code==="ArrowLeft")||!x&&(p.keyCode===38||p.code==="ArrowUp")?(y==="rtl"?h=o(h):h=a(h),A=true,R=true):!v&&(p.keyCode===39||p.code==="ArrowRight")||!x&&(p.keyCode===40||p.code==="ArrowDown")?(y==="rtl"?h=a(h):h=o(h),A=true,R=true):p.keyCode===35||p.code==="End"?(h=s(),A=true,R=true):(p.keyCode===36||p.code==="Home")&&(h=l(),A=true,R=true),A&&p.preventDefault(),R&&t(h,p);}}function f(p){let y=p.target;do if(I(y)){if(ve(y))return;let x=[].slice.call(y.parentNode.children).filter(ir).indexOf(y);t(x,p);return}while((y=y.parentNode)!=null)}function I(p){if(!ir(p))return false;let y=p.parentElement;do{if(y===i.current)return true;if(y.getAttribute("data-rttabs"))break;y=y.parentElement;}while(y);return false}let b=Object.assign({},Ts,r),{className:m,domRef:C}=b,E=xs(b,ys);return Z__default.createElement("div",Object.assign({},E,{className:fe(m),onClick:f,onKeyDown:g,ref:p=>{i.current=p,C&&C(p);},"data-rttabs":true}),d())},ar=Ss;var ws=["children","defaultFocus","defaultIndex","focusTabOnClick","onSelect"];function Gs(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var Os=0,bt=1,Ps={children:ft,onSelect:qi,selectedIndex:er},Bs={defaultFocus:false,focusTabOnClick:true,forceRenderTabPanel:false,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:false,disableLeftRightKeys:false},Vs=r=>r.selectedIndex===null?bt:Os,ur=r=>{(0, lr.checkPropTypes)(Ps,r,"prop","Tabs");let e=Object.assign({},Bs,r),{children:n,defaultFocus:i,defaultIndex:t,focusTabOnClick:o,onSelect:a}=e,l=Gs(e,ws),[s,u]=useState(i),[c]=useState(Vs(l)),[d,g]=useState(c===bt?t||0:null);if(useEffect(()=>{u(false);},[]),c===bt){let b=gt(n);useEffect(()=>{if(d!=null){let m=Math.max(0,b-1);g(Math.min(d,m));}},[b]);}let f=(b,m,C)=>{typeof a=="function"&&a(b,m,C)===false||(o&&u(true),c===bt&&g(b));},I=Object.assign({},r,l);return I.focus=s,I.onSelect=f,d!=null&&(I.selectedIndex=d),delete I.defaultFocus,delete I.defaultIndex,delete I.focusTabOnClick,Z__default.createElement(ar,I,n)};ur.tabsRole="Tabs";var mn=ur;var Ns=["children","className"];function Ms(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var Xs={className:"react-tabs__tab-list"},cr=r=>{let e=Object.assign({},Xs,r),{children:n,className:i}=e,t=Ms(e,Ns);return Z__default.createElement("ul",Object.assign({},t,{className:fe(i),role:"tablist"}),n)};cr.tabsRole="TabList";var bn=cr;var Hs=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"];function Ls(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var hn="react-tabs__tab",Js={className:hn,disabledClassName:`${hn}--disabled`,focus:false,id:null,selected:false,selectedClassName:`${hn}--selected`},dr=r=>{let e=useRef(),n=Object.assign({},Js,r),{children:i,className:t,disabled:o,disabledClassName:a,focus:l,id:s,selected:u,selectedClassName:c,tabIndex:d,tabRef:g}=n,f=Ls(n,Hs);return useEffect(()=>{u&&l&&e.current.focus();},[u,l]),Z__default.createElement("li",Object.assign({},f,{className:fe(t,{[c]:u,[a]:o}),ref:I=>{e.current=I,g&&g(I);},role:"tab",id:`tab${s}`,"aria-selected":u?"true":"false","aria-disabled":o?"true":"false","aria-controls":`panel${s}`,tabIndex:d||(u?"0":null),"data-rttab":true}),i)};dr.tabsRole="Tab";var vn=dr;var zs=["children","className","forceRender","id","selected","selectedClassName"];function js(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var pr="react-tabs__tab-panel",Us={className:pr,forceRender:false,selectedClassName:`${pr}--selected`},fr=r=>{let e=Object.assign({},Us,r),{children:n,className:i,forceRender:t,id:o,selected:a,selectedClassName:l}=e,s=js(e,zs);return Z__default.createElement("div",Object.assign({},s,{className:fe(i,{[l]:a}),role:"tabpanel",id:`panel${o}`,"aria-labelledby":`tab${o}`}),t||a?n:null)};fr.tabsRole="TabPanel";var In=fr;function Cn(r,{insertAt:e}={}){if(!r||typeof document=="undefined")return;let n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r));}Cn(`.react-tabs{-webkit-tap-highlight-color:transparent}.react-tabs__tab-list{border-bottom:1px solid #aaa;margin:0 0 10px;padding:0}.react-tabs__tab{display:inline-block;border:1px solid transparent;border-bottom:none;bottom:-1px;position:relative;list-style:none;padding:6px 12px;cursor:pointer}.react-tabs__tab--selected{background:#fff;border-color:#aaa;color:#000;border-radius:5px 5px 0 0}.react-tabs__tab--disabled{color:GrayText;cursor:default}.react-tabs__tab:focus{outline:none}.react-tabs__tab:focus:after{content:"";position:absolute;height:5px;left:-4px;right:-4px;bottom:-5px;background:#fff}.react-tabs__tab-panel{display:none}.react-tabs__tab-panel--selected{display:block}
5
- `);var ht={strictType:"_TabBox",widgetType:w.TAB,objectInspector:{defaultProps:{title:"",name:"",tabcount:"1",tabcaption:"Title",tabsetup:{item_title:"Tab Title",item_name:null,item_visible:true,item_default_color:"#000",item_active_color:"#000",item_default_background_color:"#FFF",item_active_background_color:"#FFF",item_fontsize:"15px",item_fontweight:"bold"},tabitemsetup:{item_title:"Tab Title",item_name:null,item_visible:true},style:{},visible:true}}},It=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,getSelectedWidgetId:l,getActiveTabIndex:s,findRowItem:u,moveRowItem:c,saveFormState:d,addRowSegmentItem:g,findPanelItem:f,findSegmentItem:I,findTableCellItem:b,findWidgetItem:m,moveWidgetItem:C,setActiveTabIndex:E,onPointerUp:p,showMessage:y,getEditMode:x,eventDispatcher:v,getFormData:h,children:A}){let R=m(i,t,o),O=R.index,[,V]=k(()=>({type:ht.widgetType,item:{id:o,originalIndex:O,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:It,type:ht.widgetType,stricttype:ht.strictType},collect:D=>({isDragging:D.isDragging()}),end:({},D)=>{D.didDrop();}}),[o,O,c]),[,W]=useState(false),[,j]=useState(false),[{isOver:J,isOverCurrent:X},G]=L(()=>({accept:[w.ROW,w.TAB,w.TABLE],drop(D,B){let _=B.didDrop();_||(c(D,e,n,o,O,D.tabId===e),W(true),j(_));},collect:D=>({isOver:D.isOver(),isOverCurrent:D.isOver({shallow:true})})}),[W,j]),M="form-tab-widget";X&&(M=`${M} separatorBorderHighlight`),o===l()&&(M=`${M} activeContainerWidget`),M=`${M} verticalTabsContainer`;let N=s(e,o),$=(D,B,_,z)=>{B||(D.target.style.background=z,D.target.style.color=_);},Q=(D,B,_,z)=>{B||(D.target.style.background=z,D.target.style.color=_);},ne=({children:D,...B})=>{var z;let _=(z=R.item._children[B.tabIndex])==null?void 0:z.id;return jsx(vn,{onPointerUp:te=>{te.stopPropagation(),_&&E(e,o,B.tabIndex);},onMouseOver:te=>$(te,Number(B.tabIndex)===Number(N),B.item_active_color,B.item_active_background_color),onMouseOut:te=>Q(te,Number(B.tabIndex)===Number(N),B.item_default_color,B.item_default_background_color),style:{borderRadius:"5px 5px 0 0",marginRight:"1px",color:Number(B.tabIndex)===Number(N)?B.item_active_color:B.item_default_color,background:Number(B.tabIndex)===Number(N)?B.item_active_background_color:B.item_default_background_color,fontSize:B.item_fontsize,fontWeight:B.item_fontweight},selected:B.selected,children:D})};ne.tabsRole="Tab";let Y=0;return Z__default.createElement("div",{ref:D=>V(G(D)),className:M,onPointerUp:D=>{D.stopPropagation(),p(D,ht.widgetType,e,n,i,t,o,It);}},jsxs(mn,{selectedIndex:N,onSelect:D=>E(e,o,D),children:[jsx(bn,{children:R.item._children.map(({properties:D},B)=>jsx(ne,{...R.item.properties.tabsetup,...D,tabIndex:B.toString(),children:D.item_title},"tabheaderbutton_"+e+"_"+B))}),R.item._children.map(({_children:D})=>jsx(In,{children:D.map(({tabId:B,panelId:_,id:z,type:te,component:ue,properties:xe})=>Z__default.createElement(ue,{key:"tabpanel_"+z+"_"+_,id:z,tabId:B,panelId:_,properties:xe,className:te,onPointerUp:(Ke,qe,et,tn,tt,nn,ja)=>{Ke.stopPropagation(),p(Ke,qe,et,tn,tt,nn,ja);},getSelectedWidgetId:l,getActiveTabIndex:s,findRowItem:u,moveRowItem:c,saveFormState:d,addRowSegmentItem:g,findPanelItem:f,findSegmentItem:I,findTableCellItem:b,findWidgetItem:m,moveWidgetItem:C,setActiveTabIndex:E,showMessage:y,getEditMode:x,eventDispatcher:v,getFormData:h,children:A},null))},"tabpanel_"+o+Y++))]}))});It.displayName="_TabBox";var Be=It;var yn={strictType:"_Table",widgetType:w.TABLE,objectInspector:{defaultProps:{backendpagination:false,hideaddbutton:false,alloweditrow:false,columns:"1",colactions:false,colgrouping:false,colordering:true,colresizing:false,datasource:[],enableuploadfiles:false,height:"500px",name:"",folders:false,foldercaption:"",pagination:true,pagesize:100,readonly:false,ignorereadonly:false,rowactions:"{}",rowactiontype:"none",rowclickas:"none",rowdensity:"compact",rownumber:false,rowselection:true,rowvirtualization:false,search:true,searchtype:"startsWith",selectall:false,stickyheader:true,tablemode:"datatable",title:"",toolbarInternalActions:true,topToolbar:true,uploadtemplcode:"",visible:true,style:{fontSize:"13px",fontWeight:"bold"}}}},hr=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,moveRowItem:l,onPointerUp:s,getSelectedWidgetId:u,findWidgetItem:c,findRowItem:d,moveWidgetItem:g,findTableCellItem:f}){let I=d(e,n,o),b=I.index,[,m]=k(()=>({type:yn.widgetType,item:{id:o,originalIndex:b,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ve,type:yn.widgetType,stricttype:yn.strictType},collect:h=>({isDragging:h.isDragging()}),end:(h,A)=>{A.didDrop();}}),[o,b,g]),[,C]=useState(false),[,E]=useState(false),[{isOver:p,isOverCurrent:y},x]=L(()=>({accept:[w.ROW,w.TAB,w.TABLE],drop(h,A){let R=A.didDrop();R||(l(h,e,n,o,b,h.tabId===e),C(true),E(R));},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true})})}),[C,E]),v="form-widget form-table-widget";return (y||p)&&(v="form-table-widget widget-highlight"),y&&(v=`${v} separatorBorderHighlight`),o===u()&&(v=`${v} activeContainerWidget`),Z__default.createElement("div",{ref:h=>m(x(h)),className:v,style:I.item.properties.style,onPointerUp:h=>{h.stopPropagation(),s(h,w.TABLE,e,n,o,null,null);}},Z__default.createElement("div",{style:{display:"flex",flex:1}},I.item._children.map(({rowId:h,id:A,component:R,properties:O})=>Z__default.createElement(R,{key:"tablecell-"+e+"-"+A,tabId:e,panelId:n,rowId:h,cellId:A,properties:O,onPointerUp:(V,W,j,J,X,G,M,N)=>{V.stopPropagation(),s(V,W,j,J,X,G,M,N);},getSelectedWidgetId:u,findWidgetItem:c,findTableCellItem:f,moveWidgetItem:g},null))),Z__default.createElement("div",{style:{height:"60px",border:"1px solid #aaa",backgroundColor:"#FFF",width:"auto"}},null))});hr.displayName="_Table";var Ve=hr;var Fe={strictType:"_Rowcontainer",widgetType:w.ROW,objectInspector:{defaultProps:{title:"",columns:"1",style:{}}}},Cr=memo(function({tabId:e,panelId:n,id:i,getSelectedWidgetId:t,findRowItem:o,moveRowItem:a,saveFormState:l,addRowSegmentItem:s,findSegmentItem:u,findWidgetItem:c,moveWidgetItem:d,onPointerUp:g,showMessage:f,getEditMode:I,eventDispatcher:b,getFormData:m}){let C=I(),E=o(e,n,i),p=E.index,[,y]=k(()=>({type:Fe.widgetType,item:{tabId:e,panelId:n,id:i,originalIndex:p,component:yt,type:Fe.widgetType,stricttype:Fe.strictType},collect:V=>({isDragging:V.isDragging()}),end:(V,W)=>{W.didDrop()&&l();}}),[i,p,a]),[,x]=useState(false),[,v]=useState(false),[{isOver:h,isOverCurrent:A},R]=L(()=>({accept:[Fe.widgetType,w.TAB,w.TABLE],drop(V,W){let j=W.didDrop();j||(a(V,e,n,i,p,V.tabId===e),x(true),v(j));},collect:V=>({isOver:V.isOver(),isOverCurrent:V.isOver({shallow:true}),activeItem:V.getItem()})}),[x,v]),O="row-container grid-image";return (A||h)&&(O="row-container grid-transparent"),A&&(O=O+" separatorBorderHighlight"),i===t()&&(O=O+" activeContainerWidget"),Z__default.createElement("div",{ref:V=>C?y(R(V)):{},className:O,onPointerUp:V=>{V.stopPropagation(),g(V,Fe.widgetType,e,n,i,null,null);}},E.item._children.map(({rowId:V,id:W,component:j,properties:J})=>Z__default.createElement(j,{key:"rowcontainer_"+W,tabId:e,panelId:n,rowId:V,segmentId:W,properties:J,onPointerUp:(X,G,M,N,$,Q,ne,Y)=>{X.stopPropagation(),g(X,G,M,N,$,Q,ne,Y);},showMessage:f,addRowSegmentItem:s,getSelectedWidgetId:t,findSegmentItem:u,findWidgetItem:c,moveWidgetItem:d,getEditMode:I,eventDispatcher:b,getFormData:m},null)))});Cr.displayName="_Rowcontainer";var yt=Cr;var tl={strictType:"_Rowsegment",widgetType:w.ROWSEGMENT,objectInspector:{defaultProps:{title:"",columns:"1",style:{}}}},Ar=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,properties:o,onPointerUp:a,showMessage:l,addRowSegmentItem:s,getSelectedWidgetId:u,findSegmentItem:c,findWidgetItem:d,moveWidgetItem:g,getEditMode:f,eventDispatcher:I,getFormData:b}){let m=c(e,n,i,t),[,C]=useState(false),[,E]=useState(false),[{isOver:p,isOverCurrent:y},x]=L(()=>({accept:w.WIDGET,drop(h,A){let R=A.didDrop();if(!R){if(m.item._children.length>0){l("Failed to add a widget to row segment. The row segment has a widget already.");return}s(e,n,i,t,h),C(true),E(R);}},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true}),activeItem:h.getItem()})}),[C,E]),v=["rowSegment"];return (y||p)&&(v.push("highlightItem"),m.item._children.length>0&&v.push("highlightItemBorder")),t===u()&&v.push("activeContainerWidget"),Z__default.createElement("div",{ref:x,className:v.join(" "),style:o.style,onPointerUp:h=>{h.stopPropagation(),a(h,tl.widgetType,e,n,i,t,null);}},m.item._children.map(({id:h,component:A,properties:R})=>Z__default.createElement(A,{key:"rowsegment_"+h,tabId:e,panelId:n,rowId:i,segmentId:t,id:h,properties:R,onPointerUp:O=>{O.stopPropagation(),a(O,w.WIDGET,e,n,i,t,h,A);},getSelectedWidgetId:u,findWidgetItem:d,moveWidgetItem:g,getEditMode:f,eventDispatcher:I,getFormData:b},null)))});Ar.displayName="_Rowsegment";var Er=Ar;var Sr=memo(function({addRowItem:e,addTabItem:n,children:i}){let[,t]=useState(false),[,o]=useState(false),[{isOverCurrent:a},l]=L(()=>({accept:[w.ROW,w.TAB,w.TABLE],drop(u,c){let d=c.didDrop();d||(u.component===Be?n(u,null,null):e(u),t(true),o(d));},collect:u=>({isOver:u.isOver(),isOverCurrent:u.isOver({shallow:true})})}),[t,o]),s="form-container grid-image";return a&&(s="form-container grid-transparent"),jsx("div",{ref:l,className:s,children:jsx(Z__default.Fragment,{children:i})})});Sr.displayName="_Formcontainer";var wr=Sr;var xg={strictType:"_Tablecell",widgetType:w.TABLECELL,objectInspector:{defaultProps:{item_title:"Cell Title",item_name:"",item_visible:true,item_celltype:"",item_clearonnewgroup:"",item_defaultvalue:"",item_grouptitle:"",item_frozen:"",item_primary:"",item_readonly:"",item_ignorereadonly:"",item_increment:false,item_isdate:false,item_isdatetime:false,item_ischeckbox:false,item_isprice:false,item_inputfield:"",item_currency:"",item_format:"",item_bottomcalc:"",style:{minWidth:"75px",flexGrow:"1",item_textalign:"center",item_ctextalign:"left"},item_maxsize:"200",item_minsize:"100",item_enablesorting:false,item_displaytooltip:false,item_assymbol:false,item_editor:"input",item_formula:""}}},Gr=memo(function({tabId:e,panelId:n,rowId:i,cellId:t,properties:o,onPointerUp:a,getSelectedWidgetId:l,findTableCellItem:s}){let u=s(e,n,i,t),c="tableCell";return t===l()&&(c=c+" activeContainerWidget"),Z__default.createElement("div",{className:c,style:o.style,onPointerUp:d=>{d.stopPropagation(),a(d,w.TABLECELL,e,n,i,t,null);}},u.item.properties.item_title)});Gr.displayName="_Tablecell";var Dr=Gr;var xn={strictType:"_Label",widgetType:w.WIDGET,objectInspector:{defaultProps:{title:"Text",name:"",size:"small",style:{textAlign:"left"},variant:"outlined",visible:true,verticalalign:"middle"}}},An=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=k(()=>({type:xn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:An,type:xn.widgetType,stricttype:xn.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=L(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-label-widget";(C||m)&&(p="form-label-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y,...x},children:jsx(Z__default.Fragment,{children:a.title})},"label_"+o)});An.displayName="_Label";var En=An;var Rn={strictType:"_Textinput",widgetType:w.WIDGET,objectInspector:{defaultProps:{currency_inputfield:"",currency_format:"",currency_currency:"",currency_assymbol:false,datatype:"string",datalength:"",dateformat:"",defaultvalue:"",forcereadonly:false,gsindex:false,ignorereadonly:false,inputtype:"input",label:"",name:"",onchangehandler:false,placeholder:"",phoneformat:"",readonly:false,required:false,requiredmessage:"",reservedname:"_custom",reservedregex:"_custom",regex:"",style:{fontSize:"",fontWeight:""},searchbar:false,size:"small",tabIndex:0,uppercasemode:false,title:"",value:"",variant:"outlined",viewfield:false,visible:true}}},Sn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c,getEditMode:d,eventDispatcher:g,getFormData:f}){let I=d(),m=u(i,t,o).index,[,C]=k(()=>({type:Rn.widgetType,item:{id:o,originalIndex:m,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Sn,type:Rn.widgetType,stricttype:Rn.strictType},collect:G=>({isDragging:G.isDragging()}),end:(G,M)=>{M.didDrop();}}),[o,m,c]),[,E]=useState(false),[,p]=useState(false),[{isOver:y,isOverCurrent:x},v]=L(()=>({accept:w.ROWSEGMENT,drop(G,M){let N=M.didDrop();N||(c(i,t,o),E(true),p(N));},collect:G=>({isOver:G.isOver(),isOverCurrent:G.isOver({shallow:true})})}),[E,p]),h="form-widget form-textinput-widget";(x||y)&&(h="form-textinput-widget widget-highlight"),o===s()&&(h=h+" activeWidget");let A=G=>{g("onChange",{widgetName:G.target.name,widgetValue:G.target.value,widgetType:"input:text"});},R=a.mask===void 0||a.mask===""||a.mask==="none"?a.placeholder:a.mask,{name:O,required:V,style:W,tabIndex:j,value:J,visible:X}=a;if(I)return jsx("div",{ref:G=>C(v(G)),className:h,onPointerUp:l,style:{...ee,...W},children:jsx(Z__default.Fragment,{children:R})});{let G=f()[a.name];if(a.inputtype==="currency"&&G!==void 0&&G!==""){let M=parseFloat(G);if(!isNaN(M)){let N=a.currency_format||"",$=a.currency_fixedlocale||"",Q=navigator.language||void 0,ne=N==="fixed-locale"&&$?$:Q,D=a.currency_inputfield&&f()[a.currency_inputfield]||""||a.currency_currency||"",B=N==="locale"?sn(Q!=null?Q:""):N==="fixed-locale"&&$?sn($):void 0,_=D||B||"",z=a.currency_currencydisplay||"";try{_&&z!==""?G=new Intl.NumberFormat(ne,{style:"currency",currency:_,currencyDisplay:z,minimumFractionDigits:2,maximumFractionDigits:2}).format(M):N!==""&&(G=new Intl.NumberFormat(ne,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}).format(M));}catch(te){G=M.toFixed(2);}}}return Z__default.createElement("div",{className:"form-group"},Z__default.createElement("input",{onChange:A,type:"text",name:O,value:G,style:{...ee,...W}},null))}});Sn.displayName="_Textinput";var wn=Sn;var Gn={strictType:"_Textarea",widgetType:w.WIDGET,objectInspector:{defaultProps:{autocompleteTextArea:false,datatype:"string",ignorereadonly:false,label:"",name:"",onchangehandler:false,readonly:false,required:false,requiredmessage:"",size:"small",style:{textAlign:"left",minHeight:"50px",fontSize:"",fontWeight:""},tabIndex:0,title:"Text",value:"",variant:"outlined",viewfield:false,visible:true}}},Dn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c,getEditMode:d}){let f=u(i,t,o).index,[{isDragging:I},b]=k(()=>({type:Gn.widgetType,item:{id:o,originalIndex:f,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Dn,type:Gn.widgetType,stricttype:Gn.strictType},collect:A=>({isDragging:A.isDragging()}),end:(A,R)=>{R.didDrop();}}),[o,f,c]),[,m]=useState(false),[,C]=useState(false),[{isOver:E,isOverCurrent:p},y]=L(()=>({accept:w.ROWSEGMENT,drop(A,R){let O=R.didDrop();O||(c(i,t,o),m(true),C(O));},collect:A=>({isOver:A.isOver(),isOverCurrent:A.isOver({shallow:true})})}),[m,C]),x="form-widget form-textarea-widget";(p||E)&&(x="form-textarea-widget widget-highlight"),o===s()&&(x=x+" activeWidget");let{style:v,name:h}=a;return d()?jsx("div",{ref:A=>b(y(A)),className:x,onPointerUp:l,style:{...ee,...v},children:jsx(Z__default.Fragment,{children:a.placeholder})}):jsx("div",{className:"form-group",children:jsx("textarea",{className:"form-control",id:o,name:h,style:{...ee,...v}})})});Dn.displayName="_Textarea";var On=Dn;function Nr(r){if(Array.isArray(r))return r}function Mr(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var i,t,o,a,l=[],s=true,u=false;try{if(o=(n=n.call(r)).next,e===0){if(Object(n)!==n)return;s=!1;}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==e);s=!0);}catch(c){u=true,t=c;}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw t}}return l}}function Ne(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,i=Array(e);n<e;n++)i[n]=r[n];return i}function At(r,e){if(r){if(typeof r=="string")return Ne(r,e);var n={}.toString.call(r).slice(8,-1);return n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set"?Array.from(r):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(r,e):void 0}}function Wr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(r,e){return Nr(r)||Mr(r,e)||At(r,e)||Wr()}function Ee(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.indexOf(i)!==-1)continue;n[i]=r[i];}return n}function K(r,e){if(r==null)return {};var n,i,t=Ee(r,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(r,n)&&(t[n]=r[n]);}return t}var dl=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Xr(r){var e=r.defaultInputValue,n=e===void 0?"":e,i=r.defaultMenuIsOpen,t=i===void 0?false:i,o=r.defaultValue,a=o===void 0?null:o,l=r.inputValue,s=r.menuIsOpen,u=r.onChange,c=r.onInputChange,d=r.onMenuClose,g=r.onMenuOpen,f=r.value,I=K(r,dl),b=useState(l!==void 0?l:n),m=re(b,2),C=m[0],E=m[1],p=useState(s!==void 0?s:t),y=re(p,2),x=y[0],v=y[1],h=useState(f!==void 0?f:a),A=re(h,2),R=A[0],O=A[1],V=useCallback(function(N,$){typeof u=="function"&&u(N,$),O(N);},[u]),W=useCallback(function(N,$){var Q;typeof c=="function"&&(Q=c(N,$)),E(Q!==void 0?Q:N);},[c]),j=useCallback(function(){typeof g=="function"&&g(),v(true);},[g]),J=useCallback(function(){typeof d=="function"&&d(),v(false);},[d]),X=l!==void 0?l:C,G=s!==void 0?s:x,M=f!==void 0?f:R;return T(T({},I),{},{inputValue:X,menuIsOpen:G,onChange:V,onInputChange:W,onMenuClose:J,onMenuOpen:j,value:M})}function Hr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Lr(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false,i.configurable=true,"value"in i&&(i.writable=true),Object.defineProperty(r,nt(i.key),i);}}function Zr(r,e,n){return e&&Lr(r.prototype,e),n&&Lr(r,n),Object.defineProperty(r,"prototype",{writable:false}),r}function Te(r,e){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Te(r,e)}function Yr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:true,configurable:true}}),Object.defineProperty(r,"prototype",{writable:false}),e&&Te(r,e);}function Me(r){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(r)}function Bn(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(e){}return (Bn=function(){return !!r})()}function Tt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function kr(r,e){if(e&&(ce(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tt(r)}function Jr(r){var e=Bn();return function(){var n,i=Me(r);if(e){var t=Me(this).constructor;n=Reflect.construct(i,arguments,t);}else n=i.apply(this,arguments);return kr(this,n)}}function zr(r){if(Array.isArray(r))return Ne(r)}function jr(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function _r(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rt(r){return zr(r)||jr(r)||At(r)||_r()}function Ur(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var Qr=Math.min,$r=Math.max,We=Math.round,Xe=Math.floor,He=r=>({x:r,y:r});function Vn(r){let{x:e,y:n,width:i,height:t}=r;return {width:i,height:t,top:n,left:e,right:e+i,bottom:n+t,x:e,y:n}}function St(){return typeof window!="undefined"}function Fn(r){return qr(r)?(r.nodeName||"").toLowerCase():"#document"}function le(r){var e;return (r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Nn(r){var e;return (e=(qr(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function qr(r){return St()?r instanceof Node||r instanceof le(r).Node:false}function wt(r){return St()?r instanceof Element||r instanceof le(r).Element:false}function Gt(r){return St()?r instanceof HTMLElement||r instanceof le(r).HTMLElement:false}function Kr(r){return !St()||typeof ShadowRoot=="undefined"?false:r instanceof ShadowRoot||r instanceof le(r).ShadowRoot}var pl=new Set(["inline","contents"]);function Mn(r){let{overflow:e,overflowX:n,overflowY:i,display:t}=Dt(r);return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!pl.has(t)}var fl=new Set(["html","body","#document"]);function to(r){return fl.has(Fn(r))}function Dt(r){return le(r).getComputedStyle(r)}function no(r){if(Fn(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Kr(r)&&r.host||Nn(r);return Kr(e)?e.host:e}function io(r){let e=no(r);return to(e)?r.ownerDocument?r.ownerDocument.body:r.body:Gt(e)&&Mn(e)?e:io(e)}function Le(r,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=true);let t=io(r),o=t===((i=r.ownerDocument)==null?void 0:i.body),a=le(t);if(o){let l=Ot(a);return e.concat(a,a.visualViewport||[],Mn(t)?t:[],l&&n?Le(l):[])}return e.concat(t,Le(t,[],n))}function Ot(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function gl(r){let e=Dt(r),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,t=Gt(r),o=t?r.offsetWidth:n,a=t?r.offsetHeight:i,l=We(n)!==o||We(i)!==a;return l&&(n=o,i=a),{width:n,height:i,$:l}}function Xn(r){return wt(r)?r:r.contextElement}function Wn(r){let e=Xn(r);if(!Gt(e))return He(1);let n=e.getBoundingClientRect(),{width:i,height:t,$:o}=gl(e),a=(o?We(n.width):n.width)/i,l=(o?We(n.height):n.height)/t;return (!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}function ro(r,e,n,i){e===void 0&&(e=false);let t=r.getBoundingClientRect(),o=Xn(r),a=He(1);e&&(a=Wn(r));let l=He(0),s=(t.left+l.x)/a.x,u=(t.top+l.y)/a.y,c=t.width/a.x,d=t.height/a.y;if(o){let g=le(o),f=i,I=g,b=Ot(I);for(;b&&i&&f!==I;){let m=Wn(b),C=b.getBoundingClientRect(),E=Dt(b),p=C.left+(b.clientLeft+parseFloat(E.paddingLeft))*m.x,y=C.top+(b.clientTop+parseFloat(E.paddingTop))*m.y;s*=m.x,u*=m.y,c*=m.x,d*=m.y,s+=p,u+=y,I=le(b),b=Ot(I);}}return Vn({width:c,height:d,x:s,y:u})}function oo(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function vl(r,e){let n=null,i,t=Nn(r);function o(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null;}function a(l,s){l===void 0&&(l=false),s===void 0&&(s=1),o();let u=r.getBoundingClientRect(),{left:c,top:d,width:g,height:f}=u;if(l||e(),!g||!f)return;let I=Xe(d),b=Xe(t.clientWidth-(c+g)),m=Xe(t.clientHeight-(d+f)),C=Xe(c),p={rootMargin:-I+"px "+-b+"px "+-m+"px "+-C+"px",threshold:$r(0,Qr(1,s))||1},y=true;function x(v){let h=v[0].intersectionRatio;if(h!==s){if(!y)return a();h?a(false,h):i=setTimeout(()=>{a(false,1e-7);},1e3);}h===1&&!oo(u,r.getBoundingClientRect())&&a(),y=false;}try{n=new IntersectionObserver(x,{...p,root:t.ownerDocument});}catch(v){n=new IntersectionObserver(x,p);}n.observe(r);}return a(true),o}function ao(r,e,n,i){i===void 0&&(i={});let{ancestorScroll:t=true,ancestorResize:o=true,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=false}=i,u=Xn(r),c=t||o?[...u?Le(u):[],...Le(e)]:[];c.forEach(C=>{t&&C.addEventListener("scroll",n,{passive:true}),o&&C.addEventListener("resize",n);});let d=u&&l?vl(u,n):null,g=-1,f=null;a&&(f=new ResizeObserver(C=>{let[E]=C;E&&E.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var p;(p=f)==null||p.observe(e);})),n();}),u&&!s&&f.observe(u),f.observe(e));let I,b=s?ro(r):null;s&&m();function m(){let C=ro(r);b&&!oo(b,C)&&n(),b=C,I=requestAnimationFrame(m);}return n(),()=>{var C;c.forEach(E=>{t&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n);}),d==null||d(),(C=f)==null||C.disconnect(),f=null,s&&cancelAnimationFrame(I);}}var Pt=useLayoutEffect;var Rl=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ze=function(){};function Sl(r,e){return e?e[0]==="-"?r+e:r+"__"+e:r}function lo(r,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),t=2;t<n;t++)i[t-2]=arguments[t];var o=[].concat(i);if(e&&r)for(var a in e)e.hasOwnProperty(a)&&e[a]&&o.push("".concat(Sl(r,a)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Yn=function(e){return Bl(e)?e.filter(Boolean):ce(e)==="object"&&e!==null?[e]:[]},uo=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=K(e,Rl);return T({},n)},U=function(e,n,i){var t=e.cx,o=e.getStyles,a=e.getClassNames,l=e.className;return {css:o(n,e),className:t(i!=null?i:{},a(n,e),l)}};function Ye(r){return [document.documentElement,document.body,window].indexOf(r)>-1}function wl(r){return Ye(r)?window.innerHeight:r.clientHeight}function co(r){return Ye(r)?window.pageYOffset:r.scrollTop}function Nt(r,e){if(Ye(r)){window.scrollTo(0,e);return}r.scrollTop=e;}function Gl(r){var e=getComputedStyle(r),n=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var t=r;t=t.parentElement;)if(e=getComputedStyle(t),!(n&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return t;return document.documentElement}function Dl(r,e,n,i){return n*((r=r/i-1)*r*r+1)+e}function Bt(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ze,t=co(r),o=e-t,a=10,l=0;function s(){l+=a;var u=Dl(l,t,o,n);Nt(r,u),l<n?window.requestAnimationFrame(s):i(r);}s();}function kn(r,e){var n=r.getBoundingClientRect(),i=e.getBoundingClientRect(),t=e.offsetHeight/3;i.bottom+t>n.bottom?Nt(r,Math.min(e.offsetTop+e.clientHeight-r.offsetHeight+t,r.scrollHeight)):i.top-t<n.top&&Nt(r,Math.max(e.offsetTop-t,0));}function Ol(r){var e=r.getBoundingClientRect();return {bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Jn(){try{return document.createEvent("TouchEvent"),!0}catch(r){return false}}function po(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(r){return false}}var fo=false,Pl={get passive(){return fo=true}},Vt=typeof window!="undefined"?window:{};Vt.addEventListener&&Vt.removeEventListener&&(Vt.addEventListener("p",Ze,Pl),Vt.removeEventListener("p",Ze,false));var go=fo;function mo(r){return r!=null}function Bl(r){return Array.isArray(r)}function ke(r,e,n){return r?e:n}var bo=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),t=1;t<n;t++)i[t-1]=arguments[t];var o=Object.entries(e).filter(function(a){var l=re(a,1),s=l[0];return !i.includes(s)});return o.reduce(function(a,l){var s=re(l,2),u=s[0],c=s[1];return a[u]=c,a},{})},Vl=["children","innerProps"],Fl=["children","innerProps"];function Nl(r){var e=r.maxHeight,n=r.menuEl,i=r.minHeight,t=r.placement,o=r.shouldScroll,a=r.isFixedPosition,l=r.controlHeight,s=Gl(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),d=c.height,g=n.getBoundingClientRect(),f=g.bottom,I=g.height,b=g.top,m=n.offsetParent.getBoundingClientRect(),C=m.top,E=a?window.innerHeight:wl(s),p=co(s),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),v=C-x,h=E-b,A=v+p,R=d-p-b,O=f-E+p+y,V=p+b-x,W=160;switch(t){case "auto":case "bottom":if(h>=I)return {placement:"bottom",maxHeight:e};if(R>=I&&!a)return o&&Bt(s,O,W),{placement:"bottom",maxHeight:e};if(!a&&R>=i||a&&h>=i){o&&Bt(s,O,W);var j=a?h-y:R-y;return {placement:"bottom",maxHeight:j}}if(t==="auto"||a){var J=e,X=a?v:A;return X>=i&&(J=Math.min(X-y-l,e)),{placement:"top",maxHeight:J}}if(t==="bottom")return o&&Nt(s,O),{placement:"bottom",maxHeight:e};break;case "top":if(v>=I)return {placement:"top",maxHeight:e};if(A>=I&&!a)return o&&Bt(s,V,W),{placement:"top",maxHeight:e};if(!a&&A>=i||a&&v>=i){var G=e;return (!a&&A>=i||a&&v>=i)&&(G=a?v-x:A-x),o&&Bt(s,V,W),{placement:"top",maxHeight:G}}return {placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(t,'".'))}return u}function Ml(r){var e={bottom:"top",top:"bottom"};return r?e[r]:"bottom"}var ho=function(e){return e==="auto"?"bottom":e},vo=function(e,n){var i,t=e.placement,o=e.theme,a=o.borderRadius,l=o.spacing,s=o.colors;return T((i={label:"menu"},me(i,Ml(t),"100%"),me(i,"position","absolute"),me(i,"width","100%"),me(i,"zIndex",1),i),n?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},Io=createContext(null),Co=function(e){var n=e.children,i=e.minMenuHeight,t=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,u=useContext(Io)||{},c=u.setPortalPlacement,d=useRef(null),g=useState(t),f=re(g,2),I=f[0],b=f[1],m=useState(null),C=re(m,2),E=C[0],p=C[1],y=s.spacing.controlHeight;return Pt(function(){var x=d.current;if(x){var v=a==="fixed",h=l&&!v,A=Nl({maxHeight:t,menuEl:x,minHeight:i,placement:o,shouldScroll:h,isFixedPosition:v,controlHeight:y});b(A.maxHeight),p(A.placement),c==null||c(A.placement);}},[t,o,a,l,i,c,y]),n({ref:d,placerProps:T(T({},e),{},{placement:E||ho(o),maxHeight:I})})},Wl=function(e){var n=e.children,i=e.innerRef,t=e.innerProps;return jsx$1("div",R({},U(e,"menu",{menu:true}),{ref:i},t),n)},Xl=Wl,yo=function(e,n){var i=e.maxHeight,t=e.theme.spacing.baseUnit;return T({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:t,paddingTop:t})},Hl=function(e){var n=e.children,i=e.innerProps,t=e.innerRef,o=e.isMulti;return jsx$1("div",R({},U(e,"menuList",{"menu-list":true,"menu-list--is-multi":o}),{ref:t},i),n)},xo=function(e,n){var i=e.theme,t=i.spacing.baseUnit,o=i.colors;return T({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(t*2,"px ").concat(t*3,"px")})},Ao=xo,Eo=xo,Ll=function(e){var n=e.children,i=n===void 0?"No options":n,t=e.innerProps,o=K(e,Vl);return jsx$1("div",R({},U(T(T({},o),{},{children:i,innerProps:t}),"noOptionsMessage",{"menu-notice":true,"menu-notice--no-options":true}),t),i)},Zl=function(e){var n=e.children,i=n===void 0?"Loading...":n,t=e.innerProps,o=K(e,Fl);return jsx$1("div",R({},U(T(T({},o),{},{children:i,innerProps:t}),"loadingMessage",{"menu-notice":true,"menu-notice--loading":true}),t),i)},To=function(e){var n=e.rect,i=e.offset,t=e.position;return {left:n.left,position:t,top:i,width:n.width,zIndex:1}},Yl=function(e){var n=e.appendTo,i=e.children,t=e.controlElement,o=e.innerProps,a=e.menuPlacement,l=e.menuPosition,s=useRef(null),u=useRef(null),c=useState(ho(a)),d=re(c,2),g=d[0],f=d[1],I=useMemo(function(){return {setPortalPlacement:f}},[]),b=useState(null),m=re(b,2),C=m[0],E=m[1],p=useCallback(function(){if(t){var h=Ol(t),A=l==="fixed"?0:window.pageYOffset,R=h[g]+A;(R!==(C==null?void 0:C.offset)||h.left!==(C==null?void 0:C.rect.left)||h.width!==(C==null?void 0:C.rect.width))&&E({offset:R,rect:h});}},[t,l,g,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);Pt(function(){p();},[p]);var y=useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),t&&s.current&&(u.current=ao(t,s.current,p,{elementResize:"ResizeObserver"in window}));},[t,p]);Pt(function(){y();},[y]);var x=useCallback(function(h){s.current=h,y();},[y]);if(!n&&l!=="fixed"||!C)return null;var v=jsx$1("div",R({ref:x},U(T(T({},e),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":true}),o),i);return jsx$1(Io.Provider,{value:I},n?createPortal(v,n):v)},Ro=function(e){var n=e.isDisabled,i=e.isRtl;return {label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},kl=function(e){var n=e.children,i=e.innerProps,t=e.isDisabled,o=e.isRtl;return jsx$1("div",R({},U(e,"container",{"--is-disabled":t,"--is-rtl":o}),i),n)},So=function(e,n){var i=e.theme.spacing,t=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return T({alignItems:"center",display:t&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Jl=function(e){var n=e.children,i=e.innerProps,t=e.isMulti,o=e.hasValue;return jsx$1("div",R({},U(e,"valueContainer",{"value-container":true,"value-container--is-multi":t,"value-container--has-value":o}),i),n)},wo=function(){return {alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},zl=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"indicatorsContainer",{indicators:true}),i),n)},so,jl=["size"],_l=["innerProps","isRtl","size"];var Ul={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Go=function(e){var n=e.size,i=K(e,jl);return jsx$1("svg",R({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ul},i))},zn=function(e){return jsx$1(Go,R({size:20},e),jsx$1("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Do=function(e){return jsx$1(Go,R({size:20},e),jsx$1("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Oo=function(e,n){var i=e.isFocused,t=e.theme,o=t.spacing.baseUnit,a=t.colors;return T({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?a.neutral60:a.neutral20,padding:o*2,":hover":{color:i?a.neutral80:a.neutral40}})},Po=Oo,Ql=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"dropdownIndicator",{indicator:true,"dropdown-indicator":true}),i),n||jsx$1(Do,null))},Bo=Oo,$l=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"clearIndicator",{indicator:true,"clear-indicator":true}),i),n||jsx$1(zn,null))},Vo=function(e,n){var i=e.isDisabled,t=e.theme,o=t.spacing.baseUnit,a=t.colors;return T({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},Kl=function(e){var n=e.innerProps;return jsx$1("span",R({},n,U(e,"indicatorSeparator",{"indicator-separator":true})))},ql=keyframes(so||(so=Ur([`
4
+ Either remove \`${a}\` to let \`${n}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);return l}var rr=c(ba$1());function tr(r){var e,n,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(e=0;e<t;e++)r[e]&&(n=tr(r[e]))&&(i&&(i+=" "),i+=n);}else for(n in r)r[n]&&(i&&(i+=" "),i+=n);return i}function Cs(){for(var r,e,n=0,i="",t=arguments.length;n<t;n++)(r=arguments[n])&&(e=tr(r))&&(i&&(i+=" "),i+=e);return i}var fe=Cs;function gt(r){let e=0;return Ae(r,n=>{de(n)&&e++;}),e}var ys=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function xs(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}function or(r){return r&&"getAttribute"in r}function ir(r){return or(r)&&r.getAttribute("data-rttab")}function ve(r){return or(r)&&r.getAttribute("aria-disabled")==="true"}var mt;function Es(r){let e=r||(typeof window!="undefined"?window:void 0);try{mt=!!(typeof e!="undefined"&&e.document&&e.document.activeElement);}catch(n){mt=false;}}var Ts={className:"react-tabs",focus:false},Rs={children:ft},Ss=r=>{(0, rr.checkPropTypes)(Rs,r,"prop","UncontrolledTabs");let e=useRef([]),n=useRef([]),i=useRef();function t(p,y){if(p<0||p>=u())return;let{onSelect:x,selectedIndex:v}=r;x(p,v,y);}function o(p){let y=u();for(let x=p+1;x<y;x++)if(!ve(c(x)))return x;for(let x=0;x<p;x++)if(!ve(c(x)))return x;return p}function a(p){let y=p;for(;y--;)if(!ve(c(y)))return y;for(y=u();y-- >p;)if(!ve(c(y)))return y;return p}function l(){let p=u();for(let y=0;y<p;y++)if(!ve(c(y)))return y;return null}function s(){let p=u();for(;p--;)if(!ve(c(p)))return p;return null}function u(){let{children:p}=r;return gt(p)}function c(p){return e.current[`tabs-${p}`]}function d(){let p=0,{children:y,disabledTabClassName:x,focus:v,forceRenderTabPanel:h,selectedIndex:A,selectedTabClassName:R,selectedTabPanelClassName:O,environment:k}=r;n.current=n.current||[];let B=n.current.length-u(),z=useId();for(;B++<0;)n.current.push(`${z}${n.current.length}`);return pt(y,Z=>{let X=Z;if(be(Z)){let G=0,M=false;mt==null&&Es(k);let N=k||(typeof window!="undefined"?window:void 0);mt&&N&&(M=L__default.Children.toArray(Z.props.children).filter(de).some(($,Q)=>N.document.activeElement===c(Q))),X=cloneElement(Z,{children:pt(Z.props.children,$=>{let Q=`tabs-${G}`,ne=A===G,Y={tabRef:D=>{e.current[Q]=D;},id:n.current[G],selected:ne,focus:ne&&(v||M)};return R&&(Y.selectedClassName=R),x&&(Y.disabledClassName=x),G++,cloneElement($,Y)})});}else if(he(Z)){let G={id:n.current[p],selected:A===p};h&&(G.forceRender=h),O&&(G.selectedClassName=O),p++,X=cloneElement(Z,G);}return X})}function g(p){let{direction:y,disableUpDownKeys:x,disableLeftRightKeys:v}=r;if(I(p.target)){let{selectedIndex:h}=r,A=false,R=false;(p.code==="Space"||p.keyCode===32||p.code==="Enter"||p.keyCode===13)&&(A=true,R=false,f(p)),!v&&(p.keyCode===37||p.code==="ArrowLeft")||!x&&(p.keyCode===38||p.code==="ArrowUp")?(y==="rtl"?h=o(h):h=a(h),A=true,R=true):!v&&(p.keyCode===39||p.code==="ArrowRight")||!x&&(p.keyCode===40||p.code==="ArrowDown")?(y==="rtl"?h=a(h):h=o(h),A=true,R=true):p.keyCode===35||p.code==="End"?(h=s(),A=true,R=true):(p.keyCode===36||p.code==="Home")&&(h=l(),A=true,R=true),A&&p.preventDefault(),R&&t(h,p);}}function f(p){let y=p.target;do if(I(y)){if(ve(y))return;let x=[].slice.call(y.parentNode.children).filter(ir).indexOf(y);t(x,p);return}while((y=y.parentNode)!=null)}function I(p){if(!ir(p))return false;let y=p.parentElement;do{if(y===i.current)return true;if(y.getAttribute("data-rttabs"))break;y=y.parentElement;}while(y);return false}let b=Object.assign({},Ts,r),{className:m,domRef:C}=b,E=xs(b,ys);return L__default.createElement("div",Object.assign({},E,{className:fe(m),onClick:f,onKeyDown:g,ref:p=>{i.current=p,C&&C(p);},"data-rttabs":true}),d())},ar=Ss;var ws=["children","defaultFocus","defaultIndex","focusTabOnClick","onSelect"];function Gs(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var Os=0,bt=1,Ps={children:ft,onSelect:qi,selectedIndex:er},Bs={defaultFocus:false,focusTabOnClick:true,forceRenderTabPanel:false,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:false,disableLeftRightKeys:false},Vs=r=>r.selectedIndex===null?bt:Os,ur=r=>{(0, lr.checkPropTypes)(Ps,r,"prop","Tabs");let e=Object.assign({},Bs,r),{children:n,defaultFocus:i,defaultIndex:t,focusTabOnClick:o,onSelect:a}=e,l=Gs(e,ws),[s,u]=useState(i),[c]=useState(Vs(l)),[d,g]=useState(c===bt?t||0:null);if(useEffect(()=>{u(false);},[]),c===bt){let b=gt(n);useEffect(()=>{if(d!=null){let m=Math.max(0,b-1);g(Math.min(d,m));}},[b]);}let f=(b,m,C)=>{typeof a=="function"&&a(b,m,C)===false||(o&&u(true),c===bt&&g(b));},I=Object.assign({},r,l);return I.focus=s,I.onSelect=f,d!=null&&(I.selectedIndex=d),delete I.defaultFocus,delete I.defaultIndex,delete I.focusTabOnClick,L__default.createElement(ar,I,n)};ur.tabsRole="Tabs";var mn=ur;var Ns=["children","className"];function Ms(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var Xs={className:"react-tabs__tab-list"},cr=r=>{let e=Object.assign({},Xs,r),{children:n,className:i}=e,t=Ms(e,Ns);return L__default.createElement("ul",Object.assign({},t,{className:fe(i),role:"tablist"}),n)};cr.tabsRole="TabList";var bn=cr;var Hs=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"];function Ls(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var hn="react-tabs__tab",Js={className:hn,disabledClassName:`${hn}--disabled`,focus:false,id:null,selected:false,selectedClassName:`${hn}--selected`},dr=r=>{let e=useRef(),n=Object.assign({},Js,r),{children:i,className:t,disabled:o,disabledClassName:a,focus:l,id:s,selected:u,selectedClassName:c,tabIndex:d,tabRef:g}=n,f=Ls(n,Hs);return useEffect(()=>{u&&l&&e.current.focus();},[u,l]),L__default.createElement("li",Object.assign({},f,{className:fe(t,{[c]:u,[a]:o}),ref:I=>{e.current=I,g&&g(I);},role:"tab",id:`tab${s}`,"aria-selected":u?"true":"false","aria-disabled":o?"true":"false","aria-controls":`panel${s}`,tabIndex:d||(u?"0":null),"data-rttab":true}),i)};dr.tabsRole="Tab";var vn=dr;var zs=["children","className","forceRender","id","selected","selectedClassName"];function js(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var pr="react-tabs__tab-panel",Us={className:pr,forceRender:false,selectedClassName:`${pr}--selected`},fr=r=>{let e=Object.assign({},Us,r),{children:n,className:i,forceRender:t,id:o,selected:a,selectedClassName:l}=e,s=js(e,zs);return L__default.createElement("div",Object.assign({},s,{className:fe(i,{[l]:a}),role:"tabpanel",id:`panel${o}`,"aria-labelledby":`tab${o}`}),t||a?n:null)};fr.tabsRole="TabPanel";var In=fr;function Cn(r,{insertAt:e}={}){if(!r||typeof document=="undefined")return;let n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r));}Cn(`.react-tabs{-webkit-tap-highlight-color:transparent}.react-tabs__tab-list{border-bottom:1px solid #aaa;margin:0 0 10px;padding:0}.react-tabs__tab{display:inline-block;border:1px solid transparent;border-bottom:none;bottom:-1px;position:relative;list-style:none;padding:6px 12px;cursor:pointer}.react-tabs__tab--selected{background:#fff;border-color:#aaa;color:#000;border-radius:5px 5px 0 0}.react-tabs__tab--disabled{color:GrayText;cursor:default}.react-tabs__tab:focus{outline:none}.react-tabs__tab:focus:after{content:"";position:absolute;height:5px;left:-4px;right:-4px;bottom:-5px;background:#fff}.react-tabs__tab-panel{display:none}.react-tabs__tab-panel--selected{display:block}
5
+ `);var ht={strictType:"_TabBox",widgetType:w.TAB,objectInspector:{defaultProps:{title:"",name:"",tabcount:"1",tabcaption:"Title",tabsetup:{item_title:"Tab Title",item_name:null,item_visible:true,item_default_color:"#000",item_active_color:"#000",item_default_background_color:"#FFF",item_active_background_color:"#FFF",item_fontsize:"15px",item_fontweight:"bold"},tabitemsetup:{item_title:"Tab Title",item_name:null,item_visible:true},style:{},visible:true}}},It=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,getSelectedWidgetId:l,getActiveTabIndex:s,findRowItem:u,moveRowItem:c,saveFormState:d,addRowSegmentItem:g,findPanelItem:f,findSegmentItem:I,findTableCellItem:b,findWidgetItem:m,moveWidgetItem:C,setActiveTabIndex:E,onPointerUp:p,showMessage:y,getEditMode:x,eventDispatcher:v,getFormData:h,children:A}){let R=m(i,t,o),O=R.index,[,k]=J(()=>({type:ht.widgetType,item:{id:o,originalIndex:O,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:It,type:ht.widgetType,stricttype:ht.strictType},collect:D=>({isDragging:D.isDragging()}),end:({},D)=>{D.didDrop();}}),[o,O,c]),[,B]=useState(false),[,z]=useState(false),[{isOver:Z,isOverCurrent:X},G]=H(()=>({accept:[w.ROW,w.TAB,w.TABLE],drop(D,V){let _=V.didDrop();_||(c(D,e,n,o,O,D.tabId===e),B(true),z(_));},collect:D=>({isOver:D.isOver(),isOverCurrent:D.isOver({shallow:true})})}),[B,z]),M="form-tab-widget";X&&(M=`${M} separatorBorderHighlight`),o===l()&&(M=`${M} activeContainerWidget`),M=`${M} verticalTabsContainer`;let N=s(e,o),$=(D,V,_,j)=>{V||(D.target.style.background=j,D.target.style.color=_);},Q=(D,V,_,j)=>{V||(D.target.style.background=j,D.target.style.color=_);},ne=({children:D,...V})=>{var j;let _=(j=R.item._children[V.tabIndex])==null?void 0:j.id;return jsx(vn,{onPointerUp:te=>{te.stopPropagation(),_&&E(e,o,V.tabIndex);},onMouseOver:te=>$(te,Number(V.tabIndex)===Number(N),V.item_active_color,V.item_active_background_color),onMouseOut:te=>Q(te,Number(V.tabIndex)===Number(N),V.item_default_color,V.item_default_background_color),style:{borderRadius:"5px 5px 0 0",marginRight:"1px",color:Number(V.tabIndex)===Number(N)?V.item_active_color:V.item_default_color,background:Number(V.tabIndex)===Number(N)?V.item_active_background_color:V.item_default_background_color,fontSize:V.item_fontsize,fontWeight:V.item_fontweight},selected:V.selected,children:D})};ne.tabsRole="Tab";let Y=0;return L__default.createElement("div",{ref:D=>k(G(D)),className:M,onPointerUp:D=>{D.stopPropagation(),p(D,ht.widgetType,e,n,i,t,o,It);}},jsxs(mn,{selectedIndex:N,onSelect:D=>E(e,o,D),children:[jsx(bn,{children:R.item._children.map(({properties:D},V)=>jsx(ne,{...R.item.properties.tabsetup,...D,tabIndex:V.toString(),children:D.item_title},"tabheaderbutton_"+e+"_"+V))}),R.item._children.map(({_children:D})=>jsx(In,{children:D.map(({tabId:V,panelId:_,id:j,type:te,component:ue,properties:xe})=>L__default.createElement(ue,{key:"tabpanel_"+j+"_"+_,id:j,tabId:V,panelId:_,properties:xe,className:te,onPointerUp:(Ke,qe,et,tn,tt,nn,ja)=>{Ke.stopPropagation(),p(Ke,qe,et,tn,tt,nn,ja);},getSelectedWidgetId:l,getActiveTabIndex:s,findRowItem:u,moveRowItem:c,saveFormState:d,addRowSegmentItem:g,findPanelItem:f,findSegmentItem:I,findTableCellItem:b,findWidgetItem:m,moveWidgetItem:C,setActiveTabIndex:E,showMessage:y,getEditMode:x,eventDispatcher:v,getFormData:h,children:A},null))},"tabpanel_"+o+Y++))]}))});It.displayName="_TabBox";var Be=It;var yn={strictType:"_Table",widgetType:w.TABLE,objectInspector:{defaultProps:{backendpagination:false,hideaddbutton:false,alloweditrow:false,columns:"1",colactions:false,colgrouping:false,colordering:true,colresizing:false,datasource:[],enableuploadfiles:false,height:"500px",name:"",folders:false,foldercaption:"",pagination:true,pagesize:100,readonly:false,ignorereadonly:false,rowactions:"{}",rowactiontype:"none",rowclickas:"none",rowdensity:"compact",rownumber:false,rowselection:true,rowvirtualization:false,search:true,searchtype:"startsWith",selectall:false,stickyheader:true,tablemode:"datatable",title:"",toolbarInternalActions:true,topToolbar:true,uploadtemplcode:"",visible:true,style:{fontSize:"13px",fontWeight:"bold"}}}},hr=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,moveRowItem:l,onPointerUp:s,getSelectedWidgetId:u,findWidgetItem:c,findRowItem:d,moveWidgetItem:g,findTableCellItem:f}){let I=d(e,n,o),b=I.index,[,m]=J(()=>({type:yn.widgetType,item:{id:o,originalIndex:b,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ve,type:yn.widgetType,stricttype:yn.strictType},collect:h=>({isDragging:h.isDragging()}),end:(h,A)=>{A.didDrop();}}),[o,b,g]),[,C]=useState(false),[,E]=useState(false),[{isOver:p,isOverCurrent:y},x]=H(()=>({accept:[w.ROW,w.TAB,w.TABLE],drop(h,A){let R=A.didDrop();R||(l(h,e,n,o,b,h.tabId===e),C(true),E(R));},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true})})}),[C,E]),v="form-widget form-table-widget";return (y||p)&&(v="form-table-widget widget-highlight"),y&&(v=`${v} separatorBorderHighlight`),o===u()&&(v=`${v} activeContainerWidget`),L__default.createElement("div",{ref:h=>m(x(h)),className:v,style:I.item.properties.style,onPointerUp:h=>{h.stopPropagation(),s(h,w.TABLE,e,n,o,null,null);}},L__default.createElement("div",{style:{display:"flex",flex:1}},I.item._children.map(({rowId:h,id:A,component:R,properties:O})=>L__default.createElement(R,{key:"tablecell-"+e+"-"+A,tabId:e,panelId:n,rowId:h,cellId:A,properties:O,onPointerUp:(k,B,z,Z,X,G,M,N)=>{k.stopPropagation(),s(k,B,z,Z,X,G,M,N);},getSelectedWidgetId:u,findWidgetItem:c,findTableCellItem:f,moveWidgetItem:g},null))),L__default.createElement("div",{style:{height:"60px",border:"1px solid #aaa",backgroundColor:"#FFF",width:"auto"}},null))});hr.displayName="_Table";var Ve=hr;var Fe={strictType:"_Rowcontainer",widgetType:w.ROW,objectInspector:{defaultProps:{title:"",columns:"1",style:{}}}},Cr=memo(function({tabId:e,panelId:n,id:i,getSelectedWidgetId:t,findRowItem:o,moveRowItem:a,saveFormState:l,addRowSegmentItem:s,findSegmentItem:u,findWidgetItem:c,moveWidgetItem:d,onPointerUp:g,showMessage:f,getEditMode:I,eventDispatcher:b,getFormData:m}){var k;let C=I(),E=o(e,n,i),p=(k=E==null?void 0:E.index)!=null?k:0,[,y]=J(()=>({type:Fe.widgetType,item:{tabId:e,panelId:n,id:i,originalIndex:p,component:yt,type:Fe.widgetType,stricttype:Fe.strictType},collect:B=>({isDragging:B.isDragging()}),end:(B,z)=>{z.didDrop()&&l();}}),[i,p,a]),[,x]=useState(false),[,v]=useState(false),[{isOver:h,isOverCurrent:A},R]=H(()=>({accept:[Fe.widgetType,w.TAB,w.TABLE],drop(B,z){let Z=z.didDrop();Z||(a(B,e,n,i,p,B.tabId===e),x(true),v(Z));},collect:B=>({isOver:B.isOver(),isOverCurrent:B.isOver({shallow:true}),activeItem:B.getItem()})}),[x,v]),O="row-container grid-image";return (A||h)&&(O="row-container grid-transparent"),A&&(O=O+" separatorBorderHighlight"),i===t()&&(O=O+" activeContainerWidget"),L__default.createElement("div",{ref:B=>C?y(R(B)):{},className:O,onPointerUp:B=>{B.stopPropagation(),g(B,Fe.widgetType,e,n,i,null,null);}},E.item._children.map(({rowId:B,id:z,component:Z,properties:X})=>L__default.createElement(Z,{key:"rowcontainer_"+z,tabId:e,panelId:n,rowId:B,segmentId:z,properties:X,onPointerUp:(G,M,N,$,Q,ne,Y,D)=>{G.stopPropagation(),g(G,M,N,$,Q,ne,Y,D);},showMessage:f,addRowSegmentItem:s,getSelectedWidgetId:t,findSegmentItem:u,findWidgetItem:c,moveWidgetItem:d,getEditMode:I,eventDispatcher:b,getFormData:m},null)))});Cr.displayName="_Rowcontainer";var yt=Cr;var tl={strictType:"_Rowsegment",widgetType:w.ROWSEGMENT,objectInspector:{defaultProps:{title:"",columns:"1",style:{}}}},Ar=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,properties:o,onPointerUp:a,showMessage:l,addRowSegmentItem:s,getSelectedWidgetId:u,findSegmentItem:c,findWidgetItem:d,moveWidgetItem:g,getEditMode:f,eventDispatcher:I,getFormData:b}){let m=c(e,n,i,t),[,C]=useState(false),[,E]=useState(false),[{isOver:p,isOverCurrent:y},x]=H(()=>({accept:w.WIDGET,drop(h,A){let R=A.didDrop();if(!R){if(m.item._children.length>0){l("Failed to add a widget to row segment. The row segment has a widget already.");return}s(e,n,i,t,h),C(true),E(R);}},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true}),activeItem:h.getItem()})}),[C,E]),v=["rowSegment"];return (y||p)&&(v.push("highlightItem"),m.item._children.length>0&&v.push("highlightItemBorder")),t===u()&&v.push("activeContainerWidget"),L__default.createElement("div",{ref:x,className:v.join(" "),style:o.style,onPointerUp:h=>{h.stopPropagation(),a(h,tl.widgetType,e,n,i,t,null);}},m.item._children.map(({id:h,component:A,properties:R})=>L__default.createElement(A,{key:"rowsegment_"+h,tabId:e,panelId:n,rowId:i,segmentId:t,id:h,properties:R,onPointerUp:O=>{O.stopPropagation(),a(O,w.WIDGET,e,n,i,t,h,A);},getSelectedWidgetId:u,findWidgetItem:d,moveWidgetItem:g,getEditMode:f,eventDispatcher:I,getFormData:b},null)))});Ar.displayName="_Rowsegment";var Er=Ar;var Sr=memo(function({addRowItem:e,addTabItem:n,children:i}){let[,t]=useState(false),[,o]=useState(false),[{isOverCurrent:a},l]=H(()=>({accept:[w.ROW,w.TAB,w.TABLE],drop(u,c){let d=c.didDrop();d||(u.component===Be?n(u,null,null):e(u),t(true),o(d));},collect:u=>({isOver:u.isOver(),isOverCurrent:u.isOver({shallow:true})})}),[t,o]),s="form-container grid-image";return a&&(s="form-container grid-transparent"),jsx("div",{ref:l,className:s,children:jsx(L__default.Fragment,{children:i})})});Sr.displayName="_Formcontainer";var wr=Sr;var xg={strictType:"_Tablecell",widgetType:w.TABLECELL,objectInspector:{defaultProps:{item_title:"Cell Title",item_name:"",item_visible:true,item_celltype:"",item_clearonnewgroup:"",item_defaultvalue:"",item_grouptitle:"",item_frozen:"",item_primary:"",item_readonly:"",item_ignorereadonly:"",item_increment:false,item_isdate:false,item_isdatetime:false,item_ischeckbox:false,item_isprice:false,item_inputfield:"",item_currency:"",item_format:"",item_bottomcalc:"",style:{minWidth:"75px",flexGrow:"1",item_textalign:"center",item_ctextalign:"left"},item_maxsize:"200",item_minsize:"100",item_enablesorting:false,item_displaytooltip:false,item_assymbol:false,item_editor:"input",item_formula:""}}},Gr=memo(function({tabId:e,panelId:n,rowId:i,cellId:t,properties:o,onPointerUp:a,getSelectedWidgetId:l,findTableCellItem:s}){let u=s(e,n,i,t),c="tableCell";return t===l()&&(c=c+" activeContainerWidget"),L__default.createElement("div",{className:c,style:o.style,onPointerUp:d=>{d.stopPropagation(),a(d,w.TABLECELL,e,n,i,t,null);}},u.item.properties.item_title)});Gr.displayName="_Tablecell";var Dr=Gr;var xn={strictType:"_Label",widgetType:w.WIDGET,objectInspector:{defaultProps:{title:"Text",name:"",size:"small",style:{textAlign:"left"},variant:"outlined",visible:true,verticalalign:"middle"}}},An=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=J(()=>({type:xn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:An,type:xn.widgetType,stricttype:xn.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=H(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-label-widget";(C||m)&&(p="form-label-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y,...x},children:jsx(L__default.Fragment,{children:a.title})},"label_"+o)});An.displayName="_Label";var En=An;var Rn={strictType:"_Textinput",widgetType:w.WIDGET,objectInspector:{defaultProps:{currency_inputfield:"",currency_format:"",currency_currency:"",currency_assymbol:false,datatype:"string",datalength:"",dateformat:"",defaultvalue:"",forcereadonly:false,gsindex:false,ignorereadonly:false,inputtype:"input",label:"",name:"",onchangehandler:false,placeholder:"",phoneformat:"",readonly:false,required:false,requiredmessage:"",reservedname:"_custom",reservedregex:"_custom",regex:"",style:{fontSize:"",fontWeight:""},searchbar:false,size:"small",tabIndex:0,uppercasemode:false,title:"",value:"",variant:"outlined",viewfield:false,visible:true}}},Sn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c,getEditMode:d,eventDispatcher:g,getFormData:f}){let I=d(),m=u(i,t,o).index,[,C]=J(()=>({type:Rn.widgetType,item:{id:o,originalIndex:m,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Sn,type:Rn.widgetType,stricttype:Rn.strictType},collect:G=>({isDragging:G.isDragging()}),end:(G,M)=>{M.didDrop();}}),[o,m,c]),[,E]=useState(false),[,p]=useState(false),[{isOver:y,isOverCurrent:x},v]=H(()=>({accept:w.ROWSEGMENT,drop(G,M){let N=M.didDrop();N||(c(i,t,o),E(true),p(N));},collect:G=>({isOver:G.isOver(),isOverCurrent:G.isOver({shallow:true})})}),[E,p]),h="form-widget form-textinput-widget";(x||y)&&(h="form-textinput-widget widget-highlight"),o===s()&&(h=h+" activeWidget");let A=G=>{g("onChange",{widgetName:G.target.name,widgetValue:G.target.value,widgetType:"input:text"});},R=a.mask===void 0||a.mask===""||a.mask==="none"?a.placeholder:a.mask,{name:O,required:k,style:B,tabIndex:z,value:Z,visible:X}=a;if(I)return jsx("div",{ref:G=>C(v(G)),className:h,onPointerUp:l,style:{...ee,...B},children:jsx(L__default.Fragment,{children:R})});{let G=f()[a.name];if(a.inputtype==="currency"&&G!==void 0&&G!==""){let M=parseFloat(G);if(!isNaN(M)){let N=a.currency_format||"",$=a.currency_fixedlocale||"",Q=navigator.language||void 0,ne=N==="fixed-locale"&&$?$:Q,D=a.currency_inputfield&&f()[a.currency_inputfield]||""||a.currency_currency||"",V=N==="locale"?sn(Q!=null?Q:""):N==="fixed-locale"&&$?sn($):void 0,_=D||V||"",j=a.currency_currencydisplay||"";try{_&&j!==""?G=new Intl.NumberFormat(ne,{style:"currency",currency:_,currencyDisplay:j,minimumFractionDigits:2,maximumFractionDigits:2}).format(M):N!==""&&(G=new Intl.NumberFormat(ne,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}).format(M));}catch(te){G=M.toFixed(2);}}}return L__default.createElement("div",{className:"form-group"},L__default.createElement("input",{onChange:A,type:"text",name:O,value:G,style:{...ee,...B}},null))}});Sn.displayName="_Textinput";var wn=Sn;var Gn={strictType:"_Textarea",widgetType:w.WIDGET,objectInspector:{defaultProps:{autocompleteTextArea:false,datatype:"string",ignorereadonly:false,label:"",name:"",onchangehandler:false,readonly:false,required:false,requiredmessage:"",size:"small",style:{textAlign:"left",minHeight:"50px",fontSize:"",fontWeight:""},tabIndex:0,title:"Text",value:"",variant:"outlined",viewfield:false,visible:true}}},Dn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c,getEditMode:d}){let f=u(i,t,o).index,[{isDragging:I},b]=J(()=>({type:Gn.widgetType,item:{id:o,originalIndex:f,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Dn,type:Gn.widgetType,stricttype:Gn.strictType},collect:A=>({isDragging:A.isDragging()}),end:(A,R)=>{R.didDrop();}}),[o,f,c]),[,m]=useState(false),[,C]=useState(false),[{isOver:E,isOverCurrent:p},y]=H(()=>({accept:w.ROWSEGMENT,drop(A,R){let O=R.didDrop();O||(c(i,t,o),m(true),C(O));},collect:A=>({isOver:A.isOver(),isOverCurrent:A.isOver({shallow:true})})}),[m,C]),x="form-widget form-textarea-widget";(p||E)&&(x="form-textarea-widget widget-highlight"),o===s()&&(x=x+" activeWidget");let{style:v,name:h}=a;return d()?jsx("div",{ref:A=>b(y(A)),className:x,onPointerUp:l,style:{...ee,...v},children:jsx(L__default.Fragment,{children:a.placeholder})}):jsx("div",{className:"form-group",children:jsx("textarea",{className:"form-control",id:o,name:h,style:{...ee,...v}})})});Dn.displayName="_Textarea";var On=Dn;function Nr(r){if(Array.isArray(r))return r}function Mr(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var i,t,o,a,l=[],s=true,u=false;try{if(o=(n=n.call(r)).next,e===0){if(Object(n)!==n)return;s=!1;}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==e);s=!0);}catch(c){u=true,t=c;}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw t}}return l}}function Ne(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,i=Array(e);n<e;n++)i[n]=r[n];return i}function At(r,e){if(r){if(typeof r=="string")return Ne(r,e);var n={}.toString.call(r).slice(8,-1);return n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set"?Array.from(r):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(r,e):void 0}}function Wr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(r,e){return Nr(r)||Mr(r,e)||At(r,e)||Wr()}function Ee(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.indexOf(i)!==-1)continue;n[i]=r[i];}return n}function K(r,e){if(r==null)return {};var n,i,t=Ee(r,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(r,n)&&(t[n]=r[n]);}return t}var dl=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Xr(r){var e=r.defaultInputValue,n=e===void 0?"":e,i=r.defaultMenuIsOpen,t=i===void 0?false:i,o=r.defaultValue,a=o===void 0?null:o,l=r.inputValue,s=r.menuIsOpen,u=r.onChange,c=r.onInputChange,d=r.onMenuClose,g=r.onMenuOpen,f=r.value,I=K(r,dl),b=useState(l!==void 0?l:n),m=re(b,2),C=m[0],E=m[1],p=useState(s!==void 0?s:t),y=re(p,2),x=y[0],v=y[1],h=useState(f!==void 0?f:a),A=re(h,2),R=A[0],O=A[1],k=useCallback(function(N,$){typeof u=="function"&&u(N,$),O(N);},[u]),B=useCallback(function(N,$){var Q;typeof c=="function"&&(Q=c(N,$)),E(Q!==void 0?Q:N);},[c]),z=useCallback(function(){typeof g=="function"&&g(),v(true);},[g]),Z=useCallback(function(){typeof d=="function"&&d(),v(false);},[d]),X=l!==void 0?l:C,G=s!==void 0?s:x,M=f!==void 0?f:R;return T(T({},I),{},{inputValue:X,menuIsOpen:G,onChange:k,onInputChange:B,onMenuClose:Z,onMenuOpen:z,value:M})}function Hr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Lr(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false,i.configurable=true,"value"in i&&(i.writable=true),Object.defineProperty(r,nt(i.key),i);}}function Zr(r,e,n){return e&&Lr(r.prototype,e),n&&Lr(r,n),Object.defineProperty(r,"prototype",{writable:false}),r}function Te(r,e){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Te(r,e)}function Yr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:true,configurable:true}}),Object.defineProperty(r,"prototype",{writable:false}),e&&Te(r,e);}function Me(r){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(r)}function Bn(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(e){}return (Bn=function(){return !!r})()}function Tt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function kr(r,e){if(e&&(ce(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tt(r)}function Jr(r){var e=Bn();return function(){var n,i=Me(r);if(e){var t=Me(this).constructor;n=Reflect.construct(i,arguments,t);}else n=i.apply(this,arguments);return kr(this,n)}}function zr(r){if(Array.isArray(r))return Ne(r)}function jr(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function _r(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rt(r){return zr(r)||jr(r)||At(r)||_r()}function Ur(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var Qr=Math.min,$r=Math.max,We=Math.round,Xe=Math.floor,He=r=>({x:r,y:r});function Vn(r){let{x:e,y:n,width:i,height:t}=r;return {width:i,height:t,top:n,left:e,right:e+i,bottom:n+t,x:e,y:n}}function St(){return typeof window!="undefined"}function Fn(r){return qr(r)?(r.nodeName||"").toLowerCase():"#document"}function le(r){var e;return (r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Nn(r){var e;return (e=(qr(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function qr(r){return St()?r instanceof Node||r instanceof le(r).Node:false}function wt(r){return St()?r instanceof Element||r instanceof le(r).Element:false}function Gt(r){return St()?r instanceof HTMLElement||r instanceof le(r).HTMLElement:false}function Kr(r){return !St()||typeof ShadowRoot=="undefined"?false:r instanceof ShadowRoot||r instanceof le(r).ShadowRoot}var pl=new Set(["inline","contents"]);function Mn(r){let{overflow:e,overflowX:n,overflowY:i,display:t}=Dt(r);return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!pl.has(t)}var fl=new Set(["html","body","#document"]);function to(r){return fl.has(Fn(r))}function Dt(r){return le(r).getComputedStyle(r)}function no(r){if(Fn(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Kr(r)&&r.host||Nn(r);return Kr(e)?e.host:e}function io(r){let e=no(r);return to(e)?r.ownerDocument?r.ownerDocument.body:r.body:Gt(e)&&Mn(e)?e:io(e)}function Le(r,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=true);let t=io(r),o=t===((i=r.ownerDocument)==null?void 0:i.body),a=le(t);if(o){let l=Ot(a);return e.concat(a,a.visualViewport||[],Mn(t)?t:[],l&&n?Le(l):[])}return e.concat(t,Le(t,[],n))}function Ot(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function gl(r){let e=Dt(r),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,t=Gt(r),o=t?r.offsetWidth:n,a=t?r.offsetHeight:i,l=We(n)!==o||We(i)!==a;return l&&(n=o,i=a),{width:n,height:i,$:l}}function Xn(r){return wt(r)?r:r.contextElement}function Wn(r){let e=Xn(r);if(!Gt(e))return He(1);let n=e.getBoundingClientRect(),{width:i,height:t,$:o}=gl(e),a=(o?We(n.width):n.width)/i,l=(o?We(n.height):n.height)/t;return (!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}function ro(r,e,n,i){e===void 0&&(e=false);let t=r.getBoundingClientRect(),o=Xn(r),a=He(1);e&&(a=Wn(r));let l=He(0),s=(t.left+l.x)/a.x,u=(t.top+l.y)/a.y,c=t.width/a.x,d=t.height/a.y;if(o){let g=le(o),f=i,I=g,b=Ot(I);for(;b&&i&&f!==I;){let m=Wn(b),C=b.getBoundingClientRect(),E=Dt(b),p=C.left+(b.clientLeft+parseFloat(E.paddingLeft))*m.x,y=C.top+(b.clientTop+parseFloat(E.paddingTop))*m.y;s*=m.x,u*=m.y,c*=m.x,d*=m.y,s+=p,u+=y,I=le(b),b=Ot(I);}}return Vn({width:c,height:d,x:s,y:u})}function oo(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function vl(r,e){let n=null,i,t=Nn(r);function o(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null;}function a(l,s){l===void 0&&(l=false),s===void 0&&(s=1),o();let u=r.getBoundingClientRect(),{left:c,top:d,width:g,height:f}=u;if(l||e(),!g||!f)return;let I=Xe(d),b=Xe(t.clientWidth-(c+g)),m=Xe(t.clientHeight-(d+f)),C=Xe(c),p={rootMargin:-I+"px "+-b+"px "+-m+"px "+-C+"px",threshold:$r(0,Qr(1,s))||1},y=true;function x(v){let h=v[0].intersectionRatio;if(h!==s){if(!y)return a();h?a(false,h):i=setTimeout(()=>{a(false,1e-7);},1e3);}h===1&&!oo(u,r.getBoundingClientRect())&&a(),y=false;}try{n=new IntersectionObserver(x,{...p,root:t.ownerDocument});}catch(v){n=new IntersectionObserver(x,p);}n.observe(r);}return a(true),o}function ao(r,e,n,i){i===void 0&&(i={});let{ancestorScroll:t=true,ancestorResize:o=true,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=false}=i,u=Xn(r),c=t||o?[...u?Le(u):[],...Le(e)]:[];c.forEach(C=>{t&&C.addEventListener("scroll",n,{passive:true}),o&&C.addEventListener("resize",n);});let d=u&&l?vl(u,n):null,g=-1,f=null;a&&(f=new ResizeObserver(C=>{let[E]=C;E&&E.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var p;(p=f)==null||p.observe(e);})),n();}),u&&!s&&f.observe(u),f.observe(e));let I,b=s?ro(r):null;s&&m();function m(){let C=ro(r);b&&!oo(b,C)&&n(),b=C,I=requestAnimationFrame(m);}return n(),()=>{var C;c.forEach(E=>{t&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n);}),d==null||d(),(C=f)==null||C.disconnect(),f=null,s&&cancelAnimationFrame(I);}}var Pt=useLayoutEffect;var Rl=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ze=function(){};function Sl(r,e){return e?e[0]==="-"?r+e:r+"__"+e:r}function lo(r,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),t=2;t<n;t++)i[t-2]=arguments[t];var o=[].concat(i);if(e&&r)for(var a in e)e.hasOwnProperty(a)&&e[a]&&o.push("".concat(Sl(r,a)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Yn=function(e){return Bl(e)?e.filter(Boolean):ce(e)==="object"&&e!==null?[e]:[]},uo=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=K(e,Rl);return T({},n)},U=function(e,n,i){var t=e.cx,o=e.getStyles,a=e.getClassNames,l=e.className;return {css:o(n,e),className:t(i!=null?i:{},a(n,e),l)}};function Ye(r){return [document.documentElement,document.body,window].indexOf(r)>-1}function wl(r){return Ye(r)?window.innerHeight:r.clientHeight}function co(r){return Ye(r)?window.pageYOffset:r.scrollTop}function Nt(r,e){if(Ye(r)){window.scrollTo(0,e);return}r.scrollTop=e;}function Gl(r){var e=getComputedStyle(r),n=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var t=r;t=t.parentElement;)if(e=getComputedStyle(t),!(n&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return t;return document.documentElement}function Dl(r,e,n,i){return n*((r=r/i-1)*r*r+1)+e}function Bt(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ze,t=co(r),o=e-t,a=10,l=0;function s(){l+=a;var u=Dl(l,t,o,n);Nt(r,u),l<n?window.requestAnimationFrame(s):i(r);}s();}function kn(r,e){var n=r.getBoundingClientRect(),i=e.getBoundingClientRect(),t=e.offsetHeight/3;i.bottom+t>n.bottom?Nt(r,Math.min(e.offsetTop+e.clientHeight-r.offsetHeight+t,r.scrollHeight)):i.top-t<n.top&&Nt(r,Math.max(e.offsetTop-t,0));}function Ol(r){var e=r.getBoundingClientRect();return {bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Jn(){try{return document.createEvent("TouchEvent"),!0}catch(r){return false}}function po(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(r){return false}}var fo=false,Pl={get passive(){return fo=true}},Vt=typeof window!="undefined"?window:{};Vt.addEventListener&&Vt.removeEventListener&&(Vt.addEventListener("p",Ze,Pl),Vt.removeEventListener("p",Ze,false));var go=fo;function mo(r){return r!=null}function Bl(r){return Array.isArray(r)}function ke(r,e,n){return r?e:n}var bo=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),t=1;t<n;t++)i[t-1]=arguments[t];var o=Object.entries(e).filter(function(a){var l=re(a,1),s=l[0];return !i.includes(s)});return o.reduce(function(a,l){var s=re(l,2),u=s[0],c=s[1];return a[u]=c,a},{})},Vl=["children","innerProps"],Fl=["children","innerProps"];function Nl(r){var e=r.maxHeight,n=r.menuEl,i=r.minHeight,t=r.placement,o=r.shouldScroll,a=r.isFixedPosition,l=r.controlHeight,s=Gl(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),d=c.height,g=n.getBoundingClientRect(),f=g.bottom,I=g.height,b=g.top,m=n.offsetParent.getBoundingClientRect(),C=m.top,E=a?window.innerHeight:wl(s),p=co(s),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),v=C-x,h=E-b,A=v+p,R=d-p-b,O=f-E+p+y,k=p+b-x,B=160;switch(t){case "auto":case "bottom":if(h>=I)return {placement:"bottom",maxHeight:e};if(R>=I&&!a)return o&&Bt(s,O,B),{placement:"bottom",maxHeight:e};if(!a&&R>=i||a&&h>=i){o&&Bt(s,O,B);var z=a?h-y:R-y;return {placement:"bottom",maxHeight:z}}if(t==="auto"||a){var Z=e,X=a?v:A;return X>=i&&(Z=Math.min(X-y-l,e)),{placement:"top",maxHeight:Z}}if(t==="bottom")return o&&Nt(s,O),{placement:"bottom",maxHeight:e};break;case "top":if(v>=I)return {placement:"top",maxHeight:e};if(A>=I&&!a)return o&&Bt(s,k,B),{placement:"top",maxHeight:e};if(!a&&A>=i||a&&v>=i){var G=e;return (!a&&A>=i||a&&v>=i)&&(G=a?v-x:A-x),o&&Bt(s,k,B),{placement:"top",maxHeight:G}}return {placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(t,'".'))}return u}function Ml(r){var e={bottom:"top",top:"bottom"};return r?e[r]:"bottom"}var ho=function(e){return e==="auto"?"bottom":e},vo=function(e,n){var i,t=e.placement,o=e.theme,a=o.borderRadius,l=o.spacing,s=o.colors;return T((i={label:"menu"},me(i,Ml(t),"100%"),me(i,"position","absolute"),me(i,"width","100%"),me(i,"zIndex",1),i),n?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},Io=createContext(null),Co=function(e){var n=e.children,i=e.minMenuHeight,t=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,u=useContext(Io)||{},c=u.setPortalPlacement,d=useRef(null),g=useState(t),f=re(g,2),I=f[0],b=f[1],m=useState(null),C=re(m,2),E=C[0],p=C[1],y=s.spacing.controlHeight;return Pt(function(){var x=d.current;if(x){var v=a==="fixed",h=l&&!v,A=Nl({maxHeight:t,menuEl:x,minHeight:i,placement:o,shouldScroll:h,isFixedPosition:v,controlHeight:y});b(A.maxHeight),p(A.placement),c==null||c(A.placement);}},[t,o,a,l,i,c,y]),n({ref:d,placerProps:T(T({},e),{},{placement:E||ho(o),maxHeight:I})})},Wl=function(e){var n=e.children,i=e.innerRef,t=e.innerProps;return jsx$1("div",R({},U(e,"menu",{menu:true}),{ref:i},t),n)},Xl=Wl,yo=function(e,n){var i=e.maxHeight,t=e.theme.spacing.baseUnit;return T({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:t,paddingTop:t})},Hl=function(e){var n=e.children,i=e.innerProps,t=e.innerRef,o=e.isMulti;return jsx$1("div",R({},U(e,"menuList",{"menu-list":true,"menu-list--is-multi":o}),{ref:t},i),n)},xo=function(e,n){var i=e.theme,t=i.spacing.baseUnit,o=i.colors;return T({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(t*2,"px ").concat(t*3,"px")})},Ao=xo,Eo=xo,Ll=function(e){var n=e.children,i=n===void 0?"No options":n,t=e.innerProps,o=K(e,Vl);return jsx$1("div",R({},U(T(T({},o),{},{children:i,innerProps:t}),"noOptionsMessage",{"menu-notice":true,"menu-notice--no-options":true}),t),i)},Zl=function(e){var n=e.children,i=n===void 0?"Loading...":n,t=e.innerProps,o=K(e,Fl);return jsx$1("div",R({},U(T(T({},o),{},{children:i,innerProps:t}),"loadingMessage",{"menu-notice":true,"menu-notice--loading":true}),t),i)},To=function(e){var n=e.rect,i=e.offset,t=e.position;return {left:n.left,position:t,top:i,width:n.width,zIndex:1}},Yl=function(e){var n=e.appendTo,i=e.children,t=e.controlElement,o=e.innerProps,a=e.menuPlacement,l=e.menuPosition,s=useRef(null),u=useRef(null),c=useState(ho(a)),d=re(c,2),g=d[0],f=d[1],I=useMemo(function(){return {setPortalPlacement:f}},[]),b=useState(null),m=re(b,2),C=m[0],E=m[1],p=useCallback(function(){if(t){var h=Ol(t),A=l==="fixed"?0:window.pageYOffset,R=h[g]+A;(R!==(C==null?void 0:C.offset)||h.left!==(C==null?void 0:C.rect.left)||h.width!==(C==null?void 0:C.rect.width))&&E({offset:R,rect:h});}},[t,l,g,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);Pt(function(){p();},[p]);var y=useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),t&&s.current&&(u.current=ao(t,s.current,p,{elementResize:"ResizeObserver"in window}));},[t,p]);Pt(function(){y();},[y]);var x=useCallback(function(h){s.current=h,y();},[y]);if(!n&&l!=="fixed"||!C)return null;var v=jsx$1("div",R({ref:x},U(T(T({},e),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":true}),o),i);return jsx$1(Io.Provider,{value:I},n?createPortal(v,n):v)},Ro=function(e){var n=e.isDisabled,i=e.isRtl;return {label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},kl=function(e){var n=e.children,i=e.innerProps,t=e.isDisabled,o=e.isRtl;return jsx$1("div",R({},U(e,"container",{"--is-disabled":t,"--is-rtl":o}),i),n)},So=function(e,n){var i=e.theme.spacing,t=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return T({alignItems:"center",display:t&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Jl=function(e){var n=e.children,i=e.innerProps,t=e.isMulti,o=e.hasValue;return jsx$1("div",R({},U(e,"valueContainer",{"value-container":true,"value-container--is-multi":t,"value-container--has-value":o}),i),n)},wo=function(){return {alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},zl=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"indicatorsContainer",{indicators:true}),i),n)},so,jl=["size"],_l=["innerProps","isRtl","size"];var Ul={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Go=function(e){var n=e.size,i=K(e,jl);return jsx$1("svg",R({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ul},i))},zn=function(e){return jsx$1(Go,R({size:20},e),jsx$1("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Do=function(e){return jsx$1(Go,R({size:20},e),jsx$1("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Oo=function(e,n){var i=e.isFocused,t=e.theme,o=t.spacing.baseUnit,a=t.colors;return T({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?a.neutral60:a.neutral20,padding:o*2,":hover":{color:i?a.neutral80:a.neutral40}})},Po=Oo,Ql=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"dropdownIndicator",{indicator:true,"dropdown-indicator":true}),i),n||jsx$1(Do,null))},Bo=Oo,$l=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"clearIndicator",{indicator:true,"clear-indicator":true}),i),n||jsx$1(zn,null))},Vo=function(e,n){var i=e.isDisabled,t=e.theme,o=t.spacing.baseUnit,a=t.colors;return T({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},Kl=function(e){var n=e.innerProps;return jsx$1("span",R({},n,U(e,"indicatorSeparator",{"indicator-separator":true})))},ql=keyframes(so||(so=Ur([`
8
8
  0%, 80%, 100% { opacity: 0; }
9
9
  40% { opacity: 1; }
10
- `]))),Fo=function(e,n){var i=e.isFocused,t=e.size,o=e.theme,a=o.colors,l=o.spacing.baseUnit;return T({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:t,lineHeight:1,marginRight:t,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?a.neutral60:a.neutral20,padding:l*2})},Ln=function(e){var n=e.delay,i=e.offset;return jsx$1("span",{css:css({animation:"".concat(ql," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eu=function(e){var n=e.innerProps,i=e.isRtl,t=e.size,o=t===void 0?4:t,a=K(e,_l);return jsx$1("div",R({},U(T(T({},a),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:true,"loading-indicator":true}),n),jsx$1(Ln,{delay:0,offset:i}),jsx$1(Ln,{delay:160,offset:true}),jsx$1(Ln,{delay:320,offset:!i}))},No=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.theme,a=o.colors,l=o.borderRadius,s=o.spacing;return T({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?a.neutral5:a.neutral0,borderColor:i?a.neutral10:t?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:t?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:t?a.primary:a.neutral30}})},tu=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.innerRef,a=e.innerProps,l=e.menuIsOpen;return jsx$1("div",R({ref:o},U(e,"control",{control:true,"control--is-disabled":i,"control--is-focused":t,"control--menu-is-open":l}),a,{"aria-disabled":i||void 0}),n)},nu=tu,iu=["data"],Mo=function(e,n){var i=e.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},ru=function(e){var n=e.children,i=e.cx,t=e.getStyles,o=e.getClassNames,a=e.Heading,l=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return jsx$1("div",R({},U(e,"group",{group:true}),s),jsx$1(a,R({},l,{selectProps:d,theme:c,getStyles:t,getClassNames:o,cx:i}),u),jsx$1("div",null,n))},Wo=function(e,n){var i=e.theme,t=i.colors,o=i.spacing;return T({label:"group",cursor:"default",display:"block"},n?{}:{color:t.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},ou=function(e){var n=uo(e);n.data;var i=K(n,iu);return jsx$1("div",R({},U(e,"groupHeading",{"group-heading":true}),i))},au=ru,su=["innerRef","isDisabled","isHidden","inputClassName"],Xo=function(e,n){var i=e.isDisabled,t=e.value,o=e.theme,a=o.spacing,l=o.colors;return T(T({visibility:i?"hidden":"visible",transform:t?"translateZ(0)":""},lu),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},Ho={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},lu={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":T({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ho)},uu=function(e){return T({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ho)},cu=function(e){var n=e.cx,i=e.value,t=uo(e),o=t.innerRef,a=t.isDisabled,l=t.isHidden,s=t.inputClassName,u=K(t,su);return jsx$1("div",R({},U(e,"input",{"input-container":true}),{"data-value":i||""}),jsx$1("input",R({className:n({input:true},s),ref:o,style:uu(l),disabled:a},u)))},du=cu,Lo=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors;return T({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:t.baseUnit/2})},Zo=function(e,n){var i=e.theme,t=i.borderRadius,o=i.colors,a=e.cropWithEllipsis;return T({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:t/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Yo=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors,l=e.isFocused;return T({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:t.baseUnit,paddingRight:t.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ko=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",i,n)},pu=ko,fu=ko;function gu(r){var e=r.children,n=r.innerProps;return jsx$1("div",R({role:"button"},n),e||jsx$1(zn,{size:14}))}var mu=function(e){var n=e.children,i=e.components,t=e.data,o=e.innerProps,a=e.isDisabled,l=e.removeProps,s=e.selectProps,u=i.Container,c=i.Label,d=i.Remove;return jsx$1(u,{data:t,innerProps:T(T({},U(e,"multiValue",{"multi-value":true,"multi-value--is-disabled":a})),o),selectProps:s},jsx$1(c,{data:t,innerProps:T({},U(e,"multiValueLabel",{"multi-value__label":true})),selectProps:s},n),jsx$1(d,{data:t,innerProps:T(T({},U(e,"multiValueRemove",{"multi-value__remove":true})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:s}))},bu=mu,Jo=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.theme,l=a.spacing,s=a.colors;return T({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:t?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},hu=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.innerRef,l=e.innerProps;return jsx$1("div",R({},U(e,"option",{option:true,"option--is-disabled":i,"option--is-focused":t,"option--is-selected":o}),{ref:a,"aria-disabled":i},l),n)},vu=hu,zo=function(e,n){var i=e.theme,t=i.spacing,o=i.colors;return T({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:t.baseUnit/2,marginRight:t.baseUnit/2})},Iu=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"placeholder",{placeholder:true}),i),n)},Cu=Iu,jo=function(e,n){var i=e.isDisabled,t=e.theme,o=t.spacing,a=t.colors;return T({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},yu=function(e){var n=e.children,i=e.isDisabled,t=e.innerProps;return jsx$1("div",R({},U(e,"singleValue",{"single-value":true,"single-value--is-disabled":i}),t),n)},xu=yu,Mt={ClearIndicator:$l,Control:nu,DropdownIndicator:Ql,DownChevron:Do,CrossIcon:zn,Group:au,GroupHeading:ou,IndicatorsContainer:zl,IndicatorSeparator:Kl,Input:du,LoadingIndicator:eu,Menu:Xl,MenuList:Hl,MenuPortal:Yl,LoadingMessage:Zl,NoOptionsMessage:Ll,MultiValue:bu,MultiValueContainer:pu,MultiValueLabel:fu,MultiValueRemove:gu,Option:vu,Placeholder:Cu,SelectContainer:kl,SingleValue:xu,ValueContainer:Jl},Wt=function(e){return T(T({},Mt),e.components)};var _o=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Au(r,e){return !!(r===e||_o(r)&&_o(e))}function Eu(r,e){if(r.length!==e.length)return false;for(var n=0;n<r.length;n++)if(!Au(r[n],e[n]))return false;return true}function Xt(r,e){e===void 0&&(e=Eu);var n=null;function i(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(n&&n.lastThis===this&&e(t,n.lastArgs))return n.lastResult;var a=r.apply(this,t);return n={lastResult:a,lastArgs:t,lastThis:this},a}return i.clear=function(){n=null;},i}var Su={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},wu=function(e){return jsx$1("span",R({css:Su},e))},Uo=wu,Gu={guidance:function(e){var n=e.isSearchable,i=e.isMulti,t=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case "menu":return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(t?", press Tab to select the option and exit the menu":"",".");case "input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case "value":return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return ""}},onChange:function(e){var n=e.action,i=e.label,t=i===void 0?"":i,o=e.labels,a=e.isDisabled;switch(n){case "deselect-option":case "pop-value":case "remove-value":return "option ".concat(t,", deselected.");case "clear":return "All selected options have been cleared.";case "initial-input-focus":return "option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case "select-option":return a?"option ".concat(t," is disabled. Select another option."):"option ".concat(t,", selected.");default:return ""}},onFocus:function(e){var n=e.context,i=e.focused,t=e.options,o=e.label,a=o===void 0?"":o,l=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,d=function(b,m){return b&&b.length?"".concat(b.indexOf(m)+1," of ").concat(b.length):""};if(n==="value"&&l)return "value ".concat(a," focused, ").concat(d(l,i),".");if(n==="menu"&&c){var g=s?" disabled":"",f="".concat(u?" selected":"").concat(g);return "".concat(a).concat(f,", ").concat(d(t,i),".")}return ""},onFilter:function(e){var n=e.inputValue,i=e.resultsMessage;return "".concat(i).concat(n?" for search term "+n:"",".")}},Du=function(e){var n=e.ariaSelection,i=e.focusedOption,t=e.focusedValue,o=e.focusableOptions,a=e.isFocused,l=e.selectValue,s=e.selectProps,u=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,g=s.getOptionLabel,f=s.inputValue,I=s.isMulti,b=s.isOptionDisabled,m=s.isSearchable,C=s.menuIsOpen,E=s.options,p=s.screenReaderStatus,y=s.tabSelectsValue,x=s.isLoading,v=s["aria-label"],h=s["aria-live"],A=useMemo(function(){return T(T({},Gu),d||{})},[d]),R=useMemo(function(){var X="";if(n&&A.onChange){var G=n.option,M=n.options,N=n.removedValue,$=n.removedValues,Q=n.value,ne=function(ue){return Array.isArray(ue)?null:ue},Y=N||G||ne(Q),D=Y?g(Y):"",B=M||$||void 0,_=B?B.map(g):[],z=T({isDisabled:Y&&b(Y,l),label:D,labels:_},n);X=A.onChange(z);}return X},[n,A,b,l,g]),O=useMemo(function(){var X="",G=i||t,M=!!(i&&l&&l.includes(i));if(G&&A.onFocus){var N={focused:G,label:g(G),isDisabled:b(G,l),isSelected:M,options:o,context:G===i?"menu":"value",selectValue:l,isAppleDevice:c};X=A.onFocus(N);}return X},[i,t,g,b,A,o,l,c]),V=useMemo(function(){var X="";if(C&&E.length&&!x&&A.onFilter){var G=p({count:o.length});X=A.onFilter({inputValue:f,resultsMessage:G});}return X},[o,f,C,A,E,p,x]),W=(n==null?void 0:n.action)==="initial-input-focus",j=useMemo(function(){var X="";if(A.guidance){var G=t?"value":C?"menu":"input";X=A.guidance({"aria-label":v,context:G,isDisabled:i&&b(i,l),isMulti:I,isSearchable:m,tabSelectsValue:y,isInitialFocus:W});}return X},[v,i,t,I,b,m,C,A,l,y,W]),J=jsx$1(Fragment$1,null,jsx$1("span",{id:"aria-selection"},R),jsx$1("span",{id:"aria-focused"},O),jsx$1("span",{id:"aria-results"},V),jsx$1("span",{id:"aria-guidance"},j));return jsx$1(Fragment$1,null,jsx$1(Uo,{id:u},W&&J),jsx$1(Uo,{"aria-live":h,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!W&&J))},Ou=Du,Qn=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Pu=new RegExp("["+Qn.map(function(r){return r.letters}).join("")+"]","g"),la={};for(Ht=0;Ht<Qn.length;Ht++)for(Lt=Qn[Ht],Zt=0;Zt<Lt.letters.length;Zt++)la[Lt.letters[Zt]]=Lt.base;var Lt,Zt,Ht,ua=function(e){return e.replace(Pu,function(n){return la[n]})},Bu=Xt(ua),Qo=function(e){return e.replace(/^\s+|\s+$/g,"")},Vu=function(e){return "".concat(e.label," ").concat(e.value)},Fu=function(e){return function(n,i){if(n.data.__isNew__)return true;var t=T({ignoreCase:true,ignoreAccents:true,stringify:Vu,trim:true,matchFrom:"any"},e),o=t.ignoreCase,a=t.ignoreAccents,l=t.stringify,s=t.trim,u=t.matchFrom,c=s?Qo(i):i,d=s?Qo(l(n)):l(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=Bu(c),d=ua(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Nu=["innerRef"];function Mu(r){var e=r.innerRef,n=K(r,Nu),i=bo(n,"onExited","in","enter","exit","appear");return jsx$1("input",R({ref:e},i,{css:css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Wu=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation();};function Xu(r){var e=r.isEnabled,n=r.onBottomArrive,i=r.onBottomLeave,t=r.onTopArrive,o=r.onTopLeave,a=useRef(false),l=useRef(false),s=useRef(0),u=useRef(null),c=useCallback(function(m,C){if(u.current!==null){var E=u.current,p=E.scrollTop,y=E.scrollHeight,x=E.clientHeight,v=u.current,h=C>0,A=y-x-p,R=false;A>C&&a.current&&(i&&i(m),a.current=false),h&&l.current&&(o&&o(m),l.current=false),h&&C>A?(n&&!a.current&&n(m),v.scrollTop=y,R=true,a.current=true):!h&&-C>p&&(t&&!l.current&&t(m),v.scrollTop=0,R=true,l.current=true),R&&Wu(m);}},[n,i,t,o]),d=useCallback(function(m){c(m,m.deltaY);},[c]),g=useCallback(function(m){s.current=m.changedTouches[0].clientY;},[]),f=useCallback(function(m){var C=s.current-m.changedTouches[0].clientY;c(m,C);},[c]),I=useCallback(function(m){if(m){var C=go?{passive:false}:false;m.addEventListener("wheel",d,C),m.addEventListener("touchstart",g,C),m.addEventListener("touchmove",f,C);}},[f,g,d]),b=useCallback(function(m){m&&(m.removeEventListener("wheel",d,false),m.removeEventListener("touchstart",g,false),m.removeEventListener("touchmove",f,false));},[f,g,d]);return useEffect(function(){if(e){var m=u.current;return I(m),function(){b(m);}}},[e,I,b]),function(m){u.current=m;}}var $o=["boxSizing","height","overflow","paddingRight","position"],Ko={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function qo(r){r.cancelable&&r.preventDefault();}function ea(r){r.stopPropagation();}function ta(){var r=this.scrollTop,e=this.scrollHeight,n=r+this.offsetHeight;r===0?this.scrollTop=1:n===e&&(this.scrollTop=r-1);}function na(){return "ontouchstart"in window||navigator.maxTouchPoints}var ia=!!(typeof window!="undefined"&&window.document&&window.document.createElement),ze=0,Re={capture:false,passive:false};function Hu(r){var e=r.isEnabled,n=r.accountForScrollbars,i=n===void 0?true:n,t=useRef({}),o=useRef(null),a=useCallback(function(s){if(ia){var u=document.body,c=u&&u.style;if(i&&$o.forEach(function(I){var b=c&&c[I];t.current[I]=b;}),i&&ze<1){var d=parseInt(t.current.paddingRight,10)||0,g=document.body?document.body.clientWidth:0,f=window.innerWidth-g+d||0;Object.keys(Ko).forEach(function(I){var b=Ko[I];c&&(c[I]=b);}),c&&(c.paddingRight="".concat(f,"px"));}u&&na()&&(u.addEventListener("touchmove",qo,Re),s&&(s.addEventListener("touchstart",ta,Re),s.addEventListener("touchmove",ea,Re))),ze+=1;}},[i]),l=useCallback(function(s){if(ia){var u=document.body,c=u&&u.style;ze=Math.max(ze-1,0),i&&ze<1&&$o.forEach(function(d){var g=t.current[d];c&&(c[d]=g);}),u&&na()&&(u.removeEventListener("touchmove",qo,Re),s&&(s.removeEventListener("touchstart",ta,Re),s.removeEventListener("touchmove",ea,Re)));}},[i]);return useEffect(function(){if(e){var s=o.current;return a(s),function(){l(s);}}},[e,a,l]),function(s){o.current=s;}}var Lu=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Zu={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yu(r){var e=r.children,n=r.lockEnabled,i=r.captureEnabled,t=i===void 0?true:i,o=r.onBottomArrive,a=r.onBottomLeave,l=r.onTopArrive,s=r.onTopLeave,u=Xu({isEnabled:t,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),c=Hu({isEnabled:n}),d=function(f){u(f),c(f);};return jsx$1(Fragment$1,null,n&&jsx$1("div",{onClick:Lu,css:Zu}),e(d))}var ku={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ju=function(e){var n=e.name,i=e.onFocus;return jsx$1("input",{required:true,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:ku,value:"",onChange:function(){}})},zu=Ju;function $n(r){var e;return typeof window!="undefined"&&window.navigator!=null?r.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):false}function ju(){return $n(/^iPhone/i)}function ca(){return $n(/^Mac/i)}function _u(){return $n(/^iPad/i)||ca()&&navigator.maxTouchPoints>1}function Uu(){return ju()||_u()}function Qu(){return ca()||Uu()}var $u=function(e){return e.label},Ku=function(e){return e.label},qu=function(e){return e.value},ec=function(e){return !!e.isDisabled},tc={clearIndicator:Bo,container:Ro,control:No,dropdownIndicator:Po,group:Mo,groupHeading:Wo,indicatorsContainer:wo,indicatorSeparator:Vo,input:Xo,loadingIndicator:Fo,loadingMessage:Eo,menu:vo,menuList:yo,menuPortal:To,multiValue:Lo,multiValueLabel:Zo,multiValueRemove:Yo,noOptionsMessage:Ao,option:Jo,placeholder:zo,singleValue:jo,valueContainer:So};var nc={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},ic=4,da=4,rc=38,oc=da*2,ac={baseUnit:da,controlHeight:rc,menuGutter:oc},jn={borderRadius:ic,colors:nc,spacing:ac},sc={"aria-live":"polite",backspaceRemovesValue:true,blurInputOnSelect:Jn(),captureMenuScroll:!Jn(),classNames:{},closeMenuOnSelect:true,closeMenuOnScroll:false,components:{},controlShouldRenderValue:true,escapeClearsValue:false,filterOption:Fu(),formatGroupLabel:$u,getOptionLabel:Ku,getOptionValue:qu,isDisabled:false,isLoading:false,isMulti:false,isRtl:false,isSearchable:true,isOptionDisabled:ec,loadingMessage:function(){return "Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:false,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:false,menuShouldScrollIntoView:!po(),noOptionsMessage:function(){return "No options"},openMenuOnFocus:false,openMenuOnClick:true,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return "".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:true,unstyled:false};function ra(r,e,n,i){var t=ga(r,e,n),o=ma(r,e,n),a=fa(r,e),l=kt(r,e);return {type:"option",data:e,isDisabled:t,isSelected:o,label:a,value:l,index:i}}function Yt(r,e){return r.options.map(function(n,i){if("options"in n){var t=n.options.map(function(a,l){return ra(r,a,e,l)}).filter(function(a){return aa(r,a)});return t.length>0?{type:"group",data:n,options:t,index:i}:void 0}var o=ra(r,n,e,i);return aa(r,o)?o:void 0}).filter(mo)}function pa(r){return r.reduce(function(e,n){return n.type==="group"?e.push.apply(e,Rt(n.options.map(function(i){return i.data}))):e.push(n.data),e},[])}function oa(r,e){return r.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Rt(i.options.map(function(t){return {data:t.data,id:"".concat(e,"-").concat(i.index,"-").concat(t.index)}}))):n.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),n},[])}function lc(r,e){return pa(Yt(r,e))}function aa(r,e){var n=r.inputValue,i=n===void 0?"":n,t=e.data,o=e.isSelected,a=e.label,l=e.value;return (!ha(r)||!o)&&ba(r,{label:a,value:l,data:t},i)}function uc(r,e){var n=r.focusedValue,i=r.selectValue,t=i.indexOf(n);if(t>-1){var o=e.indexOf(n);if(o>-1)return n;if(t<e.length)return e[t]}return null}function cc(r,e){var n=r.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var _n=function(e,n){var i,t=(i=e.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return t||null},fa=function(e,n){return e.getOptionLabel(n)},kt=function(e,n){return e.getOptionValue(n)};function ga(r,e,n){return typeof r.isOptionDisabled=="function"?r.isOptionDisabled(e,n):false}function ma(r,e,n){if(n.indexOf(e)>-1)return true;if(typeof r.isOptionSelected=="function")return r.isOptionSelected(e,n);var i=kt(r,e);return n.some(function(t){return kt(r,t)===i})}function ba(r,e,n){return r.filterOption?r.filterOption(e,n):true}var ha=function(e){var n=e.hideSelectedOptions,i=e.isMulti;return n===void 0?i:n},dc=1,Kn=(function(r){Yr(n,r);var e=Jr(n);function n(i){var t;if(Hr(this,n),t=e.call(this,i),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:false,isFocused:false,selectValue:[],clearFocusValueOnUpdate:false,prevWasFocused:false,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:false},t.blockOptionHover=false,t.isComposing=false,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=false,t.scrollToFocusedOptionOnUpdate=false,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(s){t.controlRef=s;},t.focusedOptionRef=null,t.getFocusedOptionRef=function(s){t.focusedOptionRef=s;},t.menuListRef=null,t.getMenuListRef=function(s){t.menuListRef=s;},t.inputRef=null,t.getInputRef=function(s){t.inputRef=s;},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(s,u){var c=t.props,d=c.onChange,g=c.name;u.name=g,t.ariaOnChange(s,u),d(s,u);},t.setValue=function(s,u,c){var d=t.props,g=d.closeMenuOnSelect,f=d.isMulti,I=d.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:I}),g&&(t.setState({inputIsHiddenAfterUpdate:!f}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:true}),t.onChange(s,{action:u,option:c});},t.selectOption=function(s){var u=t.props,c=u.blurInputOnSelect,d=u.isMulti,g=u.name,f=t.state.selectValue,I=d&&t.isOptionSelected(s,f),b=t.isOptionDisabled(s,f);if(I){var m=t.getOptionValue(s);t.setValue(f.filter(function(C){return t.getOptionValue(C)!==m}),"deselect-option",s);}else if(!b)d?t.setValue([].concat(Rt(f),[s]),"select-option",s):t.setValue(s,"select-option");else {t.ariaOnChange(s,{action:"select-option",option:s,name:g});return}c&&t.blurInput();},t.removeValue=function(s){var u=t.props.isMulti,c=t.state.selectValue,d=t.getOptionValue(s),g=c.filter(function(I){return t.getOptionValue(I)!==d}),f=ke(u,g,g[0]||null);t.onChange(f,{action:"remove-value",removedValue:s}),t.focusInput();},t.clearValue=function(){var s=t.state.selectValue;t.onChange(ke(t.props.isMulti,[],null),{action:"clear",removedValues:s});},t.popValue=function(){var s=t.props.isMulti,u=t.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),g=ke(s,d,d[0]||null);c&&t.onChange(g,{action:"pop-value",removedValue:c});},t.getFocusedOptionId=function(s){return _n(t.state.focusableOptionsWithIds,s)},t.getFocusableOptionsWithIds=function(){return oa(Yt(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return lo.apply(void 0,[t.props.classNamePrefix].concat(u))},t.getOptionLabel=function(s){return fa(t.props,s)},t.getOptionValue=function(s){return kt(t.props,s)},t.getStyles=function(s,u){var c=t.props.unstyled,d=tc[s](u,c);d.boxSizing="border-box";var g=t.props.styles[s];return g?g(d,u):d},t.getClassNames=function(s,u){var c,d;return (c=(d=t.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},t.getElementId=function(s){return "".concat(t.state.instancePrefix,"-").concat(s)},t.getComponents=function(){return Wt(t.props)},t.buildCategorizedOptions=function(){return Yt(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return pa(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(s,u){t.setState({ariaSelection:T({value:s},u)});},t.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),t.focusInput());},t.onMenuMouseMove=function(s){t.blockOptionHover=false;},t.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&t.onMenuClose():u&&t.openMenu("first"):(u&&(t.openAfterFocus=true),t.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault();}},t.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!t.props.isDisabled){var u=t.props,c=u.isMulti,d=u.menuIsOpen;t.focusInput(),d?(t.setState({inputIsHiddenAfterUpdate:!c}),t.onMenuClose()):t.openMenu("first"),s.preventDefault();}},t.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(t.clearValue(),s.preventDefault(),t.openAfterFocus=false,s.type==="touchend"?t.focusInput():setTimeout(function(){return t.focusInput()}));},t.onScroll=function(s){typeof t.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Ye(s.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll=="function"&&t.props.closeMenuOnScroll(s)&&t.props.onMenuClose();},t.onCompositionStart=function(){t.isComposing=true;},t.onCompositionEnd=function(){t.isComposing=false;},t.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(t.initialTouchX=c.clientX,t.initialTouchY=c.clientY,t.userIsDragging=false);},t.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-t.initialTouchX),g=Math.abs(c.clientY-t.initialTouchY),f=5;t.userIsDragging=d>f||g>f;}},t.onTouchEnd=function(s){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(s.target)&&t.menuListRef&&!t.menuListRef.contains(s.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0);},t.onControlTouchEnd=function(s){t.userIsDragging||t.onControlMouseDown(s);},t.onClearIndicatorTouchEnd=function(s){t.userIsDragging||t.onClearIndicatorMouseDown(s);},t.onDropdownIndicatorTouchEnd=function(s){t.userIsDragging||t.onDropdownIndicatorMouseDown(s);},t.handleInputChange=function(s){var u=t.props.inputValue,c=s.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange(c,{action:"input-change",prevInputValue:u}),t.props.menuIsOpen||t.onMenuOpen();},t.onInputFocus=function(s){t.props.onFocus&&t.props.onFocus(s),t.setState({inputIsHiddenAfterUpdate:false,isFocused:true}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=false;},t.onInputBlur=function(s){var u=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(s),t.onInputChange("",{action:"input-blur",prevInputValue:u}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:false});},t.onOptionHover=function(s){if(!(t.blockOptionHover||t.state.focusedOption===s)){var u=t.getFocusableOptions(),c=u.indexOf(s);t.setState({focusedOption:s,focusedOptionId:c>-1?t.getFocusedOptionId(s):null});}},t.shouldHideSelectedOptions=function(){return ha(t.props)},t.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),t.focus();},t.onKeyDown=function(s){var u=t.props,c=u.isMulti,d=u.backspaceRemovesValue,g=u.escapeClearsValue,f=u.inputValue,I=u.isClearable,b=u.isDisabled,m=u.menuIsOpen,C=u.onKeyDown,E=u.tabSelectsValue,p=u.openMenuOnFocus,y=t.state,x=y.focusedOption,v=y.focusedValue,h=y.selectValue;if(!b&&!(typeof C=="function"&&(C(s),s.defaultPrevented))){switch(t.blockOptionHover=true,s.key){case "ArrowLeft":if(!c||f)return;t.focusValue("previous");break;case "ArrowRight":if(!c||f)return;t.focusValue("next");break;case "Delete":case "Backspace":if(f)return;if(v)t.removeValue(v);else {if(!d)return;c?t.popValue():I&&t.clearValue();}break;case "Tab":if(t.isComposing||s.shiftKey||!m||!E||!x||p&&t.isOptionSelected(x,h))return;t.selectOption(x);break;case "Enter":if(s.keyCode===229)break;if(m){if(!x||t.isComposing)return;t.selectOption(x);break}return;case "Escape":m?(t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange("",{action:"menu-close",prevInputValue:f}),t.onMenuClose()):I&&g&&t.clearValue();break;case " ":if(f)return;if(!m){t.openMenu("first");break}if(!x)return;t.selectOption(x);break;case "ArrowUp":m?t.focusOption("up"):t.openMenu("last");break;case "ArrowDown":m?t.focusOption("down"):t.openMenu("first");break;case "PageUp":if(!m)return;t.focusOption("pageup");break;case "PageDown":if(!m)return;t.focusOption("pagedown");break;case "Home":if(!m)return;t.focusOption("first");break;case "End":if(!m)return;t.focusOption("last");break;default:return}s.preventDefault();}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++dc),t.state.selectValue=Yn(i.value),i.menuIsOpen&&t.state.selectValue.length){var o=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),l=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=o,t.state.focusedOption=a[l],t.state.focusedOptionId=_n(o,a[l]);}return t}return Zr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,true),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kn(this.menuListRef,this.focusedOptionRef),Qu()&&this.setState({isAppleDevice:true});}},{key:"componentDidUpdate",value:function(t){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&t.isDisabled||s&&l&&!t.menuIsOpen)&&this.focusInput(),s&&a&&!t.isDisabled?this.setState({isFocused:false},this.onMenuClose):!s&&!a&&t.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:true}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kn(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=false);}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,true);}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen();}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose();}},{key:"onInputChange",value:function(t,o){this.props.onInputChange(t,o);}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus();}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur();}},{key:"openMenu",value:function(t){var o=this,a=this.state,l=a.selectValue,s=a.isFocused,u=this.buildFocusableOptions(),c=t==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(l[0]);d>-1&&(c=d);}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:false,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()});}},{key:"focusValue",value:function(t){var o=this.state,a=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var u=a.length-1,c=-1;if(a.length){switch(t){case "previous":s===0?c=0:s===-1?c=u:c=s-1;break;case "next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]});}}}},{key:"focusOption",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,u=l.indexOf(a);a||(u=-1),t==="up"?s=u>0?u-1:l.length-1:t==="down"?s=(u+1)%l.length:t==="pageup"?(s=u-o,s<0&&(s=0)):t==="pagedown"?(s=u+o,s>l.length-1&&(s=l.length-1)):t==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=true,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])});}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(jn):T(T({},jn),this.props.theme):jn}},{key:"getCommonProps",value:function(){var t=this.clearValue,o=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,g=d.isMulti,f=d.isRtl,I=d.options,b=this.hasValue();return {clearValue:t,cx:o,getStyles:a,getClassNames:l,getValue:s,hasValue:b,isMulti:g,isRtl:f,options:I,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var t=this.state.selectValue;return t.length>0}},{key:"hasOptions",value:function(){return !!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var t=this.props,o=t.isClearable,a=t.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(t,o){return ga(this.props,t,o)}},{key:"isOptionSelected",value:function(t,o){return ma(this.props,t,o)}},{key:"filterOption",value:function(t,o){return ba(this.props,t,o)}},{key:"formatOptionLabel",value:function(t,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(t,{context:o,inputValue:a,selectValue:l})}else return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,false),document.addEventListener("compositionend",this.onCompositionEnd,false));}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd));}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,false),document.addEventListener("touchmove",this.onTouchMove,false),document.addEventListener("touchend",this.onTouchEnd,false));}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd));}},{key:"renderInput",value:function(){var t=this.props,o=t.isDisabled,a=t.isSearchable,l=t.inputId,s=t.inputValue,u=t.tabIndex,c=t.form,d=t.menuIsOpen,g=t.required,f=this.getComponents(),I=f.Input,b=this.state,m=b.inputIsHidden,C=b.ariaSelection,E=this.commonProps,p=l||this.getElementId("input"),y=T(T(T({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":true,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":g,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":true}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Z.createElement(I,R({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},y)):Z.createElement(Mu,R({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ze,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,g=this.commonProps,f=this.props,I=f.controlShouldRenderValue,b=f.isDisabled,m=f.isMulti,C=f.inputValue,E=f.placeholder,p=this.state,y=p.selectValue,x=p.focusedValue,v=p.isFocused;if(!this.hasValue()||!I)return C?null:Z.createElement(d,R({},g,{key:"placeholder",isDisabled:b,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),E);if(m)return y.map(function(A,R$1){var O=A===x,V="".concat(t.getOptionLabel(A),"-").concat(t.getOptionValue(A));return Z.createElement(a,R({},g,{components:{Container:l,Label:s,Remove:u},isFocused:O,isDisabled:b,key:V,index:R$1,removeProps:{onClick:function(){return t.removeValue(A)},onTouchEnd:function(){return t.removeValue(A)},onMouseDown:function(j){j.preventDefault();}},data:A}),t.formatOptionLabel(A,"value"))});if(C)return null;var h=y[0];return Z.createElement(c,R({},g,{data:h,isDisabled:b}),this.formatOptionLabel(h,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents(),o=t.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(o,R({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents(),o=t.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return Z.createElement(o,R({},a,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator,a=t.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return Z.createElement(a,R({},l,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(o,R({},a,{innerProps:u,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var t=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,g=o.NoOptionsMessage,f=o.Option,I=this.commonProps,b=this.state.focusedOption,m=this.props,C=m.captureMenuScroll,E=m.inputValue,p=m.isLoading,y=m.loadingMessage,x=m.minMenuHeight,v=m.maxMenuHeight,h=m.menuIsOpen,A=m.menuPlacement,R$1=m.menuPosition,O=m.menuPortalTarget,V=m.menuShouldBlockScroll,W=m.menuShouldScrollIntoView,j=m.noOptionsMessage,J=m.onMenuScrollToTop,X=m.onMenuScrollToBottom;if(!h)return null;var G=function(D,B){var _=D.type,z=D.data,te=D.isDisabled,ue=D.isSelected,xe=D.label,Ke=D.value,qe=b===z,et=te?void 0:function(){return t.onOptionHover(z)},tn=te?void 0:function(){return t.selectOption(z)},tt="".concat(t.getElementId("option"),"-").concat(B),nn={id:tt,onClick:tn,onMouseMove:et,onMouseOver:et,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:ue};return Z.createElement(f,R({},I,{innerProps:nn,data:z,isDisabled:te,isSelected:ue,key:tt,label:xe,type:_,value:Ke,isFocused:qe,innerRef:qe?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(D.data,"menu"))},M;if(this.hasOptions())M=this.getCategorizedOptions().map(function(Y){if(Y.type==="group"){var D=Y.data,B=Y.options,_=Y.index,z="".concat(t.getElementId("group"),"-").concat(_),te="".concat(z,"-heading");return Z.createElement(a,R({},I,{key:z,data:D,options:B,Heading:l,headingProps:{id:te,data:Y.data},label:t.formatGroupLabel(Y.data)}),Y.options.map(function(ue){return G(ue,"".concat(_,"-").concat(ue.index))}))}else if(Y.type==="option")return G(Y,"".concat(Y.index))});else if(p){var N=y({inputValue:E});if(N===null)return null;M=Z.createElement(d,I,N);}else {var $=j({inputValue:E});if($===null)return null;M=Z.createElement(g,I,$);}var Q={minMenuHeight:x,maxMenuHeight:v,menuPlacement:A,menuPosition:R$1,menuShouldScrollIntoView:W},ne=Z.createElement(Co,R({},I,Q),function(Y){var D=Y.ref,B=Y.placerProps,_=B.placement,z=B.maxHeight;return Z.createElement(s,R({},I,Q,{innerRef:D,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:p,placement:_}),Z.createElement(Yu,{captureEnabled:C,onTopArrive:J,onBottomArrive:X,lockEnabled:V},function(te){return Z.createElement(u,R({},I,{innerRef:function(xe){t.getMenuListRef(xe),te(xe);},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:t.getElementId("listbox")},isLoading:p,maxHeight:z,focusedOption:b}),M)}))});return O||R$1==="fixed"?Z.createElement(c,R({},I,{appendTo:O,controlElement:this.controlRef,menuPlacement:A,menuPosition:R$1}),ne):ne}},{key:"renderFormField",value:function(){var t=this,o=this.props,a=o.delimiter,l=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!l)return Z.createElement(zu,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(s)if(a){var g=d.map(function(b){return t.getOptionValue(b)}).join(a);return Z.createElement("input",{name:u,type:"hidden",value:g})}else {var f=d.length>0?d.map(function(b,m){return Z.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:t.getOptionValue(b)})}):Z.createElement("input",{name:u,type:"hidden",value:""});return Z.createElement("div",null,f)}else {var I=d[0]?this.getOptionValue(d[0]):"";return Z.createElement("input",{name:u,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return Z.createElement(Ou,R({},t,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),o=t.Control,a=t.IndicatorsContainer,l=t.SelectContainer,s=t.ValueContainer,u=this.props,c=u.className,d=u.id,g=u.isDisabled,f=u.menuIsOpen,I=this.state.isFocused,b=this.commonProps=this.getCommonProps();return Z.createElement(l,R({},b,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:g,isFocused:I}),this.renderLiveRegion(),Z.createElement(o,R({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:g,isFocused:I,menuIsOpen:f}),Z.createElement(s,R({},b,{isDisabled:g}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(a,R({},b,{isDisabled:g}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(t,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,g=o.instancePrefix,f=t.options,I=t.value,b=t.menuIsOpen,m=t.inputValue,C=t.isMulti,E=Yn(I),p={};if(a&&(I!==a.value||f!==a.options||b!==a.menuIsOpen||m!==a.inputValue)){var y=b?lc(t,E):[],x=b?oa(Yt(t,E),"".concat(g,"-option")):[],v=l?uc(o,E):null,h=cc(o,y),A=_n(x,h);p={selectValue:E,focusedOption:h,focusedOptionId:A,focusableOptionsWithIds:x,focusedValue:v,clearFocusValueOnUpdate:false};}var R=s!=null&&t!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},O=u,V=c&&d;return c&&!V&&(O={value:ke(C,E,E[0]||null),options:E,action:"initial-input-focus"},V=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(O=null),T(T(T({},p),R),{},{prevProps:t,ariaSelection:O,prevWasFocused:V})}}]),n})(Component);Kn.defaultProps=sc;var fc=forwardRef(function(r,e){var n=Xr(r);return Z.createElement(Kn,R({ref:e},n))}),Ia=fc;function Jt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Te(r,e);}var qn={disabled:false};var we=Z__default.createContext(null);var Ca=function(e){return e.scrollTop};var je="unmounted",Ie="exited",Ce="entering",De="entered",ei="exiting",pe=(function(r){Jt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=t,l=a&&!a.isMounting?i.enter:i.appear,s;return o.appearStatus=null,i.in?l?(s=Ie,o.appearStatus=Ce):s=De:i.unmountOnExit||i.mountOnEnter?s=je:s=Ie,o.state={status:s},o.nextCallback=null,o}e.getDerivedStateFromProps=function(t,o){var a=t.in;return a&&o.status===je?{status:Ie}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(true,this.appearStatus);},n.componentDidUpdate=function(t){var o=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==Ce&&a!==De&&(o=Ce):(a===Ce||a===De)&&(o=ei);}this.updateStatus(false,o);},n.componentWillUnmount=function(){this.cancelNextCallback();},n.getTimeouts=function(){var t=this.props.timeout,o,a,l;return o=a=l=t,t!=null&&typeof t!="number"&&(o=t.exit,a=t.enter,l=t.appear!==void 0?t.appear:a),{exit:o,enter:a,appear:l}},n.updateStatus=function(t,o){if(t===void 0&&(t=false),o!==null)if(this.cancelNextCallback(),o===Ce){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:jt.findDOMNode(this);a&&Ca(a);}this.performEnter(t);}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ie&&this.setState({status:je});},n.performEnter=function(t){var o=this,a=this.props.enter,l=this.context?this.context.isMounting:t,s=this.props.nodeRef?[l]:[jt.findDOMNode(this),l],u=s[0],c=s[1],d=this.getTimeouts(),g=l?d.appear:d.enter;if(!t&&!a||qn.disabled){this.safeSetState({status:De},function(){o.props.onEntered(u);});return}this.props.onEnter(u,c),this.safeSetState({status:Ce},function(){o.props.onEntering(u,c),o.onTransitionEnd(g,function(){o.safeSetState({status:De},function(){o.props.onEntered(u,c);});});});},n.performExit=function(){var t=this,o=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:jt.findDOMNode(this);if(!o||qn.disabled){this.safeSetState({status:Ie},function(){t.props.onExited(l);});return}this.props.onExit(l),this.safeSetState({status:ei},function(){t.props.onExiting(l),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:Ie},function(){t.props.onExited(l);});});});},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null);},n.safeSetState=function(t,o){o=this.setNextCallback(o),this.setState(t,o);},n.setNextCallback=function(t){var o=this,a=true;return this.nextCallback=function(l){a&&(a=false,o.nextCallback=null,t(l));},this.nextCallback.cancel=function(){a=false;},this.nextCallback},n.onTransitionEnd=function(t,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:jt.findDOMNode(this),l=t==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c);}t!=null&&setTimeout(this.nextCallback,t);},n.render=function(){var t=this.state.status;if(t===je)return null;var o=this.props,a=o.children;o.in;o.mountOnEnter;o.unmountOnExit;o.appear;o.enter;o.exit;o.timeout;o.addEndListener;o.onEnter;o.onEntering;o.onEntered;o.onExit;o.onExiting;o.onExited;o.nodeRef;var v=Ee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z__default.createElement(we.Provider,{value:null},typeof a=="function"?a(t,v):Z__default.cloneElement(Z__default.Children.only(a),v))},e})(Z__default.Component);pe.contextType=we;pe.propTypes={};function Ge(){}pe.defaultProps={in:false,mountOnEnter:false,unmountOnExit:false,appear:false,enter:true,exit:true,onEnter:Ge,onEntering:Ge,onEntered:Ge,onExit:Ge,onExiting:Ge,onExited:Ge};pe.UNMOUNTED=je;pe.EXITED=Ie;pe.ENTERING=Ce;pe.ENTERED=De;pe.EXITING=ei;var _t=pe;function $t(r,e){var n=function(o){return e&&isValidElement(o)?e(o):o},i=Object.create(null);return r&&Children.map(r,function(t){return t}).forEach(function(t){i[t.key]=n(t);}),i}function bc(r,e){r=r||{},e=e||{};function n(c){return c in e?e[c]:r[c]}var i=Object.create(null),t=[];for(var o in r)o in e?t.length&&(i[o]=t,t=[]):t.push(o);var a,l={};for(var s in e){if(i[s])for(a=0;a<i[s].length;a++){var u=i[s][a];l[i[s][a]]=n(u);}l[s]=n(s);}for(a=0;a<t.length;a++)l[t[a]]=n(t[a]);return l}function ye(r,e,n){return n[e]!=null?n[e]:r.props[e]}function ya(r,e){return $t(r.children,function(n){return cloneElement(n,{onExited:e.bind(null,n),in:true,appear:ye(n,"appear",r),enter:ye(n,"enter",r),exit:ye(n,"exit",r)})})}function xa(r,e,n){var i=$t(r.children),t=bc(e,i);return Object.keys(t).forEach(function(o){var a=t[o];if(isValidElement(a)){var l=o in e,s=o in i,u=e[o],c=isValidElement(u)&&!u.props.in;s&&(!l||c)?t[o]=cloneElement(a,{onExited:n.bind(null,a),in:true,exit:ye(a,"exit",r),enter:ye(a,"enter",r)}):!s&&l&&!c?t[o]=cloneElement(a,{in:false}):s&&l&&isValidElement(u)&&(t[o]=cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:ye(a,"exit",r),enter:ye(a,"enter",r)}));}}),t}var hc=Object.values||function(r){return Object.keys(r).map(function(e){return r[e]})},vc={component:"div",childFactory:function(e){return e}},ti=(function(r){Jt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=o.handleExited.bind(Tt(o));return o.state={contextValue:{isMounting:true},handleExited:a,firstRender:true},o}var n=e.prototype;return n.componentDidMount=function(){this.mounted=true,this.setState({contextValue:{isMounting:false}});},n.componentWillUnmount=function(){this.mounted=false;},e.getDerivedStateFromProps=function(t,o){var a=o.children,l=o.handleExited,s=o.firstRender;return {children:s?ya(t,l):xa(t,a,l),firstRender:false}},n.handleExited=function(t,o){var a=$t(this.props.children);t.key in a||(t.props.onExited&&t.props.onExited(o),this.mounted&&this.setState(function(l){var s=R({},l.children);return delete s[t.key],{children:s}}));},n.render=function(){var t=this.props,o=t.component,a=t.childFactory,l=Ee(t,["component","childFactory"]),s=this.state.contextValue,u=hc(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,o===null?Z__default.createElement(we.Provider,{value:s},u):Z__default.createElement(we.Provider,{value:s},Z__default.createElement(o,l,u))},e})(Z__default.Component);ti.propTypes={};ti.defaultProps=vc;var qt=ti;var Ic=["in","onExited","appear","enter","exit"],Cc=function(e){return function(n){n.in,n.onExited,n.appear,n.enter,n.exit;var i=K(n,Ic);return Z.createElement(e,i)}},yc=Cc,xc=["component","duration","in","onExited"],Ea=function(e){var n=e.component,i=e.duration,t=i===void 0?1:i,o=e.in;e.onExited;var a=K(e,xc),l=useRef(null),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(t,"ms")},exiting:{opacity:0},exited:{opacity:0}};return Z.createElement(_t,{mountOnEnter:true,unmountOnExit:true,in:o,timeout:t,nodeRef:l},function(u){var c={style:T({},s[u]),ref:l};return Z.createElement(n,R({innerProps:c},a))})},ri=260,Ac=function(e){var n=e.children,i=e.in,t=e.onExited,o=useRef(null),a=useState("auto"),l=re(a,2),s=l[0],u=l[1];useEffect(function(){var d=o.current;if(d){var g=window.requestAnimationFrame(function(){return u(d.getBoundingClientRect().width)});return function(){return window.cancelAnimationFrame(g)}}},[]);var c=function(g){switch(g){default:return {width:s};case "exiting":return {width:0,transition:"width ".concat(ri,"ms ease-out")};case "exited":return {width:0}}};return Z.createElement(_t,{enter:false,mountOnEnter:true,unmountOnExit:true,in:i,onExited:function(){var g=o.current;g&&(t==null||t(g));},timeout:ri,nodeRef:o},function(d){return Z.createElement("div",{ref:o,style:T({overflow:"hidden",whiteSpace:"nowrap"},c(d))},n)})},Ec=["in","onExited"],Tc=function(e){return function(n){var i=n.in,t=n.onExited,o=K(n,Ec);return Z.createElement(Ac,{in:i,onExited:t},Z.createElement(e,R({cropWithEllipsis:i},o)))}},Rc=Tc,Sc=function(e){return function(n){return Z.createElement(Ea,R({component:e,duration:n.isMulti?ri:1},n))}},wc=Sc,Gc=function(e){return function(n){return Z.createElement(Ea,R({component:e},n))}},Dc=Gc,Oc=["component"],Pc=["children"],Bc=function(e){return function(n){return n.isMulti?Z.createElement(Vc,R({component:e},n)):Z.createElement(qt,R({component:e},n))}},Vc=function(e){var n=e.component,i=K(e,Oc),t=Fc(i);return Z.createElement(qt,R({component:n},t))},Fc=function(e){var n=e.children,i=K(e,Pc),t=i.isMulti,o=i.hasValue,a=i.innerProps,l=i.selectProps,s=l.components,u=l.controlShouldRenderValue,c=useState(t&&u&&o),d=re(c,2),g=d[0],f=d[1],I=useState(false),b=re(I,2),m=b[0],C=b[1];useEffect(function(){o&&!g&&f(true);},[o,g]),useEffect(function(){m&&!o&&g&&f(false),C(false);},[m,o,g]);var E=function(){return C(true)},p=function(h){if(t&&Z.isValidElement(h)){if(h.type===s.MultiValue)return Z.cloneElement(h,{onExited:E});if(h.type===s.Placeholder&&g)return null}return h},y=T(T({},a),{},{style:T(T({},a==null?void 0:a.style),{},{display:t&&o||g?"flex":"grid"})}),x=T(T({},i),{},{innerProps:y,children:Z.Children.toArray(n).map(p)});return x},Nc=Bc,Mc=["Input","MultiValue","Placeholder","SingleValue","ValueContainer"],Ta=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Wt({components:e}),i=n.Input,t=n.MultiValue,o=n.Placeholder,a=n.SingleValue,l=n.ValueContainer,s=K(n,Mc);return T({Input:yc(i),MultiValue:Rc(t),Placeholder:wc(o),SingleValue:Dc(a),ValueContainer:Nc(l)},s)},_e=Ta();_e.Input;_e.MultiValue;_e.Placeholder;_e.SingleValue;_e.ValueContainer;var Ra=Xt(Ta);var oi=class extends Z__default.PureComponent{constructor(n){var i,t,o,a;super(n);this._valueSeparator="\xA4";this.onBlur=()=>{this.state.propvalue!==""&&this.setState(n=>({redraw:!n.redraw}));};this.onChange=n=>{var t,o;(o=(t=this.selectRef)==null?void 0:t.blur)==null||o.call(t);let i=this.convertToStr(n);this.setState({propvalue:i},()=>this.props.propChanged?this.props.propChanged(this.props.propname,i):null);};this.convertToStr=n=>n?n.value:"";this.state={isLoaded:false,disabled:(i=n.disabled)!=null?i:false,propname:n.propname,propvalue:n.propvalue,defaultValue:(t=n.defaultValue)!=null?t:"",redraw:false,hidelabel:(o=n.hidelabel)!=null?o:false,tabIndex:(a=n.tabIndex)!=null?a:0,widgetOptions:[]};}componentDidMount(){let n=this.getWidgetOptions();this.setState({widgetOptions:n,defaultValue:this.props.defaultValue,isLoaded:true});}componentDidUpdate(n){var i,t;this.state.disabled!==this.props.disabled&&this.setState({disabled:!!this.props.disabled}),n.propvalue!==this.props.propvalue&&this.setState({propvalue:this.props.propvalue}),this.selectRef&&this.state.tabIndex===this.selectRef.tabIndex&&((t=(i=this.selectRef).focus)==null||t.call(i));}render(){var d,g;if(!this.state.isLoaded)return null;let n={container:f=>({...f,display:"inline-block",width:"100%",minHeight:1,textAlign:"left",border:"none"}),control:f=>({...f,borderRadius:0,minHeight:1,border:0,outline:0}),dropdownIndicator:f=>({...f,minHeight:1,paddingTop:0,paddingBottom:0}),menu:f=>({...f}),menuPortal:f=>({...f,zIndex:9999}),option:f=>({...f,minHeight:30}),indicatorSeparator:f=>({...f,minHeight:1}),clearIndicator:f=>({...f,minHeight:1}),valueContainer:f=>({...f,minHeight:1,textOverflow:"ellipsis",maxWidth:"90%",whiteSpace:"nowrap",overflow:"hidden",display:"initial",padding:"0 10px",paddingLeft:3,height:30,lineHeight:"30px"}),placeholder:f=>({...f,top:"0%",transform:"none"}),singleValue:f=>({...f,minHeight:1,paddingBottom:2})},i=Ra(),{t}=this.props,{widgetOptions:o,defaultValue:a}=this.state,l=({children:f,getValue:I,...b})=>{let C=I().map(v=>b.selectProps.getOptionLabel(v)),E=C.slice(0,6),p=E.join(", "),y=C.length-E.length;y>0&&C.length>=5&&(p+=` + ${y} ${t("more")}`);let x=Z__default.Children.toArray(f).filter(v=>["Input","DummyInput","Placeholder"].includes(v.displayName));return jsxs(Mt.ValueContainer,{...b,children:[!b.selectProps.inputValue&&p,x]})},s=this.state.propvalue&&this.state.propvalue!==""?this.state.propvalue:a;s=s&&s.toString();let u=(d=o.find(f=>f.value===s))!=null?d:null,c=this.props.placeholder!==void 0?this.props.placeholder:t("Select Options");return jsxs(Fragment,{children:[!this.state.hidelabel&&jsx("div",{children:jsx("span",{className:"elwrapper caption",children:this.state.propname})}),jsx("div",{className:this.state.hidelabel?"":"dropdown",children:jsx(Ia,{id:(g=this.props.id)!=null?g:"",ref:f=>this.selectRef=f,components:{...i,ValueContainer:l},tabIndex:this.state.tabIndex,isMulti:false,delimiter:this._valueSeparator,joinValues:true,cacheOptions:true,styles:n,options:o,name:this.props.propname,value:u,defaultValue:u,placeholder:c,onChange:this.onChange,onBlur:this.onBlur,hideSelectedOptions:false,noOptionsMessage:()=>t("No Options"),isDisabled:this.state.disabled,menuPortalTarget:document.body,menuPosition:"fixed"})})]})}getWidgetOptions(){let n=[];if(this.props.options){for(let[i,t]of Object.entries(this.props.options))n.push({label:t,value:i});this.props.sort==="alpha"?n.sort((i,t)=>i.label.localeCompare(t.label)):this.props.sort==="keydesc"&&(n.sort((i,t)=>i.value.localeCompare(t.value)),n.reverse());}return n}},Xc=withTranslation()(oi),Ga=Xc;var ai={strictType:"_SelectBox",widgetType:w.WIDGET,objectInspector:{defaultProps:{gsindex:false,ignorereadonly:false,datatype:"string",datalength:"400",dropsource:[],dropvalues:[],label:"",multiple:false,name:"",onchangehandler:false,placeholder:"",forcereadonly:false,readonly:false,required:false,requiredmessage:"",rendertype:"none",searchbar:false,size:"small",style:{},tabIndex:0,title:"Text",value:"",variant:"outlined",viewfield:false,visible:true}}},si=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=k(()=>({type:ai.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:si,type:ai.widgetType,stricttype:ai.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=L(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-selectbox-widget";(C||m)&&(p="form-selectbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y,placeholder:x}=a;return jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y},children:jsx(Ga,{propname:"dropdown",propvalue:"",placeholder:x,hidelabel:true,disabled:true})})});si.displayName="_SelectBox";var li=si;var ui={strictType:"_CheckBox",widgetType:w.WIDGET,objectInspector:{defaultProps:{defaultvalue:"",ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,readonly:false,required:false,tabIndex:0,value:"",visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},di=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=k(()=>({type:ui.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:di,type:ui.widgetType,stricttype:ui.strictType},collect:x=>({isDragging:x.isDragging()}),end:({},x)=>{x.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=L(()=>({accept:w.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-checkbox-widget";(C||m)&&(p="form-checkbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...ee,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(F,{})})})});di.displayName="_CheckBox";var pi=di;var fi={strictType:"_Radio",widgetType:w.WIDGET,objectInspector:{defaultProps:{defaultvalue:false,ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,groupname:"",readonly:false,required:false,tabIndex:0,value:"",viewfield:false,visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},mi=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=k(()=>({type:fi.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:mi,type:fi.widgetType,stricttype:fi.strictType},collect:x=>({isDragging:x.isDragging()}),end:(x,v)=>{v.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=L(()=>({accept:w.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-radio-widget";(C||m)&&(p="form-radio-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...ee,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(Q,{})})})});mi.displayName="_Radio";var bi=mi;var zc={cursor:"move",opacity:1},Na=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var x,v;let g=u(i,t,o).index,[,f]=k(()=>({type:w.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ue,type:w.WIDGET,stricttype:Ue.displayName},collect:h=>({isDragging:h.isDragging()}),end:(h,A)=>{A.didDrop();}}),[o,g,i,t,e,n,a]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=L(()=>({accept:w.ROWSEGMENT,drop(h,A){let R=A.didDrop();R||(c(i,t,o),I(true),b(R));},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true})})}),[i,t,o,c]),p="form-widget form-fileuploader";(C||m)&&(p="form-fileuploader widget-highlight"),o===s()&&(p=`${p} activeWidget`);let y={...zc,...a.style,lineHeight:((x=a.style)==null?void 0:x.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(v=a.style)==null?void 0:v.lineHeight};return jsx("div",{ref:h=>f(E(h)),className:p,onPointerUp:l,style:y,children:jsx(Z__default.Fragment,{children:a.title})})});Na.displayName="_Fileuploader";var Ue=Na;var Uc={cursor:"move",opacity:1},Xa=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var v,h;let g=u(i,t,o).index,[{isDragging:f},I]=k(()=>({type:w.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Qe,type:w.WIDGET,stricttype:Qe.displayName},collect:A=>({isDragging:A.isDragging()}),end:(A,R)=>{}}),[o,g,i,t,e,n,a]),[,b]=useState(false),[,m]=useState(false),[{isOver:C,isOverCurrent:E},p]=L(()=>({accept:w.ROWSEGMENT,drop(A,R){let O=R.didDrop();O||(c(i,t,o),b(true),m(O));},collect:A=>({isOver:A.isOver(),isOverCurrent:A.isOver({shallow:true})})}),[i,t,o,c]),y="form-widget form-placeholder";(E||C)&&(y="form-placeholder widget-highlight"),o===s()&&(y=`${y} activeWidget`);let x={...Uc,...a.style,lineHeight:((v=a.style)==null?void 0:v.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(h=a.style)==null?void 0:h.lineHeight};return jsx("div",{ref:A=>I(p(A)),className:y,onPointerUp:l,style:x,children:jsx(Z__default.Fragment,{children:a.title})})});Xa.displayName="_Placeholder";var Qe=Xa;var hi={strictType:"_Button",widgetType:w.WIDGET,objectInspector:{defaultProps:{buttontype:Ti.NONE.toLowerCase(),colorSchema:"primary",fullWidth:true,name:"",size:"small",style:{},tabIndex:0,title:"Click Me",variant:"contained",verticalalign:"middle",visible:true}}},vi=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=k(()=>({type:hi.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:vi,type:hi.widgetType,stricttype:hi.strictType},collect:v=>({isDragging:v.isDragging()})}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=L(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-button-widget";(C||m)&&(p="form-button-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y,...x},children:jsx(Z__default.Fragment,{children:a.title})},"button_"+o)});vi.displayName="_Button";var Ii=vi;var Ci={strictType:"_View",widgetType:w.WIDGET,objectInspector:{defaultProps:{title:"Text",plugincode:"",formcode:"",name:"",size:"small",style:{textAlign:"left"},variant:"outlined",visible:true,verticalalign:"middle",viewcomp:""}}},yi=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=k(()=>({type:Ci.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:yi,type:Ci.widgetType,stricttype:Ci.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=L(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-view-widget";(C||m)&&(p="form-view-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y,...x,minHeight:"2rem"},children:jsx(Z__default.Fragment,{children:a.title})},"view_"+o)});yi.displayName="_View";var ka=yi;var P=class P{static debounce(e,n=300){let i,t=(...o)=>{clearTimeout(i),i=setTimeout(()=>e(...o),n);};return t.cancel=()=>{clearTimeout(i);},t.flush=()=>{clearTimeout(i),e();},t}static GetParentTabId(e,n,i={}){var t,o,a;if((e==null?void 0:e.id)===n)return {tabId:e==null?void 0:e.tabId,index:(t=i[e.tabId])!=null?t:0};if(((o=e._children)==null?void 0:o.length)>0){e.stricttype==="_TabBox"&&((a=e==null?void 0:e.properties)==null?void 0:a.tabcount)===void 0&&(i[e.tabId]===void 0?i[e.tabId]=0:i[e.tabId]++);for(let l of e._children){let s=P.GetParentTabId(l,n,i);if(s)return s}}return null}static getTabWidgetByFieldName(e,n,i={}){var t,o,a,l;if(((t=n.properties)==null?void 0:t.name)===e)return {tabId:n.tabId,index:(o=i[n.tabId])!=null?o:0};if(((a=n._children)==null?void 0:a.length)>0){n.stricttype==="_TabBox"&&((l=n==null?void 0:n.properties)==null?void 0:l.tabcount)===void 0&&(i[n.tabId]===void 0?i[n.tabId]=0:i[n.tabId]++);for(let s of n._children){let u=P.getTabWidgetByFieldName(e,s,i);if(u)return u}}return null}};P.getDefaultTabIndex=e=>{let n=0;return e.forEach(function(i){i._children.length>0&&i._children.forEach(function(t){t._children.length>0&&t._children[0].stricttype!=="_Label"&&n++;});}),n===0?1:n},P.getComponentByStrictType=e=>{if(e==="_Formcontainer")return wr;if(e==="_Button")return Ii;if(e==="_CheckBox")return pi;if(e==="_Fileuploader")return Ue;if(e==="_Label")return En;if(e==="_Placeholder")return Qe;if(e==="_Radio")return bi;if(e==="_Rowcontainer")return yt;if(e==="_Rowsegment")return Er;if(e==="_SelectBox")return li;if(e==="_TabBox")return Be;if(e==="_Table")return Ve;if(e==="_Tablecell")return Dr;if(e==="_Textinput")return wn;if(e==="_Textarea")return On;if(e==="_View")return ka},P.getItemDefaultName=(e,n)=>{let i=P.getItemCount(e,n,1),t="input_";if(e===wn)t="txtinput_";else if(e===li)t="drop_";else if(e===pi)t="chk_";else if(e===bi)t="rad_";else if(e===Be)t="tab_";else if(e===On)t="txtarea_";else if(e===En)t="lbl_";else if(e===Ii)t="btn_";else if(e===Ve)t="tbl_";else if(e===Qe)t="placeholder_";else if(e===Ue)return t="attached_files",t;return t+i},P.getTypeAsString=e=>{let n;return e===Ve?n="table":e===yt&&(n="row"),n},P.getItemCount=(e,n,i)=>(n.forEach(function(t){t.component===e&&i++,t._children&&t._children.length>0&&(i=P.getItemCount(e,t._children,i));}),i),P.getTabContainerChildrens=(e,n,i=[])=>{if(!n)return {data:e,path:i};let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t){let a=e.indexOf(t);return i.push(a),i.push("_children"),{index:e.indexOf(t),path:i,data:t._children}}else for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=P.getTabContainerChildrens(e[a]._children,n,i),o)return o;i.splice(-2);}},P.mapComponents=e=>{let n=i=>{for(var t in i)typeof i[t]=="object"&&i[t]!==null?n(i[t]):t==="stricttype"&&(i.component=P.getComponentByStrictType(i[t]));};n(e);},P.findWidgetByIdRecursive=(e,n,i=[])=>{let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t)return {item:t,index:e.indexOf(t),path:i,count:e.length};for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=P.findWidgetByIdRecursive(e[a]._children,n,i),o)return o;i.splice(-2);}},P.findPanelItem=(e,n,i)=>{let t=P.getTabContainerChildrens(i,e),o=t.data.filter(a=>`${a.id}`===n)[0];return {item:o,index:t.data.indexOf(o)}},P.findRowItem=(e,n,i,t)=>{let o;if(e){let a=P.getTabContainerChildrens(t,n);return o=a.data.filter(l=>`${l.id}`===i)[0],{item:o,component:o.component,index:a.data.indexOf(o),path:a.path,hasChildren:o._children.length>0}}else return o=t.filter(a=>`${a.id}`===i)[0],{item:o,component:o.component,index:t.indexOf(o),path:[],hasChildren:o._children.length>0}},P.findTableCellItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=P.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=P.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},P.findSegmentItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=P.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=P.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},P.getTabContainer=(e,n,i=[])=>{if(!n)return null;let t=e.filter(o=>`${o.id}`===n)[0];if(t)return {item:t,index:e.indexOf(t),path:i};for(let o=0;o<e.length;o++)if(e[o]._children){if(i.push(o),i.push("_children"),t=P.getTabContainer(e[o]._children,n,i),t)return t;i.splice(-2);}},P.getNodeUpdatePath=(e,n)=>{var i=function(o,a,l){for(var s=arguments.length===3?a.pop():false,u=0;u<a.length;u++)o=o[a[u]]=o[a[u]]||{};return s&&(o=o[s]=l),o},t={};return e&&e.length>0?i(t,e,n):t=n,t},P.getActiveTabIndex=(e,n)=>{if(n){let i=P.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?i.data.indexOf(t):null}return null},P.getActiveTabPanelId=(e,n)=>{if(n){let i=P.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?t.id:i.data[0].id}return null},P.isChildrenTab=(e,n,i)=>{let t=P.getTabContainerChildrens(e,i);return P.getAllTabIdInChain(t.data).indexOf(n)!==-1},P.getAllTabIdInChain=(e,n=[])=>{for(let i=0;i<e.length;i++)e[i]._children?(n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId),P.getAllTabIdInChain(e[i]._children,n)):n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId);return n},P.getUrlParameter=e=>new URLSearchParams(window.location.search).get(e),P.hasParentForm2=()=>P.getUrlParameter("ref")!=null,P.hasParentForm=()=>window.location.pathname.split("/").length>2,P.extractProjectGuid=e=>{let n=/\/p\/([^\/]+)\//.exec(e);return n?n[1]:null};var Ja=P;var $e={CANCEL:"Cancel",CUSTOM:"Custom",PRINT:"Print",SAVE:"Save"};var H=class H{static getFormButtonEvent(e){let n=null;return e.toUpperCase()===$e.CANCEL.toUpperCase()?n=H.onCancel:e.toUpperCase()===$e.CUSTOM.toUpperCase()?n=H.onClick:e.toUpperCase()===$e.PRINT.toUpperCase()?n=H.onPrint:e.toUpperCase()===$e.SAVE.toUpperCase()&&(n=H.onSave),n}};H.onChange="onChange",H.onClick="onClick",H.onCancel="onCancel",H.onDelete="onDelete",H.onPrint="onPrint",H.onSave="onSave",H.onRefresh="onRefresh",H.onTableDataLoad="onTableLoadData",H.onTableEditDataLoad="onTableEditLoadData",H.onTableCreateRecordEvent="onTableCreateRecordEvent",H.onFolderCreateRecordEvent="onFolderCreateRecordEvent",H.onFolderEditRecordEvent="onFolderEditRecordEvent",H.onFolderShareRecordEvent="onFolderShareRecordEvent",H.onTableSelectRowEvent="onTableSelectRowEvent",H.onTableRunActionEvent="onTableRunActionEvent",H.onTableRunBatchActionEvent="onTableRunBatchActionEvent",H.onTableEditRunActionEvent="onTableEditRunActionEvent",H.onFoldersDataLoad="onFoldersLoadData",H.onFileUploadEvent="onFileUpload",H.onFileUploadCreateDocumentEvent="onFileUploadCreateDocument",H.onStartSignProcess="onStartSignProcess",H.onFinishSignProcess="onFinishSignProcess",H.onLoadNewRecordTemplates="onLoadNewRecordTemplates",H.onDirectRunFormEvent="onDirectRunFormEvent",H.onGetCustomResponse="onGetCustomResponse";var za=H;
11
- export{vn as A,In as B,ht as C,Be as D,yn as E,Ve as F,Fe as G,yt as H,Ue as I,Qe as J,tl as K,Er as L,wr as M,xg as N,Dr as O,hi as P,Ii as Q,Ci as R,ka as S,Ja as T,za as U,Cn as a,Ri as b,ie as c,k as d,L as e,on as f,w as g,Ti as h,xn as i,En as j,sn as k,nd as l,Rn as m,wn as n,Gn as o,On as p,Ga as q,ai as r,li as s,ui as t,pi as u,fi as v,bi as w,fe as x,mn as y,bn as z};
10
+ `]))),Fo=function(e,n){var i=e.isFocused,t=e.size,o=e.theme,a=o.colors,l=o.spacing.baseUnit;return T({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:t,lineHeight:1,marginRight:t,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?a.neutral60:a.neutral20,padding:l*2})},Ln=function(e){var n=e.delay,i=e.offset;return jsx$1("span",{css:css({animation:"".concat(ql," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eu=function(e){var n=e.innerProps,i=e.isRtl,t=e.size,o=t===void 0?4:t,a=K(e,_l);return jsx$1("div",R({},U(T(T({},a),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:true,"loading-indicator":true}),n),jsx$1(Ln,{delay:0,offset:i}),jsx$1(Ln,{delay:160,offset:true}),jsx$1(Ln,{delay:320,offset:!i}))},No=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.theme,a=o.colors,l=o.borderRadius,s=o.spacing;return T({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?a.neutral5:a.neutral0,borderColor:i?a.neutral10:t?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:t?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:t?a.primary:a.neutral30}})},tu=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.innerRef,a=e.innerProps,l=e.menuIsOpen;return jsx$1("div",R({ref:o},U(e,"control",{control:true,"control--is-disabled":i,"control--is-focused":t,"control--menu-is-open":l}),a,{"aria-disabled":i||void 0}),n)},nu=tu,iu=["data"],Mo=function(e,n){var i=e.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},ru=function(e){var n=e.children,i=e.cx,t=e.getStyles,o=e.getClassNames,a=e.Heading,l=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return jsx$1("div",R({},U(e,"group",{group:true}),s),jsx$1(a,R({},l,{selectProps:d,theme:c,getStyles:t,getClassNames:o,cx:i}),u),jsx$1("div",null,n))},Wo=function(e,n){var i=e.theme,t=i.colors,o=i.spacing;return T({label:"group",cursor:"default",display:"block"},n?{}:{color:t.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},ou=function(e){var n=uo(e);n.data;var i=K(n,iu);return jsx$1("div",R({},U(e,"groupHeading",{"group-heading":true}),i))},au=ru,su=["innerRef","isDisabled","isHidden","inputClassName"],Xo=function(e,n){var i=e.isDisabled,t=e.value,o=e.theme,a=o.spacing,l=o.colors;return T(T({visibility:i?"hidden":"visible",transform:t?"translateZ(0)":""},lu),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},Ho={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},lu={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":T({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ho)},uu=function(e){return T({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ho)},cu=function(e){var n=e.cx,i=e.value,t=uo(e),o=t.innerRef,a=t.isDisabled,l=t.isHidden,s=t.inputClassName,u=K(t,su);return jsx$1("div",R({},U(e,"input",{"input-container":true}),{"data-value":i||""}),jsx$1("input",R({className:n({input:true},s),ref:o,style:uu(l),disabled:a},u)))},du=cu,Lo=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors;return T({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:t.baseUnit/2})},Zo=function(e,n){var i=e.theme,t=i.borderRadius,o=i.colors,a=e.cropWithEllipsis;return T({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:t/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Yo=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors,l=e.isFocused;return T({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:t.baseUnit,paddingRight:t.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ko=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",i,n)},pu=ko,fu=ko;function gu(r){var e=r.children,n=r.innerProps;return jsx$1("div",R({role:"button"},n),e||jsx$1(zn,{size:14}))}var mu=function(e){var n=e.children,i=e.components,t=e.data,o=e.innerProps,a=e.isDisabled,l=e.removeProps,s=e.selectProps,u=i.Container,c=i.Label,d=i.Remove;return jsx$1(u,{data:t,innerProps:T(T({},U(e,"multiValue",{"multi-value":true,"multi-value--is-disabled":a})),o),selectProps:s},jsx$1(c,{data:t,innerProps:T({},U(e,"multiValueLabel",{"multi-value__label":true})),selectProps:s},n),jsx$1(d,{data:t,innerProps:T(T({},U(e,"multiValueRemove",{"multi-value__remove":true})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:s}))},bu=mu,Jo=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.theme,l=a.spacing,s=a.colors;return T({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:t?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},hu=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.innerRef,l=e.innerProps;return jsx$1("div",R({},U(e,"option",{option:true,"option--is-disabled":i,"option--is-focused":t,"option--is-selected":o}),{ref:a,"aria-disabled":i},l),n)},vu=hu,zo=function(e,n){var i=e.theme,t=i.spacing,o=i.colors;return T({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:t.baseUnit/2,marginRight:t.baseUnit/2})},Iu=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",R({},U(e,"placeholder",{placeholder:true}),i),n)},Cu=Iu,jo=function(e,n){var i=e.isDisabled,t=e.theme,o=t.spacing,a=t.colors;return T({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},yu=function(e){var n=e.children,i=e.isDisabled,t=e.innerProps;return jsx$1("div",R({},U(e,"singleValue",{"single-value":true,"single-value--is-disabled":i}),t),n)},xu=yu,Mt={ClearIndicator:$l,Control:nu,DropdownIndicator:Ql,DownChevron:Do,CrossIcon:zn,Group:au,GroupHeading:ou,IndicatorsContainer:zl,IndicatorSeparator:Kl,Input:du,LoadingIndicator:eu,Menu:Xl,MenuList:Hl,MenuPortal:Yl,LoadingMessage:Zl,NoOptionsMessage:Ll,MultiValue:bu,MultiValueContainer:pu,MultiValueLabel:fu,MultiValueRemove:gu,Option:vu,Placeholder:Cu,SelectContainer:kl,SingleValue:xu,ValueContainer:Jl},Wt=function(e){return T(T({},Mt),e.components)};var _o=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Au(r,e){return !!(r===e||_o(r)&&_o(e))}function Eu(r,e){if(r.length!==e.length)return false;for(var n=0;n<r.length;n++)if(!Au(r[n],e[n]))return false;return true}function Xt(r,e){e===void 0&&(e=Eu);var n=null;function i(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(n&&n.lastThis===this&&e(t,n.lastArgs))return n.lastResult;var a=r.apply(this,t);return n={lastResult:a,lastArgs:t,lastThis:this},a}return i.clear=function(){n=null;},i}var Su={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},wu=function(e){return jsx$1("span",R({css:Su},e))},Uo=wu,Gu={guidance:function(e){var n=e.isSearchable,i=e.isMulti,t=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case "menu":return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(t?", press Tab to select the option and exit the menu":"",".");case "input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case "value":return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return ""}},onChange:function(e){var n=e.action,i=e.label,t=i===void 0?"":i,o=e.labels,a=e.isDisabled;switch(n){case "deselect-option":case "pop-value":case "remove-value":return "option ".concat(t,", deselected.");case "clear":return "All selected options have been cleared.";case "initial-input-focus":return "option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case "select-option":return a?"option ".concat(t," is disabled. Select another option."):"option ".concat(t,", selected.");default:return ""}},onFocus:function(e){var n=e.context,i=e.focused,t=e.options,o=e.label,a=o===void 0?"":o,l=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,d=function(b,m){return b&&b.length?"".concat(b.indexOf(m)+1," of ").concat(b.length):""};if(n==="value"&&l)return "value ".concat(a," focused, ").concat(d(l,i),".");if(n==="menu"&&c){var g=s?" disabled":"",f="".concat(u?" selected":"").concat(g);return "".concat(a).concat(f,", ").concat(d(t,i),".")}return ""},onFilter:function(e){var n=e.inputValue,i=e.resultsMessage;return "".concat(i).concat(n?" for search term "+n:"",".")}},Du=function(e){var n=e.ariaSelection,i=e.focusedOption,t=e.focusedValue,o=e.focusableOptions,a=e.isFocused,l=e.selectValue,s=e.selectProps,u=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,g=s.getOptionLabel,f=s.inputValue,I=s.isMulti,b=s.isOptionDisabled,m=s.isSearchable,C=s.menuIsOpen,E=s.options,p=s.screenReaderStatus,y=s.tabSelectsValue,x=s.isLoading,v=s["aria-label"],h=s["aria-live"],A=useMemo(function(){return T(T({},Gu),d||{})},[d]),R=useMemo(function(){var X="";if(n&&A.onChange){var G=n.option,M=n.options,N=n.removedValue,$=n.removedValues,Q=n.value,ne=function(ue){return Array.isArray(ue)?null:ue},Y=N||G||ne(Q),D=Y?g(Y):"",V=M||$||void 0,_=V?V.map(g):[],j=T({isDisabled:Y&&b(Y,l),label:D,labels:_},n);X=A.onChange(j);}return X},[n,A,b,l,g]),O=useMemo(function(){var X="",G=i||t,M=!!(i&&l&&l.includes(i));if(G&&A.onFocus){var N={focused:G,label:g(G),isDisabled:b(G,l),isSelected:M,options:o,context:G===i?"menu":"value",selectValue:l,isAppleDevice:c};X=A.onFocus(N);}return X},[i,t,g,b,A,o,l,c]),k=useMemo(function(){var X="";if(C&&E.length&&!x&&A.onFilter){var G=p({count:o.length});X=A.onFilter({inputValue:f,resultsMessage:G});}return X},[o,f,C,A,E,p,x]),B=(n==null?void 0:n.action)==="initial-input-focus",z=useMemo(function(){var X="";if(A.guidance){var G=t?"value":C?"menu":"input";X=A.guidance({"aria-label":v,context:G,isDisabled:i&&b(i,l),isMulti:I,isSearchable:m,tabSelectsValue:y,isInitialFocus:B});}return X},[v,i,t,I,b,m,C,A,l,y,B]),Z=jsx$1(Fragment$1,null,jsx$1("span",{id:"aria-selection"},R),jsx$1("span",{id:"aria-focused"},O),jsx$1("span",{id:"aria-results"},k),jsx$1("span",{id:"aria-guidance"},z));return jsx$1(Fragment$1,null,jsx$1(Uo,{id:u},B&&Z),jsx$1(Uo,{"aria-live":h,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!B&&Z))},Ou=Du,Qn=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Pu=new RegExp("["+Qn.map(function(r){return r.letters}).join("")+"]","g"),la={};for(Ht=0;Ht<Qn.length;Ht++)for(Lt=Qn[Ht],Zt=0;Zt<Lt.letters.length;Zt++)la[Lt.letters[Zt]]=Lt.base;var Lt,Zt,Ht,ua=function(e){return e.replace(Pu,function(n){return la[n]})},Bu=Xt(ua),Qo=function(e){return e.replace(/^\s+|\s+$/g,"")},Vu=function(e){return "".concat(e.label," ").concat(e.value)},Fu=function(e){return function(n,i){if(n.data.__isNew__)return true;var t=T({ignoreCase:true,ignoreAccents:true,stringify:Vu,trim:true,matchFrom:"any"},e),o=t.ignoreCase,a=t.ignoreAccents,l=t.stringify,s=t.trim,u=t.matchFrom,c=s?Qo(i):i,d=s?Qo(l(n)):l(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=Bu(c),d=ua(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Nu=["innerRef"];function Mu(r){var e=r.innerRef,n=K(r,Nu),i=bo(n,"onExited","in","enter","exit","appear");return jsx$1("input",R({ref:e},i,{css:css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Wu=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation();};function Xu(r){var e=r.isEnabled,n=r.onBottomArrive,i=r.onBottomLeave,t=r.onTopArrive,o=r.onTopLeave,a=useRef(false),l=useRef(false),s=useRef(0),u=useRef(null),c=useCallback(function(m,C){if(u.current!==null){var E=u.current,p=E.scrollTop,y=E.scrollHeight,x=E.clientHeight,v=u.current,h=C>0,A=y-x-p,R=false;A>C&&a.current&&(i&&i(m),a.current=false),h&&l.current&&(o&&o(m),l.current=false),h&&C>A?(n&&!a.current&&n(m),v.scrollTop=y,R=true,a.current=true):!h&&-C>p&&(t&&!l.current&&t(m),v.scrollTop=0,R=true,l.current=true),R&&Wu(m);}},[n,i,t,o]),d=useCallback(function(m){c(m,m.deltaY);},[c]),g=useCallback(function(m){s.current=m.changedTouches[0].clientY;},[]),f=useCallback(function(m){var C=s.current-m.changedTouches[0].clientY;c(m,C);},[c]),I=useCallback(function(m){if(m){var C=go?{passive:false}:false;m.addEventListener("wheel",d,C),m.addEventListener("touchstart",g,C),m.addEventListener("touchmove",f,C);}},[f,g,d]),b=useCallback(function(m){m&&(m.removeEventListener("wheel",d,false),m.removeEventListener("touchstart",g,false),m.removeEventListener("touchmove",f,false));},[f,g,d]);return useEffect(function(){if(e){var m=u.current;return I(m),function(){b(m);}}},[e,I,b]),function(m){u.current=m;}}var $o=["boxSizing","height","overflow","paddingRight","position"],Ko={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function qo(r){r.cancelable&&r.preventDefault();}function ea(r){r.stopPropagation();}function ta(){var r=this.scrollTop,e=this.scrollHeight,n=r+this.offsetHeight;r===0?this.scrollTop=1:n===e&&(this.scrollTop=r-1);}function na(){return "ontouchstart"in window||navigator.maxTouchPoints}var ia=!!(typeof window!="undefined"&&window.document&&window.document.createElement),ze=0,Re={capture:false,passive:false};function Hu(r){var e=r.isEnabled,n=r.accountForScrollbars,i=n===void 0?true:n,t=useRef({}),o=useRef(null),a=useCallback(function(s){if(ia){var u=document.body,c=u&&u.style;if(i&&$o.forEach(function(I){var b=c&&c[I];t.current[I]=b;}),i&&ze<1){var d=parseInt(t.current.paddingRight,10)||0,g=document.body?document.body.clientWidth:0,f=window.innerWidth-g+d||0;Object.keys(Ko).forEach(function(I){var b=Ko[I];c&&(c[I]=b);}),c&&(c.paddingRight="".concat(f,"px"));}u&&na()&&(u.addEventListener("touchmove",qo,Re),s&&(s.addEventListener("touchstart",ta,Re),s.addEventListener("touchmove",ea,Re))),ze+=1;}},[i]),l=useCallback(function(s){if(ia){var u=document.body,c=u&&u.style;ze=Math.max(ze-1,0),i&&ze<1&&$o.forEach(function(d){var g=t.current[d];c&&(c[d]=g);}),u&&na()&&(u.removeEventListener("touchmove",qo,Re),s&&(s.removeEventListener("touchstart",ta,Re),s.removeEventListener("touchmove",ea,Re)));}},[i]);return useEffect(function(){if(e){var s=o.current;return a(s),function(){l(s);}}},[e,a,l]),function(s){o.current=s;}}var Lu=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Zu={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yu(r){var e=r.children,n=r.lockEnabled,i=r.captureEnabled,t=i===void 0?true:i,o=r.onBottomArrive,a=r.onBottomLeave,l=r.onTopArrive,s=r.onTopLeave,u=Xu({isEnabled:t,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),c=Hu({isEnabled:n}),d=function(f){u(f),c(f);};return jsx$1(Fragment$1,null,n&&jsx$1("div",{onClick:Lu,css:Zu}),e(d))}var ku={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ju=function(e){var n=e.name,i=e.onFocus;return jsx$1("input",{required:true,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:ku,value:"",onChange:function(){}})},zu=Ju;function $n(r){var e;return typeof window!="undefined"&&window.navigator!=null?r.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):false}function ju(){return $n(/^iPhone/i)}function ca(){return $n(/^Mac/i)}function _u(){return $n(/^iPad/i)||ca()&&navigator.maxTouchPoints>1}function Uu(){return ju()||_u()}function Qu(){return ca()||Uu()}var $u=function(e){return e.label},Ku=function(e){return e.label},qu=function(e){return e.value},ec=function(e){return !!e.isDisabled},tc={clearIndicator:Bo,container:Ro,control:No,dropdownIndicator:Po,group:Mo,groupHeading:Wo,indicatorsContainer:wo,indicatorSeparator:Vo,input:Xo,loadingIndicator:Fo,loadingMessage:Eo,menu:vo,menuList:yo,menuPortal:To,multiValue:Lo,multiValueLabel:Zo,multiValueRemove:Yo,noOptionsMessage:Ao,option:Jo,placeholder:zo,singleValue:jo,valueContainer:So};var nc={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},ic=4,da=4,rc=38,oc=da*2,ac={baseUnit:da,controlHeight:rc,menuGutter:oc},jn={borderRadius:ic,colors:nc,spacing:ac},sc={"aria-live":"polite",backspaceRemovesValue:true,blurInputOnSelect:Jn(),captureMenuScroll:!Jn(),classNames:{},closeMenuOnSelect:true,closeMenuOnScroll:false,components:{},controlShouldRenderValue:true,escapeClearsValue:false,filterOption:Fu(),formatGroupLabel:$u,getOptionLabel:Ku,getOptionValue:qu,isDisabled:false,isLoading:false,isMulti:false,isRtl:false,isSearchable:true,isOptionDisabled:ec,loadingMessage:function(){return "Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:false,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:false,menuShouldScrollIntoView:!po(),noOptionsMessage:function(){return "No options"},openMenuOnFocus:false,openMenuOnClick:true,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return "".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:true,unstyled:false};function ra(r,e,n,i){var t=ga(r,e,n),o=ma(r,e,n),a=fa(r,e),l=kt(r,e);return {type:"option",data:e,isDisabled:t,isSelected:o,label:a,value:l,index:i}}function Yt(r,e){return r.options.map(function(n,i){if("options"in n){var t=n.options.map(function(a,l){return ra(r,a,e,l)}).filter(function(a){return aa(r,a)});return t.length>0?{type:"group",data:n,options:t,index:i}:void 0}var o=ra(r,n,e,i);return aa(r,o)?o:void 0}).filter(mo)}function pa(r){return r.reduce(function(e,n){return n.type==="group"?e.push.apply(e,Rt(n.options.map(function(i){return i.data}))):e.push(n.data),e},[])}function oa(r,e){return r.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Rt(i.options.map(function(t){return {data:t.data,id:"".concat(e,"-").concat(i.index,"-").concat(t.index)}}))):n.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),n},[])}function lc(r,e){return pa(Yt(r,e))}function aa(r,e){var n=r.inputValue,i=n===void 0?"":n,t=e.data,o=e.isSelected,a=e.label,l=e.value;return (!ha(r)||!o)&&ba(r,{label:a,value:l,data:t},i)}function uc(r,e){var n=r.focusedValue,i=r.selectValue,t=i.indexOf(n);if(t>-1){var o=e.indexOf(n);if(o>-1)return n;if(t<e.length)return e[t]}return null}function cc(r,e){var n=r.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var _n=function(e,n){var i,t=(i=e.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return t||null},fa=function(e,n){return e.getOptionLabel(n)},kt=function(e,n){return e.getOptionValue(n)};function ga(r,e,n){return typeof r.isOptionDisabled=="function"?r.isOptionDisabled(e,n):false}function ma(r,e,n){if(n.indexOf(e)>-1)return true;if(typeof r.isOptionSelected=="function")return r.isOptionSelected(e,n);var i=kt(r,e);return n.some(function(t){return kt(r,t)===i})}function ba(r,e,n){return r.filterOption?r.filterOption(e,n):true}var ha=function(e){var n=e.hideSelectedOptions,i=e.isMulti;return n===void 0?i:n},dc=1,Kn=(function(r){Yr(n,r);var e=Jr(n);function n(i){var t;if(Hr(this,n),t=e.call(this,i),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:false,isFocused:false,selectValue:[],clearFocusValueOnUpdate:false,prevWasFocused:false,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:false},t.blockOptionHover=false,t.isComposing=false,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=false,t.scrollToFocusedOptionOnUpdate=false,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(s){t.controlRef=s;},t.focusedOptionRef=null,t.getFocusedOptionRef=function(s){t.focusedOptionRef=s;},t.menuListRef=null,t.getMenuListRef=function(s){t.menuListRef=s;},t.inputRef=null,t.getInputRef=function(s){t.inputRef=s;},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(s,u){var c=t.props,d=c.onChange,g=c.name;u.name=g,t.ariaOnChange(s,u),d(s,u);},t.setValue=function(s,u,c){var d=t.props,g=d.closeMenuOnSelect,f=d.isMulti,I=d.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:I}),g&&(t.setState({inputIsHiddenAfterUpdate:!f}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:true}),t.onChange(s,{action:u,option:c});},t.selectOption=function(s){var u=t.props,c=u.blurInputOnSelect,d=u.isMulti,g=u.name,f=t.state.selectValue,I=d&&t.isOptionSelected(s,f),b=t.isOptionDisabled(s,f);if(I){var m=t.getOptionValue(s);t.setValue(f.filter(function(C){return t.getOptionValue(C)!==m}),"deselect-option",s);}else if(!b)d?t.setValue([].concat(Rt(f),[s]),"select-option",s):t.setValue(s,"select-option");else {t.ariaOnChange(s,{action:"select-option",option:s,name:g});return}c&&t.blurInput();},t.removeValue=function(s){var u=t.props.isMulti,c=t.state.selectValue,d=t.getOptionValue(s),g=c.filter(function(I){return t.getOptionValue(I)!==d}),f=ke(u,g,g[0]||null);t.onChange(f,{action:"remove-value",removedValue:s}),t.focusInput();},t.clearValue=function(){var s=t.state.selectValue;t.onChange(ke(t.props.isMulti,[],null),{action:"clear",removedValues:s});},t.popValue=function(){var s=t.props.isMulti,u=t.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),g=ke(s,d,d[0]||null);c&&t.onChange(g,{action:"pop-value",removedValue:c});},t.getFocusedOptionId=function(s){return _n(t.state.focusableOptionsWithIds,s)},t.getFocusableOptionsWithIds=function(){return oa(Yt(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return lo.apply(void 0,[t.props.classNamePrefix].concat(u))},t.getOptionLabel=function(s){return fa(t.props,s)},t.getOptionValue=function(s){return kt(t.props,s)},t.getStyles=function(s,u){var c=t.props.unstyled,d=tc[s](u,c);d.boxSizing="border-box";var g=t.props.styles[s];return g?g(d,u):d},t.getClassNames=function(s,u){var c,d;return (c=(d=t.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},t.getElementId=function(s){return "".concat(t.state.instancePrefix,"-").concat(s)},t.getComponents=function(){return Wt(t.props)},t.buildCategorizedOptions=function(){return Yt(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return pa(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(s,u){t.setState({ariaSelection:T({value:s},u)});},t.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),t.focusInput());},t.onMenuMouseMove=function(s){t.blockOptionHover=false;},t.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&t.onMenuClose():u&&t.openMenu("first"):(u&&(t.openAfterFocus=true),t.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault();}},t.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!t.props.isDisabled){var u=t.props,c=u.isMulti,d=u.menuIsOpen;t.focusInput(),d?(t.setState({inputIsHiddenAfterUpdate:!c}),t.onMenuClose()):t.openMenu("first"),s.preventDefault();}},t.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(t.clearValue(),s.preventDefault(),t.openAfterFocus=false,s.type==="touchend"?t.focusInput():setTimeout(function(){return t.focusInput()}));},t.onScroll=function(s){typeof t.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Ye(s.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll=="function"&&t.props.closeMenuOnScroll(s)&&t.props.onMenuClose();},t.onCompositionStart=function(){t.isComposing=true;},t.onCompositionEnd=function(){t.isComposing=false;},t.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(t.initialTouchX=c.clientX,t.initialTouchY=c.clientY,t.userIsDragging=false);},t.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-t.initialTouchX),g=Math.abs(c.clientY-t.initialTouchY),f=5;t.userIsDragging=d>f||g>f;}},t.onTouchEnd=function(s){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(s.target)&&t.menuListRef&&!t.menuListRef.contains(s.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0);},t.onControlTouchEnd=function(s){t.userIsDragging||t.onControlMouseDown(s);},t.onClearIndicatorTouchEnd=function(s){t.userIsDragging||t.onClearIndicatorMouseDown(s);},t.onDropdownIndicatorTouchEnd=function(s){t.userIsDragging||t.onDropdownIndicatorMouseDown(s);},t.handleInputChange=function(s){var u=t.props.inputValue,c=s.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange(c,{action:"input-change",prevInputValue:u}),t.props.menuIsOpen||t.onMenuOpen();},t.onInputFocus=function(s){t.props.onFocus&&t.props.onFocus(s),t.setState({inputIsHiddenAfterUpdate:false,isFocused:true}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=false;},t.onInputBlur=function(s){var u=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(s),t.onInputChange("",{action:"input-blur",prevInputValue:u}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:false});},t.onOptionHover=function(s){if(!(t.blockOptionHover||t.state.focusedOption===s)){var u=t.getFocusableOptions(),c=u.indexOf(s);t.setState({focusedOption:s,focusedOptionId:c>-1?t.getFocusedOptionId(s):null});}},t.shouldHideSelectedOptions=function(){return ha(t.props)},t.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),t.focus();},t.onKeyDown=function(s){var u=t.props,c=u.isMulti,d=u.backspaceRemovesValue,g=u.escapeClearsValue,f=u.inputValue,I=u.isClearable,b=u.isDisabled,m=u.menuIsOpen,C=u.onKeyDown,E=u.tabSelectsValue,p=u.openMenuOnFocus,y=t.state,x=y.focusedOption,v=y.focusedValue,h=y.selectValue;if(!b&&!(typeof C=="function"&&(C(s),s.defaultPrevented))){switch(t.blockOptionHover=true,s.key){case "ArrowLeft":if(!c||f)return;t.focusValue("previous");break;case "ArrowRight":if(!c||f)return;t.focusValue("next");break;case "Delete":case "Backspace":if(f)return;if(v)t.removeValue(v);else {if(!d)return;c?t.popValue():I&&t.clearValue();}break;case "Tab":if(t.isComposing||s.shiftKey||!m||!E||!x||p&&t.isOptionSelected(x,h))return;t.selectOption(x);break;case "Enter":if(s.keyCode===229)break;if(m){if(!x||t.isComposing)return;t.selectOption(x);break}return;case "Escape":m?(t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange("",{action:"menu-close",prevInputValue:f}),t.onMenuClose()):I&&g&&t.clearValue();break;case " ":if(f)return;if(!m){t.openMenu("first");break}if(!x)return;t.selectOption(x);break;case "ArrowUp":m?t.focusOption("up"):t.openMenu("last");break;case "ArrowDown":m?t.focusOption("down"):t.openMenu("first");break;case "PageUp":if(!m)return;t.focusOption("pageup");break;case "PageDown":if(!m)return;t.focusOption("pagedown");break;case "Home":if(!m)return;t.focusOption("first");break;case "End":if(!m)return;t.focusOption("last");break;default:return}s.preventDefault();}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++dc),t.state.selectValue=Yn(i.value),i.menuIsOpen&&t.state.selectValue.length){var o=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),l=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=o,t.state.focusedOption=a[l],t.state.focusedOptionId=_n(o,a[l]);}return t}return Zr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,true),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kn(this.menuListRef,this.focusedOptionRef),Qu()&&this.setState({isAppleDevice:true});}},{key:"componentDidUpdate",value:function(t){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&t.isDisabled||s&&l&&!t.menuIsOpen)&&this.focusInput(),s&&a&&!t.isDisabled?this.setState({isFocused:false},this.onMenuClose):!s&&!a&&t.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:true}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kn(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=false);}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,true);}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen();}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose();}},{key:"onInputChange",value:function(t,o){this.props.onInputChange(t,o);}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus();}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur();}},{key:"openMenu",value:function(t){var o=this,a=this.state,l=a.selectValue,s=a.isFocused,u=this.buildFocusableOptions(),c=t==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(l[0]);d>-1&&(c=d);}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:false,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()});}},{key:"focusValue",value:function(t){var o=this.state,a=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var u=a.length-1,c=-1;if(a.length){switch(t){case "previous":s===0?c=0:s===-1?c=u:c=s-1;break;case "next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]});}}}},{key:"focusOption",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,u=l.indexOf(a);a||(u=-1),t==="up"?s=u>0?u-1:l.length-1:t==="down"?s=(u+1)%l.length:t==="pageup"?(s=u-o,s<0&&(s=0)):t==="pagedown"?(s=u+o,s>l.length-1&&(s=l.length-1)):t==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=true,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])});}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(jn):T(T({},jn),this.props.theme):jn}},{key:"getCommonProps",value:function(){var t=this.clearValue,o=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,g=d.isMulti,f=d.isRtl,I=d.options,b=this.hasValue();return {clearValue:t,cx:o,getStyles:a,getClassNames:l,getValue:s,hasValue:b,isMulti:g,isRtl:f,options:I,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var t=this.state.selectValue;return t.length>0}},{key:"hasOptions",value:function(){return !!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var t=this.props,o=t.isClearable,a=t.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(t,o){return ga(this.props,t,o)}},{key:"isOptionSelected",value:function(t,o){return ma(this.props,t,o)}},{key:"filterOption",value:function(t,o){return ba(this.props,t,o)}},{key:"formatOptionLabel",value:function(t,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(t,{context:o,inputValue:a,selectValue:l})}else return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,false),document.addEventListener("compositionend",this.onCompositionEnd,false));}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd));}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,false),document.addEventListener("touchmove",this.onTouchMove,false),document.addEventListener("touchend",this.onTouchEnd,false));}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd));}},{key:"renderInput",value:function(){var t=this.props,o=t.isDisabled,a=t.isSearchable,l=t.inputId,s=t.inputValue,u=t.tabIndex,c=t.form,d=t.menuIsOpen,g=t.required,f=this.getComponents(),I=f.Input,b=this.state,m=b.inputIsHidden,C=b.ariaSelection,E=this.commonProps,p=l||this.getElementId("input"),y=T(T(T({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":true,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":g,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":true}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?L.createElement(I,R({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},y)):L.createElement(Mu,R({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ze,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,g=this.commonProps,f=this.props,I=f.controlShouldRenderValue,b=f.isDisabled,m=f.isMulti,C=f.inputValue,E=f.placeholder,p=this.state,y=p.selectValue,x=p.focusedValue,v=p.isFocused;if(!this.hasValue()||!I)return C?null:L.createElement(d,R({},g,{key:"placeholder",isDisabled:b,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),E);if(m)return y.map(function(A,R$1){var O=A===x,k="".concat(t.getOptionLabel(A),"-").concat(t.getOptionValue(A));return L.createElement(a,R({},g,{components:{Container:l,Label:s,Remove:u},isFocused:O,isDisabled:b,key:k,index:R$1,removeProps:{onClick:function(){return t.removeValue(A)},onTouchEnd:function(){return t.removeValue(A)},onMouseDown:function(z){z.preventDefault();}},data:A}),t.formatOptionLabel(A,"value"))});if(C)return null;var h=y[0];return L.createElement(c,R({},g,{data:h,isDisabled:b}),this.formatOptionLabel(h,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents(),o=t.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(o,R({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents(),o=t.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return L.createElement(o,R({},a,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator,a=t.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return L.createElement(a,R({},l,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(o,R({},a,{innerProps:u,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var t=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,g=o.NoOptionsMessage,f=o.Option,I=this.commonProps,b=this.state.focusedOption,m=this.props,C=m.captureMenuScroll,E=m.inputValue,p=m.isLoading,y=m.loadingMessage,x=m.minMenuHeight,v=m.maxMenuHeight,h=m.menuIsOpen,A=m.menuPlacement,R$1=m.menuPosition,O=m.menuPortalTarget,k=m.menuShouldBlockScroll,B=m.menuShouldScrollIntoView,z=m.noOptionsMessage,Z=m.onMenuScrollToTop,X=m.onMenuScrollToBottom;if(!h)return null;var G=function(D,V){var _=D.type,j=D.data,te=D.isDisabled,ue=D.isSelected,xe=D.label,Ke=D.value,qe=b===j,et=te?void 0:function(){return t.onOptionHover(j)},tn=te?void 0:function(){return t.selectOption(j)},tt="".concat(t.getElementId("option"),"-").concat(V),nn={id:tt,onClick:tn,onMouseMove:et,onMouseOver:et,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:ue};return L.createElement(f,R({},I,{innerProps:nn,data:j,isDisabled:te,isSelected:ue,key:tt,label:xe,type:_,value:Ke,isFocused:qe,innerRef:qe?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(D.data,"menu"))},M;if(this.hasOptions())M=this.getCategorizedOptions().map(function(Y){if(Y.type==="group"){var D=Y.data,V=Y.options,_=Y.index,j="".concat(t.getElementId("group"),"-").concat(_),te="".concat(j,"-heading");return L.createElement(a,R({},I,{key:j,data:D,options:V,Heading:l,headingProps:{id:te,data:Y.data},label:t.formatGroupLabel(Y.data)}),Y.options.map(function(ue){return G(ue,"".concat(_,"-").concat(ue.index))}))}else if(Y.type==="option")return G(Y,"".concat(Y.index))});else if(p){var N=y({inputValue:E});if(N===null)return null;M=L.createElement(d,I,N);}else {var $=z({inputValue:E});if($===null)return null;M=L.createElement(g,I,$);}var Q={minMenuHeight:x,maxMenuHeight:v,menuPlacement:A,menuPosition:R$1,menuShouldScrollIntoView:B},ne=L.createElement(Co,R({},I,Q),function(Y){var D=Y.ref,V=Y.placerProps,_=V.placement,j=V.maxHeight;return L.createElement(s,R({},I,Q,{innerRef:D,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:p,placement:_}),L.createElement(Yu,{captureEnabled:C,onTopArrive:Z,onBottomArrive:X,lockEnabled:k},function(te){return L.createElement(u,R({},I,{innerRef:function(xe){t.getMenuListRef(xe),te(xe);},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:t.getElementId("listbox")},isLoading:p,maxHeight:j,focusedOption:b}),M)}))});return O||R$1==="fixed"?L.createElement(c,R({},I,{appendTo:O,controlElement:this.controlRef,menuPlacement:A,menuPosition:R$1}),ne):ne}},{key:"renderFormField",value:function(){var t=this,o=this.props,a=o.delimiter,l=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!l)return L.createElement(zu,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(s)if(a){var g=d.map(function(b){return t.getOptionValue(b)}).join(a);return L.createElement("input",{name:u,type:"hidden",value:g})}else {var f=d.length>0?d.map(function(b,m){return L.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:t.getOptionValue(b)})}):L.createElement("input",{name:u,type:"hidden",value:""});return L.createElement("div",null,f)}else {var I=d[0]?this.getOptionValue(d[0]):"";return L.createElement("input",{name:u,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return L.createElement(Ou,R({},t,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),o=t.Control,a=t.IndicatorsContainer,l=t.SelectContainer,s=t.ValueContainer,u=this.props,c=u.className,d=u.id,g=u.isDisabled,f=u.menuIsOpen,I=this.state.isFocused,b=this.commonProps=this.getCommonProps();return L.createElement(l,R({},b,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:g,isFocused:I}),this.renderLiveRegion(),L.createElement(o,R({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:g,isFocused:I,menuIsOpen:f}),L.createElement(s,R({},b,{isDisabled:g}),this.renderPlaceholderOrValue(),this.renderInput()),L.createElement(a,R({},b,{isDisabled:g}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(t,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,g=o.instancePrefix,f=t.options,I=t.value,b=t.menuIsOpen,m=t.inputValue,C=t.isMulti,E=Yn(I),p={};if(a&&(I!==a.value||f!==a.options||b!==a.menuIsOpen||m!==a.inputValue)){var y=b?lc(t,E):[],x=b?oa(Yt(t,E),"".concat(g,"-option")):[],v=l?uc(o,E):null,h=cc(o,y),A=_n(x,h);p={selectValue:E,focusedOption:h,focusedOptionId:A,focusableOptionsWithIds:x,focusedValue:v,clearFocusValueOnUpdate:false};}var R=s!=null&&t!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},O=u,k=c&&d;return c&&!k&&(O={value:ke(C,E,E[0]||null),options:E,action:"initial-input-focus"},k=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(O=null),T(T(T({},p),R),{},{prevProps:t,ariaSelection:O,prevWasFocused:k})}}]),n})(Component);Kn.defaultProps=sc;var fc=forwardRef(function(r,e){var n=Xr(r);return L.createElement(Kn,R({ref:e},n))}),Ia=fc;function Jt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Te(r,e);}var qn={disabled:false};var we=L__default.createContext(null);var Ca=function(e){return e.scrollTop};var je="unmounted",Ie="exited",Ce="entering",De="entered",ei="exiting",pe=(function(r){Jt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=t,l=a&&!a.isMounting?i.enter:i.appear,s;return o.appearStatus=null,i.in?l?(s=Ie,o.appearStatus=Ce):s=De:i.unmountOnExit||i.mountOnEnter?s=je:s=Ie,o.state={status:s},o.nextCallback=null,o}e.getDerivedStateFromProps=function(t,o){var a=t.in;return a&&o.status===je?{status:Ie}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(true,this.appearStatus);},n.componentDidUpdate=function(t){var o=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==Ce&&a!==De&&(o=Ce):(a===Ce||a===De)&&(o=ei);}this.updateStatus(false,o);},n.componentWillUnmount=function(){this.cancelNextCallback();},n.getTimeouts=function(){var t=this.props.timeout,o,a,l;return o=a=l=t,t!=null&&typeof t!="number"&&(o=t.exit,a=t.enter,l=t.appear!==void 0?t.appear:a),{exit:o,enter:a,appear:l}},n.updateStatus=function(t,o){if(t===void 0&&(t=false),o!==null)if(this.cancelNextCallback(),o===Ce){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:jt.findDOMNode(this);a&&Ca(a);}this.performEnter(t);}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ie&&this.setState({status:je});},n.performEnter=function(t){var o=this,a=this.props.enter,l=this.context?this.context.isMounting:t,s=this.props.nodeRef?[l]:[jt.findDOMNode(this),l],u=s[0],c=s[1],d=this.getTimeouts(),g=l?d.appear:d.enter;if(!t&&!a||qn.disabled){this.safeSetState({status:De},function(){o.props.onEntered(u);});return}this.props.onEnter(u,c),this.safeSetState({status:Ce},function(){o.props.onEntering(u,c),o.onTransitionEnd(g,function(){o.safeSetState({status:De},function(){o.props.onEntered(u,c);});});});},n.performExit=function(){var t=this,o=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:jt.findDOMNode(this);if(!o||qn.disabled){this.safeSetState({status:Ie},function(){t.props.onExited(l);});return}this.props.onExit(l),this.safeSetState({status:ei},function(){t.props.onExiting(l),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:Ie},function(){t.props.onExited(l);});});});},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null);},n.safeSetState=function(t,o){o=this.setNextCallback(o),this.setState(t,o);},n.setNextCallback=function(t){var o=this,a=true;return this.nextCallback=function(l){a&&(a=false,o.nextCallback=null,t(l));},this.nextCallback.cancel=function(){a=false;},this.nextCallback},n.onTransitionEnd=function(t,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:jt.findDOMNode(this),l=t==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c);}t!=null&&setTimeout(this.nextCallback,t);},n.render=function(){var t=this.state.status;if(t===je)return null;var o=this.props,a=o.children;o.in;o.mountOnEnter;o.unmountOnExit;o.appear;o.enter;o.exit;o.timeout;o.addEndListener;o.onEnter;o.onEntering;o.onEntered;o.onExit;o.onExiting;o.onExited;o.nodeRef;var v=Ee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L__default.createElement(we.Provider,{value:null},typeof a=="function"?a(t,v):L__default.cloneElement(L__default.Children.only(a),v))},e})(L__default.Component);pe.contextType=we;pe.propTypes={};function Ge(){}pe.defaultProps={in:false,mountOnEnter:false,unmountOnExit:false,appear:false,enter:true,exit:true,onEnter:Ge,onEntering:Ge,onEntered:Ge,onExit:Ge,onExiting:Ge,onExited:Ge};pe.UNMOUNTED=je;pe.EXITED=Ie;pe.ENTERING=Ce;pe.ENTERED=De;pe.EXITING=ei;var _t=pe;function $t(r,e){var n=function(o){return e&&isValidElement(o)?e(o):o},i=Object.create(null);return r&&Children.map(r,function(t){return t}).forEach(function(t){i[t.key]=n(t);}),i}function bc(r,e){r=r||{},e=e||{};function n(c){return c in e?e[c]:r[c]}var i=Object.create(null),t=[];for(var o in r)o in e?t.length&&(i[o]=t,t=[]):t.push(o);var a,l={};for(var s in e){if(i[s])for(a=0;a<i[s].length;a++){var u=i[s][a];l[i[s][a]]=n(u);}l[s]=n(s);}for(a=0;a<t.length;a++)l[t[a]]=n(t[a]);return l}function ye(r,e,n){return n[e]!=null?n[e]:r.props[e]}function ya(r,e){return $t(r.children,function(n){return cloneElement(n,{onExited:e.bind(null,n),in:true,appear:ye(n,"appear",r),enter:ye(n,"enter",r),exit:ye(n,"exit",r)})})}function xa(r,e,n){var i=$t(r.children),t=bc(e,i);return Object.keys(t).forEach(function(o){var a=t[o];if(isValidElement(a)){var l=o in e,s=o in i,u=e[o],c=isValidElement(u)&&!u.props.in;s&&(!l||c)?t[o]=cloneElement(a,{onExited:n.bind(null,a),in:true,exit:ye(a,"exit",r),enter:ye(a,"enter",r)}):!s&&l&&!c?t[o]=cloneElement(a,{in:false}):s&&l&&isValidElement(u)&&(t[o]=cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:ye(a,"exit",r),enter:ye(a,"enter",r)}));}}),t}var hc=Object.values||function(r){return Object.keys(r).map(function(e){return r[e]})},vc={component:"div",childFactory:function(e){return e}},ti=(function(r){Jt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=o.handleExited.bind(Tt(o));return o.state={contextValue:{isMounting:true},handleExited:a,firstRender:true},o}var n=e.prototype;return n.componentDidMount=function(){this.mounted=true,this.setState({contextValue:{isMounting:false}});},n.componentWillUnmount=function(){this.mounted=false;},e.getDerivedStateFromProps=function(t,o){var a=o.children,l=o.handleExited,s=o.firstRender;return {children:s?ya(t,l):xa(t,a,l),firstRender:false}},n.handleExited=function(t,o){var a=$t(this.props.children);t.key in a||(t.props.onExited&&t.props.onExited(o),this.mounted&&this.setState(function(l){var s=R({},l.children);return delete s[t.key],{children:s}}));},n.render=function(){var t=this.props,o=t.component,a=t.childFactory,l=Ee(t,["component","childFactory"]),s=this.state.contextValue,u=hc(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,o===null?L__default.createElement(we.Provider,{value:s},u):L__default.createElement(we.Provider,{value:s},L__default.createElement(o,l,u))},e})(L__default.Component);ti.propTypes={};ti.defaultProps=vc;var qt=ti;var Ic=["in","onExited","appear","enter","exit"],Cc=function(e){return function(n){n.in,n.onExited,n.appear,n.enter,n.exit;var i=K(n,Ic);return L.createElement(e,i)}},yc=Cc,xc=["component","duration","in","onExited"],Ea=function(e){var n=e.component,i=e.duration,t=i===void 0?1:i,o=e.in;e.onExited;var a=K(e,xc),l=useRef(null),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(t,"ms")},exiting:{opacity:0},exited:{opacity:0}};return L.createElement(_t,{mountOnEnter:true,unmountOnExit:true,in:o,timeout:t,nodeRef:l},function(u){var c={style:T({},s[u]),ref:l};return L.createElement(n,R({innerProps:c},a))})},ri=260,Ac=function(e){var n=e.children,i=e.in,t=e.onExited,o=useRef(null),a=useState("auto"),l=re(a,2),s=l[0],u=l[1];useEffect(function(){var d=o.current;if(d){var g=window.requestAnimationFrame(function(){return u(d.getBoundingClientRect().width)});return function(){return window.cancelAnimationFrame(g)}}},[]);var c=function(g){switch(g){default:return {width:s};case "exiting":return {width:0,transition:"width ".concat(ri,"ms ease-out")};case "exited":return {width:0}}};return L.createElement(_t,{enter:false,mountOnEnter:true,unmountOnExit:true,in:i,onExited:function(){var g=o.current;g&&(t==null||t(g));},timeout:ri,nodeRef:o},function(d){return L.createElement("div",{ref:o,style:T({overflow:"hidden",whiteSpace:"nowrap"},c(d))},n)})},Ec=["in","onExited"],Tc=function(e){return function(n){var i=n.in,t=n.onExited,o=K(n,Ec);return L.createElement(Ac,{in:i,onExited:t},L.createElement(e,R({cropWithEllipsis:i},o)))}},Rc=Tc,Sc=function(e){return function(n){return L.createElement(Ea,R({component:e,duration:n.isMulti?ri:1},n))}},wc=Sc,Gc=function(e){return function(n){return L.createElement(Ea,R({component:e},n))}},Dc=Gc,Oc=["component"],Pc=["children"],Bc=function(e){return function(n){return n.isMulti?L.createElement(Vc,R({component:e},n)):L.createElement(qt,R({component:e},n))}},Vc=function(e){var n=e.component,i=K(e,Oc),t=Fc(i);return L.createElement(qt,R({component:n},t))},Fc=function(e){var n=e.children,i=K(e,Pc),t=i.isMulti,o=i.hasValue,a=i.innerProps,l=i.selectProps,s=l.components,u=l.controlShouldRenderValue,c=useState(t&&u&&o),d=re(c,2),g=d[0],f=d[1],I=useState(false),b=re(I,2),m=b[0],C=b[1];useEffect(function(){o&&!g&&f(true);},[o,g]),useEffect(function(){m&&!o&&g&&f(false),C(false);},[m,o,g]);var E=function(){return C(true)},p=function(h){if(t&&L.isValidElement(h)){if(h.type===s.MultiValue)return L.cloneElement(h,{onExited:E});if(h.type===s.Placeholder&&g)return null}return h},y=T(T({},a),{},{style:T(T({},a==null?void 0:a.style),{},{display:t&&o||g?"flex":"grid"})}),x=T(T({},i),{},{innerProps:y,children:L.Children.toArray(n).map(p)});return x},Nc=Bc,Mc=["Input","MultiValue","Placeholder","SingleValue","ValueContainer"],Ta=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Wt({components:e}),i=n.Input,t=n.MultiValue,o=n.Placeholder,a=n.SingleValue,l=n.ValueContainer,s=K(n,Mc);return T({Input:yc(i),MultiValue:Rc(t),Placeholder:wc(o),SingleValue:Dc(a),ValueContainer:Nc(l)},s)},_e=Ta();_e.Input;_e.MultiValue;_e.Placeholder;_e.SingleValue;_e.ValueContainer;var Ra=Xt(Ta);var oi=class extends L__default.PureComponent{constructor(n){var i,t,o,a;super(n);this._valueSeparator="\xA4";this.onBlur=()=>{this.state.propvalue!==""&&this.setState(n=>({redraw:!n.redraw}));};this.onChange=n=>{var t,o;(o=(t=this.selectRef)==null?void 0:t.blur)==null||o.call(t);let i=this.convertToStr(n);this.setState({propvalue:i},()=>this.props.propChanged?this.props.propChanged(this.props.propname,i):null);};this.convertToStr=n=>n?n.value:"";this.state={isLoaded:false,disabled:(i=n.disabled)!=null?i:false,propname:n.propname,propvalue:n.propvalue,defaultValue:(t=n.defaultValue)!=null?t:"",redraw:false,hidelabel:(o=n.hidelabel)!=null?o:false,tabIndex:(a=n.tabIndex)!=null?a:0,widgetOptions:[]};}componentDidMount(){let n=this.getWidgetOptions();this.setState({widgetOptions:n,defaultValue:this.props.defaultValue,isLoaded:true});}componentDidUpdate(n){var i,t;this.state.disabled!==this.props.disabled&&this.setState({disabled:!!this.props.disabled}),n.propvalue!==this.props.propvalue&&this.setState({propvalue:this.props.propvalue}),this.selectRef&&this.state.tabIndex===this.selectRef.tabIndex&&((t=(i=this.selectRef).focus)==null||t.call(i));}render(){var d,g;if(!this.state.isLoaded)return null;let n={container:f=>({...f,display:"inline-block",width:"100%",minHeight:1,textAlign:"left",border:"none"}),control:f=>({...f,borderRadius:0,minHeight:1,border:0,outline:0}),dropdownIndicator:f=>({...f,minHeight:1,paddingTop:0,paddingBottom:0}),menu:f=>({...f}),menuPortal:f=>({...f,zIndex:9999}),option:f=>({...f,minHeight:30}),indicatorSeparator:f=>({...f,minHeight:1}),clearIndicator:f=>({...f,minHeight:1}),valueContainer:f=>({...f,minHeight:1,textOverflow:"ellipsis",maxWidth:"90%",whiteSpace:"nowrap",overflow:"hidden",display:"initial",padding:"0 10px",paddingLeft:3,height:30,lineHeight:"30px"}),placeholder:f=>({...f,top:"0%",transform:"none"}),singleValue:f=>({...f,minHeight:1,paddingBottom:2})},i=Ra(),{t}=this.props,{widgetOptions:o,defaultValue:a}=this.state,l=({children:f,getValue:I,...b})=>{let C=I().map(v=>b.selectProps.getOptionLabel(v)),E=C.slice(0,6),p=E.join(", "),y=C.length-E.length;y>0&&C.length>=5&&(p+=` + ${y} ${t("more")}`);let x=L__default.Children.toArray(f).filter(v=>["Input","DummyInput","Placeholder"].includes(v.displayName));return jsxs(Mt.ValueContainer,{...b,children:[!b.selectProps.inputValue&&p,x]})},s=this.state.propvalue&&this.state.propvalue!==""?this.state.propvalue:a;s=s&&s.toString();let u=(d=o.find(f=>f.value===s))!=null?d:null,c=this.props.placeholder!==void 0?this.props.placeholder:t("Select Options");return jsxs(Fragment,{children:[!this.state.hidelabel&&jsx("div",{children:jsx("span",{className:"elwrapper caption",children:this.state.propname})}),jsx("div",{className:this.state.hidelabel?"":"dropdown",children:jsx(Ia,{id:(g=this.props.id)!=null?g:"",ref:f=>this.selectRef=f,components:{...i,ValueContainer:l},tabIndex:this.state.tabIndex,isMulti:false,delimiter:this._valueSeparator,joinValues:true,cacheOptions:true,styles:n,options:o,name:this.props.propname,value:u,defaultValue:u,placeholder:c,onChange:this.onChange,onBlur:this.onBlur,hideSelectedOptions:false,noOptionsMessage:()=>t("No Options"),isDisabled:this.state.disabled,menuPortalTarget:document.body,menuPosition:"fixed"})})]})}getWidgetOptions(){let n=[];if(this.props.options){for(let[i,t]of Object.entries(this.props.options))n.push({label:t,value:i});this.props.sort==="alpha"?n.sort((i,t)=>i.label.localeCompare(t.label)):this.props.sort==="keydesc"&&(n.sort((i,t)=>i.value.localeCompare(t.value)),n.reverse());}return n}},Xc=withTranslation()(oi),Ga=Xc;var ai={strictType:"_SelectBox",widgetType:w.WIDGET,objectInspector:{defaultProps:{gsindex:false,ignorereadonly:false,datatype:"string",datalength:"400",dropsource:[],dropvalues:[],label:"",multiple:false,name:"",onchangehandler:false,placeholder:"",forcereadonly:false,readonly:false,required:false,requiredmessage:"",rendertype:"none",searchbar:false,size:"small",style:{},tabIndex:0,title:"Text",value:"",variant:"outlined",viewfield:false,visible:true}}},si=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=J(()=>({type:ai.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:si,type:ai.widgetType,stricttype:ai.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=H(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-selectbox-widget";(C||m)&&(p="form-selectbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y,placeholder:x}=a;return jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y},children:jsx(Ga,{propname:"dropdown",propvalue:"",placeholder:x,hidelabel:true,disabled:true})})});si.displayName="_SelectBox";var li=si;var ui={strictType:"_CheckBox",widgetType:w.WIDGET,objectInspector:{defaultProps:{defaultvalue:"",ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,readonly:false,required:false,tabIndex:0,value:"",visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},di=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=J(()=>({type:ui.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:di,type:ui.widgetType,stricttype:ui.strictType},collect:x=>({isDragging:x.isDragging()}),end:({},x)=>{x.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=H(()=>({accept:w.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-checkbox-widget";(C||m)&&(p="form-checkbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...ee,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(F,{})})})});di.displayName="_CheckBox";var pi=di;var fi={strictType:"_Radio",widgetType:w.WIDGET,objectInspector:{defaultProps:{defaultvalue:false,ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,groupname:"",readonly:false,required:false,tabIndex:0,value:"",viewfield:false,visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},mi=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=J(()=>({type:fi.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:mi,type:fi.widgetType,stricttype:fi.strictType},collect:x=>({isDragging:x.isDragging()}),end:(x,v)=>{v.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=H(()=>({accept:w.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-radio-widget";(C||m)&&(p="form-radio-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...ee,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(Q,{})})})});mi.displayName="_Radio";var bi=mi;var zc={cursor:"move",opacity:1},Na=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var x,v;let g=u(i,t,o).index,[,f]=J(()=>({type:w.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ue,type:w.WIDGET,stricttype:Ue.displayName},collect:h=>({isDragging:h.isDragging()}),end:(h,A)=>{A.didDrop();}}),[o,g,i,t,e,n,a]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=H(()=>({accept:w.ROWSEGMENT,drop(h,A){let R=A.didDrop();R||(c(i,t,o),I(true),b(R));},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true})})}),[i,t,o,c]),p="form-widget form-fileuploader";(C||m)&&(p="form-fileuploader widget-highlight"),o===s()&&(p=`${p} activeWidget`);let y={...zc,...a.style,lineHeight:((x=a.style)==null?void 0:x.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(v=a.style)==null?void 0:v.lineHeight};return jsx("div",{ref:h=>f(E(h)),className:p,onPointerUp:l,style:y,children:jsx(L__default.Fragment,{children:a.title})})});Na.displayName="_Fileuploader";var Ue=Na;var Uc={cursor:"move",opacity:1},Xa=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var v,h;let g=u(i,t,o).index,[{isDragging:f},I]=J(()=>({type:w.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Qe,type:w.WIDGET,stricttype:Qe.displayName},collect:A=>({isDragging:A.isDragging()}),end:(A,R)=>{}}),[o,g,i,t,e,n,a]),[,b]=useState(false),[,m]=useState(false),[{isOver:C,isOverCurrent:E},p]=H(()=>({accept:w.ROWSEGMENT,drop(A,R){let O=R.didDrop();O||(c(i,t,o),b(true),m(O));},collect:A=>({isOver:A.isOver(),isOverCurrent:A.isOver({shallow:true})})}),[i,t,o,c]),y="form-widget form-placeholder";(E||C)&&(y="form-placeholder widget-highlight"),o===s()&&(y=`${y} activeWidget`);let x={...Uc,...a.style,lineHeight:((v=a.style)==null?void 0:v.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(h=a.style)==null?void 0:h.lineHeight};return jsx("div",{ref:A=>I(p(A)),className:y,onPointerUp:l,style:x,children:jsx(L__default.Fragment,{children:a.title})})});Xa.displayName="_Placeholder";var Qe=Xa;var hi={strictType:"_Button",widgetType:w.WIDGET,objectInspector:{defaultProps:{buttontype:Ti.NONE.toLowerCase(),colorSchema:"primary",fullWidth:true,name:"",size:"small",style:{},tabIndex:0,title:"Click Me",variant:"contained",verticalalign:"middle",visible:true}}},vi=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=J(()=>({type:hi.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:vi,type:hi.widgetType,stricttype:hi.strictType},collect:v=>({isDragging:v.isDragging()})}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=H(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-button-widget";(C||m)&&(p="form-button-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y,...x},children:jsx(L__default.Fragment,{children:a.title})},"button_"+o)});vi.displayName="_Button";var Ii=vi;var Ci={strictType:"_View",widgetType:w.WIDGET,objectInspector:{defaultProps:{title:"Text",plugincode:"",formcode:"",name:"",size:"small",style:{textAlign:"left"},variant:"outlined",visible:true,verticalalign:"middle",viewcomp:""}}},yi=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=J(()=>({type:Ci.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:yi,type:Ci.widgetType,stricttype:Ci.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=H(()=>({accept:w.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-view-widget";(C||m)&&(p="form-view-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...ee,...y,...x,minHeight:"2rem"},children:jsx(L__default.Fragment,{children:a.title})},"view_"+o)});yi.displayName="_View";var ka=yi;var P=class P{static debounce(e,n=300){let i,t=(...o)=>{clearTimeout(i),i=setTimeout(()=>e(...o),n);};return t.cancel=()=>{clearTimeout(i);},t.flush=()=>{clearTimeout(i),e();},t}static GetParentTabId(e,n,i={}){var t,o,a;if((e==null?void 0:e.id)===n)return {tabId:e==null?void 0:e.tabId,index:(t=i[e.tabId])!=null?t:0};if(((o=e._children)==null?void 0:o.length)>0){e.stricttype==="_TabBox"&&((a=e==null?void 0:e.properties)==null?void 0:a.tabcount)===void 0&&(i[e.tabId]===void 0?i[e.tabId]=0:i[e.tabId]++);for(let l of e._children){let s=P.GetParentTabId(l,n,i);if(s)return s}}return null}static getTabWidgetByFieldName(e,n,i={}){var t,o,a,l;if(((t=n.properties)==null?void 0:t.name)===e)return {tabId:n.tabId,index:(o=i[n.tabId])!=null?o:0};if(((a=n._children)==null?void 0:a.length)>0){n.stricttype==="_TabBox"&&((l=n==null?void 0:n.properties)==null?void 0:l.tabcount)===void 0&&(i[n.tabId]===void 0?i[n.tabId]=0:i[n.tabId]++);for(let s of n._children){let u=P.getTabWidgetByFieldName(e,s,i);if(u)return u}}return null}};P.getDefaultTabIndex=e=>{let n=0;return e.forEach(function(i){i._children.length>0&&i._children.forEach(function(t){t._children.length>0&&t._children[0].stricttype!=="_Label"&&n++;});}),n===0?1:n},P.getComponentByStrictType=e=>{if(e==="_Formcontainer")return wr;if(e==="_Button")return Ii;if(e==="_CheckBox")return pi;if(e==="_Fileuploader")return Ue;if(e==="_Label")return En;if(e==="_Placeholder")return Qe;if(e==="_Radio")return bi;if(e==="_Rowcontainer")return yt;if(e==="_Rowsegment")return Er;if(e==="_SelectBox")return li;if(e==="_TabBox")return Be;if(e==="_Table")return Ve;if(e==="_Tablecell")return Dr;if(e==="_Textinput")return wn;if(e==="_Textarea")return On;if(e==="_View")return ka},P.getItemDefaultName=(e,n)=>{let i=P.getItemCount(e,n,1),t="input_";if(e===wn)t="txtinput_";else if(e===li)t="drop_";else if(e===pi)t="chk_";else if(e===bi)t="rad_";else if(e===Be)t="tab_";else if(e===On)t="txtarea_";else if(e===En)t="lbl_";else if(e===Ii)t="btn_";else if(e===Ve)t="tbl_";else if(e===Qe)t="placeholder_";else if(e===Ue)return t="attached_files",t;return t+i},P.getTypeAsString=e=>{let n;return e===Ve?n="table":e===yt&&(n="row"),n},P.getItemCount=(e,n,i)=>(n.forEach(function(t){t.component===e&&i++,t._children&&t._children.length>0&&(i=P.getItemCount(e,t._children,i));}),i),P.getTabContainerChildrens=(e,n,i=[])=>{if(!n)return {data:e,path:i};let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t){let a=e.indexOf(t);return i.push(a),i.push("_children"),{index:e.indexOf(t),path:i,data:t._children}}else for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=P.getTabContainerChildrens(e[a]._children,n,i),o)return o;i.splice(-2);}},P.mapComponents=e=>{let n=i=>{for(var t in i)typeof i[t]=="object"&&i[t]!==null?n(i[t]):t==="stricttype"&&(i.component=P.getComponentByStrictType(i[t]));};n(e);},P.findWidgetByIdRecursive=(e,n,i=[])=>{let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t)return {item:t,index:e.indexOf(t),path:i,count:e.length};for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=P.findWidgetByIdRecursive(e[a]._children,n,i),o)return o;i.splice(-2);}},P.findPanelItem=(e,n,i)=>{let t=P.getTabContainerChildrens(i,e),o=t.data.filter(a=>`${a.id}`===n)[0];return {item:o,index:t.data.indexOf(o)}},P.findRowItem=(e,n,i,t)=>{let o;if(e){let a=P.getTabContainerChildrens(t,n);return !a||(o=a.data.filter(l=>`${l.id}`===i)[0],!o)?void 0:{item:o,component:o.component,index:a.data.indexOf(o),path:a.path,hasChildren:o._children.length>0}}else return o=t.filter(a=>`${a.id}`===i)[0],o?{item:o,component:o.component,index:t.indexOf(o),path:[],hasChildren:o._children.length>0}:void 0},P.findTableCellItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=P.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=P.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},P.findSegmentItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=P.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=P.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},P.getTabContainer=(e,n,i=[])=>{if(!n)return null;let t=e.filter(o=>`${o.id}`===n)[0];if(t)return {item:t,index:e.indexOf(t),path:i};for(let o=0;o<e.length;o++)if(e[o]._children){if(i.push(o),i.push("_children"),t=P.getTabContainer(e[o]._children,n,i),t)return t;i.splice(-2);}},P.getNodeUpdatePath=(e,n)=>{var i=function(o,a,l){for(var s=arguments.length===3?a.pop():false,u=0;u<a.length;u++)o=o[a[u]]=o[a[u]]||{};return s&&(o=o[s]=l),o},t={};return e&&e.length>0?i(t,e,n):t=n,t},P.getActiveTabIndex=(e,n)=>{if(n){let i=P.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?i.data.indexOf(t):null}return null},P.getActiveTabPanelId=(e,n)=>{if(n){let i=P.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?t.id:i.data[0].id}return null},P.isChildrenTab=(e,n,i)=>{let t=P.getTabContainerChildrens(e,i);return P.getAllTabIdInChain(t.data).indexOf(n)!==-1},P.getAllTabIdInChain=(e,n=[])=>{for(let i=0;i<e.length;i++)e[i]._children?(n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId),P.getAllTabIdInChain(e[i]._children,n)):n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId);return n},P.getUrlParameter=e=>new URLSearchParams(window.location.search).get(e),P.hasParentForm2=()=>P.getUrlParameter("ref")!=null,P.hasParentForm=()=>window.location.pathname.split("/").length>2,P.extractProjectGuid=e=>{let n=/\/p\/([^\/]+)\//.exec(e);return n?n[1]:null};var Ja=P;var $e={CANCEL:"Cancel",CUSTOM:"Custom",PRINT:"Print",SAVE:"Save"};var W=class W{static getFormButtonEvent(e){let n=null;return e.toUpperCase()===$e.CANCEL.toUpperCase()?n=W.onCancel:e.toUpperCase()===$e.CUSTOM.toUpperCase()?n=W.onClick:e.toUpperCase()===$e.PRINT.toUpperCase()?n=W.onPrint:e.toUpperCase()===$e.SAVE.toUpperCase()&&(n=W.onSave),n}};W.onChange="onChange",W.onClick="onClick",W.onCancel="onCancel",W.onDelete="onDelete",W.onPrint="onPrint",W.onSave="onSave",W.onRefresh="onRefresh",W.onTableDataLoad="onTableLoadData",W.onTableEditDataLoad="onTableEditLoadData",W.onTableCreateRecordEvent="onTableCreateRecordEvent",W.onFolderCreateRecordEvent="onFolderCreateRecordEvent",W.onFolderEditRecordEvent="onFolderEditRecordEvent",W.onFolderShareRecordEvent="onFolderShareRecordEvent",W.onTableSelectRowEvent="onTableSelectRowEvent",W.onTableRunActionEvent="onTableRunActionEvent",W.onTableRunBatchActionEvent="onTableRunBatchActionEvent",W.onTableEditRunActionEvent="onTableEditRunActionEvent",W.onFoldersDataLoad="onFoldersLoadData",W.onFileUploadEvent="onFileUpload",W.onFileUploadCreateDocumentEvent="onFileUploadCreateDocument",W.onStartSignProcess="onStartSignProcess",W.onFinishSignProcess="onFinishSignProcess",W.onLoadNewRecordTemplates="onLoadNewRecordTemplates",W.onDirectRunFormEvent="onDirectRunFormEvent",W.onGetCustomResponse="onGetCustomResponse";var za=W;
11
+ export{vn as A,In as B,ht as C,Be as D,yn as E,Ve as F,Fe as G,yt as H,Ue as I,Qe as J,tl as K,Er as L,wr as M,xg as N,Dr as O,hi as P,Ii as Q,Ci as R,ka as S,Ja as T,za as U,Cn as a,Ri as b,ie as c,J as d,H as e,on as f,w as g,Ti as h,xn as i,En as j,sn as k,nd as l,Rn as m,wn as n,Gn as o,On as p,Ga as q,ai as r,li as s,ui as t,pi as u,fi as v,bi as w,fe as x,mn as y,bn as z};