kdpa-components 1.39.3 → 1.39.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/types/components/AdvancedList/KdpaAdvancedList.d.ts +13 -0
- package/dist/types/components/AdvancedList/KdpaAdvancedList.d.ts.map +1 -0
- package/dist/types/components/AdvancedList/KdpaAdvancedList.stories.d.ts +7 -0
- package/dist/types/components/AdvancedList/KdpaAdvancedList.stories.d.ts.map +1 -0
- package/dist/types/components/AdvancedList/index.d.ts +2 -0
- package/dist/types/components/AdvancedList/index.d.ts.map +1 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.d.ts +5 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.d.ts.map +1 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.stories.d.ts +8 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.stories.d.ts.map +1 -0
- package/dist/types/components/CodeEditor/index.d.ts +3 -0
- package/dist/types/components/CodeEditor/index.d.ts.map +1 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.d.ts +4 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.d.ts.map +1 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.stories.d.ts +7 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.stories.d.ts.map +1 -0
- package/dist/types/components/DataGrid/index.d.ts +2 -0
- package/dist/types/components/DataGrid/index.d.ts.map +1 -0
- package/dist/types/designerKit/components/Alert/Temp.d.ts +3 -0
- package/dist/types/designerKit/components/Alert/Temp.d.ts.map +1 -0
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts +12 -0
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts.map +1 -0
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts +1 -1
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts.map +1 -1
- package/dist/types/designerKit/components/Modal/KdModal.d.ts +2 -1
- package/dist/types/designerKit/components/Modal/KdModal.d.ts.map +1 -1
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts +5 -0
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts.map +1 -0
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts +9 -0
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map +1 -0
- package/dist/types/designerKit/components/Uploader/KdFileUploader/UploadedItems.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts +53 -0
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts.map +1 -0
- package/dist/types/designerKit/hooks/useFileUpload.d.ts.map +1 -1
- package/dist/types/designerKit/utils/useTreeHelper.d.ts +17 -0
- package/dist/types/designerKit/utils/useTreeHelper.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1427,7 +1427,7 @@ Message: ${e}`),e}}const pu=e=>typeof e=="string",O_e=e=>typeof e=="function",SH
|
|
|
1427
1427
|
color: ${e=>e?.activeColor??"#7367aa"};
|
|
1428
1428
|
border-bottom: 3px solid ${e=>e?.activeColor??"#7367aa"};
|
|
1429
1429
|
}
|
|
1430
|
-
`;function YWe({children:e,...t}){const r=Er()?.palette?.primary?.main;return W(WWe,{className:"KdTabsTrigger",activeColor:r,...t,children:e})}const UWe=Gi("div")();function KWe({currentStep:e,setCurrentStep:t,defaultValue:n,children:r,orientation:o="horizontal",clickSteps:i=!1,showConnector:a=!0,...s}){return vn(()=>{n&&t(typeof n=="string"?parseInt(n):n)},[n]),W(UWe,{...s,className:`${s.className} KdStepRoot ${o==="vertical"?"KdStepRoot_vertical":"KdStepRoot_horizontal"}`,children:r.map((c,f)=>Dt.isValidElement(c)?Dt.cloneElement(c,{orientation:o,currentStep:e,setCurrentStep:t,clickSteps:i,showConnector:a,key:f}):c)})}function XWe({children:e,currentStep:t,setCurrentStep:n,orientation:r="horizontal",clickSteps:o=!0,showConnector:i=!0,...a}){return W(Rse,{activeStep:t,orientation:r,...a,connector:W(wL,{sx:{visibility:i?"visible":"hidden"}}),sx:{...a.sx,".MuiStepConnector-lineVertical":{height:"100%"}},className:`${a.className} ${r==="vertical"?"KdStepper_vertical":"KdStepper_horizontal"}`,children:e.map((s,c)=>{if(s)return W(ase,{active:t===c,completed:t!==void 0?t>c:!1,children:Dt.isValidElement(s)?Dt.cloneElement(s,{orientation:r,currentStep:t,setCurrentStep:n,clickSteps:o,key:c}):s})})})}const GWe=Gi("div")();function qWe({children:e,footer:t=!1,backButtonText:n="\u0642\u0628\u0644\u06CC",nextButtonText:r="\u0628\u0639\u062F\u06CC",index:o,currentStep:i,setCurrentStep:a,onPrev:s,onNext:c,orientation:f="horizontal",...p}){const m=()=>{a&&i!==void 0&&a(i+1)},b=()=>{a&&i!==void 0&&a(i-1)};return i===o?wt(GWe,{className:f==="horizontal"?"KdStepContent_horizontal":"KdStepContent_vertical",...p,children:[W("div",{children:e}),t&&wt("div",{className:"KdStepContent_Buttons",children:[W(ax,{disabled:i===0,onClick:()=>{s?s():b()},children:n}),W(ax,{variant:"contained",onClick:()=>{c?c():m()},children:r})]})]}):W(Zr,{})}function ZWe({children:e,index:t,currentStep:n=0,setCurrentStep:r,clickSteps:o=!0,icon:i,completedIcon:a,activeIcon:s,...c}){const f=b=>{r&&r(b)},p=Er();function m(){return n===t?s??a??i:n>t?a??i:i}return W(Cse,{onClick:()=>{o&&f(t)},...c,icon:m(),className:"KdStepLabel",style:{...c?.style,"--primary-main":p.palette.primary.main},children:e})}const JWe=rr(function(t,n){const r={success:"bg-light-success",info:"bg-light-info",warning:"bg-light-warning",error:"bg-light-danger"}[t.severity??"info"],o=t.className??"d-flex align-items-center mb-50",i=L2.sanitize(t.title??"",{USE_PROFILES:{html:!0}}),a=L2.sanitize(t.children??"",{USE_PROFILES:{html:!0}});return wt(VN,{ref:n,severity:t.severity,className:`${o} ${r}`,children:[t.title&&W(YN,{children:W("div",{dangerouslySetInnerHTML:{__html:i}})}),W("div",{dangerouslySetInnerHTML:{__html:a}})]})});function I7({title:e,children:t,onClose:n,isOpen:r,fullWidth:o=!0,hasHeader:i=!0,...
|
|
1430
|
+
`;function YWe({children:e,...t}){const r=Er()?.palette?.primary?.main;return W(WWe,{className:"KdTabsTrigger",activeColor:r,...t,children:e})}const UWe=Gi("div")();function KWe({currentStep:e,setCurrentStep:t,defaultValue:n,children:r,orientation:o="horizontal",clickSteps:i=!1,showConnector:a=!0,...s}){return vn(()=>{n&&t(typeof n=="string"?parseInt(n):n)},[n]),W(UWe,{...s,className:`${s.className} KdStepRoot ${o==="vertical"?"KdStepRoot_vertical":"KdStepRoot_horizontal"}`,children:r.map((c,f)=>Dt.isValidElement(c)?Dt.cloneElement(c,{orientation:o,currentStep:e,setCurrentStep:t,clickSteps:i,showConnector:a,key:f}):c)})}function XWe({children:e,currentStep:t,setCurrentStep:n,orientation:r="horizontal",clickSteps:o=!0,showConnector:i=!0,...a}){return W(Rse,{activeStep:t,orientation:r,...a,connector:W(wL,{sx:{visibility:i?"visible":"hidden"}}),sx:{...a.sx,".MuiStepConnector-lineVertical":{height:"100%"}},className:`${a.className} ${r==="vertical"?"KdStepper_vertical":"KdStepper_horizontal"}`,children:e.map((s,c)=>{if(s)return W(ase,{active:t===c,completed:t!==void 0?t>c:!1,children:Dt.isValidElement(s)?Dt.cloneElement(s,{orientation:r,currentStep:t,setCurrentStep:n,clickSteps:o,key:c}):s})})})}const GWe=Gi("div")();function qWe({children:e,footer:t=!1,backButtonText:n="\u0642\u0628\u0644\u06CC",nextButtonText:r="\u0628\u0639\u062F\u06CC",index:o,currentStep:i,setCurrentStep:a,onPrev:s,onNext:c,orientation:f="horizontal",...p}){const m=()=>{a&&i!==void 0&&a(i+1)},b=()=>{a&&i!==void 0&&a(i-1)};return i===o?wt(GWe,{className:f==="horizontal"?"KdStepContent_horizontal":"KdStepContent_vertical",...p,children:[W("div",{children:e}),t&&wt("div",{className:"KdStepContent_Buttons",children:[W(ax,{disabled:i===0,onClick:()=>{s?s():b()},children:n}),W(ax,{variant:"contained",onClick:()=>{c?c():m()},children:r})]})]}):W(Zr,{})}function ZWe({children:e,index:t,currentStep:n=0,setCurrentStep:r,clickSteps:o=!0,icon:i,completedIcon:a,activeIcon:s,...c}){const f=b=>{r&&r(b)},p=Er();function m(){return n===t?s??a??i:n>t?a??i:i}return W(Cse,{onClick:()=>{o&&f(t)},...c,icon:m(),className:"KdStepLabel",style:{...c?.style,"--primary-main":p.palette.primary.main},children:e})}const JWe=rr(function(t,n){const r={success:"bg-light-success",info:"bg-light-info",warning:"bg-light-warning",error:"bg-light-danger"}[t.severity??"info"],o=t.className??"d-flex align-items-center mb-50",i=L2.sanitize(t.title??"",{USE_PROFILES:{html:!0}}),a=L2.sanitize(t.children??"",{USE_PROFILES:{html:!0}});return wt(VN,{ref:n,severity:t.severity,className:`${o} ${r}`,children:[t.title&&W(YN,{children:W("div",{dangerouslySetInnerHTML:{__html:i}})}),W("div",{dangerouslySetInnerHTML:{__html:a}})]})});function I7({title:e,children:t,onClose:n,isOpen:r,fullWidth:o=!0,hasHeader:i=!0,backdropClick:a=!0,...s}){return wt(Am,{open:r,onClose:(c,f)=>{f==="backdropClick"&&!a||n?.()},fullWidth:o,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",...s,sx:{"& .MuiDialog-paper":{padding:"20px",...s?.sx}},children:[i&&wt(RR,{id:"alert-dialog-title",variant:"body1",sx:{display:"flex",padding:"0px !important",paddingBottom:"20px !important",fontSize:"16px",fontWeight:600,paddingLeft:"16px",alignItems:"center",justifyContent:"space-between"},children:[W("span",{children:e}),W(Va,{onClick:n,children:W(dFe,{})})]}),W(Sk,{sx:{padding:"1px"},children:t})]})}function L7({type:e="inline",...t}){const n=Jr(()=>e==="inline"?({children:r,isOpen:o,...i})=>W(Zr,{children:o&&W(Zr,{children:W("div",{...i,children:r})})}):({children:r,isOpen:o,label:i,...a})=>W(I7,{...a,title:i,isOpen:o,hasHeader:!1,sx:{padding:"0px",...a?.sx},children:r}),[e]);return W(n,{...t})}function QWe({isOpen:e=!1,children:t,onClose:n,label:r,loading:o=!1,onSubmit:i,...a}){return W(L7,{isOpen:!!e,onClose:n,label:r,...a,children:W(u6,{onSubmit:i,loading:o,formState:a.formState,...a,children:wt("div",{children:[W("header",{style:{padding:"12px",borderBottom:"1px solid #eee"},children:W(Ya,{variant:"h6",fontSize:"16px",children:r})}),t]})})})}var e7e=X9(QWe);function t7e({title:e,children:t}){return wt("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[W(Ya,{variant:"h6",children:e}),W("div",{style:{display:"flex",flexDirection:"row",gap:"4px"},children:t})]})}function n7e(e){return Zt("MuiTreeView",e)}Gt("MuiTreeView",["root"]);const $7={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},CP=M.createContext($7);process.env.NODE_ENV!=="production"&&(CP.displayName="TreeViewContext");const r7e=(e,t)=>{const n=M.useRef({}),[r,o]=M.useState(()=>{const a={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([c,f])=>{n.current[c]={controlledProp:f.controlledProp,defaultProp:f.defaultProp,isControlled:t[f.controlledProp]!==void 0},a[c]=t[f.defaultProp]})}),a}),i=Object.fromEntries(Object.entries(n.current).map(([a,s])=>{const c=s.isControlled?t[s.controlledProp]:r[a];return[a,{value:c,setValue:f=>{s.isControlled||o(p=>j({},p,{[a]:f}))}}]}));return process.env.NODE_ENV!=="production"&&Object.entries(n.current).forEach(([a,s])=>{const c=t[s.controlledProp],f=t[s.defaultProp];M.useEffect(()=>{s.isControlled!==(c!==void 0)&&console.error([`MUI: A component is changing the ${s.isControlled?"":"un"}controlled ${a} state of TreeView to be ${s.isControlled?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${a} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
1431
1431
|
`))},[c]);const{current:p}=M.useRef(f);M.useEffect(()=>{!s.isControlled&&p!==f&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
|
|
1432
1432
|
`))},[JSON.stringify(p)])}),i};class o7e{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];if(o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=o.highPriority.size+o.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
|
|
1433
1433
|
`)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;a<i.length;a+=1){const s=i[a];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const kP=(e,t)=>{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),o=r.indexOf(t);if(o===0)return n.parentId;let i=r[o-1];for(;e.isNodeExpanded(i)&&e.getNavigableChildrenIds(i).length>0;)i=e.getNavigableChildrenIds(i).pop();return i},nb=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),o=r[r.indexOf(n.id)+1];if(o)return o;n=e.getNode(n.parentId)}return null},EP=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},TP=e=>e.getNavigableChildrenIds(null)[0],Mp=(e,t)=>{Object.assign(e,t)},i7e=e=>e.isPropagationStopped!==void 0,a7e=({instance:e})=>{const[t]=M.useState(()=>new o7e),n=M.useCallback((...o)=>{const[i,a,s={}]=o;s.defaultMuiPrevented=!1,!(i7e(s)&&s.isPropagationStopped())&&t.emit(i,a,s)},[t]),r=M.useCallback((o,i)=>(t.on(o,i),()=>{t.removeListener(o,i)}),[t]);Mp(e,{$$publishEvent:n,$$subscribeEvent:r})},s7e=[a7e],l7e=e=>{const t=[...s7e,...e.plugins],n=t.reduce((w,S)=>S.getDefaultizedParams?S.getDefaultizedParams(w):w,e),r=r7e(t,n),i=M.useRef({}).current,a=M.useRef(null),s=nr(a,e.rootRef),[c,f]=M.useState(()=>{const w={};return t.forEach(S=>{S.getInitialState&&Object.assign(w,S.getInitialState(n))}),w}),p=[];let m=$7;const b=w=>{const S=w({instance:i,params:n,state:c,setState:f,rootRef:a,models:r})||{};S.getRootProps&&p.push(S.getRootProps),S.contextValue&&(m=S.contextValue)};return t.forEach(b),{getRootProps:(w={})=>{const S=j({role:"tree",tabIndex:0},w,{ref:s});return p.forEach(k=>{Object.assign(S,k(w))}),S},rootRef:s,contextValue:m}},c7e=["element"];function u7e(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function d7e(e,t){let n=0,r=e.length-1;for(;n<=r;){const o=Math.floor((n+r)/2);if(e[o].element===t)return o;e[o].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?r=o-1:n=o+1}return n}const OP=M.createContext({});process.env.NODE_ENV!=="production"&&(OP.displayName="DescendantContext");function f7e(e){const t=M.useRef(null);return M.useEffect(()=>{t.current=e},[e]),t.current}const F7=()=>{};function h7e(e){const[,t]=M.useState(),{registerDescendant:n=F7,unregisterDescendant:r=F7,descendants:o=[],parentId:i=null}=M.useContext(OP),a=u7e(o,f=>f.element===e.element),s=f7e(o),c=o.some((f,p)=>s&&s[p]&&s[p].element!==f.element);return Do(()=>{if(e.element)return n(j({},e,{index:a})),()=>{r(e.element)};t({})},[n,r,a,c,e]),{parentId:i,index:a}}function MP(e){const{children:t,id:n}=e,[r,o]=M.useState([]),i=M.useCallback(c=>{let{element:f}=c,p=vt(c,c7e);o(m=>{if(m.length===0)return[j({},p,{element:f,index:0})];const b=d7e(m,f);let y;if(m[b]&&m[b].element===f)y=m;else{const w=j({},p,{element:f,index:b});y=m.slice(),y.splice(b,0,w)}return y.forEach((w,S)=>{w.index=S}),y})},[]),a=M.useCallback(c=>{o(f=>f.filter(p=>c!==p.element))},[]),s=M.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:a,parentId:n}),[r,i,a,n]);return W(OP.Provider,{value:s,children:t})}process.env.NODE_ENV!=="production"&&(MP.propTypes={children:u.node,id:u.string});function p7e(e){const{value:t,children:n}=e;return W(CP.Provider,{value:t,children:W(MP,{children:n})})}const m7e=(e,t,n)=>{e.$$publishEvent(t,n)},g7e=({instance:e,params:t})=>{const n=M.useRef({}),r=M.useCallback(f=>n.current[f],[]),o=M.useCallback(f=>{n.current[f.id]=f},[]),i=M.useCallback(f=>{const p=j({},n.current);delete p[f],n.current=p,m7e(e,"removeNode",{id:f})},[e]),a=M.useCallback(f=>{if(f==null)return!1;let p=e.getNode(f);if(!p)return!1;if(p.disabled)return!0;for(;p.parentId!=null;)if(p=e.getNode(p.parentId),p.disabled)return!0;return!1},[e]),s=hn(f=>Object.values(n.current).filter(p=>p.parentId===f).sort((p,m)=>p.index-m.index).map(p=>p.id));Mp(e,{getNode:r,updateNode:o,removeNode:i,getChildrenIds:s,getNavigableChildrenIds:f=>{let p=e.getChildrenIds(f);return t.disabledItemsFocusable||(p=p.filter(m=>!e.isNodeDisabled(m))),p},isNodeDisabled:a})},PP=({instance:e,params:t,models:n})=>{const r=M.useCallback(s=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(s)!==-1:!1,[n.expanded.value]),o=M.useCallback(s=>{var c;return!!((c=e.getNode(s))!=null&&c.expandable)},[e]),i=hn((s,c)=>{if(c==null)return;let f;n.expanded.value.indexOf(c)!==-1?f=n.expanded.value.filter(p=>p!==c):f=[c].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(s,f),n.expanded.setValue(f)});Mp(e,{isNodeExpanded:r,isNodeExpandable:o,toggleNodeExpansion:i,expandAllSiblings:(s,c)=>{const f=e.getNode(c),m=e.getChildrenIds(f.parentId).filter(y=>e.isNodeExpandable(y)&&!e.isNodeExpanded(y)),b=n.expanded.value.concat(m);m.length>0&&(n.expanded.setValue(b),t.onNodeToggle&&t.onNodeToggle(s,b))}})};PP.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const v7e=[];PP.getDefaultizedParams=e=>{var t;return j({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:v7e})};const b7e=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),o=e.getNode(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const i=[r.id],a=[o.id];let s=r.parentId,c=o.parentId,f=a.indexOf(s)!==-1,p=i.indexOf(c)!==-1,m=!0,b=!0;for(;!p&&!f;)m&&(i.push(s),f=a.indexOf(s)!==-1,m=s!==null,!f&&m&&(s=e.getNode(s).parentId)),b&&!f&&(a.push(c),p=i.indexOf(c)!==-1,b=c!==null,!p&&b&&(c=e.getNode(c).parentId));const y=f?s:c,w=e.getChildrenIds(y),S=i[i.indexOf(y)-1],k=a[a.indexOf(y)-1];return w.indexOf(S)<w.indexOf(k)?[t,n]:[n,t]},AP=({instance:e,params:t,models:n})=>{const r=M.useRef(null),o=M.useRef(!1),i=M.useRef([]),a=w=>Array.isArray(n.selected.value)?n.selected.value.indexOf(w)!==-1:n.selected.value===w,s=(w,S,k=!1)=>{if(!t.disableSelection){if(k){if(Array.isArray(n.selected.value)){let T;n.selected.value.indexOf(S)!==-1?T=n.selected.value.filter(E=>E!==S):T=[S].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(w,T),n.selected.setValue(T)}}else{const T=t.multiSelect?[S]:S;t.onNodeSelect&&t.onNodeSelect(w,T),n.selected.setValue(T)}r.current=S,o.current=!1,i.current=[]}},c=(w,S)=>{const[k,T]=b7e(e,w,S),E=[k];let _=k;for(;_!==T;)_=nb(e,_),E.push(_);return E},f=(w,S)=>{let k=n.selected.value.slice();const{start:T,next:E,current:_}=S;!E||!_||(i.current.indexOf(_)===-1&&(i.current=[]),o.current?i.current.indexOf(E)!==-1?(k=k.filter(R=>R===T||R!==_),i.current=i.current.filter(R=>R===T||R!==_)):(k.push(E),i.current.push(E)):(k.push(E),i.current.push(_,E)),t.onNodeSelect&&t.onNodeSelect(w,k),n.selected.setValue(k))},p=(w,S)=>{let k=n.selected.value.slice();const{start:T,end:E}=S;o.current&&(k=k.filter(N=>i.current.indexOf(N)===-1));let _=c(T,E);_=_.filter(N=>!e.isNodeDisabled(N)),i.current=_;let R=k.concat(_);R=R.filter((N,F)=>R.indexOf(N)===F),t.onNodeSelect&&t.onNodeSelect(w,R),n.selected.setValue(R)};return Mp(e,{isNodeSelected:a,selectNode:s,selectRange:(w,S,k=!1)=>{if(t.disableSelection)return;const{start:T=r.current,end:E,current:_}=S;k?f(w,{start:T,next:E,current:_}):T!=null&&E!=null&&p(w,{start:T,end:E}),o.current=!0},rangeSelectToLast:(w,S)=>{r.current||(r.current=S);const k=o.current?r.current:S;e.selectRange(w,{start:k,end:EP(e)})},rangeSelectToFirst:(w,S)=>{r.current||(r.current=S);const k=o.current?r.current:S;e.selectRange(w,{start:k,end:TP(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};AP.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const y7e=[];AP.getDefaultizedParams=e=>{var t,n,r;return j({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(r=e.defaultSelected)!=null?r:e.multiSelect?y7e:null})};const z7=1e3;class x7e{constructor(t=z7){this.timeouts=new Map,this.cleanupTimeout=z7,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class w7e{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class S7e{}function C7e(e){let t=0;return function(r,o,i){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new w7e:new x7e);const[a]=M.useState(new S7e),s=M.useRef(null),c=M.useRef();c.current=i;const f=M.useRef(null);if(!s.current&&c.current){const p=(m,b)=>{if(!b.defaultMuiPrevented){var y;(y=c.current)==null||y.call(c,m,b)}};s.current=r.$$subscribeEvent(o,p),t+=1,f.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=s.current)==null||m.call(s),s.current=null,f.current=null},f.current)}else!c.current&&s.current&&(s.current(),s.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));M.useEffect(()=>{if(!s.current&&c.current){const p=(m,b)=>{if(!b.defaultMuiPrevented){var y;(y=c.current)==null||y.call(c,m,b)}};s.current=r.$$subscribeEvent(o,p)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=s.current)==null||p.call(s),s.current=null}},[r,o])}}const k7e={registry:null},E7e=C7e(k7e),DP=({instance:e,params:t,state:n,setState:r,models:o,rootRef:i})=>{const a=hn(y=>{const w=typeof y=="function"?y(n.focusedNodeId):y;r(S=>j({},S,{focusedNodeId:w}))}),s=M.useCallback(y=>n.focusedNodeId===y,[n.focusedNodeId]),c=hn((y,w)=>{w&&(a(w),t.onNodeFocus&&t.onNodeFocus(y,w))});Mp(e,{isNodeFocused:s,focusNode:c}),E7e(e,"removeNode",({id:y})=>{a(w=>w===y&&i.current===oo(i.current).activeElement?e.getChildrenIds(null)[0]:w)});const f=y=>w=>{var S;if((S=y.onFocus)==null||S.call(y,w),w.target===w.currentTarget){const k=E=>{const _=e.getNode(E);return _&&(_.parentId==null||e.isNodeExpanded(_.parentId))};let T;Array.isArray(o.selected.value)?T=o.selected.value.find(k):o.selected.value!=null&&k(o.selected.value)&&(T=o.selected.value),T==null&&(T=e.getNavigableChildrenIds(null)[0]),e.focusNode(w,T)}},p=y=>w=>{var S;(S=y.onBlur)==null||S.call(y,w),a(null)},m=e.getNode(n.focusedNodeId),b=m?m.idAttribute:null;return{getRootProps:y=>({onFocus:f(y),onBlur:p(y),"aria-activedescendant":b??void 0})}};DP.getInitialState=()=>({focusedNodeId:null}),DP.getDefaultizedParams=e=>{var t;return j({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function T7e(e){return e&&e.length===1&&e.match(/\S/)}function B7(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const O7e=({instance:e,params:t,state:n})=>{const o=Er().direction==="rtl",i=M.useRef({}),a=hn((y,w)=>(i.current[y]=w,()=>{const S=j({},i.current);delete S[y],i.current=S}));Mp(e,{mapFirstChar:a});const s=y=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(y,nb(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(y,n.focusedNodeId)),!0),c=y=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(y,n.focusedNodeId),!0;const w=e.getNode(n.focusedNodeId).parentId;return w?(e.focusNode(y,w),!0):!1},f=(y,w,S)=>{let k,T;const E=S.toLowerCase(),_=[],R=[];Object.keys(i.current).forEach(N=>{const F=e.getNode(N),V=F.parentId?e.isNodeExpanded(F.parentId):!0,K=t.disabledItemsFocusable?!1:e.isNodeDisabled(N);V&&!K&&(_.push(N),R.push(i.current[N]))}),k=_.indexOf(w)+1,k>=_.length&&(k=0),T=B7(R,k,E),T===-1&&(T=B7(R,0,E)),T>-1&&e.focusNode(y,_[T])},p=(y,w)=>{e.isNodeDisabled(nb(e,w))||e.selectRange(y,{end:nb(e,w),current:w},!0)},m=(y,w)=>{e.isNodeDisabled(kP(e,w))||e.selectRange(y,{end:kP(e,w),current:w},!0)},b=y=>w=>{var S;(S=y.onKeyDown)==null||S.call(y,w);let k=!1;const T=w.key;if(w.altKey||w.currentTarget!==w.target||n.focusedNodeId==null)return;const E=w.ctrlKey||w.metaKey;switch(T){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(k=!0,t.multiSelect&&w.shiftKey?e.selectRange(w,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(w,n.focusedNodeId,!0):e.selectNode(w,n.focusedNodeId)),w.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(w,n.focusedNodeId),k=!0):t.disableSelection||(k=!0,t.multiSelect?e.selectNode(w,n.focusedNodeId,!0):e.selectNode(w,n.focusedNodeId))),w.stopPropagation();break;case"ArrowDown":t.multiSelect&&w.shiftKey&&!t.disableSelection&&p(w,n.focusedNodeId),e.focusNode(w,nb(e,n.focusedNodeId)),k=!0;break;case"ArrowUp":t.multiSelect&&w.shiftKey&&!t.disableSelection&&m(w,n.focusedNodeId),e.focusNode(w,kP(e,n.focusedNodeId)),k=!0;break;case"ArrowRight":o?k=c(w):k=s(w);break;case"ArrowLeft":o?k=s(w):k=c(w);break;case"Home":t.multiSelect&&E&&w.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(w,n.focusedNodeId),e.focusNode(w,TP(e)),k=!0;break;case"End":t.multiSelect&&E&&w.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(w,n.focusedNodeId),e.focusNode(w,EP(e)),k=!0;break;default:T==="*"?(e.expandAllSiblings(w,n.focusedNodeId),k=!0):t.multiSelect&&E&&T.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(w,{start:TP(e),end:EP(e)}),k=!0):!E&&!w.shiftKey&&T7e(T)&&(f(w,n.focusedNodeId,T),k=!0)}k&&(w.preventDefault(),w.stopPropagation())};return{getRootProps:y=>({onKeyDown:b(y)})}},M7e=({instance:e,params:t})=>{const n=Us(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},P7e=[g7e,PP,AP,DP,O7e,M7e],A7e=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],D7e=e=>{const{classes:t}=e;return qt({root:["root"]},n7e,t)},V7=et("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),j7=M.forwardRef(function(t,n){const r=Yt({props:t,name:"MuiTreeView"}),o=r,i=r,{disabledItemsFocusable:a,expanded:s,defaultExpanded:c,onNodeToggle:f,onNodeFocus:p,disableSelection:m,defaultSelected:b,selected:y,multiSelect:w,onNodeSelect:S,id:k,defaultCollapseIcon:T,defaultEndIcon:E,defaultExpandIcon:_,defaultParentIcon:R,children:N}=i,F=vt(i,A7e),{getRootProps:V,contextValue:K}=l7e({disabledItemsFocusable:a,expanded:s,defaultExpanded:c,onNodeToggle:f,onNodeFocus:p,disableSelection:m,defaultSelected:b,selected:y,multiSelect:w,onNodeSelect:S,id:k,defaultCollapseIcon:T,defaultEndIcon:E,defaultExpandIcon:_,defaultParentIcon:R,plugins:P7e,rootRef:n}),Y=D7e(r),J=Kn({elementType:V7,externalSlotProps:{},externalForwardedProps:F,className:Y.root,getSlotProps:V,ownerState:o});return W(p7e,{value:K,children:W(V7,j({},J,{children:N}))})});process.env.NODE_ENV!=="production"&&(j7.propTypes={children:u.node,classes:u.object,className:u.string,defaultCollapseIcon:u.node,defaultEndIcon:u.node,defaultExpanded:u.arrayOf(u.string),defaultExpandIcon:u.node,defaultParentIcon:u.node,defaultSelected:u.oneOfType([u.arrayOf(u.string),u.string]),disabledItemsFocusable:u.bool,disableSelection:u.bool,expanded:u.arrayOf(u.string),id:u.string,multiSelect:u.bool,onNodeFocus:u.func,onNodeSelect:u.func,onNodeToggle:u.func,selected:u.any,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});const H7=()=>M.useContext(CP);function _7e(e){const{instance:t,multiSelect:n}=H7(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,i=t?t.isNodeFocused(e):!1,a=t?t.isNodeSelected(e):!1,s=t?t.isNodeDisabled(e):!1;return{disabled:s,expanded:o,selected:a,focused:i,handleExpansion:m=>{if(t&&!s){i||t.focusNode(m,e);const b=n&&(m.shiftKey||m.ctrlKey||m.metaKey);r&&!(b&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(m,e)}},handleSelection:m=>{t&&!s&&(i||t.focusNode(m,e),n&&(m.shiftKey||m.ctrlKey||m.metaKey)?m.shiftKey?t.selectRange(m,{end:e}):t.selectNode(m,e,!0):t.selectNode(m,e))},preventSelection:m=>{(m.shiftKey||m.ctrlKey||m.metaKey||s)&&m.preventDefault()}}}const N7e=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],_P=M.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:a,icon:s,label:c,nodeId:f,onClick:p,onMouseDown:m}=t,b=vt(t,N7e),{disabled:y,expanded:w,selected:S,focused:k,handleExpansion:T,handleSelection:E,preventSelection:_}=_7e(f),R=s||a||i,N=V=>{_(V),m&&m(V)},F=V=>{T(V),E(V),p&&p(V)};return wt("div",j({},b,{className:At(o,r.root,w&&r.expanded,S&&r.selected,k&&r.focused,y&&r.disabled),onClick:F,onMouseDown:N,ref:n,children:[W("div",{className:r.iconContainer,children:R}),W("div",{className:r.label,children:c})]}))});process.env.NODE_ENV!=="production"&&(_P.propTypes={classes:u.object.isRequired,className:u.string,displayIcon:u.node,expansionIcon:u.node,icon:u.node,label:u.node,nodeId:u.string.isRequired});function R7e(e){return Zt("MuiTreeItem",e)}const Eu=Gt("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),I7e=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],L7e=e=>{const{classes:t}=e;return qt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},R7e,t)},$7e=et("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),F7e=et(_P,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Eu.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Eu.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Eu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Eu.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Di(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Di(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Di(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Eu.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Di(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Eu.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Eu.label}`]:j({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),z7e=et(pm,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),W7=M.forwardRef(function(t,n){const r=Yt({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:a,ContentComponent:s=_P,ContentProps:c,endIcon:f,expandIcon:p,disabled:m,icon:b,id:y,label:w,nodeId:S,onClick:k,onMouseDown:T,TransitionComponent:E=pm,TransitionProps:_}=r,R=vt(r,I7e),{icons:N,multiSelect:F,disabledItemsFocusable:V,treeId:K,instance:Y}=H7();let J;y!=null?J=y:K&&S&&(J=`${K}-${S}`);const[X,ne]=M.useState(null),ie=M.useRef(null),te=nr(ne,n),re=M.useMemo(()=>({element:X,id:S}),[S,X]),{index:de,parentId:le}=h7e(re),ce=!!(Array.isArray(o)?o.length:o),ve=Y?Y.isNodeExpanded(S):!1,fe=Y?Y.isNodeFocused(S):!1,Te=Y?Y.isNodeSelected(S):!1,Re=Y?Y.isNodeDisabled(S):!1,je=j({},r,{expanded:ve,focused:fe,selected:Te,disabled:Re}),ke=L7e(je);let me,Pe;ce&&(ve?Pe=a||N.defaultCollapseIcon:Pe=p||N.defaultExpandIcon),ce?me=N.defaultParentIcon:me=f||N.defaultEndIcon,M.useEffect(()=>{if(Y&&de!==-1)return Y.updateNode({id:S,idAttribute:J,index:de,parentId:le,expandable:ce,disabled:m}),()=>Y.removeNode(S)},[Y,le,de,S,ce,m,J]),M.useEffect(()=>{if(Y&&w){var Be,Le;return Y.mapFirstChar(S,((Be=(Le=ie.current)==null?void 0:Le.textContent)!=null?Be:"").substring(0,1).toLowerCase())}},[Y,S,w]);let Me;F?Me=Te:Te&&(Me=!0);function _e(Be){if(Be.target===Be.currentTarget){let Ne;typeof Be.target.getRootNode=="function"?Ne=Be.target.getRootNode():Ne=oo(Be.target),Ne.getElementById(K).focus({preventScroll:!0})}const Le=!V&ℜY&&!fe&&Be.currentTarget===Be.target&&!Le&&Y.focusNode(Be,S)}return wt($7e,j({className:At(ke.root,i),role:"treeitem","aria-expanded":ce?ve:void 0,"aria-selected":Me,"aria-disabled":Re||void 0,id:J,tabIndex:-1},R,{ownerState:je,onFocus:_e,ref:te,children:[W(F7e,j({as:s,ref:ie,classes:{root:ke.content,expanded:ke.expanded,selected:ke.selected,focused:ke.focused,disabled:ke.disabled,iconContainer:ke.iconContainer,label:ke.label},label:w,nodeId:S,onClick:k,onMouseDown:T,icon:b,expansionIcon:Pe,displayIcon:me,ownerState:je},c)),o&&W(MP,{id:S,children:W(z7e,j({as:E,unmountOnExit:!0,className:ke.group,in:ve,component:"ul",role:"group"},_,{children:o}))})]}))});process.env.NODE_ENV!=="production"&&(W7.propTypes={children:u.node,classes:u.object,className:u.string,collapseIcon:u.node,ContentComponent:Rf,ContentProps:u.object,disabled:u.bool,endIcon:u.node,expandIcon:u.node,icon:u.node,label:u.node,nodeId:u.string.isRequired,onFocus:kC,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),TransitionComponent:u.elementType,TransitionProps:u.object});const B7e=()=>{const e=({data:r,getOptionLabel:o=p=>p.label,getOptionIcon:i=p=>p.icon,getOptionValue:a=p=>p.value,getOptionParent:s=p=>p.parent,getOptionNavlink:c=p=>p.navlink,getOptionExternalLink:f=p=>p.externalLink})=>{const p=[];return r?.forEach(m=>{a(m)&&p.push({value:a(m),label:wt(Zr,{children:[i(m),o(m)]}),parent:s(m),externalLink:f(m),navlink:c(m)})}),p},t=(r=[],o)=>{const i=[];for(const a of r){const s=a;if(!o&&!s?.parent||s?.parent===o){const c=t(r,s.value);c.length>0&&(s.children=c),i.push(s)}}return i},n=(r,o)=>{const i=[];if(!o)return[];const a=r.find(s=>s.value===o);return a&&(i.push(a.value),i.push(...n(r,a.parent))),i};return{renderTreeToSpecificFieldName:e,buildTree:t,findAllExpanded:n}};function V7e({data:e,onClick:t,getOptionValue:n,getOptionIcon:r,getOptionLabel:o,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s,noDataText:c="no data",...f}){const{buildTree:p,renderTreeToSpecificFieldName:m}=B7e(),b=p(m({data:e,getOptionLabel:o,getOptionIcon:r,getOptionValue:n,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s})),y=({data:S,children:k,isLeaf:T})=>{if(!T)return W(Zr,{children:k});const E=t||!S.navlink?"span":(S.externalLink,"a"),_=t?{onClick:()=>{t(S)}}:S.externalLink?{href:S.navlink}:{href:S.navlink};return W(E,{..._,style:{textDecoration:"none",color:"inherit"},children:k})},w=S=>S.map(k=>W(y,{isLeaf:!(k.children&&k.children.length>0),data:k,children:W(W7,{nodeId:k.value,label:k.label,sx:{"& .MuiTreeItem-content":{flexDirection:"row-reverse",padding:"10px 15px",...f.treeItemContentStyle??{}},"& .MuiTreeItem-label":{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px",...f.treeItemLabelStyle??{}}},children:k.children&&k.children.length>0&&w(k?.children)},k.value)}));return W(Zr,{children:b.length>0?W(j7,{defaultCollapseIcon:W(cxe,{}),defaultExpanded:[b[0].value],defaultExpandIcon:W(lxe,{}),disableSelection:!0,...f,children:w(b)}):W("div",{style:{width:"100%",textAlign:"center"},children:c})})}function j7e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"}}]})(e)}function Y7(e){let t;const n=(...r)=>{clearTimeout(t),t=setTimeout(()=>{e.onInputChange&&(!e.minLength||!r[1]||r[1].length>=e.minLength)&&e.onInputChange(...r)},300)};return W(pg,{popupIcon:W(j7e,{size:"20px"}),...e,sx:{...e.sx,"& .MuiAutocomplete-popupIndicator":{transform:"none"}},onFocus:n,onInputChange:n,renderOption:(r,o)=>wt("div",{...r,className:"KdSearchableInput_options",children:[W("div",{className:"KdSearchableInput_option_icon",children:e.getOptionIcon?e.getOptionIcon(o):o?.icon}),wt("div",{children:[W("div",{className:"KdSearchableInput_option_label",children:e.getOptionLabel?e.getOptionLabel(o):o?.label}),W("div",{className:"KdSearchableInput_option_value",children:e.getOptionValue?e.getOptionValue(o):o?.id})]})]}),PaperComponent:r=>W("div",{...r,children:r.children}),ListboxComponent:r=>W(bT,{...r,style:{maxHeight:"40vh"},children:r.children}),PopperComponent:r=>r.open?wt("div",{...r,className:"KdSearchableInput_popper_component",children:[e.optionsLabel&&wt(Zr,{children:[W("label",{className:"KdSearchableInput_popper_component_label",children:e.optionsLabel}),W(N4,{})]}),e.loading?W("div",{className:"KdSearchableInput_popper_component_loading",children:W(fs,{size:"20px"})}):W(Zr,{children:r.children})]}):null,filterOptions:r=>r,renderInput:e.renderInput?e.renderInput:r=>W(Hm,{...r,size:"small",required:!!e?.required,variant:e?.variant,label:e?.label,helperText:e?.error?void 0:e?.helperText,error:!!e?.error})})}function H7e(e,t=globalThis?.document){const n=Ns(e);vn(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const NP="dismissableLayer.update",W7e="dismissableLayer.pointerDownOutside",Y7e="dismissableLayer.focusOutside";let U7;const U7e=xf({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),K7e=rr((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...f}=e,p=yf(U7e),[m,b]=Mn(null),y=(n=m?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,w]=Mn({}),S=Ta(t,K=>b(K)),k=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=k.indexOf(T),_=m?k.indexOf(m):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,N=_>=E,F=X7e(K=>{const Y=K.target,J=[...p.branches].some(X=>X.contains(Y));!N||J||(i?.(K),s?.(K),K.defaultPrevented||c?.())},y),V=G7e(K=>{const Y=K.target;[...p.branches].some(X=>X.contains(Y))||(a?.(K),s?.(K),K.defaultPrevented||c?.())},y);return H7e(K=>{_===p.layers.size-1&&(o?.(K),!K.defaultPrevented&&c&&(K.preventDefault(),c()))},y),vn(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(U7=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),K7(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=U7)}},[m,y,r,p]),vn(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),K7())},[m,p]),vn(()=>{const K=()=>w({});return document.addEventListener(NP,K),()=>document.removeEventListener(NP,K)},[]),cn(Wi.div,j({},f,{ref:S,style:{pointerEvents:R?N?"auto":"none":void 0,...e.style},onFocusCapture:fr(e.onFocusCapture,V.onFocusCapture),onBlurCapture:fr(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:fr(e.onPointerDownCapture,F.onPointerDownCapture)}))});function X7e(e,t=globalThis?.document){const n=Ns(e),r=Wt(!1),o=Wt(()=>{});return vn(()=>{const i=s=>{if(s.target&&!r.current){let f=function(){X7(W7e,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function G7e(e,t=globalThis?.document){const n=Ns(e),r=Wt(!1);return vn(()=>{const o=i=>{i.target&&!r.current&&X7(Y7e,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function K7(){const e=new CustomEvent(NP);document.dispatchEvent(e)}function X7(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sWe(o,i):o.dispatchEvent(i)}let RP=0;function q7e(){vn(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:G7()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:G7()),RP++,()=>{RP===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),RP--}},[])}function G7(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const IP="focusScope.autoFocusOnMount",LP="focusScope.autoFocusOnUnmount",q7={bubbles:!1,cancelable:!0},Z7e=rr((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=Mn(null),f=Ns(o),p=Ns(i),m=Wt(null),b=Ta(t,S=>c(S)),y=Wt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;vn(()=>{if(r){let S=function(_){if(y.paused||!s)return;const R=_.target;s.contains(R)?m.current=R:Tu(m.current,{select:!0})},k=function(_){if(y.paused||!s)return;const R=_.relatedTarget;R!==null&&(s.contains(R)||Tu(m.current,{select:!0}))},T=function(_){if(document.activeElement===document.body)for(const N of _)N.removedNodes.length>0&&Tu(s)};document.addEventListener("focusin",S),document.addEventListener("focusout",k);const E=new MutationObserver(T);return s&&E.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",k),E.disconnect()}}},[r,s,y.paused]),vn(()=>{if(s){Q7.add(y);const S=document.activeElement;if(!s.contains(S)){const T=new CustomEvent(IP,q7);s.addEventListener(IP,f),s.dispatchEvent(T),T.defaultPrevented||(J7e(r8e(Z7(s)),{select:!0}),document.activeElement===S&&Tu(s))}return()=>{s.removeEventListener(IP,f),setTimeout(()=>{const T=new CustomEvent(LP,q7);s.addEventListener(LP,p),s.dispatchEvent(T),T.defaultPrevented||Tu(S??document.body,{select:!0}),s.removeEventListener(LP,p),Q7.remove(y)},0)}}},[s,f,p,y]);const w=Zn(S=>{if(!n&&!r||y.paused)return;const k=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(k&&T){const E=S.currentTarget,[_,R]=Q7e(E);_&&R?!S.shiftKey&&T===R?(S.preventDefault(),n&&Tu(_,{select:!0})):S.shiftKey&&T===_&&(S.preventDefault(),n&&Tu(R,{select:!0})):T===E&&S.preventDefault()}},[n,r,y.paused]);return cn(Wi.div,j({tabIndex:-1},a,{ref:b,onKeyDown:w}))});function J7e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tu(r,{select:t}),document.activeElement!==n)return}function Q7e(e){const t=Z7(e),n=J7(t,e),r=J7(t.reverse(),e);return[n,r]}function Z7(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function J7(e,t){for(const n of e)if(!e8e(n,{upTo:t}))return n}function e8e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function t8e(e){return e instanceof HTMLInputElement&&"select"in e}function Tu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&t8e(e)&&t&&e.select()}}const Q7=n8e();function n8e(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=e8(e,t),e.unshift(t)},remove(t){var n;e=e8(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function e8(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function r8e(e){return e.filter(t=>t.tagName!=="A")}const o8e=rr((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return cn(Wi.svg,j({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:cn("polygon",{points:"0,0 30,0 15,10"}))}),i8e=o8e;function a8e(e){const[t,n]=Mn(void 0);return Tp(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,s=f.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const t8="Popper",[n8,r8]=Ep(t8),[s8e,o8]=n8(t8),l8e=e=>{const{__scopePopper:t,children:n}=e,[r,o]=Mn(null);return cn(s8e,{scope:t,anchor:r,onAnchorChange:o},n)},c8e="PopperAnchor",u8e=rr((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=o8(c8e,n),a=Wt(null),s=Ta(t,a);return vn(()=>{i.onAnchorChange(r?.current||a.current)}),r?null:cn(Wi.div,j({},o,{ref:s}))}),i8="PopperContent",[d8e,f8e]=n8(i8),h8e=rr((e,t)=>{var n,r,o,i,a,s,c,f;const{__scopePopper:p,side:m="bottom",sideOffset:b=0,align:y="center",alignOffset:w=0,arrowPadding:S=0,avoidCollisions:k=!0,collisionBoundary:T=[],collisionPadding:E=0,sticky:_="partial",hideWhenDetached:R=!1,updatePositionStrategy:N="optimized",onPlaced:F,...V}=e,K=o8(i8,p),[Y,J]=Mn(null),X=Ta(t,Qe=>J(Qe)),[ne,ie]=Mn(null),te=a8e(ne),re=(n=te?.width)!==null&&n!==void 0?n:0,de=(r=te?.height)!==null&&r!==void 0?r:0,le=m+(y!=="center"?"-"+y:""),ce=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},ve=Array.isArray(T)?T:[T],fe=ve.length>0,Te={padding:ce,boundary:ve.filter(g8e),altBoundary:fe},{refs:Re,floatingStyles:je,placement:ke,isPositioned:me,middlewareData:Pe}=ZZ({strategy:"fixed",placement:le,whileElementsMounted:(...Qe)=>HZ(...Qe,{animationFrame:N==="always"}),elements:{reference:K.anchor},middleware:[wZ({mainAxis:b+de,alignmentAxis:w}),k&&WZ({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?XZ():void 0,...Te}),k&&YZ({...Te}),UZ({...Te,apply:({elements:Qe,rects:tt,availableWidth:ot,availableHeight:ze})=>{const{width:$e,height:Ce}=tt.reference,Oe=Qe.floating.style;Oe.setProperty("--radix-popper-available-width",`${ot}px`),Oe.setProperty("--radix-popper-available-height",`${ze}px`),Oe.setProperty("--radix-popper-anchor-width",`${$e}px`),Oe.setProperty("--radix-popper-anchor-height",`${Ce}px`)}}),ne&&qZ({element:ne,padding:S}),v8e({arrowWidth:re,arrowHeight:de}),R&&KZ({strategy:"referenceHidden",...Te})]}),[Me,_e]=s8(ke),Be=Ns(F);Tp(()=>{me&&Be?.()},[me,Be]);const Le=(o=Pe.arrow)===null||o===void 0?void 0:o.x,Ne=(i=Pe.arrow)===null||i===void 0?void 0:i.y,Ee=((a=Pe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[He,Ie]=Mn();return Tp(()=>{Y&&Ie(window.getComputedStyle(Y).zIndex)},[Y]),cn("div",{ref:Re.setFloating,"data-radix-popper-content-wrapper":"",style:{...je,transform:me?je.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(s=Pe.transformOrigin)===null||s===void 0?void 0:s.x,(c=Pe.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},cn(d8e,{scope:p,placedSide:Me,onArrowChange:ie,arrowX:Le,arrowY:Ne,shouldHideArrow:Ee},cn(Wi.div,j({"data-side":Me,"data-align":_e},V,{ref:X,style:{...V.style,animation:me?void 0:"none",opacity:(f=Pe.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))}),a8="PopperArrow",p8e={top:"bottom",right:"left",bottom:"top",left:"right"},m8e=rr(function(t,n){const{__scopePopper:r,...o}=t,i=f8e(a8,r),a=p8e[i.placedSide];return cn("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},cn(i8e,j({},o,{ref:n,style:{...o.style,display:"block"}})))});function g8e(e){return e!==null}const v8e=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:f}=t,m=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,b=m?0:e.arrowWidth,y=m?0:e.arrowHeight,[w,S]=s8(s),k={start:"0%",center:"50%",end:"100%"}[S],T=((r=(o=f.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+b/2,E=((i=(a=f.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+y/2;let _="",R="";return w==="bottom"?(_=m?k:`${T}px`,R=`${-y}px`):w==="top"?(_=m?k:`${T}px`,R=`${c.floating.height+y}px`):w==="right"?(_=`${-y}px`,R=m?k:`${E}px`):w==="left"&&(_=`${c.floating.width+y}px`,R=m?k:`${E}px`),{data:{x:_,y:R}}}});function s8(e){const[t,n="center"]=e.split("-");return[t,n]}const l8=l8e,b8e=u8e,y8e=h8e,x8e=rr((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?wf.createPortal(cn(Wi.div,j({},o,{ref:t})),r):null});var Ew="right-scroll-bar-position",Tw="width-before-scroll-bar",w8e="with-scroll-bars-hidden",S8e="--removed-body-scroll-bar-size";function $P(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function C8e(e,t){var n=Mn(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var c8=new WeakMap;function k8e(e,t){var n=C8e(t||null,function(r){return e.forEach(function(o){return $P(o,r)})});return M.useLayoutEffect(function(){var r=c8.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||$P(s,null)}),i.forEach(function(s){o.has(s)||$P(s,a)})}c8.set(n,e)},[e]),n}function E8e(e){return e}function T8e(e,t){t===void 0&&(t=E8e);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var p=a;a=[],p.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(p){a.push(p),f()},filter:function(p){return a=a.filter(p),n}}}};return o}function O8e(e){e===void 0&&(e={});var t=T8e(null);return t.options=ul({async:!0,ssr:!1},e),t}var u8=function(e){var t=e.sideCar,n=R4(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return M.createElement(r,ul({},n))};u8.isSideCarExport=!0;function M8e(e,t){return e.useMedium(t),u8}var d8=O8e(),FP=function(){},Ow=M.forwardRef(function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:FP,onWheelCapture:FP,onTouchMoveCapture:FP}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,b=e.sideCar,y=e.noIsolation,w=e.inert,S=e.allowPinchZoom,k=e.as,T=k===void 0?"div":k,E=R4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=b,R=k8e([n,t]),N=ul(ul({},E),o);return M.createElement(M.Fragment,null,p&&M.createElement(_,{sideCar:d8,removeScrollBar:f,shards:m,noIsolation:y,inert:w,setCallbacks:i,allowPinchZoom:!!S,lockRef:n}),a?M.cloneElement(M.Children.only(s),ul(ul({},N),{ref:R})):M.createElement(T,ul({},N,{className:c,ref:R}),s))});Ow.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ow.classNames={fullWidth:Tw,zeroRight:Ew};var P8e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function A8e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P8e();return t&&e.setAttribute("nonce",t),e}function D8e(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _8e(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var N8e=function(){var e=0,t=null;return{add:function(n){e==0&&(t=A8e())&&(D8e(t,n),_8e(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R8e=function(){var e=N8e();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},f8=function(){var e=R8e(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},I8e={left:0,top:0,right:0,gap:0},zP=function(e){return parseInt(e||"",10)||0},L8e=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[zP(n),zP(r),zP(o)]},$8e=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I8e;var t=L8e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},F8e=f8(),Mw="data-scroll-locked",z8e=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
@@ -1470,4 +1470,4 @@ Message: ${e}`),e}}const pu=e=>typeof e=="string",O_e=e=>typeof e=="function",SH
|
|
|
1470
1470
|
`)},B8e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=M.useMemo(function(){return $8e(o)},[o]);return M.useEffect(function(){return document.body.setAttribute(Mw,""),function(){document.body.removeAttribute(Mw)}},[]),M.createElement(F8e,{styles:z8e(i,!t,o,n?"":"!important")})},BP=!1;if(typeof window<"u")try{var Pw=Object.defineProperty({},"passive",{get:function(){return BP=!0,!0}});window.addEventListener("test",Pw,Pw),window.removeEventListener("test",Pw,Pw)}catch{BP=!1}var Pp=BP?{passive:!1}:!1,V8e=function(e){return e.tagName==="TEXTAREA"},h8=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!V8e(e)&&n[t]==="visible")},j8e=function(e){return h8(e,"overflowY")},H8e=function(e){return h8(e,"overflowX")},p8=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=m8(e,n);if(r){var o=g8(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},W8e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Y8e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},m8=function(e,t){return e==="v"?j8e(t):H8e(t)},g8=function(e,t){return e==="v"?W8e(t):Y8e(t)},U8e=function(e,t){return e==="h"&&t==="rtl"?-1:1},K8e=function(e,t,n,r,o){var i=U8e(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),f=!1,p=a>0,m=0,b=0;do{var y=g8(e,s),w=y[0],S=y[1],k=y[2],T=S-k-i*w;(w||T)&&m8(e,s)&&(m+=T,b+=w),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&(o&&m===0||!o&&a>m)||!p&&(o&&b===0||!o&&-a>b))&&(f=!0),f},Aw=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},v8=function(e){return[e.deltaX,e.deltaY]},b8=function(e){return e&&"current"in e?e.current:e},X8e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},G8e=function(e){return`
|
|
1471
1471
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
1472
1472
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
1473
|
-
`)},q8e=0,Ap=[];function Z8e(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(q8e++)[0],i=M.useState(function(){return f8()})[0],a=M.useRef(e);M.useEffect(function(){a.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=sT([e.lockRef.current],(e.shards||[]).map(b8),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=M.useCallback(function(S,k){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var T=Aw(S),E=n.current,_="deltaX"in S?S.deltaX:E[0]-T[0],R="deltaY"in S?S.deltaY:E[1]-T[1],N,F=S.target,V=Math.abs(_)>Math.abs(R)?"h":"v";if("touches"in S&&V==="h"&&F.type==="range")return!1;var K=p8(V,F);if(!K)return!0;if(K?N=V:(N=V==="v"?"h":"v",K=p8(V,F)),!K)return!1;if(!r.current&&"changedTouches"in S&&(_||R)&&(r.current=N),!N)return!0;var Y=r.current||N;return K8e(Y,k,S,Y==="h"?_:R,!0)},[]),c=M.useCallback(function(S){var k=S;if(!(!Ap.length||Ap[Ap.length-1]!==i)){var T="deltaY"in k?v8(k):Aw(k),E=t.current.filter(function(N){return N.name===k.type&&N.target===k.target&&X8e(N.delta,T)})[0];if(E&&E.should){k.cancelable&&k.preventDefault();return}if(!E){var _=(a.current.shards||[]).map(b8).filter(Boolean).filter(function(N){return N.contains(k.target)}),R=_.length>0?s(k,_[0]):!a.current.noIsolation;R&&k.cancelable&&k.preventDefault()}}},[]),f=M.useCallback(function(S,k,T,E){var _={name:S,delta:k,target:T,should:E};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(R){return R!==_})},1)},[]),p=M.useCallback(function(S){n.current=Aw(S),r.current=void 0},[]),m=M.useCallback(function(S){f(S.type,v8(S),S.target,s(S,e.lockRef.current))},[]),b=M.useCallback(function(S){f(S.type,Aw(S),S.target,s(S,e.lockRef.current))},[]);M.useEffect(function(){return Ap.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:b}),document.addEventListener("wheel",c,Pp),document.addEventListener("touchmove",c,Pp),document.addEventListener("touchstart",p,Pp),function(){Ap=Ap.filter(function(S){return S!==i}),document.removeEventListener("wheel",c,Pp),document.removeEventListener("touchmove",c,Pp),document.removeEventListener("touchstart",p,Pp)}},[]);var y=e.removeScrollBar,w=e.inert;return M.createElement(M.Fragment,null,w?M.createElement(i,{styles:G8e(o)}):null,y?M.createElement(B8e,{gapMode:"margin"}):null)}var J8e=M8e(d8,Z8e),y8=M.forwardRef(function(e,t){return M.createElement(Ow,ul({},e,{ref:t,sideCar:J8e}))});y8.classNames=Ow.classNames;var Q8e=y8;const x8=["Enter"," "],e9e=["ArrowDown","PageUp","Home"],w8=["ArrowUp","PageDown","End"],t9e=[...e9e,...w8],n9e={ltr:[...x8,"ArrowRight"],rtl:[...x8,"ArrowLeft"]},r9e={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Dw="Menu",[rb,o9e,i9e]=gP(Dw),[Qd,a9e]=Ep(Dw,[i9e,r8,Op]),_w=r8(),S8=Op(),[C8,Ou]=Qd(Dw),[s9e,Nw]=Qd(Dw),l9e=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=_w(t),[c,f]=Mn(null),p=Wt(!1),m=Ns(i),b=Cw(o);return vn(()=>{const y=()=>{p.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>p.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),cn(l8,s,cn(C8,{scope:t,open:n,onOpenChange:m,content:c,onContentChange:f},cn(s9e,{scope:t,onClose:Zn(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:b,modal:a},r)))},k8=rr((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return cn(b8e,j({},o,r,{ref:t}))}),E8="MenuPortal",[c9e,T8]=Qd(E8,{forceMount:void 0}),u9e=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Ou(E8,t);return cn(c9e,{scope:t,forceMount:n},cn(tb,{present:n||i.open},cn(x8e,{asChild:!0,container:o},r)))},Rs="MenuContent",[d9e,O8]=Qd(Rs),f9e=rr((e,t)=>{const n=T8(Rs,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ou(Rs,e.__scopeMenu),a=Nw(Rs,e.__scopeMenu);return cn(rb.Provider,{scope:e.__scopeMenu},cn(tb,{present:r||i.open},cn(rb.Slot,{scope:e.__scopeMenu},a.modal?cn(h9e,j({},o,{ref:t})):cn(p9e,j({},o,{ref:t})))))}),h9e=rr((e,t)=>{const n=Ou(Rs,e.__scopeMenu),r=Wt(null),o=Ta(t,r);return vn(()=>{const i=r.current;if(i)return H5e(i)},[]),cn(VP,j({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:fr(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),p9e=rr((e,t)=>{const n=Ou(Rs,e.__scopeMenu);return cn(VP,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),VP=rr((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:b,onDismiss:y,disableOutsideScroll:w,...S}=e,k=Ou(Rs,n),T=Nw(Rs,n),E=_w(n),_=S8(n),R=o9e(n),[N,F]=Mn(null),V=Wt(null),K=Ta(t,V,k.onContentChange),Y=Wt(0),J=Wt(""),X=Wt(0),ne=Wt(null),ie=Wt("right"),te=Wt(0),re=w?Q8e:VS,de=w?{as:eb,allowPinchZoom:!0}:void 0,le=ve=>{var fe,Te;const Re=J.current+ve,je=R().filter(Be=>!Be.disabled),ke=document.activeElement,me=(fe=je.find(Be=>Be.ref.current===ke))===null||fe===void 0?void 0:fe.textValue,Pe=je.map(Be=>Be.textValue),Me=T9e(Pe,Re,me),_e=(Te=je.find(Be=>Be.textValue===Me))===null||Te===void 0?void 0:Te.ref.current;(function Be(Le){J.current=Le,window.clearTimeout(Y.current),Le!==""&&(Y.current=window.setTimeout(()=>Be(""),1e3))})(Re),_e&&setTimeout(()=>_e.focus())};vn(()=>()=>window.clearTimeout(Y.current),[]),q7e();const ce=Zn(ve=>{var fe,Te;return ie.current===((fe=ne.current)===null||fe===void 0?void 0:fe.side)&&M9e(ve,(Te=ne.current)===null||Te===void 0?void 0:Te.area)},[]);return cn(d9e,{scope:n,searchRef:J,onItemEnter:Zn(ve=>{ce(ve)&&ve.preventDefault()},[ce]),onItemLeave:Zn(ve=>{var fe;ce(ve)||((fe=V.current)===null||fe===void 0||fe.focus(),F(null))},[ce]),onTriggerLeave:Zn(ve=>{ce(ve)&&ve.preventDefault()},[ce]),pointerGraceTimerRef:X,onPointerGraceIntentChange:Zn(ve=>{ne.current=ve},[])},cn(re,de,cn(Z7e,{asChild:!0,trapped:o,onMountAutoFocus:fr(i,ve=>{var fe;ve.preventDefault(),(fe=V.current)===null||fe===void 0||fe.focus()}),onUnmountAutoFocus:a},cn(K7e,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:b,onDismiss:y},cn(xP,j({asChild:!0},_,{dir:T.dir,orientation:"vertical",loop:r,currentTabStopId:N,onCurrentTabStopIdChange:F,onEntryFocus:fr(c,ve=>{T.isUsingKeyboardRef.current||ve.preventDefault()})}),cn(y8e,j({role:"menu","aria-orientation":"vertical","data-state":A8(k.open),"data-radix-menu-content":"",dir:T.dir},E,S,{ref:K,style:{outline:"none",...S.style},onKeyDown:fr(S.onKeyDown,ve=>{const Te=ve.target.closest("[data-radix-menu-content]")===ve.currentTarget,Re=ve.ctrlKey||ve.altKey||ve.metaKey,je=ve.key.length===1;Te&&(ve.key==="Tab"&&ve.preventDefault(),!Re&&je&&le(ve.key));const ke=V.current;if(ve.target!==ke||!t9e.includes(ve.key))return;ve.preventDefault();const Pe=R().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);w8.includes(ve.key)&&Pe.reverse(),k9e(Pe)}),onBlur:fr(e.onBlur,ve=>{ve.currentTarget.contains(ve.target)||(window.clearTimeout(Y.current),J.current="")}),onPointerMove:fr(e.onPointerMove,ob(ve=>{const fe=ve.target,Te=te.current!==ve.clientX;if(ve.currentTarget.contains(fe)&&Te){const Re=ve.clientX>te.current?"right":"left";ie.current=Re,te.current=ve.clientX}}))})))))))}),m9e="MenuItem",g9e=rr((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=O8(m9e,n),s=S8(n),c=Wt(null),f=Ta(t,c),[p,m]=Mn(!1),[b,y]=Mn("");return vn(()=>{const w=c.current;if(w){var S;y(((S=w.textContent)!==null&&S!==void 0?S:"").trim())}},[i.children]),cn(rb.ItemSlot,{scope:n,disabled:r,textValue:o??b},cn(wP,j({asChild:!0},s,{focusable:!r}),cn(Wi.div,j({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:f,onPointerMove:fr(e.onPointerMove,ob(w=>{r?a.onItemLeave(w):(a.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus())})),onPointerLeave:fr(e.onPointerLeave,ob(w=>a.onItemLeave(w))),onFocus:fr(e.onFocus,()=>m(!0)),onBlur:fr(e.onBlur,()=>m(!1))}))))}),v9e="MenuRadioGroup";Qd(v9e,{value:void 0,onValueChange:()=>{}});const b9e="MenuItemIndicator";Qd(b9e,{checked:!1});const M8="MenuSub",[y9e,P8]=Qd(M8),x9e=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Ou(M8,t),a=_w(t),[s,c]=Mn(null),[f,p]=Mn(null),m=Ns(o);return vn(()=>(i.open===!1&&m(!1),()=>m(!1)),[i.open,m]),cn(l8,a,cn(C8,{scope:t,open:r,onOpenChange:m,content:f,onContentChange:p},cn(y9e,{scope:t,contentId:Jd(),triggerId:Jd(),trigger:s,onTriggerChange:c},n)))},Rw="MenuSubTrigger",w9e=rr((e,t)=>{const n=Ou(Rw,e.__scopeMenu),r=Nw(Rw,e.__scopeMenu),o=P8(Rw,e.__scopeMenu),i=O8(Rw,e.__scopeMenu),a=Wt(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=i,f={__scopeMenu:e.__scopeMenu},p=Zn(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return vn(()=>p,[p]),vn(()=>{const m=s.current;return()=>{window.clearTimeout(m),c(null)}},[s,c]),cn(k8,j({asChild:!0},f),cn(g9e,j({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":A8(n.open)},e,{ref:pP(t,o.onTriggerChange),onClick:m=>{var b;(b=e.onClick)===null||b===void 0||b.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:fr(e.onPointerMove,ob(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:fr(e.onPointerLeave,ob(m=>{var b;p();const y=(b=n.content)===null||b===void 0?void 0:b.getBoundingClientRect();if(y){var w;const S=(w=n.content)===null||w===void 0?void 0:w.dataset.side,k=S==="right",T=k?-5:5,E=y[k?"left":"right"],_=y[k?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+T,y:m.clientY},{x:E,y:y.top},{x:_,y:y.top},{x:_,y:y.bottom},{x:E,y:y.bottom}],side:S}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:fr(e.onKeyDown,m=>{const b=i.searchRef.current!=="";if(!(e.disabled||b&&m.key===" ")&&n9e[r.dir].includes(m.key)){var y;n.onOpenChange(!0),(y=n.content)===null||y===void 0||y.focus(),m.preventDefault()}})})))}),S9e="MenuSubContent",C9e=rr((e,t)=>{const n=T8(Rs,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ou(Rs,e.__scopeMenu),a=Nw(Rs,e.__scopeMenu),s=P8(S9e,e.__scopeMenu),c=Wt(null),f=Ta(t,c);return cn(rb.Provider,{scope:e.__scopeMenu},cn(tb,{present:r||i.open},cn(rb.Slot,{scope:e.__scopeMenu},cn(VP,j({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:f,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var m;a.isUsingKeyboardRef.current&&((m=c.current)===null||m===void 0||m.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:fr(e.onFocusOutside,p=>{p.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:fr(e.onEscapeKeyDown,p=>{a.onClose(),p.preventDefault()}),onKeyDown:fr(e.onKeyDown,p=>{const m=p.currentTarget.contains(p.target),b=r9e[a.dir].includes(p.key);if(m&&b){var y;i.onOpenChange(!1),(y=s.trigger)===null||y===void 0||y.focus(),p.preventDefault()}})})))))});function A8(e){return e?"open":"closed"}function k9e(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function E9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function T9e(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=E9e(e,Math.max(i,0));o.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function O9e(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,c=t[i].y,f=t[a].x,p=t[a].y;c>r!=p>r&&n<(f-s)*(r-c)/(p-c)+s&&(o=!o)}return o}function M9e(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return O9e(n,t)}function ob(e){return t=>t.pointerType==="mouse"?e(t):void 0}const P9e=l9e,A9e=k8,D9e=u9e,_9e=f9e,N9e=x9e,R9e=w9e,I9e=C9e,jP="Menubar",[HP,L9e,$9e]=gP(jP),[D8,xYe]=Ep(jP,[$9e,Op]),ef=a9e(),_8=Op(),[F9e,WP]=D8(jP),z9e=rr((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:i,loop:a=!0,dir:s,...c}=e,f=Cw(s),p=_8(n),[m="",b]=Sw({prop:r,onChange:o,defaultProp:i}),[y,w]=Mn(null);return cn(F9e,{scope:n,value:m,onMenuOpen:Zn(S=>{b(S),w(S)},[b]),onMenuClose:Zn(()=>b(""),[b]),onMenuToggle:Zn(S=>{b(k=>k?"":S),w(S)},[b]),dir:f,loop:a},cn(HP.Provider,{scope:n},cn(HP.Slot,{scope:n},cn(xP,j({asChild:!0},p,{orientation:"horizontal",loop:a,dir:f,currentTabStopId:y,onCurrentTabStopIdChange:w}),cn(Wi.div,j({role:"menubar"},c,{ref:t}))))))}),N8="MenubarMenu",[B9e,R8]=D8(N8),V9e=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Jd(),i=n||o||"LEGACY_REACT_AUTO_VALUE",a=WP(N8,t),s=ef(t),c=Wt(null),f=Wt(!1),p=a.value===i;return vn(()=>{p||(f.current=!1)},[p]),cn(B9e,{scope:t,value:i,triggerId:Jd(),triggerRef:c,contentId:Jd(),wasKeyboardTriggerOpenRef:f},cn(P9e,j({},s,{open:p,onOpenChange:m=>{m||a.onMenuClose()},modal:!1,dir:a.dir},r)))},I8="MenubarTrigger",j9e=rr((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,i=_8(n),a=ef(n),s=WP(I8,n),c=R8(I8,n),f=Wt(null),p=Ta(t,f,c.triggerRef),[m,b]=Mn(!1),y=s.value===c.value;return cn(HP.ItemSlot,{scope:n,value:c.value,disabled:r},cn(wP,j({asChild:!0},i,{focusable:!r,tabStopId:c.value}),cn(A9e,j({asChild:!0},a),cn(Wi.button,j({type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?c.contentId:void 0,"data-highlighted":m?"":void 0,"data-state":y?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:p,onPointerDown:fr(e.onPointerDown,w=>{!r&&w.button===0&&w.ctrlKey===!1&&(s.onMenuOpen(c.value),y||w.preventDefault())}),onPointerEnter:fr(e.onPointerEnter,()=>{if(!!s.value&&!y){var S;s.onMenuOpen(c.value),(S=f.current)===null||S===void 0||S.focus()}}),onKeyDown:fr(e.onKeyDown,w=>{r||(["Enter"," "].includes(w.key)&&s.onMenuToggle(c.value),w.key==="ArrowDown"&&s.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(w.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,w.preventDefault()))}),onFocus:fr(e.onFocus,()=>b(!0)),onBlur:fr(e.onBlur,()=>b(!1))})))))}),H9e=e=>{const{__scopeMenubar:t,...n}=e,r=ef(t);return cn(D9e,j({},r,n))},L8="MenubarContent",W9e=rr((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,i=ef(n),a=WP(L8,n),s=R8(L8,n),c=L9e(n),f=Wt(!1);return cn(_9e,j({id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":""},i,o,{ref:t,align:r,onCloseAutoFocus:fr(e.onCloseAutoFocus,p=>{if(!!!a.value&&!f.current){var b;(b=s.triggerRef.current)===null||b===void 0||b.focus()}f.current=!1,p.preventDefault()}),onFocusOutside:fr(e.onFocusOutside,p=>{const m=p.target;c().some(y=>{var w;return(w=y.ref.current)===null||w===void 0?void 0:w.contains(m)})&&p.preventDefault()}),onInteractOutside:fr(e.onInteractOutside,()=>{f.current=!0}),onEntryFocus:p=>{s.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:fr(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const m=p.target,b=m.hasAttribute("data-radix-menubar-subtrigger"),y=m.closest("[data-radix-menubar-content]")!==p.currentTarget,S=(a.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!S&&b||y&&S)return;let E=c().filter(N=>!N.disabled).map(N=>N.value);S&&E.reverse();const _=E.indexOf(s.value);E=a.loop?X9e(E,_+1):E.slice(_+1);const[R]=E;R&&a.onMenuOpen(R)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Y9e=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=ef(t),[s=!1,c]=Sw({prop:r,defaultProp:i,onChange:o});return cn(N9e,j({},a,{open:s,onOpenChange:c}),n)},U9e=rr((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ef(n);return cn(R9e,j({"data-radix-menubar-subtrigger":""},o,r,{ref:t}))}),K9e=rr((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ef(n);return cn(I9e,j({},o,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function X9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const $8=z9e,F8=V9e,z8=j9e,YP=H9e,B8=W9e,G9e=Y9e,q9e=U9e,Z9e=K9e,J9e=()=>{const e=({data:n,getOptionLabel:r=c=>c.label,getOptionValue:o=c=>c.value,getOptionParent:i=c=>c.parent,getOptionNavlink:a=c=>c.navlink,getOptionExternalLink:s=c=>c.externalLink})=>{const c=[];return n?.forEach(f=>{o(f)&&c.push({value:o(f),label:r(f),parent:i(f),externalLink:s(f),navlink:a(f)})}),c},t=(n=[],r)=>{const o=[];return n.forEach(i=>{const a=i;if(!r&&!a?.parent||a?.parent===r){const s=t(n,a.value);s.length>0&&(a.children=s),o.push(a)}}),o};return{renderMenubarToSpecificFieldName:e,buildMenubar:t}},Q9e=({data:e,onClick:t,orientation:n="horizontal",getOptionValue:r,getOptionLabel:o,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s,noDataText:c="no data",...f})=>{const{buildMenubar:p,renderMenubarToSpecificFieldName:m}=J9e(),b=p(m({data:e,getOptionLabel:o,getOptionValue:r,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s})),y=({data:k})=>wt(F8,{children:[wt(z8,{className:"MenubarTrigger",children:[k.label,W("div",{className:"LeftMainSlot",children:W(hFe,{size:10})})]}),W(YP,{children:W(B8,{className:"MenubarContent",align:"start",side:n==="horizontal"?"bottom":"right",sideOffset:5,children:(k.children??[]).map(T=>T.children&&T.children.length>0?W(S,{data:T}):W(w,{data:T}))})})]}),w=({data:k})=>{const T=t||!k.navlink?"span":(k.externalLink,"a"),E=t?{onClick:()=>{t(k)}}:k.externalLink?{href:k.navlink}:{href:k.navlink};return W(T,{className:"MenubarItem MenubarTriggerText",...E,children:k.label})},S=({data:k})=>wt(G9e,{children:[wt(q9e,{className:"MenubarSubTrigger",children:[W("span",{className:"MenubarTriggerText",children:k.label}),W("div",{className:"LeftSlot",children:W(pFe,{size:10})})]}),W(YP,{children:W(Z9e,{className:"MenubarSubContent",alignOffset:-5,sideOffset:10,children:(k.children??[]).map(T=>T.children&&T.children.length>0?W(S,{data:T}):W(w,{data:T}))})})]});return W(Zr,{children:b.length>0?W($8,{...f,className:"MenubarRoot",dir:"rtl",style:{flexDirection:n==="horizontal"?"unset":"column",...f.style},children:b.map(k=>W(y,{data:k,...f}))}):W("div",{style:{width:"100%",textAlign:"center"},children:c})})};function eYe({label:e,...t}){return W(KR,{...t,label:e,sx:{margin:"0px","& .MuiFormControlLabel-label":{width:"100%",border:n=>t.isActive?`2px solid ${n.palette.primary.main}`:"unset"}},control:W(GL,{sx:{display:"none"}})})}function tYe(e){return W(fs,{...e})}var V8,j8;function UP(){return UP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UP.apply(this,arguments)}var H8=function(t){return M.createElement("svg",UP({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},t),V8||(V8=M.createElement("defs",null,M.createElement("clipPath",{id:"ir_svg__a"},M.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.7v512H-85.3z"})))),j8||(j8=M.createElement("g",{fillRule:"evenodd",clipPath:"url(#ir_svg__a)",transform:"translate(80)scale(.9375)"},M.createElement("path",{fill:"#fff",d:"M-192 0h896v512h-896z"}),M.createElement("path",{fill:"#da0000",d:"M-192 343.8h896V512h-896z"}),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-21.6 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M52.4 367.7v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),M.createElement("path",{d:"M49.6 351H53v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),M.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),M.createElement("path",{d:"M17.8 359.9H21V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371H7.3zm-14.3 0h3.4V371H-7z"}),M.createElement("path",{d:"M9.6 367.7v3.4H-5.5v-3.4zm1-8.7v3.4H1V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-102.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3H-95zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M-28.2 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-31 351h3.4v20H-31zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M-71 367.7v3.4h-15v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M58.3 351h49v3.3h-49zm7.3 16.8H69v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M132.3 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M129.5 351h3.4v20h-3.4zm-8.4 0h3.4v20H121zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M89.6 367.7v3.4H74.4v-3.4zm1-8.7v3.4H81V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M622.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H630zm41.9 0v3.3H662v-3.4zm5.3-16.8h3.3v20h-3.4z"}),M.createElement("path",{d:"M696.7 367.7v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),M.createElement("path",{d:"M694 351h3.3v20h-3.4zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M662 359.9h3.5V371H662z"}),M.createElement("path",{d:"M662 359.9h3.5V371H662z"}),M.createElement("path",{d:"M662 359.9h3.5V371H662zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M654 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M138.7 351h49.1v3.3h-49zm7.4 16.8h3.3v3.3h-3.3zm41.8 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M212.8 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M210 351h3.4v20H210zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),M.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.2 0h3.3V371h-3.3z"}),M.createElement("path",{d:"M170 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M219.5 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zM274 351h3.3v20H274z"}),M.createElement("path",{d:"M293.5 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M290.7 351h3.4v20h-3.4zm-8.4 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H234z"}),M.createElement("path",{d:"M250.8 367.7v3.4h-15.2v-3.4zm1-8.7v3.4H242V359z"})),M.createElement("path",{fill:"#239f40",d:"M-192 0h896v168.2h-896z"}),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M300.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H308zm41.9 0v3.3H340v-3.4zm5.3-16.8h3.3v20h-3.3z"}),M.createElement("path",{d:"M374.7 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),M.createElement("path",{d:"M372 351h3.3v20H372zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M340 359.9h3.5V371H340z"}),M.createElement("path",{d:"M340 359.9h3.5V371H340z"}),M.createElement("path",{d:"M340 359.9h3.5V371H340zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M332 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M381.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M455.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M452.7 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),M.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.3z"}),M.createElement("path",{d:"M412.7 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H404V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M462.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M536.2 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M533.4 351h3.4v20h-3.4zm-8.4 0h3.3v20H525zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3zm-39.4 0h3.4V371h-3.4zm28.9 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M493.4 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M543.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M617.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M614.6 351h3.4v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H558z"}),M.createElement("path",{d:"M574.6 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H566V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-183.8 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M-109.8 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-112.5 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),M.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M-152.5 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-21.6 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M52.4 160.2v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),M.createElement("path",{d:"M49.6 143.4H53v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),M.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),M.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3H7.3zm-14.3 0h3.4v11.3H-7z"}),M.createElement("path",{d:"M9.6 160.2v3.4H-5.5v-3.4zm1-8.7v3.3H1v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-102.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2H-95zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M-28.2 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-31 143.4h3.4v20.2H-31zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-71 160.2v3.4h-15v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M58.3 143.4h49v3.4h-49zm7.3 17H69v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M132.3 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M129.5 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2H121zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M89.6 160.2v3.4H74.4v-3.4zm1-8.7v3.3H81v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M622.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H630zm41.9-.2v3.4H662v-3.4zm5.3-16.8h3.3v20.2h-3.4z"}),M.createElement("path",{d:"M696.7 160.2v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),M.createElement("path",{d:"M694 143.4h3.3v20.2h-3.4zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),M.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),M.createElement("path",{d:"M662 152.3h3.5v11.3H662zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M654 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M138.7 143.4h49.1v3.4h-49zm7.4 17h3.3v3.2h-3.3zm41.8-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M212.8 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M210 143.4h3.4v20.2H210zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),M.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.2 0h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M170 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M219.5 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.3v20.2H274z"}),M.createElement("path",{d:"M293.5 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M290.7 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H234z"}),M.createElement("path",{d:"M250.8 160.2v3.4h-15.2v-3.4zm1-8.7v3.3H242v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M300.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H308zm41.9-.2v3.4H340v-3.4zm5.3-16.8h3.3v20.2h-3.3z"}),M.createElement("path",{d:"M374.7 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),M.createElement("path",{d:"M372 143.4h3.3v20.2H372zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),M.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),M.createElement("path",{d:"M340 152.3h3.5v11.3H340zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M332 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M381.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M455.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M452.7 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),M.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.3z"}),M.createElement("path",{d:"M412.7 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H404v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M462.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M536.2 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M533.4 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2H525zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3zm-39.4 0h3.4v11.3h-3.4zm28.9 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M493.4 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M543.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M617.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M614.6 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H558z"}),M.createElement("path",{d:"M574.6 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H566v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-183.8 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M-109.8 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-112.5 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),M.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-152.5 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("path",{fill:"#d90000",d:"M-68.8 339.5h6V350h-6zm160.5 0h6V350h-6zm-283.7 0h6V350h-6zm81.5 0h6V350h-6zm80.9 0h6V350h-6zm40 0h6V350h-6zm40.9 0h6V350h-6zm80.4 0h6V350h-6zm203 0h6.1V350h-6zm-162.1 0h6V350h-6zm40 0h6V350h-6zm40.5 0h6V350h-6zm40.4 0h6V350h-6zm323.2 0h6V350h-6zm-242.7 0h6V350h-6zm40.8 0h6V350h-6zm41.3 0h6V350h-6zm38.8 0h6V350h-6zm41.3 0h6V350h-6zm40.4 0h6V350h-6zm119.7 0h6V350h-6zm-38.8 0h6V350h-6zm-808.9 0h6V350h-6z"}),M.createElement("path",{fill:"#239e3f",d:"M-68.8 162.6h6v10.5h-6zm160.5 0h6v10.5h-6zm-283.7 0h6v10.5h-6zm81.5 0h6v10.5h-6zm80.9 0h6v10.5h-6zm40 0h6v10.5h-6zm40.9 0h6v10.5h-6zm80.4 0h6v10.5h-6zm203 0h6.1v10.5h-6zm-162.1 0h6v10.5h-6zm40 0h6v10.5h-6zm40.5 0h6v10.5h-6zm40.4 0h6v10.5h-6zm323.2 0h6v10.5h-6zm-242.7 0h6v10.5h-6zm40.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm38.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm40.4 0h6v10.5h-6zm119.7 0h6v10.5h-6zm-38.8 0h6v10.5h-6zm-808.9 0h6v10.5h-6z"}),M.createElement("g",{fill:"#da0000"},M.createElement("path",{d:"M279.8 197.5c8.4 10.4 34.5 67.6-15.7 105.2-23.7 17.8-9 18.6-8.3 21.6 38-20.1 50.3-47.5 50-72-.2-24.4-13.2-46-26-54.8"}),M.createElement("path",{d:"M284.8 194.8a73.3 73.3 0 0 1 15.7 112.4c27.2-6 62-86.4-15.7-112.4m-57.6 0a73.3 73.3 0 0 0-15.6 112.4c-27.3-6-62-86.4 15.6-112.4"}),M.createElement("path",{d:"M232.2 197.5c-8.4 10.4-34.5 67.6 15.7 105.2 23.6 17.8 9 18.6 8.3 21.6-38-20.1-50.3-47.5-50-72 .2-24.4 13.2-46 26-54.8"}),M.createElement("path",{d:"M304.2 319.1c-14.9.2-33.6-2-47.5-9.3 2.3 4.5 4.2 7.3 6.5 11.7 13.2 1.3 31.5 2.8 41-2.4m-95 0c14.9.2 33.6-2 47.5-9.3-2.3 4.5-4.2 7.3-6.5 11.7-13.2 1.3-31.5 2.8-41-2.4m27.3-138.7c3 8 10.9 9.2 19.3 4.5 6.2 3.6 15.7 3.9 19-4.1 2.5 19.8-18.3 15-19 11.2-7.8 7.5-22.2 3.2-19.3-11.6"}),M.createElement("path",{d:"m256.4 331.6 7.8-9 1.1-120.1-9.3-8.2-9.3 7.8 1.9 121z"})))))},W8,Y8,U8,K8,X8;function KP(){return KP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KP.apply(this,arguments)}var nYe=function(t){return M.createElement("svg",KP({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},t),W8||(W8=M.createElement("path",{fill:"#bd3d44",d:"M0 0h640v480H0"})),Y8||(Y8=M.createElement("path",{stroke:"#fff",strokeWidth:37,d:"M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640"})),U8||(U8=M.createElement("path",{fill:"#192f5d",d:"M0 0h364.8v258.5H0"})),K8||(K8=M.createElement("marker",{id:"us_svg__a",markerHeight:30,markerWidth:30},M.createElement("path",{fill:"#fff",d:"m14 0 9 27L0 10h28L5 27z"}))),X8||(X8=M.createElement("path",{fill:"none",markerMid:"url(#us_svg__a)",d:"m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z"})))},G8,q8;function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XP.apply(this,arguments)}var rYe=function(t){return M.createElement("svg",XP({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},t),G8||(G8=M.createElement("defs",null,M.createElement("clipPath",{id:"sa_svg__a"},M.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.6v512H-85.3z"})))),q8||(q8=M.createElement("g",{fillRule:"evenodd",clipPath:"url(#sa_svg__a)",transform:"translate(80)scale(.9375)"},M.createElement("path",{fill:"#165d31",d:"M-128 0h768v512h-768z"}),M.createElement("path",{fill:"#fff",d:"M65.5 145.1c-.8 12-2 33 8.3 35.2 12.3 1.2 5.5-20.8 10-24.8.8-2 2.3-2 2.4.5v18.7c0 6 4 7.8 7 9 3.2-.2 5.4 0 6.6 3l1.6 32.3s7.4 2.2 7.8-18.1c.3-12-2.4-21.9-.8-24.2 0-2.3 3-2.4 5-1.3 3.2 2.2 4.6 5 9.6 4 7.6-2.2 12.2-5.9 12.3-11.7a47 47 0 0 0-3.5-16.6c.4-1-1.4-3.7-1-4.7 1.3 2.2 3.4 2 3.8 0-1.3-4.2-3.3-8.3-6.5-10-2.7-2.4-6.7-2-8 3-.8 5.7 2 12.4 6.1 18 .9 2.1 2.1 5.7 1.6 8.9-2.2 1.3-4.4.7-6.3-1.2 0 0-6-4.5-6-5.6 1.6-10.2.3-11.4-.6-14.3-.6-3.9-2.5-5.2-4-7.8-1.5-1.6-3.5-1.6-4.5 0-2.7 4.6-1.4 14.5.5 19 1.4 4.1 3.5 6.7 2.5 6.7-.8 2.3-2.5 1.7-3.8-1a66.6 66.6 0 0 1-2.1-17.4c-.5-4.6-1.1-14.4-4.2-17-1.8-2.4-4.5-1.2-5.5 1a82.4 82.4 0 0 0 .3 13.4c2 7.4 2.7 14 3.7 21.5.3 10.1-5.8 4.4-5.5-.7a45 45 0 0 0-.3-19.4c-1-2.6-2.1-3.2-4.6-2.8-1.9 0-6.8 5.3-8.2 14.3 0 0-1.2 4.6-1.7 8.7-.7 4.6-3.7 8-5.9-.6-1.8-6.3-3-21.6-6-18z"}),M.createElement("path",{fill:"#fff",d:"m99 194.2-32 15.4c.3-7.3 15.1-20.4 25.3-20.5 6.5.1 4.9 2.5 6.6 5.1z"}),M.createElement("path",{fill:"#fff",d:"M93.3 204.2c-16.8 43.5 39.5 49.6 45.8 1.8.6-2 3-3.9 3.4-.7-1.3 43.3-43.6 46.2-50.8 32.6a41.9 41.9 0 0 1-2.5-14.6c-1-8.5-5.5-5.2-6.2 3.2-.7 4.7-.5 6-.5 10.5 2.2 34.2 56.7 19.5 65.6-8.7 4.7-15.6-.8-27.1 1.7-27.1 5.4 5.8 13 .8 14.7-1.2.7-1 2.5-1.7 3.7-.4 4.2 3 11.6 1.6 13.2-3.7.9-5.3 1.6-10.7 1.8-16.2-3.5 1-6 1.7-6.3 3.2l-.7 4.6c-.3 1.5-3.2 1.5-3.4-.4-1.3-6-6.7-6.7-10 2.5-2.1 1.8-6.1 2.2-6.5-.5.5-6.2-2-7-7-4.1l-4.8-36.2c2 0 4 1.5 5.9-.9-2-6.5-6.5-19.7-9-20.7-1.1-1.4-2.1-.5-3.7-.1-2.6.8-5 3-4.2 7.4 3 18.8 5 33.1 8.1 52 .5 2.1-1.3 5-3.7 4.7-4-2.7-5-8.2-12-8-5 0-10.6 5.5-11.3 10.7-.9 4.2-1.2 8.7 0 12.3 3.5 4.2 7.7 3.8 11.4 2.9 3-1.3 5.5-4.3 6.6-3.6.7.9.1 10.9-14.3 18.5-8.7 4-15.7 4.8-19.4-2.3-2.3-4.5.2-21.4-5.6-17.5"}),M.createElement("path",{fill:"#fff",d:"M165 160c3.3-1.2 19.3-19.6 19.3-19.6l-2.4-2c-.9-.7-.8-1.5 0-2.2 4-2.4 2.7-7.4.7-9.8a9.7 9.7 0 0 0-8.7.1c-2.8 2.7-3.4 7-1.2 9.6 2.1 1 4.2 3.2 2.8 4.4-6.6 7-24.5 19.1-22.4 19.5.4.6 11.5.6 11.8 0zm-97 65c-6 9.6-6.5 23.9-3.2 28.2 1.8 2 4.7 2.9 6.8 2.2 3.8-1.6 5.5-9.3 4.6-12-1.3-2-2.3-2.3-3.6-.7-2.6 5.4-3.7 1.7-4-1.3a70 70 0 0 1 .8-15.2c.7-4.2 0-3-1.4-1.2m257.1-15.3c-5.8-12.6-13.9-25-16.4-29.7a558 558 0 0 0-24.8-36c-6.2-7.4 10.2 3.1-2-11.7l-8.9-7.5c-2-1.4-6.8-4-7.6.2-.4 3.8-.2 5.8.4 8.9.5 2 3.5 5.5 5 7.5a565 565 0 0 1 53.8 86.5c2.6-1.3 2-16.1.5-18.2"}),M.createElement("path",{fill:"#fff",d:"M299.6 251.5c-1.2 1.3 2.8 6.8 8 6.8 8.6-1 16.2-5.8 23.2-18.6a33 33 0 0 0 5.3-14.2 317 317 0 0 0-5.8-72.4c-.3-2 0-4.4.2-5 .6-.7 2.5 0 3.5-1.7 1.5-1.5-4-14-7-18.7-1-2.2-1.5-3.6-3.3.2a27 27 0 0 0-3 13.6c4.1 28.5 5.4 53.4 8 81.9.3 2.8-.1 6.8-2 8.4a80.2 80.2 0 0 1-27.1 19.7m116.5-.1c-6.2 3.6-6.2 7.7-1.2 7.8 8.6-1 18.8-1.7 25.8-12.3a41 41 0 0 0 4.2-16 303 303 0 0 0-4.7-71.4c-.2-2-1.1-6.7-.8-7.3.6-1.4 3.4.1 4.4-1.5 1.4-1.5-7.3-12.7-10.4-17.5-1-2.2-1.4-3.6-3.3.2a22.3 22.3 0 0 0-1.8 13.6c4.6 31 8 54.2 8.7 81.6-.4 2.6-.5 4-1.7 7.3-2.7 3.4-5.7 7.8-8.5 9.9-2.8 2-8.8 4-10.7 5.6"}),M.createElement("path",{fill:"#fff",d:"M420.7 223.7c0-7.3.1-13.5-.1-19a34 34 0 0 0-3-13.5c-1.8-4.1-.7-7.4-1.6-11.8-.8-4.4-.6-11-1.8-16.1-.4-2-1.4-8.5-1.1-9.2.5-1.4 2.4 0 3.4-1.6 1.4-1.5-5-18-8.2-22.7-1.1-2.1-3.3-1.4-5.8 2-2.5 2.3-1.6 7.4-.6 12.3 6.1 32.3 10.8 61.6 9.8 92.3-.4 2.6 9-7.8 9-12.7m-45.7-40c-3.9-.2-12-7.7-14.4-12a8 8 0 0 1 .4-6.5c1.5-1 3.7-2 5.4-1 0 0 1.7 2.4 1.4 2.7 2 1 3 .5 3.2-.4.1-1.5-.6-2.4-.6-4 .9-4.6 6-5.3 8-2.4 1.4 1.8 2 5.5 2.1 8 0 1.3-2-.2-3.3 0-1.1.4-1.4 1.8-1.5 3-.2 3.3-.6 8.6-.7 12.5zm-71.8 48c1-9.8-.4-27.3-.5-33.1A477 477 0 0 0 299 154c-1.2-8.4 3.4.9 2.8-4-1.5-8.3-6.1-14-11.6-21.5-1.7-2.5-1.7-3-4.4.6-3 6.7-.4 11.4.4 16.7 3.9 17.2 6.2 33 7.3 48.7a393 393 0 0 1 .4 49c3 .1 7.6-4.7 9.3-11.8"}),M.createElement("path",{fill:"#fff",d:"M434 216c-6.9-11.6-17.2-24-20-28.7a658 658 0 0 0-29.2-37.8c-8.5-9 4-1.5-1.6-8.5-4.7-5.1-6-6.8-10.1-9.9-2-1.3-3.2-3.8-4 .5a83 83 0 0 0-.2 11.2c0 1.7 1.8 5 3.4 7 20.7 25.5 43.4 51.5 61.6 84.2 2.6-1.3 1.7-16 0-18z"}),M.createElement("path",{fill:"#165d31",d:"M122.6 194.7c-.5.9-1.6 2-1.2 3.1.7 1 1.4 1.3 2.6 1.3 1.1 0 2.7.3 3-.3.6-.7 1-2 .6-3.3-1.2-3-4.4-1.8-5-.8"}),M.createElement("path",{fill:"#fff",d:"M354.2 362.5c9.2.4 15.2.5 23.3 1.4l9.6-1c10.6-1 11 15.1 11 15.1 0 9.5-3.7 10-8.4 11-2.7.4-4-1.6-5.5-3.6a14 14 0 0 1-7 .4c-3.9-.2-7.7-.2-11.5-.5-4-.3-6.2.5-10.3.1-.8 1.3-2 3.1-4.4 2.6-2-.3-4.5-6-3.8-10.5 1.5-3.2 1-2.1 1-3.5-37.6-1-75.5-2.7-112.3-2.2-28.8.1-57.2 1.3-85.7 2.5-15.2-.2-26.8-2.6-34.8-14.3.8 0 38.8 2.1 49.9 1.4 20.5-.2 39.3-1.9 60.2-2.5 41.2.7 82.1.7 123.3 3.6-4-2.7-4-9 2-10.6.5-.4.8 3.1 1.7 3 4.9-.3 2.7 6.3 1.7 7.6M188.6 135.3c-6.2 17.8 3.6 37.4 10.4 35.5 5 2 8-7.4 10-17.6 1.5-2.9 2.5-3.2 3.2-1.7-.2 13.6 1 16.7 4.5 20.8 7.8 6 14.3.8 14.8.3l6-6.1c1.4-1.5 3.2-1.5 5.1-.3 1.9 1.7 1.6 4.6 5.6 6.6 3.4 1.4 10.5.4 12.2-2.5 2.2-3.9 2.8-5.2 3.8-6.6 1.6-2.1 4.3-1.2 4.3-.5-.3 1.2-1.9 2.3-.8 4.5 2 1.4 2.4.5 3.5.2 4-2 7-10.6 7-10.6.1-3.2-1.7-3-2.9-2.2l-3.1 2.1c-2 .3-5.7 1.6-7.6-1.3-1.9-3.4-1.9-8.3-3.3-11.8 0-.2-2.6-5.5-.2-5.8 1.2.2 3.7.9 4.1-1.2 1.2-2.1-2.6-8-5.3-11-2.3-2.5-5.5-2.8-8.6-.2-2.2 2-1.9 4.2-2.3 6.3a9.8 9.8 0 0 0 2 8.7c2.2 4.2 6.1 9.7 4.8 17.5 0 0-2.3 3.6-6.3 3.1-1.7-.3-4.4-1-5.8-11.8-1.1-8 .2-19.4-3.2-24.7-1.3-3.3-2.2-6.4-5.2-.9-.8 2.2-4.3 5.5-1.8 12.2a36 36 0 0 1 2 19c-1.5 2.2-1.8 2.9-3.7 5-2.6 3-5.5 2.2-7.7 1.1-2-1.3-3.6-2-4.6-6.5.2-7 .6-18.5-.7-20.9-1.9-3.8-5-2.4-6.3-1.2a47.7 47.7 0 0 0-11.5 23.5c-1.8 5.8-3.7 4.1-5 1.8-3.2-3-3.5-26.7-7.4-22.8"}),M.createElement("path",{fill:"#fff",d:"M207.4 174.1c2.9-2 1.6-3.4 5.8.8a72 72 0 0 1 9.2 31.3c-.2 2.6 1.6 4.2 2.5 3.6.4-6 15.1-14.4 28.6-15.6 2-.5 1-4.4 1.3-6.4-.8-7.5 4.2-14.3 11.2-14.8 9.6 1.4 12.8 6.5 13 14.2-1.1 15-16.7 17.5-25.4 18.7-1.3.5-1.9 1.1 0 1.8l36.6.2 1.9 1c.2 1-.6.2-2 2.6a29.5 29.5 0 0 0-3.7 11.5c-10.9 3.6-22.2 5-33.6 6.5-4 2-6 4.7-5.2 7.7 1.4 3.3 10.2 6.7 10.2 6.8 1.7 1 3.6 3.5-.5 8.6-17.8-.8-31.7-8.4-36.5-19.1-1.4-1.1-3 0-4 1.4-7 9-13.8 17-25.7 21.4-7 1.8-14.3-1.1-17.7-5.7-2.3-2.7-2.2-5.6-3-6.2-3.9 1.7-36.9 15.7-32.7 9.1 8-8.5 22-14.9 34.2-23.3.9-2.9 2.5-12.5 7.3-15.6.3 0-.7 5.6-.6 8 0 2-.2 2.7.2 2.2.9-.5 15.7-12.2 17-15.8 1.4-2 .3-7.2.3-7.4-2.8-7.2-6.7-7.8-8.1-11.4-1.3-4.7-.7-10.1 2-11.7 2.4-2.1 5.2-1.9 7.9.5 3 2.7 5.6 8 6.4 11.9-.5 1.5-4-1-5-.3a16 16 0 0 1 3.7 7.8c2 8.2 1.4 11.4-.6 16.7-6.6 13.9-15 18-22.4 23.2-.2 0-.3 3.5 2.4 5.4 1 1 4.9 1.5 9.4 0a54.5 54.5 0 0 0 22.3-23.3 51 51 0 0 0-2.4-22.2c-2.9-6.7-6.3-16.2-6.3-16.4-.1-4.2.2-5.6 2-7.7m-95.8-38.6c4.2 2 12.2 1.1 11.8-5.7l-.2-3.1c-.8-2-3.2-1.5-3.7.5-.2.7.3 1.8-.3 2.1-.4.4-1.7.2-1.7-1.7 0-.6-.4-1.2-.7-1.6-.2-.2-.4-.2-.9-.2-.6 0-.6.1-.9.6-.1.5-.3 1-.3 1.6 0 .7-.4.9-.8 1-.6 0-.5 0-1-.2-.2-.3-.5-.4-.5-1l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.7-2.3 3.7-.2.2-.3 4.9 2.8 6.2"}),M.createElement("path",{fill:"#fff",d:"M235.1 187.7c4.2 2 14.3.9 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.6-.2.6.3 1.7-.4 2-.3.4-1.7.2-1.6-1.6 0-.6-.4-1.3-.7-1.7-.3-.1-.4-.2-1-.2-.5 0-.5.2-.8.7-.2.5-.3 1-.3 1.6-.1.6-.4.8-.9 1-.5 0-.4 0-.8-.3-.3-.3-.6-.4-.6-.9l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 5 3 6.2zm72-21.6c4.2 2 12.1 1.1 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.5-.2.7.3 1.8-.4 2.2-.3.3-1.7.1-1.6-1.8 0-.6-.4-1.2-.7-1.6-.3-.2-.4-.2-1-.2-.5 0-.5.2-.8.7l-.3 1.5c-.1.7-.4 1-.9 1s-.4 0-.8-.2c-.3-.3-.6-.4-.6-.9s-.1-1.3-.3-1.7c-.2-.3-.6-.4-1-.5-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 4.9 3 6.2zm37.3 54.3c-7.3 8.3-4.1 22-2.4 25 2.4 4.8 4.3 7.9 9 10.3 4.3 3.1 7.7 1.2 9.5-1 4.3-4.5 4.4-16 6.4-18.2 1.4-4.2 5-3.5 6.7-1.6a16.5 16.5 0 0 0 6.2 5.3c4 3.5 8.8 4.2 13.6 1 3.2-1.9 5.3-4.2 7.2-8.9 2-5.6 1-31.6.5-47l-4.2-21.5c0-.2-.5-10.2-1-12.5 0-1-.3-1.3.7-1.2 1.1 1 1.2 1 2 1.3 1 .2 2-1.7 1.3-3.3l-10-18.6c-.8-.8-1.9-1.6-3.2.2a7.3 7.3 0 0 0-2.4 5.5c.3 4.4 1 8.9 1.3 13.3l4 22.6c1.3 16 1.6 29.2 2.9 45.3-.2 6.8-2.3 12.7-4.3 13.6 0 0-3 1.7-5-.2-1.5-.6-7.4-9.9-7.4-9.9-3-2.7-5-2-7.1 0-6 5.8-8.6 16.4-12.7 23.8-1 1.7-4 3-7.2-.1-8.2-11.3-3.4-27.3-4.4-23.2M309 126.7c3.8 1.5 6.4 9.2 5.6 13-.8 4.5-2.8 9.5-4.2 8.9-1.6-.6 1-4.6-.5-8.8-.8-2.8-6-7.8-5.4-9.2-1-3.1 2.2-4.5 4.5-4z"}),M.createElement("path",{fill:"#fff",d:"M356.6 225c.7-9.2-.6-14.8-.8-20.2s-6.1-46.6-7.3-50.6c-1.5-7.8 5.7-1 4.9-5.6-2.5-5.6-8.6-13.9-10.5-18.8-1.2-2-.7-4-3.3-.5a42.3 42.3 0 0 0-2.3 19.2c6.2 32.3 12.5 59.1 11.5 89.8 3 0 6.3-6.7 7.8-13.3m64.4-85.3c3.5 1.7 5.5 11.3 5.1 14-.7 5-2.5 10.4-3.8 9.7-1.5-.6.3-7.4-.4-9.5-.8-3-5.5-8.4-5-10-1-3.4 2-4.8 4.1-4.2m-255.7 67.9c3.3 1.3 5.3 8.3 5 10.3-.8 3.7-2.5 7.7-3.8 7.1-1.3-.4.3-5.4-.3-7-.3-3.7-4.9-5.7-4.8-7.3-.8-3 2-3.5 4-3.1z"}),M.createElement("path",{fill:"#165d31",d:"M244.9 218.2c4.2.2 6.3 3.6 2.4 5-4 1.3-7.7 2.4-7.8 8 1.5 8-2 5.2-4 4.2-2.4-1.8-9.2-6-10.2-15-.1-2.1 1.6-4 4.3-4 4 1.1 10 1.2 15.3 1.8"}),M.createElement("path",{fill:"#fff",d:"M77.4 124.4c4.8 1.4 5.1 8.6 4.8 10.7-.7 3.8-2.4 7.9-3.6 7.4-1.4-.5 0-5.7-.7-7.3-.7-2.2-4.8-6.4-4.4-7.6-.9-2.5 2-3.7 3.9-3.2m95.9 33.6c-3.8 2-5.2 8-2.9 11.6 2.2 3 5.6 1.9 6 1.9 3.7.4 5.9-6.9 5.9-6.9s.1-2-4.2 1.9c-1.9.3-2-.4-2.5-1.4a9 9 0 0 1 .5-5.7c.7-1.8-.7-2.6-2.8-1.4m28-36.4c-2 1.3-5.7 5.2-5.8 9.6-.1 2.5-.6 2.5 1 4 1.3 1.8 2.4 1.7 4.8.4a5.1 5.1 0 0 0 2.3-3.4c.6-2.8-3 1.4-3.4-1.8-.8-3 1.5-4.2 3.7-7 0-2 0-3.3-2.7-1.8zm22.4 4a59.5 59.5 0 0 0-1.6 11.1c-.6 2.8 3 4 4.5.4 2.4-6.5 2.4-9.3 2.6-12-.7-4.3-3.6-4.2-5.5.5m142 72.3c.4-.5 20-14.4 20-14.4 2-.7 1.5 7.2.6 7.1a77.8 77.8 0 0 1-20.7 14.3c-1 .7-1.9-5.3 0-7zm17.7-.2c3.5 1.7 4.9 11.8 4.5 14.5 0 5.4-3.3 9.6-4.7 9-1.4-.7.2-6.7-.5-8.8-.8-3-3.7-8.5-3.2-10.1-1-3.4 1.8-5.2 4-4.6zm-116 43.4a26 26 0 0 1 5.6-4.9c2-1 3.8.8 3.7.7.3 2-1.2 3.7-.7 6.3.4 1 .7 2.2 2.6 1.8 3.1-2.5 6-2.7 9-2.8 2.5.1 2.6 4.2 1 4.2-5.7 1.2-8.2 2.8-12.3 4.3-2 1.2-3.6-.3-3.6-.4s-1.1-1.1-.4-3.7c.2-2-.6-3.2-2.4-3-1.2.8-2.4 1.2-3-.3-.3-1-.4-1.6.5-2.2m136.6 5.4c.8 1 1.4 2-.1 3.8l-3.7 3.2c-.6 1-1 2.8 1 3.3 3.6 1 12-4.5 12-4.6 1.4-1 1-3 .8-3-.8-.9-2.6-.3-3.8-.5-.6 0-2.5-.2-1.6-2a11.4 11.4 0 0 0 1.6-2.9c.5-1.2 0-2-2-2.7-2.1-.4-3-.2-5.3 0-1.2.2-1.6.8-1.9 2.3.1 2.3 1.5 2.2 3 3z"}),M.createElement("path",{fill:"#165d31",d:"M268.1 189.7c-.5 1-2.3 1-4 0s-2.7-2.6-2.1-3.5 2.3-.9 4 0 2.6 2.6 2.1 3.5m-89-53.6c-1 .3-2.4-.6-3-2s-.3-2.6.7-2.9 2.3.7 3 2 .3 2.7-.8 3zM355.2 375c9.4.4 18.2 0 27.5.5 1.7 1.5.5 5-.6 4.8l-7.8-.3c-.1-3-7.7-2.5-7.5.1-4.1.5-7.8-.1-12-.3-1.2-1.5-1-4.2.4-4.8"}))))};const oYe=({defaultValue:e,...t})=>{const[n,r]=Mn(e??"fa"),o={fa:"\u0641\u0627\u0631\u0633\u06CC",en:"English",ar:"\u0627\u0644\u0639\u0631\u0628\u06CC\u0629"},i=s=>{switch(s){case"fa":return W(H8,{className:"KdLanguageChange-country-flag"});case"ar":return W(rYe,{className:"KdLanguageChange-country-flag"});case"en":return W(nYe,{className:"KdLanguageChange-country-flag"});default:return W(H8,{className:"KdLanguageChange-country-flag"})}},a=s=>{r(s),t?.onChange(s)};return W($8,{className:"KdLanguageChange-MenubarRoot",dir:"rtl",...t,children:wt(F8,{children:[wt(z8,{className:"KdLanguageChange-MenubarTrigger",children:[i(n),o[n]]}),W(YP,{children:W(B8,{align:"start",side:"bottom",sideOffset:10,className:"KdLanguageChange-MenubarContent",children:Object.keys(o).map((s,c)=>wt("div",{className:"KdLanguageChange-MenubarItem",onClick:()=>a(s),children:[i(s),o[s]]},c))})})]})})},iYe=Gi("img")(),aYe=({pathProp:e,randomNumber:t,...n})=>W(iYe,{...n,alt:"CAPTCHA",src:`${e.APIURL}${MEe}${t}`});function sYe({Component:e,...t}){const n=Gi(e)();return W(n,{...t})}function lYe({isOpen:e,onClose:t,...n}){return W(nre,{...n,open:e,onClose:t})}const cYe=(e,t,n,r,o)=>{const i={IMG:"create/image",TEXT:"create/text",VIDEO:"create/video",COMPRESS:"create/compress",FONT:"create/font"};return e?{url:i.IMG,type:"IMG"}:t?{url:i.TEXT,type:"TEXT"}:n?{url:i.VIDEO,type:"VIDEO"}:r?{url:i.COMPRESS,type:"COMPRESS"}:o?{url:i.FONT,type:"FONT"}:{url:"create",type:void 0}};function GP({APIURL:e=window?.env?.REACT_APP_APIURL??void 0,sessionId:t=localStorage.getItem("sessionId")??"",fileSizeLimit:n=2,fileCountLimit:r=20,validUploadType:o=["IMG","TEXT","VIDEO","COMPRESS","FONT"],multiple:i=!0,onError:a}){const[s,c]=Mn([]),f=Wt(0),[p,m]=Mn([]),b={},y=k=>{c(T=>{const E=T.filter(_=>_.session!==k);return f.current=E.length,E})},w=(k,T)=>{console.log(k,"err"),a&&a("\u0639\u0645\u0644\u06CC\u0627\u062A \u0628\u0627 \u062E\u0637\u0627 \u0645\u0648\u0627\u062C\u0647 \u0634\u062F"),m(E=>E.filter(_=>_.file!==T))};function S(k,T){if(!e)a&&a("Not exist APIURL"),console.error("Not exist APIURL");else try{const E=k.target.files||[];if(!i&&E.length>1){a&&a("\u062D\u062F\u0627\u06A9\u062B\u0631 1 \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.");return}if(i&&E.length+f.current>r){a&&a(`\u062D\u062F\u0627\u06A9\u062B\u0631 ${r} \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.`);return}for(let _=0;_<E.length;_++){const R=E[_],N=R.size/1024/1024,F=R.name,V=F.lastIndexOf(".")+1,K=F.substr(V,F.length).toLowerCase(),Y=T?!!T?.image&&!!(T?.image==="ALL"?Ga.image:T?.image)?.find(le=>le===K):!!o?.find(le=>le==="IMG")&&!!Ga?.image?.find(le=>le===K),J=T?!!T?.text&&!!(T?.text==="ALL"?Ga.text:T?.text)?.find(le=>le===K):!!o?.find(le=>le==="TEXT")&&!!Ga?.text?.find(le=>le===K),X=T?!!T?.video&&!!(T?.video==="ALL"?Ga.video:T?.video)?.find(le=>le===K):!!o?.find(le=>le==="VIDEO")&&!!Ga?.video?.find(le=>le===K),ne=T?!!T?.compress&&!!(T?.compress==="ALL"?Ga.compress:T?.compress)?.find(le=>le===K):!!o?.find(le=>le==="COMPRESS")&&!!Ga?.compress?.find(le=>le===K),ie=T?!!T?.font&&!!(T?.font==="ALL"?Ga.font:T?.font)?.find(le=>le===K):!!o?.find(le=>le==="FONT")&&!!Ga?.font?.find(le=>le===K),{url:te,type:re}=cYe(Y,J,X,ne,ie),de=`${e}${hl.upload}${Jx.pathFileUpload}${te}`;if(N>n)a&&a(`\u062D\u062F\u0627\u06A9\u062B\u0631 \u062D\u062C\u0645 \u0622\u067E\u0644\u0648\u062F ${n} \u0645\u06AF\u0627\u0628\u0627\u06CC\u062A \u0645\u06CC\u200C\u0628\u0627\u0634\u062F.`);else if(re){const le={file:R,progress:0,type:re};m(je=>i?[...je,le]:[le]);const ce=512*1024,ve=new FormData;ve.append("chunkSize",String(ce)),ve.append("totalSize",String(R.size)),ve.append("fileName",R.name);const fe=Math.ceil(R.size/ce),Te=[];for(let je=1;je<=fe;je++)Te.push(je);fetch(de,{method:"POST",headers:b,body:ve,credentials:"include"}).then(je=>je.json()).then(async je=>{let ke=0;if(je?.data?.sessionId?.length>0){let me=1,Pe=!1;for(let Me=0;Me<R.size;Me+=ce,me++)if(!Pe){const _e=R.slice(Me,Me+ce),Be=new FormData;Be.append("data",_e);const Le={method:"PUT",headers:{...b,sessionId:t},body:Be,credentials:"include"};await fetch(`${e}${hl.upload}${Jx.pathForUploadCunk}${je?.data?.sessionId}?chunkNumber=${me}`,Le).then(Ne=>{if(Ne.status!==200)Pe=!0,w(Pe,R);else{ke=ke+_e.size;const Ee=Math.round(ke/R.size*100);m(He=>He.map(Ie=>Ie.file===R?{...Ie,progress:Ee,session:je?.data?.sessionId}:Ie))}})}if(!Pe){const Me={method:"GET",headers:{...b,sessionId:t},credentials:"include"};await fetch(`${e}${hl.upload}${Jx.pathForGetFile}${je?.data?.sessionId}`,Me).then(_e=>_e.json()).then(_e=>{m(Le=>Le.filter(Ne=>Ne.session!==je?.data?.sessionId));const Be={session:je?.data?.sessionId,concluded:_e.concluded,progress:100,fileURL:`${e}${hl.upload}${_e.fileLink}`,fileName:F??"",type:re};c(Le=>(i?f.current=Le.length+1:f.current=1,i?[...Le,Be]:[Be]))}).catch(_e=>{w(_e,R)})}}else w(`err in ${te} service`,R)}).catch(je=>{w(je,R)})}else a&&a("\u0644\u0637\u0641\u0627 \u0641\u0631\u0645\u062A \u0645\u0646\u0627\u0633\u0628 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F.")}}catch(E){console.log("Error",E)}}return{APIURL:e,uploadingFiles:p,files:s,removeFile:y,handleFileChange:S,fileExtension:Ga}}export{DEe as KdAdvanceFileUploader,JWe as KdAlert,aYe as KdCaptcha,UEe as KdChart2D,WEe as KdChart3D,lYe as KdDrawer,d6 as KdDropDownField,PEe as KdFileUploader,u6 as KdFormContainer,uEe as KdFormField,t7e as KdGridHeader,e7e as KdGridPanel,HHe as KdHtmlEditor,JHe as KdImageBox,oYe as KdLanguageChange,dEe as KdLazyDropDownField,tYe as KdLoading,Q9e as KdMenubar,I7 as KdModal,L7 as KdPanelWrapper,eYe as KdRadioListCustom,Y7 as KdSearchableInput,fEe as KdSearchableInputField,qWe as KdStepContent,XWe as KdStepList,KWe as KdStepRoot,ZWe as KdStepTrigger,sYe as KdStyledComponent,HWe as KdTabsContent,VWe as KdTabsList,zWe as KdTabsRoot,YWe as KdTabsTrigger,mEe as KdTagBoxInput,V7e as KdTree,pEe as KdTreeField,TEe as KdTypography,Oke as KdpaAccordion,Pke as KdpaAccordionDetails,Mke as KdpaAccordionSummary,Sle as KdpaAlert,Cle as KdpaAlertTitle,pg as KdpaAutoComplete,qL as KdpaAvatar,kle as KdpaBadge,Zye as KdpaButton,Jye as KdpaCheckBox,Ple as KdpaChip,o0e as KdpaCircularProgress,_4 as KdpaCollapse,aT as KdpaCollapseTransitions,o1e as KdpaCopyToClipboard,Aye as KdpaDatePicker,Gye as KdpaDateTimePicker,sEe as KdpaDialog,N4 as KdpaDivider,Mxe as KdpaDropDownLazy,dxe as KdpaDropZone,l0e as KdpaFade,rEe as KdpaFileUploader,iEe as KdpaFormContainer,O4 as KdpaFormControl,qye as KdpaFormControlLabel,aEe as KdpaFormField,Jke as KdpaFullScreenDialog,Kk as KdpaGrid,Ele as KdpaGridBadge,c0e as KdpaGrow,P4 as KdpaIconButton,a1e as KdpaInlineSpinner,Hm as KdpaInput,tce as KdpaInputLabel,nce as KdpaInputMultiline,s1e as KdpaLoading,oT as KdpaMenuItem,X1e as KdpaModal,K1e as KdpaModalImage,RL as KdpaMuiBadge,q1e as KdpaPaginationGrid,ax as KdpaPrimaryButton,GL as KdpaRadio,rce as KdpaRadioGroup,qke as KdpaRtlProvider,mg as KdpaSecondaryButton,tEe as KdpaSegment,M4 as KdpaSelect,l1e as KdpaSkeleton,u0e as KdpaSlide,G1e as KdpaSlider,t0e as KdpaSweetAlertConfirm,n0e as KdpaSweetAlertDelete,r0e as KdpaSweetAlertOK,oce as KdpaSwitch,a0e as KdpaTab,s0e as KdpaTabs,Ake as KdpaThemeProvider,mme as KdpaTimePicker,jl as KdpaTooltip,J1e as KdpaTree,Tke as KdpaTreeSelect,Ya as KdpaTypography,I2 as KdpaUploadedFile,R2 as KdpaUploadingFile,GP as KdpaUseFileUploadHook,d0e as KdpaZoom,Ga as fileExtension,Sd as pathFile,Jx as pathServicesUpload,hl as serviceName};
|
|
1473
|
+
`)},q8e=0,Ap=[];function Z8e(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(q8e++)[0],i=M.useState(function(){return f8()})[0],a=M.useRef(e);M.useEffect(function(){a.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=sT([e.lockRef.current],(e.shards||[]).map(b8),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=M.useCallback(function(S,k){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var T=Aw(S),E=n.current,_="deltaX"in S?S.deltaX:E[0]-T[0],R="deltaY"in S?S.deltaY:E[1]-T[1],N,F=S.target,V=Math.abs(_)>Math.abs(R)?"h":"v";if("touches"in S&&V==="h"&&F.type==="range")return!1;var K=p8(V,F);if(!K)return!0;if(K?N=V:(N=V==="v"?"h":"v",K=p8(V,F)),!K)return!1;if(!r.current&&"changedTouches"in S&&(_||R)&&(r.current=N),!N)return!0;var Y=r.current||N;return K8e(Y,k,S,Y==="h"?_:R,!0)},[]),c=M.useCallback(function(S){var k=S;if(!(!Ap.length||Ap[Ap.length-1]!==i)){var T="deltaY"in k?v8(k):Aw(k),E=t.current.filter(function(N){return N.name===k.type&&N.target===k.target&&X8e(N.delta,T)})[0];if(E&&E.should){k.cancelable&&k.preventDefault();return}if(!E){var _=(a.current.shards||[]).map(b8).filter(Boolean).filter(function(N){return N.contains(k.target)}),R=_.length>0?s(k,_[0]):!a.current.noIsolation;R&&k.cancelable&&k.preventDefault()}}},[]),f=M.useCallback(function(S,k,T,E){var _={name:S,delta:k,target:T,should:E};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(R){return R!==_})},1)},[]),p=M.useCallback(function(S){n.current=Aw(S),r.current=void 0},[]),m=M.useCallback(function(S){f(S.type,v8(S),S.target,s(S,e.lockRef.current))},[]),b=M.useCallback(function(S){f(S.type,Aw(S),S.target,s(S,e.lockRef.current))},[]);M.useEffect(function(){return Ap.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:b}),document.addEventListener("wheel",c,Pp),document.addEventListener("touchmove",c,Pp),document.addEventListener("touchstart",p,Pp),function(){Ap=Ap.filter(function(S){return S!==i}),document.removeEventListener("wheel",c,Pp),document.removeEventListener("touchmove",c,Pp),document.removeEventListener("touchstart",p,Pp)}},[]);var y=e.removeScrollBar,w=e.inert;return M.createElement(M.Fragment,null,w?M.createElement(i,{styles:G8e(o)}):null,y?M.createElement(B8e,{gapMode:"margin"}):null)}var J8e=M8e(d8,Z8e),y8=M.forwardRef(function(e,t){return M.createElement(Ow,ul({},e,{ref:t,sideCar:J8e}))});y8.classNames=Ow.classNames;var Q8e=y8;const x8=["Enter"," "],e9e=["ArrowDown","PageUp","Home"],w8=["ArrowUp","PageDown","End"],t9e=[...e9e,...w8],n9e={ltr:[...x8,"ArrowRight"],rtl:[...x8,"ArrowLeft"]},r9e={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Dw="Menu",[rb,o9e,i9e]=gP(Dw),[Qd,a9e]=Ep(Dw,[i9e,r8,Op]),_w=r8(),S8=Op(),[C8,Ou]=Qd(Dw),[s9e,Nw]=Qd(Dw),l9e=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=_w(t),[c,f]=Mn(null),p=Wt(!1),m=Ns(i),b=Cw(o);return vn(()=>{const y=()=>{p.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>p.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),cn(l8,s,cn(C8,{scope:t,open:n,onOpenChange:m,content:c,onContentChange:f},cn(s9e,{scope:t,onClose:Zn(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:b,modal:a},r)))},k8=rr((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return cn(b8e,j({},o,r,{ref:t}))}),E8="MenuPortal",[c9e,T8]=Qd(E8,{forceMount:void 0}),u9e=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Ou(E8,t);return cn(c9e,{scope:t,forceMount:n},cn(tb,{present:n||i.open},cn(x8e,{asChild:!0,container:o},r)))},Rs="MenuContent",[d9e,O8]=Qd(Rs),f9e=rr((e,t)=>{const n=T8(Rs,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ou(Rs,e.__scopeMenu),a=Nw(Rs,e.__scopeMenu);return cn(rb.Provider,{scope:e.__scopeMenu},cn(tb,{present:r||i.open},cn(rb.Slot,{scope:e.__scopeMenu},a.modal?cn(h9e,j({},o,{ref:t})):cn(p9e,j({},o,{ref:t})))))}),h9e=rr((e,t)=>{const n=Ou(Rs,e.__scopeMenu),r=Wt(null),o=Ta(t,r);return vn(()=>{const i=r.current;if(i)return H5e(i)},[]),cn(VP,j({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:fr(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),p9e=rr((e,t)=>{const n=Ou(Rs,e.__scopeMenu);return cn(VP,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),VP=rr((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:b,onDismiss:y,disableOutsideScroll:w,...S}=e,k=Ou(Rs,n),T=Nw(Rs,n),E=_w(n),_=S8(n),R=o9e(n),[N,F]=Mn(null),V=Wt(null),K=Ta(t,V,k.onContentChange),Y=Wt(0),J=Wt(""),X=Wt(0),ne=Wt(null),ie=Wt("right"),te=Wt(0),re=w?Q8e:VS,de=w?{as:eb,allowPinchZoom:!0}:void 0,le=ve=>{var fe,Te;const Re=J.current+ve,je=R().filter(Be=>!Be.disabled),ke=document.activeElement,me=(fe=je.find(Be=>Be.ref.current===ke))===null||fe===void 0?void 0:fe.textValue,Pe=je.map(Be=>Be.textValue),Me=T9e(Pe,Re,me),_e=(Te=je.find(Be=>Be.textValue===Me))===null||Te===void 0?void 0:Te.ref.current;(function Be(Le){J.current=Le,window.clearTimeout(Y.current),Le!==""&&(Y.current=window.setTimeout(()=>Be(""),1e3))})(Re),_e&&setTimeout(()=>_e.focus())};vn(()=>()=>window.clearTimeout(Y.current),[]),q7e();const ce=Zn(ve=>{var fe,Te;return ie.current===((fe=ne.current)===null||fe===void 0?void 0:fe.side)&&M9e(ve,(Te=ne.current)===null||Te===void 0?void 0:Te.area)},[]);return cn(d9e,{scope:n,searchRef:J,onItemEnter:Zn(ve=>{ce(ve)&&ve.preventDefault()},[ce]),onItemLeave:Zn(ve=>{var fe;ce(ve)||((fe=V.current)===null||fe===void 0||fe.focus(),F(null))},[ce]),onTriggerLeave:Zn(ve=>{ce(ve)&&ve.preventDefault()},[ce]),pointerGraceTimerRef:X,onPointerGraceIntentChange:Zn(ve=>{ne.current=ve},[])},cn(re,de,cn(Z7e,{asChild:!0,trapped:o,onMountAutoFocus:fr(i,ve=>{var fe;ve.preventDefault(),(fe=V.current)===null||fe===void 0||fe.focus()}),onUnmountAutoFocus:a},cn(K7e,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:b,onDismiss:y},cn(xP,j({asChild:!0},_,{dir:T.dir,orientation:"vertical",loop:r,currentTabStopId:N,onCurrentTabStopIdChange:F,onEntryFocus:fr(c,ve=>{T.isUsingKeyboardRef.current||ve.preventDefault()})}),cn(y8e,j({role:"menu","aria-orientation":"vertical","data-state":A8(k.open),"data-radix-menu-content":"",dir:T.dir},E,S,{ref:K,style:{outline:"none",...S.style},onKeyDown:fr(S.onKeyDown,ve=>{const Te=ve.target.closest("[data-radix-menu-content]")===ve.currentTarget,Re=ve.ctrlKey||ve.altKey||ve.metaKey,je=ve.key.length===1;Te&&(ve.key==="Tab"&&ve.preventDefault(),!Re&&je&&le(ve.key));const ke=V.current;if(ve.target!==ke||!t9e.includes(ve.key))return;ve.preventDefault();const Pe=R().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);w8.includes(ve.key)&&Pe.reverse(),k9e(Pe)}),onBlur:fr(e.onBlur,ve=>{ve.currentTarget.contains(ve.target)||(window.clearTimeout(Y.current),J.current="")}),onPointerMove:fr(e.onPointerMove,ob(ve=>{const fe=ve.target,Te=te.current!==ve.clientX;if(ve.currentTarget.contains(fe)&&Te){const Re=ve.clientX>te.current?"right":"left";ie.current=Re,te.current=ve.clientX}}))})))))))}),m9e="MenuItem",g9e=rr((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=O8(m9e,n),s=S8(n),c=Wt(null),f=Ta(t,c),[p,m]=Mn(!1),[b,y]=Mn("");return vn(()=>{const w=c.current;if(w){var S;y(((S=w.textContent)!==null&&S!==void 0?S:"").trim())}},[i.children]),cn(rb.ItemSlot,{scope:n,disabled:r,textValue:o??b},cn(wP,j({asChild:!0},s,{focusable:!r}),cn(Wi.div,j({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:f,onPointerMove:fr(e.onPointerMove,ob(w=>{r?a.onItemLeave(w):(a.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus())})),onPointerLeave:fr(e.onPointerLeave,ob(w=>a.onItemLeave(w))),onFocus:fr(e.onFocus,()=>m(!0)),onBlur:fr(e.onBlur,()=>m(!1))}))))}),v9e="MenuRadioGroup";Qd(v9e,{value:void 0,onValueChange:()=>{}});const b9e="MenuItemIndicator";Qd(b9e,{checked:!1});const M8="MenuSub",[y9e,P8]=Qd(M8),x9e=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Ou(M8,t),a=_w(t),[s,c]=Mn(null),[f,p]=Mn(null),m=Ns(o);return vn(()=>(i.open===!1&&m(!1),()=>m(!1)),[i.open,m]),cn(l8,a,cn(C8,{scope:t,open:r,onOpenChange:m,content:f,onContentChange:p},cn(y9e,{scope:t,contentId:Jd(),triggerId:Jd(),trigger:s,onTriggerChange:c},n)))},Rw="MenuSubTrigger",w9e=rr((e,t)=>{const n=Ou(Rw,e.__scopeMenu),r=Nw(Rw,e.__scopeMenu),o=P8(Rw,e.__scopeMenu),i=O8(Rw,e.__scopeMenu),a=Wt(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=i,f={__scopeMenu:e.__scopeMenu},p=Zn(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return vn(()=>p,[p]),vn(()=>{const m=s.current;return()=>{window.clearTimeout(m),c(null)}},[s,c]),cn(k8,j({asChild:!0},f),cn(g9e,j({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":A8(n.open)},e,{ref:pP(t,o.onTriggerChange),onClick:m=>{var b;(b=e.onClick)===null||b===void 0||b.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:fr(e.onPointerMove,ob(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:fr(e.onPointerLeave,ob(m=>{var b;p();const y=(b=n.content)===null||b===void 0?void 0:b.getBoundingClientRect();if(y){var w;const S=(w=n.content)===null||w===void 0?void 0:w.dataset.side,k=S==="right",T=k?-5:5,E=y[k?"left":"right"],_=y[k?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+T,y:m.clientY},{x:E,y:y.top},{x:_,y:y.top},{x:_,y:y.bottom},{x:E,y:y.bottom}],side:S}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:fr(e.onKeyDown,m=>{const b=i.searchRef.current!=="";if(!(e.disabled||b&&m.key===" ")&&n9e[r.dir].includes(m.key)){var y;n.onOpenChange(!0),(y=n.content)===null||y===void 0||y.focus(),m.preventDefault()}})})))}),S9e="MenuSubContent",C9e=rr((e,t)=>{const n=T8(Rs,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ou(Rs,e.__scopeMenu),a=Nw(Rs,e.__scopeMenu),s=P8(S9e,e.__scopeMenu),c=Wt(null),f=Ta(t,c);return cn(rb.Provider,{scope:e.__scopeMenu},cn(tb,{present:r||i.open},cn(rb.Slot,{scope:e.__scopeMenu},cn(VP,j({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:f,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var m;a.isUsingKeyboardRef.current&&((m=c.current)===null||m===void 0||m.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:fr(e.onFocusOutside,p=>{p.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:fr(e.onEscapeKeyDown,p=>{a.onClose(),p.preventDefault()}),onKeyDown:fr(e.onKeyDown,p=>{const m=p.currentTarget.contains(p.target),b=r9e[a.dir].includes(p.key);if(m&&b){var y;i.onOpenChange(!1),(y=s.trigger)===null||y===void 0||y.focus(),p.preventDefault()}})})))))});function A8(e){return e?"open":"closed"}function k9e(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function E9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function T9e(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=E9e(e,Math.max(i,0));o.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function O9e(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,c=t[i].y,f=t[a].x,p=t[a].y;c>r!=p>r&&n<(f-s)*(r-c)/(p-c)+s&&(o=!o)}return o}function M9e(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return O9e(n,t)}function ob(e){return t=>t.pointerType==="mouse"?e(t):void 0}const P9e=l9e,A9e=k8,D9e=u9e,_9e=f9e,N9e=x9e,R9e=w9e,I9e=C9e,jP="Menubar",[HP,L9e,$9e]=gP(jP),[D8,xYe]=Ep(jP,[$9e,Op]),ef=a9e(),_8=Op(),[F9e,WP]=D8(jP),z9e=rr((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:i,loop:a=!0,dir:s,...c}=e,f=Cw(s),p=_8(n),[m="",b]=Sw({prop:r,onChange:o,defaultProp:i}),[y,w]=Mn(null);return cn(F9e,{scope:n,value:m,onMenuOpen:Zn(S=>{b(S),w(S)},[b]),onMenuClose:Zn(()=>b(""),[b]),onMenuToggle:Zn(S=>{b(k=>k?"":S),w(S)},[b]),dir:f,loop:a},cn(HP.Provider,{scope:n},cn(HP.Slot,{scope:n},cn(xP,j({asChild:!0},p,{orientation:"horizontal",loop:a,dir:f,currentTabStopId:y,onCurrentTabStopIdChange:w}),cn(Wi.div,j({role:"menubar"},c,{ref:t}))))))}),N8="MenubarMenu",[B9e,R8]=D8(N8),V9e=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Jd(),i=n||o||"LEGACY_REACT_AUTO_VALUE",a=WP(N8,t),s=ef(t),c=Wt(null),f=Wt(!1),p=a.value===i;return vn(()=>{p||(f.current=!1)},[p]),cn(B9e,{scope:t,value:i,triggerId:Jd(),triggerRef:c,contentId:Jd(),wasKeyboardTriggerOpenRef:f},cn(P9e,j({},s,{open:p,onOpenChange:m=>{m||a.onMenuClose()},modal:!1,dir:a.dir},r)))},I8="MenubarTrigger",j9e=rr((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,i=_8(n),a=ef(n),s=WP(I8,n),c=R8(I8,n),f=Wt(null),p=Ta(t,f,c.triggerRef),[m,b]=Mn(!1),y=s.value===c.value;return cn(HP.ItemSlot,{scope:n,value:c.value,disabled:r},cn(wP,j({asChild:!0},i,{focusable:!r,tabStopId:c.value}),cn(A9e,j({asChild:!0},a),cn(Wi.button,j({type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?c.contentId:void 0,"data-highlighted":m?"":void 0,"data-state":y?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:p,onPointerDown:fr(e.onPointerDown,w=>{!r&&w.button===0&&w.ctrlKey===!1&&(s.onMenuOpen(c.value),y||w.preventDefault())}),onPointerEnter:fr(e.onPointerEnter,()=>{if(!!s.value&&!y){var S;s.onMenuOpen(c.value),(S=f.current)===null||S===void 0||S.focus()}}),onKeyDown:fr(e.onKeyDown,w=>{r||(["Enter"," "].includes(w.key)&&s.onMenuToggle(c.value),w.key==="ArrowDown"&&s.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(w.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,w.preventDefault()))}),onFocus:fr(e.onFocus,()=>b(!0)),onBlur:fr(e.onBlur,()=>b(!1))})))))}),H9e=e=>{const{__scopeMenubar:t,...n}=e,r=ef(t);return cn(D9e,j({},r,n))},L8="MenubarContent",W9e=rr((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,i=ef(n),a=WP(L8,n),s=R8(L8,n),c=L9e(n),f=Wt(!1);return cn(_9e,j({id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":""},i,o,{ref:t,align:r,onCloseAutoFocus:fr(e.onCloseAutoFocus,p=>{if(!!!a.value&&!f.current){var b;(b=s.triggerRef.current)===null||b===void 0||b.focus()}f.current=!1,p.preventDefault()}),onFocusOutside:fr(e.onFocusOutside,p=>{const m=p.target;c().some(y=>{var w;return(w=y.ref.current)===null||w===void 0?void 0:w.contains(m)})&&p.preventDefault()}),onInteractOutside:fr(e.onInteractOutside,()=>{f.current=!0}),onEntryFocus:p=>{s.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:fr(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const m=p.target,b=m.hasAttribute("data-radix-menubar-subtrigger"),y=m.closest("[data-radix-menubar-content]")!==p.currentTarget,S=(a.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!S&&b||y&&S)return;let E=c().filter(N=>!N.disabled).map(N=>N.value);S&&E.reverse();const _=E.indexOf(s.value);E=a.loop?X9e(E,_+1):E.slice(_+1);const[R]=E;R&&a.onMenuOpen(R)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Y9e=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=ef(t),[s=!1,c]=Sw({prop:r,defaultProp:i,onChange:o});return cn(N9e,j({},a,{open:s,onOpenChange:c}),n)},U9e=rr((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ef(n);return cn(R9e,j({"data-radix-menubar-subtrigger":""},o,r,{ref:t}))}),K9e=rr((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ef(n);return cn(I9e,j({},o,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function X9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const $8=z9e,F8=V9e,z8=j9e,YP=H9e,B8=W9e,G9e=Y9e,q9e=U9e,Z9e=K9e,J9e=()=>{const e=({data:n,getOptionLabel:r=c=>c.label,getOptionValue:o=c=>c.value,getOptionParent:i=c=>c.parent,getOptionNavlink:a=c=>c.navlink,getOptionExternalLink:s=c=>c.externalLink})=>{const c=[];return n?.forEach(f=>{o(f)&&c.push({value:o(f),label:r(f),parent:i(f),externalLink:s(f),navlink:a(f)})}),c},t=(n=[],r)=>{const o=[];return n.forEach(i=>{const a=i;if(!r&&!a?.parent||a?.parent===r){const s=t(n,a.value);s.length>0&&(a.children=s),o.push(a)}}),o};return{renderMenubarToSpecificFieldName:e,buildMenubar:t}},Q9e=({data:e,onClick:t,orientation:n="horizontal",getOptionValue:r,getOptionLabel:o,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s,noDataText:c="no data",...f})=>{const{buildMenubar:p,renderMenubarToSpecificFieldName:m}=J9e(),b=p(m({data:e,getOptionLabel:o,getOptionValue:r,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s})),y=({data:k})=>wt(F8,{children:[wt(z8,{className:"MenubarTrigger",children:[k.label,W("div",{className:"LeftMainSlot",children:W(hFe,{size:10})})]}),W(YP,{children:W(B8,{className:"MenubarContent",align:"start",side:n==="horizontal"?"bottom":"right",sideOffset:5,children:(k.children??[]).map(T=>T.children&&T.children.length>0?W(S,{data:T}):W(w,{data:T}))})})]}),w=({data:k})=>{const T=t||!k.navlink?"span":(k.externalLink,"a"),E=t?{onClick:()=>{t(k)}}:k.externalLink?{href:k.navlink}:{href:k.navlink};return W(T,{className:"MenubarItem MenubarTriggerText",...E,children:k.label})},S=({data:k})=>wt(G9e,{children:[wt(q9e,{className:"MenubarSubTrigger",children:[W("span",{className:"MenubarTriggerText",children:k.label}),W("div",{className:"LeftSlot",children:W(pFe,{size:10})})]}),W(YP,{children:W(Z9e,{className:"MenubarSubContent",alignOffset:-5,sideOffset:10,children:(k.children??[]).map(T=>T.children&&T.children.length>0?W(S,{data:T}):W(w,{data:T}))})})]});return W(Zr,{children:b.length>0?W($8,{...f,className:"MenubarRoot",dir:"rtl",style:{flexDirection:n==="horizontal"?"unset":"column",...f.style},children:b.map(k=>W(y,{data:k,...f}))}):W("div",{style:{width:"100%",textAlign:"center"},children:c})})};function eYe({label:e,...t}){return W(KR,{...t,label:e,sx:{margin:"0px","& .MuiFormControlLabel-label":{width:"100%",border:n=>t.isActive?`2px solid ${n.palette.primary.main}`:"unset"}},control:W(GL,{sx:{display:"none"}})})}function tYe(e){return W(fs,{...e})}var V8,j8;function UP(){return UP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UP.apply(this,arguments)}var H8=function(t){return M.createElement("svg",UP({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},t),V8||(V8=M.createElement("defs",null,M.createElement("clipPath",{id:"ir_svg__a"},M.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.7v512H-85.3z"})))),j8||(j8=M.createElement("g",{fillRule:"evenodd",clipPath:"url(#ir_svg__a)",transform:"translate(80)scale(.9375)"},M.createElement("path",{fill:"#fff",d:"M-192 0h896v512h-896z"}),M.createElement("path",{fill:"#da0000",d:"M-192 343.8h896V512h-896z"}),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-21.6 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M52.4 367.7v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),M.createElement("path",{d:"M49.6 351H53v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),M.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),M.createElement("path",{d:"M17.8 359.9H21V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371H7.3zm-14.3 0h3.4V371H-7z"}),M.createElement("path",{d:"M9.6 367.7v3.4H-5.5v-3.4zm1-8.7v3.4H1V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-102.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3H-95zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M-28.2 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-31 351h3.4v20H-31zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M-71 367.7v3.4h-15v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M58.3 351h49v3.3h-49zm7.3 16.8H69v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M132.3 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M129.5 351h3.4v20h-3.4zm-8.4 0h3.4v20H121zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M89.6 367.7v3.4H74.4v-3.4zm1-8.7v3.4H81V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M622.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H630zm41.9 0v3.3H662v-3.4zm5.3-16.8h3.3v20h-3.4z"}),M.createElement("path",{d:"M696.7 367.7v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),M.createElement("path",{d:"M694 351h3.3v20h-3.4zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M662 359.9h3.5V371H662z"}),M.createElement("path",{d:"M662 359.9h3.5V371H662z"}),M.createElement("path",{d:"M662 359.9h3.5V371H662zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M654 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M138.7 351h49.1v3.3h-49zm7.4 16.8h3.3v3.3h-3.3zm41.8 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M212.8 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M210 351h3.4v20H210zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),M.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.2 0h3.3V371h-3.3z"}),M.createElement("path",{d:"M170 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M219.5 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zM274 351h3.3v20H274z"}),M.createElement("path",{d:"M293.5 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M290.7 351h3.4v20h-3.4zm-8.4 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H234z"}),M.createElement("path",{d:"M250.8 367.7v3.4h-15.2v-3.4zm1-8.7v3.4H242V359z"})),M.createElement("path",{fill:"#239f40",d:"M-192 0h896v168.2h-896z"}),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M300.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H308zm41.9 0v3.3H340v-3.4zm5.3-16.8h3.3v20h-3.3z"}),M.createElement("path",{d:"M374.7 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),M.createElement("path",{d:"M372 351h3.3v20H372zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M340 359.9h3.5V371H340z"}),M.createElement("path",{d:"M340 359.9h3.5V371H340z"}),M.createElement("path",{d:"M340 359.9h3.5V371H340zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M332 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M381.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M455.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M452.7 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),M.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.3z"}),M.createElement("path",{d:"M412.7 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H404V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M462.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M536.2 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M533.4 351h3.4v20h-3.4zm-8.4 0h3.3v20H525zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3zm-39.4 0h3.4V371h-3.4zm28.9 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M493.4 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M543.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M617.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M614.6 351h3.4v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),M.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),M.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H558z"}),M.createElement("path",{d:"M574.6 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H566V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-183.8 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),M.createElement("path",{d:"M-109.8 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-112.5 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),M.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),M.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),M.createElement("path",{d:"M-152.5 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-21.6 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M52.4 160.2v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),M.createElement("path",{d:"M49.6 143.4H53v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),M.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),M.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3H7.3zm-14.3 0h3.4v11.3H-7z"}),M.createElement("path",{d:"M9.6 160.2v3.4H-5.5v-3.4zm1-8.7v3.3H1v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-102.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2H-95zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M-28.2 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-31 143.4h3.4v20.2H-31zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-71 160.2v3.4h-15v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M58.3 143.4h49v3.4h-49zm7.3 17H69v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M132.3 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M129.5 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2H121zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M89.6 160.2v3.4H74.4v-3.4zm1-8.7v3.3H81v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M622.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H630zm41.9-.2v3.4H662v-3.4zm5.3-16.8h3.3v20.2h-3.4z"}),M.createElement("path",{d:"M696.7 160.2v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),M.createElement("path",{d:"M694 143.4h3.3v20.2h-3.4zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),M.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),M.createElement("path",{d:"M662 152.3h3.5v11.3H662zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M654 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M138.7 143.4h49.1v3.4h-49zm7.4 17h3.3v3.2h-3.3zm41.8-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M212.8 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M210 143.4h3.4v20.2H210zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),M.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.2 0h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M170 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M219.5 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.3v20.2H274z"}),M.createElement("path",{d:"M293.5 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M290.7 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H234z"}),M.createElement("path",{d:"M250.8 160.2v3.4h-15.2v-3.4zm1-8.7v3.3H242v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M300.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H308zm41.9-.2v3.4H340v-3.4zm5.3-16.8h3.3v20.2h-3.3z"}),M.createElement("path",{d:"M374.7 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),M.createElement("path",{d:"M372 143.4h3.3v20.2H372zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),M.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),M.createElement("path",{d:"M340 152.3h3.5v11.3H340zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M332 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M381.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M455.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M452.7 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),M.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.3z"}),M.createElement("path",{d:"M412.7 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H404v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M462.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M536.2 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M533.4 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2H525zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3zm-39.4 0h3.4v11.3h-3.4zm28.9 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M493.4 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M543.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M617.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M614.6 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),M.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),M.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H558z"}),M.createElement("path",{d:"M574.6 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H566v-3.3z"})),M.createElement("g",{fill:"#fff",strokeWidth:"1pt"},M.createElement("path",{d:"M-183.8 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),M.createElement("path",{d:"M-109.8 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-112.5 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),M.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),M.createElement("path",{d:"M-152.5 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),M.createElement("path",{fill:"#d90000",d:"M-68.8 339.5h6V350h-6zm160.5 0h6V350h-6zm-283.7 0h6V350h-6zm81.5 0h6V350h-6zm80.9 0h6V350h-6zm40 0h6V350h-6zm40.9 0h6V350h-6zm80.4 0h6V350h-6zm203 0h6.1V350h-6zm-162.1 0h6V350h-6zm40 0h6V350h-6zm40.5 0h6V350h-6zm40.4 0h6V350h-6zm323.2 0h6V350h-6zm-242.7 0h6V350h-6zm40.8 0h6V350h-6zm41.3 0h6V350h-6zm38.8 0h6V350h-6zm41.3 0h6V350h-6zm40.4 0h6V350h-6zm119.7 0h6V350h-6zm-38.8 0h6V350h-6zm-808.9 0h6V350h-6z"}),M.createElement("path",{fill:"#239e3f",d:"M-68.8 162.6h6v10.5h-6zm160.5 0h6v10.5h-6zm-283.7 0h6v10.5h-6zm81.5 0h6v10.5h-6zm80.9 0h6v10.5h-6zm40 0h6v10.5h-6zm40.9 0h6v10.5h-6zm80.4 0h6v10.5h-6zm203 0h6.1v10.5h-6zm-162.1 0h6v10.5h-6zm40 0h6v10.5h-6zm40.5 0h6v10.5h-6zm40.4 0h6v10.5h-6zm323.2 0h6v10.5h-6zm-242.7 0h6v10.5h-6zm40.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm38.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm40.4 0h6v10.5h-6zm119.7 0h6v10.5h-6zm-38.8 0h6v10.5h-6zm-808.9 0h6v10.5h-6z"}),M.createElement("g",{fill:"#da0000"},M.createElement("path",{d:"M279.8 197.5c8.4 10.4 34.5 67.6-15.7 105.2-23.7 17.8-9 18.6-8.3 21.6 38-20.1 50.3-47.5 50-72-.2-24.4-13.2-46-26-54.8"}),M.createElement("path",{d:"M284.8 194.8a73.3 73.3 0 0 1 15.7 112.4c27.2-6 62-86.4-15.7-112.4m-57.6 0a73.3 73.3 0 0 0-15.6 112.4c-27.3-6-62-86.4 15.6-112.4"}),M.createElement("path",{d:"M232.2 197.5c-8.4 10.4-34.5 67.6 15.7 105.2 23.6 17.8 9 18.6 8.3 21.6-38-20.1-50.3-47.5-50-72 .2-24.4 13.2-46 26-54.8"}),M.createElement("path",{d:"M304.2 319.1c-14.9.2-33.6-2-47.5-9.3 2.3 4.5 4.2 7.3 6.5 11.7 13.2 1.3 31.5 2.8 41-2.4m-95 0c14.9.2 33.6-2 47.5-9.3-2.3 4.5-4.2 7.3-6.5 11.7-13.2 1.3-31.5 2.8-41-2.4m27.3-138.7c3 8 10.9 9.2 19.3 4.5 6.2 3.6 15.7 3.9 19-4.1 2.5 19.8-18.3 15-19 11.2-7.8 7.5-22.2 3.2-19.3-11.6"}),M.createElement("path",{d:"m256.4 331.6 7.8-9 1.1-120.1-9.3-8.2-9.3 7.8 1.9 121z"})))))},W8,Y8,U8,K8,X8;function KP(){return KP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KP.apply(this,arguments)}var nYe=function(t){return M.createElement("svg",KP({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},t),W8||(W8=M.createElement("path",{fill:"#bd3d44",d:"M0 0h640v480H0"})),Y8||(Y8=M.createElement("path",{stroke:"#fff",strokeWidth:37,d:"M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640"})),U8||(U8=M.createElement("path",{fill:"#192f5d",d:"M0 0h364.8v258.5H0"})),K8||(K8=M.createElement("marker",{id:"us_svg__a",markerHeight:30,markerWidth:30},M.createElement("path",{fill:"#fff",d:"m14 0 9 27L0 10h28L5 27z"}))),X8||(X8=M.createElement("path",{fill:"none",markerMid:"url(#us_svg__a)",d:"m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z"})))},G8,q8;function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XP.apply(this,arguments)}var rYe=function(t){return M.createElement("svg",XP({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},t),G8||(G8=M.createElement("defs",null,M.createElement("clipPath",{id:"sa_svg__a"},M.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.6v512H-85.3z"})))),q8||(q8=M.createElement("g",{fillRule:"evenodd",clipPath:"url(#sa_svg__a)",transform:"translate(80)scale(.9375)"},M.createElement("path",{fill:"#165d31",d:"M-128 0h768v512h-768z"}),M.createElement("path",{fill:"#fff",d:"M65.5 145.1c-.8 12-2 33 8.3 35.2 12.3 1.2 5.5-20.8 10-24.8.8-2 2.3-2 2.4.5v18.7c0 6 4 7.8 7 9 3.2-.2 5.4 0 6.6 3l1.6 32.3s7.4 2.2 7.8-18.1c.3-12-2.4-21.9-.8-24.2 0-2.3 3-2.4 5-1.3 3.2 2.2 4.6 5 9.6 4 7.6-2.2 12.2-5.9 12.3-11.7a47 47 0 0 0-3.5-16.6c.4-1-1.4-3.7-1-4.7 1.3 2.2 3.4 2 3.8 0-1.3-4.2-3.3-8.3-6.5-10-2.7-2.4-6.7-2-8 3-.8 5.7 2 12.4 6.1 18 .9 2.1 2.1 5.7 1.6 8.9-2.2 1.3-4.4.7-6.3-1.2 0 0-6-4.5-6-5.6 1.6-10.2.3-11.4-.6-14.3-.6-3.9-2.5-5.2-4-7.8-1.5-1.6-3.5-1.6-4.5 0-2.7 4.6-1.4 14.5.5 19 1.4 4.1 3.5 6.7 2.5 6.7-.8 2.3-2.5 1.7-3.8-1a66.6 66.6 0 0 1-2.1-17.4c-.5-4.6-1.1-14.4-4.2-17-1.8-2.4-4.5-1.2-5.5 1a82.4 82.4 0 0 0 .3 13.4c2 7.4 2.7 14 3.7 21.5.3 10.1-5.8 4.4-5.5-.7a45 45 0 0 0-.3-19.4c-1-2.6-2.1-3.2-4.6-2.8-1.9 0-6.8 5.3-8.2 14.3 0 0-1.2 4.6-1.7 8.7-.7 4.6-3.7 8-5.9-.6-1.8-6.3-3-21.6-6-18z"}),M.createElement("path",{fill:"#fff",d:"m99 194.2-32 15.4c.3-7.3 15.1-20.4 25.3-20.5 6.5.1 4.9 2.5 6.6 5.1z"}),M.createElement("path",{fill:"#fff",d:"M93.3 204.2c-16.8 43.5 39.5 49.6 45.8 1.8.6-2 3-3.9 3.4-.7-1.3 43.3-43.6 46.2-50.8 32.6a41.9 41.9 0 0 1-2.5-14.6c-1-8.5-5.5-5.2-6.2 3.2-.7 4.7-.5 6-.5 10.5 2.2 34.2 56.7 19.5 65.6-8.7 4.7-15.6-.8-27.1 1.7-27.1 5.4 5.8 13 .8 14.7-1.2.7-1 2.5-1.7 3.7-.4 4.2 3 11.6 1.6 13.2-3.7.9-5.3 1.6-10.7 1.8-16.2-3.5 1-6 1.7-6.3 3.2l-.7 4.6c-.3 1.5-3.2 1.5-3.4-.4-1.3-6-6.7-6.7-10 2.5-2.1 1.8-6.1 2.2-6.5-.5.5-6.2-2-7-7-4.1l-4.8-36.2c2 0 4 1.5 5.9-.9-2-6.5-6.5-19.7-9-20.7-1.1-1.4-2.1-.5-3.7-.1-2.6.8-5 3-4.2 7.4 3 18.8 5 33.1 8.1 52 .5 2.1-1.3 5-3.7 4.7-4-2.7-5-8.2-12-8-5 0-10.6 5.5-11.3 10.7-.9 4.2-1.2 8.7 0 12.3 3.5 4.2 7.7 3.8 11.4 2.9 3-1.3 5.5-4.3 6.6-3.6.7.9.1 10.9-14.3 18.5-8.7 4-15.7 4.8-19.4-2.3-2.3-4.5.2-21.4-5.6-17.5"}),M.createElement("path",{fill:"#fff",d:"M165 160c3.3-1.2 19.3-19.6 19.3-19.6l-2.4-2c-.9-.7-.8-1.5 0-2.2 4-2.4 2.7-7.4.7-9.8a9.7 9.7 0 0 0-8.7.1c-2.8 2.7-3.4 7-1.2 9.6 2.1 1 4.2 3.2 2.8 4.4-6.6 7-24.5 19.1-22.4 19.5.4.6 11.5.6 11.8 0zm-97 65c-6 9.6-6.5 23.9-3.2 28.2 1.8 2 4.7 2.9 6.8 2.2 3.8-1.6 5.5-9.3 4.6-12-1.3-2-2.3-2.3-3.6-.7-2.6 5.4-3.7 1.7-4-1.3a70 70 0 0 1 .8-15.2c.7-4.2 0-3-1.4-1.2m257.1-15.3c-5.8-12.6-13.9-25-16.4-29.7a558 558 0 0 0-24.8-36c-6.2-7.4 10.2 3.1-2-11.7l-8.9-7.5c-2-1.4-6.8-4-7.6.2-.4 3.8-.2 5.8.4 8.9.5 2 3.5 5.5 5 7.5a565 565 0 0 1 53.8 86.5c2.6-1.3 2-16.1.5-18.2"}),M.createElement("path",{fill:"#fff",d:"M299.6 251.5c-1.2 1.3 2.8 6.8 8 6.8 8.6-1 16.2-5.8 23.2-18.6a33 33 0 0 0 5.3-14.2 317 317 0 0 0-5.8-72.4c-.3-2 0-4.4.2-5 .6-.7 2.5 0 3.5-1.7 1.5-1.5-4-14-7-18.7-1-2.2-1.5-3.6-3.3.2a27 27 0 0 0-3 13.6c4.1 28.5 5.4 53.4 8 81.9.3 2.8-.1 6.8-2 8.4a80.2 80.2 0 0 1-27.1 19.7m116.5-.1c-6.2 3.6-6.2 7.7-1.2 7.8 8.6-1 18.8-1.7 25.8-12.3a41 41 0 0 0 4.2-16 303 303 0 0 0-4.7-71.4c-.2-2-1.1-6.7-.8-7.3.6-1.4 3.4.1 4.4-1.5 1.4-1.5-7.3-12.7-10.4-17.5-1-2.2-1.4-3.6-3.3.2a22.3 22.3 0 0 0-1.8 13.6c4.6 31 8 54.2 8.7 81.6-.4 2.6-.5 4-1.7 7.3-2.7 3.4-5.7 7.8-8.5 9.9-2.8 2-8.8 4-10.7 5.6"}),M.createElement("path",{fill:"#fff",d:"M420.7 223.7c0-7.3.1-13.5-.1-19a34 34 0 0 0-3-13.5c-1.8-4.1-.7-7.4-1.6-11.8-.8-4.4-.6-11-1.8-16.1-.4-2-1.4-8.5-1.1-9.2.5-1.4 2.4 0 3.4-1.6 1.4-1.5-5-18-8.2-22.7-1.1-2.1-3.3-1.4-5.8 2-2.5 2.3-1.6 7.4-.6 12.3 6.1 32.3 10.8 61.6 9.8 92.3-.4 2.6 9-7.8 9-12.7m-45.7-40c-3.9-.2-12-7.7-14.4-12a8 8 0 0 1 .4-6.5c1.5-1 3.7-2 5.4-1 0 0 1.7 2.4 1.4 2.7 2 1 3 .5 3.2-.4.1-1.5-.6-2.4-.6-4 .9-4.6 6-5.3 8-2.4 1.4 1.8 2 5.5 2.1 8 0 1.3-2-.2-3.3 0-1.1.4-1.4 1.8-1.5 3-.2 3.3-.6 8.6-.7 12.5zm-71.8 48c1-9.8-.4-27.3-.5-33.1A477 477 0 0 0 299 154c-1.2-8.4 3.4.9 2.8-4-1.5-8.3-6.1-14-11.6-21.5-1.7-2.5-1.7-3-4.4.6-3 6.7-.4 11.4.4 16.7 3.9 17.2 6.2 33 7.3 48.7a393 393 0 0 1 .4 49c3 .1 7.6-4.7 9.3-11.8"}),M.createElement("path",{fill:"#fff",d:"M434 216c-6.9-11.6-17.2-24-20-28.7a658 658 0 0 0-29.2-37.8c-8.5-9 4-1.5-1.6-8.5-4.7-5.1-6-6.8-10.1-9.9-2-1.3-3.2-3.8-4 .5a83 83 0 0 0-.2 11.2c0 1.7 1.8 5 3.4 7 20.7 25.5 43.4 51.5 61.6 84.2 2.6-1.3 1.7-16 0-18z"}),M.createElement("path",{fill:"#165d31",d:"M122.6 194.7c-.5.9-1.6 2-1.2 3.1.7 1 1.4 1.3 2.6 1.3 1.1 0 2.7.3 3-.3.6-.7 1-2 .6-3.3-1.2-3-4.4-1.8-5-.8"}),M.createElement("path",{fill:"#fff",d:"M354.2 362.5c9.2.4 15.2.5 23.3 1.4l9.6-1c10.6-1 11 15.1 11 15.1 0 9.5-3.7 10-8.4 11-2.7.4-4-1.6-5.5-3.6a14 14 0 0 1-7 .4c-3.9-.2-7.7-.2-11.5-.5-4-.3-6.2.5-10.3.1-.8 1.3-2 3.1-4.4 2.6-2-.3-4.5-6-3.8-10.5 1.5-3.2 1-2.1 1-3.5-37.6-1-75.5-2.7-112.3-2.2-28.8.1-57.2 1.3-85.7 2.5-15.2-.2-26.8-2.6-34.8-14.3.8 0 38.8 2.1 49.9 1.4 20.5-.2 39.3-1.9 60.2-2.5 41.2.7 82.1.7 123.3 3.6-4-2.7-4-9 2-10.6.5-.4.8 3.1 1.7 3 4.9-.3 2.7 6.3 1.7 7.6M188.6 135.3c-6.2 17.8 3.6 37.4 10.4 35.5 5 2 8-7.4 10-17.6 1.5-2.9 2.5-3.2 3.2-1.7-.2 13.6 1 16.7 4.5 20.8 7.8 6 14.3.8 14.8.3l6-6.1c1.4-1.5 3.2-1.5 5.1-.3 1.9 1.7 1.6 4.6 5.6 6.6 3.4 1.4 10.5.4 12.2-2.5 2.2-3.9 2.8-5.2 3.8-6.6 1.6-2.1 4.3-1.2 4.3-.5-.3 1.2-1.9 2.3-.8 4.5 2 1.4 2.4.5 3.5.2 4-2 7-10.6 7-10.6.1-3.2-1.7-3-2.9-2.2l-3.1 2.1c-2 .3-5.7 1.6-7.6-1.3-1.9-3.4-1.9-8.3-3.3-11.8 0-.2-2.6-5.5-.2-5.8 1.2.2 3.7.9 4.1-1.2 1.2-2.1-2.6-8-5.3-11-2.3-2.5-5.5-2.8-8.6-.2-2.2 2-1.9 4.2-2.3 6.3a9.8 9.8 0 0 0 2 8.7c2.2 4.2 6.1 9.7 4.8 17.5 0 0-2.3 3.6-6.3 3.1-1.7-.3-4.4-1-5.8-11.8-1.1-8 .2-19.4-3.2-24.7-1.3-3.3-2.2-6.4-5.2-.9-.8 2.2-4.3 5.5-1.8 12.2a36 36 0 0 1 2 19c-1.5 2.2-1.8 2.9-3.7 5-2.6 3-5.5 2.2-7.7 1.1-2-1.3-3.6-2-4.6-6.5.2-7 .6-18.5-.7-20.9-1.9-3.8-5-2.4-6.3-1.2a47.7 47.7 0 0 0-11.5 23.5c-1.8 5.8-3.7 4.1-5 1.8-3.2-3-3.5-26.7-7.4-22.8"}),M.createElement("path",{fill:"#fff",d:"M207.4 174.1c2.9-2 1.6-3.4 5.8.8a72 72 0 0 1 9.2 31.3c-.2 2.6 1.6 4.2 2.5 3.6.4-6 15.1-14.4 28.6-15.6 2-.5 1-4.4 1.3-6.4-.8-7.5 4.2-14.3 11.2-14.8 9.6 1.4 12.8 6.5 13 14.2-1.1 15-16.7 17.5-25.4 18.7-1.3.5-1.9 1.1 0 1.8l36.6.2 1.9 1c.2 1-.6.2-2 2.6a29.5 29.5 0 0 0-3.7 11.5c-10.9 3.6-22.2 5-33.6 6.5-4 2-6 4.7-5.2 7.7 1.4 3.3 10.2 6.7 10.2 6.8 1.7 1 3.6 3.5-.5 8.6-17.8-.8-31.7-8.4-36.5-19.1-1.4-1.1-3 0-4 1.4-7 9-13.8 17-25.7 21.4-7 1.8-14.3-1.1-17.7-5.7-2.3-2.7-2.2-5.6-3-6.2-3.9 1.7-36.9 15.7-32.7 9.1 8-8.5 22-14.9 34.2-23.3.9-2.9 2.5-12.5 7.3-15.6.3 0-.7 5.6-.6 8 0 2-.2 2.7.2 2.2.9-.5 15.7-12.2 17-15.8 1.4-2 .3-7.2.3-7.4-2.8-7.2-6.7-7.8-8.1-11.4-1.3-4.7-.7-10.1 2-11.7 2.4-2.1 5.2-1.9 7.9.5 3 2.7 5.6 8 6.4 11.9-.5 1.5-4-1-5-.3a16 16 0 0 1 3.7 7.8c2 8.2 1.4 11.4-.6 16.7-6.6 13.9-15 18-22.4 23.2-.2 0-.3 3.5 2.4 5.4 1 1 4.9 1.5 9.4 0a54.5 54.5 0 0 0 22.3-23.3 51 51 0 0 0-2.4-22.2c-2.9-6.7-6.3-16.2-6.3-16.4-.1-4.2.2-5.6 2-7.7m-95.8-38.6c4.2 2 12.2 1.1 11.8-5.7l-.2-3.1c-.8-2-3.2-1.5-3.7.5-.2.7.3 1.8-.3 2.1-.4.4-1.7.2-1.7-1.7 0-.6-.4-1.2-.7-1.6-.2-.2-.4-.2-.9-.2-.6 0-.6.1-.9.6-.1.5-.3 1-.3 1.6 0 .7-.4.9-.8 1-.6 0-.5 0-1-.2-.2-.3-.5-.4-.5-1l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.7-2.3 3.7-.2.2-.3 4.9 2.8 6.2"}),M.createElement("path",{fill:"#fff",d:"M235.1 187.7c4.2 2 14.3.9 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.6-.2.6.3 1.7-.4 2-.3.4-1.7.2-1.6-1.6 0-.6-.4-1.3-.7-1.7-.3-.1-.4-.2-1-.2-.5 0-.5.2-.8.7-.2.5-.3 1-.3 1.6-.1.6-.4.8-.9 1-.5 0-.4 0-.8-.3-.3-.3-.6-.4-.6-.9l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 5 3 6.2zm72-21.6c4.2 2 12.1 1.1 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.5-.2.7.3 1.8-.4 2.2-.3.3-1.7.1-1.6-1.8 0-.6-.4-1.2-.7-1.6-.3-.2-.4-.2-1-.2-.5 0-.5.2-.8.7l-.3 1.5c-.1.7-.4 1-.9 1s-.4 0-.8-.2c-.3-.3-.6-.4-.6-.9s-.1-1.3-.3-1.7c-.2-.3-.6-.4-1-.5-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 4.9 3 6.2zm37.3 54.3c-7.3 8.3-4.1 22-2.4 25 2.4 4.8 4.3 7.9 9 10.3 4.3 3.1 7.7 1.2 9.5-1 4.3-4.5 4.4-16 6.4-18.2 1.4-4.2 5-3.5 6.7-1.6a16.5 16.5 0 0 0 6.2 5.3c4 3.5 8.8 4.2 13.6 1 3.2-1.9 5.3-4.2 7.2-8.9 2-5.6 1-31.6.5-47l-4.2-21.5c0-.2-.5-10.2-1-12.5 0-1-.3-1.3.7-1.2 1.1 1 1.2 1 2 1.3 1 .2 2-1.7 1.3-3.3l-10-18.6c-.8-.8-1.9-1.6-3.2.2a7.3 7.3 0 0 0-2.4 5.5c.3 4.4 1 8.9 1.3 13.3l4 22.6c1.3 16 1.6 29.2 2.9 45.3-.2 6.8-2.3 12.7-4.3 13.6 0 0-3 1.7-5-.2-1.5-.6-7.4-9.9-7.4-9.9-3-2.7-5-2-7.1 0-6 5.8-8.6 16.4-12.7 23.8-1 1.7-4 3-7.2-.1-8.2-11.3-3.4-27.3-4.4-23.2M309 126.7c3.8 1.5 6.4 9.2 5.6 13-.8 4.5-2.8 9.5-4.2 8.9-1.6-.6 1-4.6-.5-8.8-.8-2.8-6-7.8-5.4-9.2-1-3.1 2.2-4.5 4.5-4z"}),M.createElement("path",{fill:"#fff",d:"M356.6 225c.7-9.2-.6-14.8-.8-20.2s-6.1-46.6-7.3-50.6c-1.5-7.8 5.7-1 4.9-5.6-2.5-5.6-8.6-13.9-10.5-18.8-1.2-2-.7-4-3.3-.5a42.3 42.3 0 0 0-2.3 19.2c6.2 32.3 12.5 59.1 11.5 89.8 3 0 6.3-6.7 7.8-13.3m64.4-85.3c3.5 1.7 5.5 11.3 5.1 14-.7 5-2.5 10.4-3.8 9.7-1.5-.6.3-7.4-.4-9.5-.8-3-5.5-8.4-5-10-1-3.4 2-4.8 4.1-4.2m-255.7 67.9c3.3 1.3 5.3 8.3 5 10.3-.8 3.7-2.5 7.7-3.8 7.1-1.3-.4.3-5.4-.3-7-.3-3.7-4.9-5.7-4.8-7.3-.8-3 2-3.5 4-3.1z"}),M.createElement("path",{fill:"#165d31",d:"M244.9 218.2c4.2.2 6.3 3.6 2.4 5-4 1.3-7.7 2.4-7.8 8 1.5 8-2 5.2-4 4.2-2.4-1.8-9.2-6-10.2-15-.1-2.1 1.6-4 4.3-4 4 1.1 10 1.2 15.3 1.8"}),M.createElement("path",{fill:"#fff",d:"M77.4 124.4c4.8 1.4 5.1 8.6 4.8 10.7-.7 3.8-2.4 7.9-3.6 7.4-1.4-.5 0-5.7-.7-7.3-.7-2.2-4.8-6.4-4.4-7.6-.9-2.5 2-3.7 3.9-3.2m95.9 33.6c-3.8 2-5.2 8-2.9 11.6 2.2 3 5.6 1.9 6 1.9 3.7.4 5.9-6.9 5.9-6.9s.1-2-4.2 1.9c-1.9.3-2-.4-2.5-1.4a9 9 0 0 1 .5-5.7c.7-1.8-.7-2.6-2.8-1.4m28-36.4c-2 1.3-5.7 5.2-5.8 9.6-.1 2.5-.6 2.5 1 4 1.3 1.8 2.4 1.7 4.8.4a5.1 5.1 0 0 0 2.3-3.4c.6-2.8-3 1.4-3.4-1.8-.8-3 1.5-4.2 3.7-7 0-2 0-3.3-2.7-1.8zm22.4 4a59.5 59.5 0 0 0-1.6 11.1c-.6 2.8 3 4 4.5.4 2.4-6.5 2.4-9.3 2.6-12-.7-4.3-3.6-4.2-5.5.5m142 72.3c.4-.5 20-14.4 20-14.4 2-.7 1.5 7.2.6 7.1a77.8 77.8 0 0 1-20.7 14.3c-1 .7-1.9-5.3 0-7zm17.7-.2c3.5 1.7 4.9 11.8 4.5 14.5 0 5.4-3.3 9.6-4.7 9-1.4-.7.2-6.7-.5-8.8-.8-3-3.7-8.5-3.2-10.1-1-3.4 1.8-5.2 4-4.6zm-116 43.4a26 26 0 0 1 5.6-4.9c2-1 3.8.8 3.7.7.3 2-1.2 3.7-.7 6.3.4 1 .7 2.2 2.6 1.8 3.1-2.5 6-2.7 9-2.8 2.5.1 2.6 4.2 1 4.2-5.7 1.2-8.2 2.8-12.3 4.3-2 1.2-3.6-.3-3.6-.4s-1.1-1.1-.4-3.7c.2-2-.6-3.2-2.4-3-1.2.8-2.4 1.2-3-.3-.3-1-.4-1.6.5-2.2m136.6 5.4c.8 1 1.4 2-.1 3.8l-3.7 3.2c-.6 1-1 2.8 1 3.3 3.6 1 12-4.5 12-4.6 1.4-1 1-3 .8-3-.8-.9-2.6-.3-3.8-.5-.6 0-2.5-.2-1.6-2a11.4 11.4 0 0 0 1.6-2.9c.5-1.2 0-2-2-2.7-2.1-.4-3-.2-5.3 0-1.2.2-1.6.8-1.9 2.3.1 2.3 1.5 2.2 3 3z"}),M.createElement("path",{fill:"#165d31",d:"M268.1 189.7c-.5 1-2.3 1-4 0s-2.7-2.6-2.1-3.5 2.3-.9 4 0 2.6 2.6 2.1 3.5m-89-53.6c-1 .3-2.4-.6-3-2s-.3-2.6.7-2.9 2.3.7 3 2 .3 2.7-.8 3zM355.2 375c9.4.4 18.2 0 27.5.5 1.7 1.5.5 5-.6 4.8l-7.8-.3c-.1-3-7.7-2.5-7.5.1-4.1.5-7.8-.1-12-.3-1.2-1.5-1-4.2.4-4.8"}))))};const oYe=({defaultValue:e,...t})=>{const[n,r]=Mn(e??"fa"),o={fa:"\u0641\u0627\u0631\u0633\u06CC",en:"English",ar:"\u0627\u0644\u0639\u0631\u0628\u06CC\u0629"},i=s=>{switch(s){case"fa":return W(H8,{className:"KdLanguageChange-country-flag"});case"ar":return W(rYe,{className:"KdLanguageChange-country-flag"});case"en":return W(nYe,{className:"KdLanguageChange-country-flag"});default:return W(H8,{className:"KdLanguageChange-country-flag"})}},a=s=>{r(s),t?.onChange(s)};return W($8,{className:"KdLanguageChange-MenubarRoot",dir:"rtl",...t,children:wt(F8,{children:[wt(z8,{className:"KdLanguageChange-MenubarTrigger",children:[i(n),o[n]]}),W(YP,{children:W(B8,{align:"start",side:"bottom",sideOffset:10,className:"KdLanguageChange-MenubarContent",children:Object.keys(o).map((s,c)=>wt("div",{className:"KdLanguageChange-MenubarItem",onClick:()=>a(s),children:[i(s),o[s]]},c))})})]})})},iYe=Gi("img")(),aYe=({pathProp:e,randomNumber:t,...n})=>W(iYe,{...n,alt:"CAPTCHA",src:`${e.APIURL}${MEe}${t}`});function sYe({Component:e,...t}){const n=Gi(e)();return W(n,{...t})}function lYe({isOpen:e,onClose:t,...n}){return W(nre,{...n,open:e,onClose:t})}const cYe=(e,t,n,r,o)=>{const i={IMG:"create/image",TEXT:"create/text",VIDEO:"create/video",COMPRESS:"create/compress",FONT:"create/font"};return e?{url:i.IMG,type:"IMG"}:t?{url:i.TEXT,type:"TEXT"}:n?{url:i.VIDEO,type:"VIDEO"}:r?{url:i.COMPRESS,type:"COMPRESS"}:o?{url:i.FONT,type:"FONT"}:{url:"create",type:void 0}};function GP({APIURL:e=window?.env?.REACT_APP_APIURL??void 0,sessionId:t=localStorage.getItem("sessionId")??"",fileSizeLimit:n=2,fileCountLimit:r=20,validUploadType:o=["IMG","TEXT","VIDEO","COMPRESS","FONT"],multiple:i=!0,onError:a}){const[s,c]=Mn([]),f=Wt(0),[p,m]=Mn([]),b={},y=k=>{c(T=>{const E=T.filter(_=>_.session!==k);return f.current=E.length,E})},w=(k,T)=>{console.log(k,"err"),a&&a("\u0639\u0645\u0644\u06CC\u0627\u062A \u0628\u0627 \u062E\u0637\u0627 \u0645\u0648\u0627\u062C\u0647 \u0634\u062F"),m(E=>E.filter(_=>_.file!==T))};function S(k,T){if(!e)a&&a("Not exist APIURL"),console.error("Not exist APIURL");else try{const E=k.target.files||[];if(!i&&E.length>1){a&&a("\u062D\u062F\u0627\u06A9\u062B\u0631 1 \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.");return}if(i&&E.length+f.current>r){a&&a(`\u062D\u062F\u0627\u06A9\u062B\u0631 ${r} \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.`);return}for(let _=0;_<E.length;_++){const R=E[_];if(R.size===0){a&&a("\u0634\u0645\u0627 \u0646\u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0641\u0627\u06CC\u0644 \u062E\u0627\u0644\u06CC \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F");return}const N=R.size/1024/1024,F=R.name,V=F.lastIndexOf(".")+1,K=F.substr(V,F.length).toLowerCase(),Y=T?!!T?.image&&!!(T?.image==="ALL"?Ga.image:T?.image)?.find(le=>le===K):!!o?.find(le=>le==="IMG")&&!!Ga?.image?.find(le=>le===K),J=T?!!T?.text&&!!(T?.text==="ALL"?Ga.text:T?.text)?.find(le=>le===K):!!o?.find(le=>le==="TEXT")&&!!Ga?.text?.find(le=>le===K),X=T?!!T?.video&&!!(T?.video==="ALL"?Ga.video:T?.video)?.find(le=>le===K):!!o?.find(le=>le==="VIDEO")&&!!Ga?.video?.find(le=>le===K),ne=T?!!T?.compress&&!!(T?.compress==="ALL"?Ga.compress:T?.compress)?.find(le=>le===K):!!o?.find(le=>le==="COMPRESS")&&!!Ga?.compress?.find(le=>le===K),ie=T?!!T?.font&&!!(T?.font==="ALL"?Ga.font:T?.font)?.find(le=>le===K):!!o?.find(le=>le==="FONT")&&!!Ga?.font?.find(le=>le===K),{url:te,type:re}=cYe(Y,J,X,ne,ie),de=`${e}${hl.upload}${Jx.pathFileUpload}${te}`;if(N>n)a&&a(`\u062D\u062F\u0627\u06A9\u062B\u0631 \u062D\u062C\u0645 \u0622\u067E\u0644\u0648\u062F ${n} \u0645\u06AF\u0627\u0628\u0627\u06CC\u062A \u0645\u06CC\u200C\u0628\u0627\u0634\u062F.`);else if(re){const le={file:R,progress:0,type:re};m(je=>i?[...je,le]:[le]);const ce=512*1024,ve=new FormData;ve.append("chunkSize",String(ce)),ve.append("totalSize",String(R.size)),ve.append("fileName",R.name);const fe=Math.ceil(R.size/ce),Te=[];for(let je=1;je<=fe;je++)Te.push(je);fetch(de,{method:"POST",headers:b,body:ve,credentials:"include"}).then(je=>je.json()).then(async je=>{let ke=0;if(je?.data?.sessionId?.length>0){let me=1,Pe=!1;for(let Me=0;Me<R.size;Me+=ce,me++)if(!Pe){const _e=R.slice(Me,Me+ce),Be=new FormData;Be.append("data",_e);const Le={method:"PUT",headers:{...b,sessionId:t},body:Be,credentials:"include"};await fetch(`${e}${hl.upload}${Jx.pathForUploadCunk}${je?.data?.sessionId}?chunkNumber=${me}`,Le).then(Ne=>{if(Ne.status!==200)Pe=!0,w(Pe,R);else{ke=ke+_e.size;const Ee=Math.round(ke/R.size*100);m(He=>He.map(Ie=>Ie.file===R?{...Ie,progress:Ee,session:je?.data?.sessionId}:Ie))}})}if(!Pe){const Me={method:"GET",headers:{...b,sessionId:t},credentials:"include"};await fetch(`${e}${hl.upload}${Jx.pathForGetFile}${je?.data?.sessionId}`,Me).then(_e=>_e.json()).then(_e=>{m(Le=>Le.filter(Ne=>Ne.session!==je?.data?.sessionId));const Be={session:je?.data?.sessionId,concluded:_e.concluded,progress:100,fileURL:`${e}${hl.upload}${_e.fileLink}`,fileName:F??"",type:re};c(Le=>(i?f.current=Le.length+1:f.current=1,i?[...Le,Be]:[Be]))}).catch(_e=>{w(_e,R)})}}else w(`err in ${te} service`,R)}).catch(je=>{w(je,R)})}else a&&a("\u0644\u0637\u0641\u0627 \u0641\u0631\u0645\u062A \u0645\u0646\u0627\u0633\u0628 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F.")}}catch(E){console.log("Error",E)}}return{APIURL:e,uploadingFiles:p,files:s,removeFile:y,handleFileChange:S,fileExtension:Ga}}export{DEe as KdAdvanceFileUploader,JWe as KdAlert,aYe as KdCaptcha,UEe as KdChart2D,WEe as KdChart3D,lYe as KdDrawer,d6 as KdDropDownField,PEe as KdFileUploader,u6 as KdFormContainer,uEe as KdFormField,t7e as KdGridHeader,e7e as KdGridPanel,HHe as KdHtmlEditor,JHe as KdImageBox,oYe as KdLanguageChange,dEe as KdLazyDropDownField,tYe as KdLoading,Q9e as KdMenubar,I7 as KdModal,L7 as KdPanelWrapper,eYe as KdRadioListCustom,Y7 as KdSearchableInput,fEe as KdSearchableInputField,qWe as KdStepContent,XWe as KdStepList,KWe as KdStepRoot,ZWe as KdStepTrigger,sYe as KdStyledComponent,HWe as KdTabsContent,VWe as KdTabsList,zWe as KdTabsRoot,YWe as KdTabsTrigger,mEe as KdTagBoxInput,V7e as KdTree,pEe as KdTreeField,TEe as KdTypography,Oke as KdpaAccordion,Pke as KdpaAccordionDetails,Mke as KdpaAccordionSummary,Sle as KdpaAlert,Cle as KdpaAlertTitle,pg as KdpaAutoComplete,qL as KdpaAvatar,kle as KdpaBadge,Zye as KdpaButton,Jye as KdpaCheckBox,Ple as KdpaChip,o0e as KdpaCircularProgress,_4 as KdpaCollapse,aT as KdpaCollapseTransitions,o1e as KdpaCopyToClipboard,Aye as KdpaDatePicker,Gye as KdpaDateTimePicker,sEe as KdpaDialog,N4 as KdpaDivider,Mxe as KdpaDropDownLazy,dxe as KdpaDropZone,l0e as KdpaFade,rEe as KdpaFileUploader,iEe as KdpaFormContainer,O4 as KdpaFormControl,qye as KdpaFormControlLabel,aEe as KdpaFormField,Jke as KdpaFullScreenDialog,Kk as KdpaGrid,Ele as KdpaGridBadge,c0e as KdpaGrow,P4 as KdpaIconButton,a1e as KdpaInlineSpinner,Hm as KdpaInput,tce as KdpaInputLabel,nce as KdpaInputMultiline,s1e as KdpaLoading,oT as KdpaMenuItem,X1e as KdpaModal,K1e as KdpaModalImage,RL as KdpaMuiBadge,q1e as KdpaPaginationGrid,ax as KdpaPrimaryButton,GL as KdpaRadio,rce as KdpaRadioGroup,qke as KdpaRtlProvider,mg as KdpaSecondaryButton,tEe as KdpaSegment,M4 as KdpaSelect,l1e as KdpaSkeleton,u0e as KdpaSlide,G1e as KdpaSlider,t0e as KdpaSweetAlertConfirm,n0e as KdpaSweetAlertDelete,r0e as KdpaSweetAlertOK,oce as KdpaSwitch,a0e as KdpaTab,s0e as KdpaTabs,Ake as KdpaThemeProvider,mme as KdpaTimePicker,jl as KdpaTooltip,J1e as KdpaTree,Tke as KdpaTreeSelect,Ya as KdpaTypography,I2 as KdpaUploadedFile,R2 as KdpaUploadingFile,GP as KdpaUseFileUploadHook,d0e as KdpaZoom,Ga as fileExtension,Sd as pathFile,Jx as pathServicesUpload,hl as serviceName};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./kdpaAdvancedList.scss";
|
|
2
|
+
interface KdpaAdvancedListProps {
|
|
3
|
+
components: any;
|
|
4
|
+
pagination: any;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
selection: any;
|
|
7
|
+
ordering: any;
|
|
8
|
+
columns: any;
|
|
9
|
+
rows: any;
|
|
10
|
+
}
|
|
11
|
+
declare const KdpaAdvancedList: ({ components, pagination, selection, ordering, loading, columns, rows, ...rest }: KdpaAdvancedListProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default KdpaAdvancedList;
|
|
13
|
+
//# sourceMappingURL=KdpaAdvancedList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaAdvancedList.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedList/KdpaAdvancedList.tsx"],"names":[],"mappings":"AAOA,OAAO,yBAAyB,CAAC;AAsCjC,UAAU,qBAAqB;IAC7B,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,GAAG,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,GAAG,CAAC;CACX;AAED,QAAA,MAAM,gBAAgB,qFASnB,qBAAqB,4CAoEvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import KdpaAdvancedList from "./KdpaAdvancedList";
|
|
3
|
+
declare const meta: Meta<typeof KdpaAdvancedList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof KdpaAdvancedList>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
//# sourceMappingURL=KdpaAdvancedList.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaAdvancedList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedList/KdpaAdvancedList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAIlD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAGvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AA0D/C,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EditorProps } from "@monaco-editor/react";
|
|
2
|
+
export type KdpaCodeEditorProps = EditorProps;
|
|
3
|
+
declare function KdpaCodeEditor(props: KdpaCodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default KdpaCodeEditor;
|
|
5
|
+
//# sourceMappingURL=KdpaCodeEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaCodeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/KdpaCodeEditor.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAMjD;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import KdpaCodeEditor from "./KdpaCodeEditor";
|
|
3
|
+
declare const meta: Meta<typeof KdpaCodeEditor>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof KdpaCodeEditor>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Secondary: Story;
|
|
8
|
+
//# sourceMappingURL=KdpaCodeEditor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaCodeEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/KdpaCodeEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAGrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaDataGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/KdpaDataGrid.tsx"],"names":[],"mappings":"AAEA,OAAO,iBAAiB,CAAC;AAEzB,iBAAS,YAAY,CAAC,KAAK,EAAE,GAAG,2CAE/B;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import KdpaDataGrid from "./KdpaDataGrid";
|
|
3
|
+
declare const meta: Meta<typeof KdpaDataGrid>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof KdpaDataGrid>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
//# sourceMappingURL=KdpaDataGrid.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaDataGrid.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/KdpaDataGrid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAInC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAwE3C,eAAO,MAAM,OAAO,EAAE,KAyBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Temp.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Alert/Temp.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU,yDA2Gf,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface KdFormFieldProps {
|
|
3
|
+
name: string;
|
|
4
|
+
rules?: any;
|
|
5
|
+
Component: React.ElementType;
|
|
6
|
+
autoComplete?: boolean;
|
|
7
|
+
onChange?: (e: unknown) => void;
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare function KdpaFormField({ name, rules, Component, ...props }: KdFormFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default KdpaFormField;
|
|
12
|
+
//# sourceMappingURL=KdpaFormField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaFormField.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Form/KdFormField/KdpaFormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,CAAC,CAAC,EAAE,MAAM,GAAI,GAAG,CAAA;CAClB;AAED,iBAAS,aAAa,CAAC,EACrB,IAAS,EACT,KAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA6BlB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/GridPanel/PanelWrapper.tsx"],"names":[],"mappings":";AAGA,
|
|
1
|
+
{"version":3,"file":"PanelWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/GridPanel/PanelWrapper.tsx"],"names":[],"mappings":";AAGA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,iBAAS,YAAY,CAAC,EAAE,IAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAehG;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -6,8 +6,9 @@ export interface KdModalProps extends Omit<DialogProps, "open"> {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
hasHeader?: boolean;
|
|
9
|
+
backdropClick?: boolean;
|
|
9
10
|
[x: string]: any;
|
|
10
11
|
}
|
|
11
|
-
declare function KdModal({ title, children, onClose, isOpen, fullWidth, hasHeader, ...props }: KdModalProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function KdModal({ title, children, onClose, isOpen, fullWidth, hasHeader, backdropClick, ...props }: KdModalProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default KdModal;
|
|
13
14
|
//# sourceMappingURL=KdModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdModal.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Modal/KdModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,iBAAS,OAAO,CAAC,EACf,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAgB,EAChB,SAAgB,EAChB,GAAG,KAAK,EACT,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"KdModal.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Modal/KdModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,iBAAS,OAAO,CAAC,EACf,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAgB,EAChB,SAAgB,EAChB,aAAoB,EACpB,GAAG,KAAK,EACT,EAAE,YAAY,2CA+Cd;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useKdTreeHelper: () => {
|
|
2
|
+
renderTreeCheckBox: (data: unknown[], valueField: string, labelField: string, parentField: string, iconField?: string) => any[];
|
|
3
|
+
buildTree: (flatTree?: never[], parent?: undefined) => any[];
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=useKdTreeHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKdTreeHelper.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Tree/useKdTreeHelper.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;+BAElB,OAAO,EAAE,cACH,MAAM,cACN,MAAM,eACL,MAAM,cACP,MAAM;;CAmCrB,CAAC"}
|
package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DroppedFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,aAAa,GACd,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DroppedFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,aAAa,GACd,EAAE,iBAAiB,2CA8DnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TypeUploadHandler } from "../KdFileUploader/KdFileUploader";
|
|
2
|
+
interface DroppedFilesProps {
|
|
3
|
+
item: any;
|
|
4
|
+
uploadHandler?: TypeUploadHandler;
|
|
5
|
+
}
|
|
6
|
+
export declare function CircularProgressWithLabel(props: any): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function DroppingFiles({ item }: DroppedFilesProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=DroppingFiles.d.ts.map
|
package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DroppingFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,UAAU,iBAAiB;IACzB,IAAI,EAAE,GAAG,CAAC;IACV,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,2CAsBnD;AACD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,iBAAiB,2CA2ChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadedItems.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdFileUploader/UploadedItems.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,iBAAS,aAAa,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"UploadedItems.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdFileUploader/UploadedItems.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,iBAAS,aAAa,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CA8D3E;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type TypeAcceptUploader = {
|
|
2
|
+
image?: string[] | "ALL";
|
|
3
|
+
video?: string[] | "ALL";
|
|
4
|
+
text?: string[] | "ALL";
|
|
5
|
+
compress?: string[] | "ALL";
|
|
6
|
+
};
|
|
7
|
+
export declare const fileExtension: {
|
|
8
|
+
image: string[];
|
|
9
|
+
text: string[];
|
|
10
|
+
video: string[];
|
|
11
|
+
compress: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare const pathFile: {
|
|
14
|
+
streamPath: string;
|
|
15
|
+
thumbnailstreamPath: string;
|
|
16
|
+
tempPath: string;
|
|
17
|
+
thumbnailTempPath: string;
|
|
18
|
+
};
|
|
19
|
+
export interface KdUseFileUploadType {
|
|
20
|
+
APIURL?: string;
|
|
21
|
+
UPLOAD_REST_URL?: string;
|
|
22
|
+
sessionId?: string;
|
|
23
|
+
fileSizeLimit: number;
|
|
24
|
+
fileCountLimit: number;
|
|
25
|
+
validUploadType: string[];
|
|
26
|
+
}
|
|
27
|
+
declare function KdUseFileUpload({ APIURL, UPLOAD_REST_URL, sessionId, fileSizeLimit, fileCountLimit, validUploadType, }: KdUseFileUploadType): {
|
|
28
|
+
APIURL: string;
|
|
29
|
+
UPLOAD_REST_URL: string;
|
|
30
|
+
uploadingFiles: {
|
|
31
|
+
session?: string | undefined;
|
|
32
|
+
progress: number;
|
|
33
|
+
type: string;
|
|
34
|
+
file: File;
|
|
35
|
+
}[];
|
|
36
|
+
files: {
|
|
37
|
+
session: string;
|
|
38
|
+
progress?: number | undefined;
|
|
39
|
+
type?: string | undefined;
|
|
40
|
+
fileURL?: string | undefined;
|
|
41
|
+
file?: File | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
removeFile: (session: string) => void;
|
|
44
|
+
handleFileChange: (e: React.ChangeEvent<HTMLInputElement>, internalValidUploadType: TypeAcceptUploader) => Promise<void>;
|
|
45
|
+
fileExtension: {
|
|
46
|
+
image: string[];
|
|
47
|
+
text: string[];
|
|
48
|
+
video: string[];
|
|
49
|
+
compress: string[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default KdUseFileUpload;
|
|
53
|
+
//# sourceMappingURL=KdUseFileUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdUseFileUpload.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;CAoCzB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAsCF,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,iBAAS,eAAe,CAAC,EACvB,MAA2C,EAC3C,eAAyD,EACzD,SAAmD,EACnD,aAAiB,EACjB,cAAmB,EACnB,eAAsD,GACvD,EAAE,mBAAmB;;;;;kBAaN,MAAM;cACV,MAAM;cACN,IAAI;;;iBAZD,MAAM;;;;;;0BAqBU,MAAM;0BAe9B,MAAM,WAAW,CAAC,gBAAgB,CAAC,2BACb,kBAAkB;;;;;;;EA6O9C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../../../src/designerKit/hooks/useFileUpload.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;CACzB,CAAC;AA8BF,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,iBAAS,qBAAqB,CAAC,EAE7B,MAAmD,EACnD,SAAmD,EACnD,aAAiB,EACjB,cAAmB,EACnB,eAA8D,EAC9D,QAAe,EACf,OAAO,GACR,EAAE,yBAAyB;;;;kBAiBZ,MAAM;cACV,MAAM;cACN,IAAI;;;iBAhBD,MAAM;;;;;;;;0BAsBU,MAAM;0BAgB9B,MAAM,WAAW,CAAC,gBAAgB,CAAC,4BACZ,kBAAkB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../../../src/designerKit/hooks/useFileUpload.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;CACzB,CAAC;AA8BF,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,iBAAS,qBAAqB,CAAC,EAE7B,MAAmD,EACnD,SAAmD,EACnD,aAAiB,EACjB,cAAmB,EACnB,eAA8D,EAC9D,QAAe,EACf,OAAO,GACR,EAAE,yBAAyB;;;;kBAiBZ,MAAM;cACV,MAAM;cACN,IAAI;;;iBAhBD,MAAM;;;;;;;;0BAsBU,MAAM;0BAgB9B,MAAM,WAAW,CAAC,gBAAgB,CAAC,4BACZ,kBAAkB;;;;;;;;EA+Q/C;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface RenderTreeType {
|
|
2
|
+
label: JSX.Element;
|
|
3
|
+
value: string;
|
|
4
|
+
parent?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BuildTreeType {
|
|
7
|
+
label: JSX.Element;
|
|
8
|
+
value: string;
|
|
9
|
+
parent?: string;
|
|
10
|
+
children?: RenderTreeType[];
|
|
11
|
+
}
|
|
12
|
+
export declare const useTreeHelper: () => {
|
|
13
|
+
renderTreeToSpecificFieldName: (data: unknown[], valueField: string, labelField: string, parentField: string, iconField?: string) => RenderTreeType[];
|
|
14
|
+
buildTree: (flatTree?: RenderTreeType[], parent?: undefined) => BuildTreeType[];
|
|
15
|
+
findAllExpanded: (nodes: RenderTreeType[], nodeValue?: string) => string[];
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useTreeHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTreeHelper.d.ts","sourceRoot":"","sources":["../../../../src/designerKit/utils/useTreeHelper.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa;0CAEhB,OAAO,EAAE,cACH,MAAM,cACN,MAAM,eACL,MAAM,cACP,MAAM;2BAmBS,cAAc,EAAE;6BAgBb,cAAc,EAAE,cAAc,MAAM;CAYrE,CAAC"}
|