@sheetxl/studio-vanilla 0.4.8 → 0.4.9
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/browser/cjs/{CHSE1pa8SMApg4BM.cjs → 3GhIDU8JK1oBJrCA.cjs} +2 -2
- package/browser/cjs/{BYhOQCFEzewgsKDn.cjs → 5hPVyVAXmITQCRAG.cjs} +2 -2
- package/browser/cjs/{3nTDo2EiTknjadbt.cjs → 7PlrLPQx1lct0mdN.cjs} +1 -1
- package/browser/cjs/{C6nZKAevPqj8zJY-.cjs → B4K6KuggSdXj-V8g.cjs} +2 -2
- package/browser/cjs/{DWTMnPR33rKK87Xt.cjs → B5Qc3gXLEhscRsFm.cjs} +4 -4
- package/browser/cjs/{BCnlTOmUDmizyvVV.cjs → B7eW1GQgFvphlLGY.cjs} +2 -2
- package/browser/cjs/{CD_HItzF2RneMAER.cjs → BQPFxJ77OaD_sBIX.cjs} +2 -2
- package/browser/cjs/{i0D2haODisHW8uGg.cjs → Ba3O1f0NYbzEwNAd.cjs} +1 -1
- package/browser/cjs/{Cqymi9AOXO_JYvY4.cjs → BoojmbbjqixMVu2H.cjs} +2 -2
- package/browser/cjs/{CE5NVYltiso41NzK.cjs → CSGVl8EBCRhxcFm1.cjs} +1 -1
- package/browser/cjs/{6Wu3sLyx-7NM6CXS.cjs → CalnqtYH48_x2rcI.cjs} +8 -8
- package/browser/cjs/{euAV1pPrNOIb6DV4.cjs → CjDsO4sQWUHbIX1N.cjs} +2 -2
- package/browser/cjs/{BIPxYhhi1F-y0gSm.cjs → CsCaFaiySArzEfdH.cjs} +2 -2
- package/browser/cjs/{BqLDj2GlSzX8ZN3l.cjs → D6AUUY9awlTRjjqd.cjs} +1 -1
- package/browser/cjs/{oNi7wirDlZ81Lm0Z.cjs → D8lN5Mv3J4SwSpLP.cjs} +1 -1
- package/browser/cjs/{CTXKzcsm-W1ujL_U.cjs → D9RQ5oYv7U38wSI7.cjs} +3 -3
- package/browser/cjs/{CcQjGGiCx6Qz7yJ4.cjs → DCd2rPNFkSHDaRcM.cjs} +1 -1
- package/browser/cjs/{z1aNSOtWsEE21p2H.cjs → DGQrcBvjSGwwoZEv.cjs} +2 -2
- package/browser/cjs/{DMUSzq5n2k0WNFw6.cjs → DIXyMJKaeCGuWxjZ.cjs} +1 -1
- package/browser/cjs/{Dy4SB47It0LGbh2I.cjs → Dmw7xaaV85s72QZe.cjs} +1 -1
- package/browser/cjs/{D6pPBbRPLTNFSXuO.cjs → DzCXPcqV1oKbCcLO.cjs} +1 -1
- package/browser/cjs/{Dds58NEqJ0OalWH3.cjs → EoaX6dPoS-Mb-ITO.cjs} +2 -2
- package/browser/cjs/{B11W4AIKbkJQG6ug.cjs → Y6OgkWqbIB761o5q.cjs} +2 -2
- package/browser/cjs/{VJLb1uMfbKAUW1QF.cjs → gbABnN2zW1kHo3_I.cjs} +3 -3
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{bHWvGntvmuk8t7sX.cjs → kfV5Cli9oE9IsCtx.cjs} +2 -2
- package/browser/cjs/{C2B3wbeahcHlbOBZ.cjs → nURb18uhj9rScsHa.cjs} +2 -2
- package/browser/esm/{D_FC0zteMRPriWTD.mjs → 2NQDbhor1Nuzndgq.mjs} +1 -1
- package/{cdn/assets/CPi83FXApMlTaVbs.js → browser/esm/4aC35Q2XPOwifBRR.mjs} +1 -1
- package/{cdn/assets/CjVsKZEPAncg5mIk.js → browser/esm/5zFDFBAgT-aPgQQ0.mjs} +1 -1
- package/browser/esm/{Ckz080o58XOgRhqj.mjs → B3I_TrFN_pAK5Mdh.mjs} +2 -2
- package/browser/esm/{eXQ_1uhRMyN-hfDZ.mjs → BD9GKsR-k4aEK2tx.mjs} +1 -1
- package/browser/esm/{EUFvcP5R4HFDLn2V.mjs → BQpsMTJvguy6LMIq.mjs} +2 -2
- package/browser/esm/{DQ0Li3WfKbZxSFuB.mjs → BfCWogOnq8R-c3dD.mjs} +2 -2
- package/browser/esm/{cSe92c0HnvbRwiVM.mjs → BkGQPKMRPIVUVTLO.mjs} +64 -64
- package/browser/esm/{B7qUiL1xPnzfOHZw.mjs → C81J50HcankGTOIj.mjs} +1 -1
- package/browser/esm/{DnWiOUNTPvi_llPT.mjs → CO_s27056nua6qzN.mjs} +1 -1
- package/browser/esm/{BM74iVi-iQkHbrfo.mjs → CPEjlDUTxckVS1rp.mjs} +2 -2
- package/browser/esm/{BP8kNG31HYSkk1VW.mjs → CY7astxzrfb7uZqy.mjs} +4 -4
- package/browser/esm/{6KgR81NK4yzANTBT.mjs → CZVzRhflTpwAAl1o.mjs} +2 -2
- package/browser/esm/{h4NbNvV8KCL9Tl1v.mjs → CaWZXQsmKl4hTNq5.mjs} +3 -3
- package/{cdn/assets/BEFQcBJ71bA297Zu.js → browser/esm/CxcLNXXaxyFyUzyb.mjs} +1 -1
- package/browser/esm/{4C7Rg83L5RYFoOvl.mjs → D0icxW0WVNoeVRLH.mjs} +2 -2
- package/browser/esm/{2RGq163l1wYJKGsa.mjs → DFQvqk5r1uf_z0h_.mjs} +9 -9
- package/{cdn/assets/xlL3Ai-ka9qMVeua.js → browser/esm/DRL5s4S0fIXi1aU7.mjs} +1 -1
- package/browser/esm/{DyUvHYGMNA9W2zL6.mjs → DRmeb1VC4YCzKKWd.mjs} +1 -1
- package/browser/esm/{DXyJaUwHLq39-Jfa.mjs → DTwhl4v5YnZrUSgI.mjs} +2 -2
- package/browser/esm/{BEIn7yNWsHNJisB6.mjs → DmpPAs6w-XNWGTIN.mjs} +3 -3
- package/browser/esm/{B1CYiJmSpyx4TD5r.mjs → Dx-GS3XDBkRaMNG-.mjs} +3 -3
- package/browser/esm/{CDkmbShJijwq4EBo.mjs → V5CA7xqGOB7-Qx4Y.mjs} +6 -6
- package/browser/esm/{ClXspoNrNV-A8BaL.mjs → gsfI5CGYr7LCQxRx.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{C_hRuPoaT857EnC1.mjs → tOBqasyBAnd7O4qE.mjs} +2 -2
- package/browser/esm/{CA_DRvBOFOlhezCt.mjs → tPrnEcHW_czJDZOT.mjs} +2 -2
- package/cdn/assets/{D_FC0zteMRPriWTD.js → 2NQDbhor1Nuzndgq.js} +1 -1
- package/{browser/esm/CPi83FXApMlTaVbs.mjs → cdn/assets/4aC35Q2XPOwifBRR.js} +1 -1
- package/{browser/esm/CjVsKZEPAncg5mIk.mjs → cdn/assets/5zFDFBAgT-aPgQQ0.js} +1 -1
- package/cdn/assets/{CtDntnnwJW1rZ3sM.js → B0w_moB3pDJd-a6V.js} +2 -2
- package/cdn/assets/{eXQ_1uhRMyN-hfDZ.js → BD9GKsR-k4aEK2tx.js} +1 -1
- package/cdn/assets/{O1XID2whLDb1cTWS.js → BJVOhUH_XL03H6ZD.js} +2 -2
- package/cdn/assets/{C1x5-f1q8NeSwRA2.js → BWJOkXXB6Tr-jYUS.js} +3 -3
- package/cdn/assets/{DppHXtCDGzttFdS4.js → BapFqJyAb3cblvJM.js} +2 -2
- package/cdn/assets/{CpVan9KpuEGXgwIK.js → Bg88bG-JM9EHeyYX.js} +2 -2
- package/cdn/assets/{B7qUiL1xPnzfOHZw.js → C81J50HcankGTOIj.js} +1 -1
- package/cdn/assets/{DnWiOUNTPvi_llPT.js → CO_s27056nua6qzN.js} +1 -1
- package/cdn/assets/{CuG5WoZ4OOj9RCsv.js → CXa9u-7w14dyPYxk.js} +3 -3
- package/cdn/assets/{Bvy1txLm7c3LbPL7.js → CkcETdiKdTsZAzma.js} +6 -6
- package/{browser/esm/BEFQcBJ71bA297Zu.mjs → cdn/assets/CxcLNXXaxyFyUzyb.js} +1 -1
- package/cdn/assets/{BXBP2rNGQxrgUPvU.js → D0PaU6F-TNaTWj-a.js} +2 -2
- package/cdn/assets/{CLA1BGtRbWm0K0U0.js → D4hoypx6_sZbvrC_.js} +2 -2
- package/cdn/assets/{BgChN-ZVYUOMDX9_.js → D5exf1RvCqvUoJ3X.js} +4 -4
- package/cdn/assets/{B2hDWpWSEoChxhVY.js → DKLitAhDj5Ibh2cc.js} +8 -8
- package/{browser/esm/xlL3Ai-ka9qMVeua.mjs → cdn/assets/DRL5s4S0fIXi1aU7.js} +1 -1
- package/cdn/assets/{DyUvHYGMNA9W2zL6.js → DRmeb1VC4YCzKKWd.js} +1 -1
- package/cdn/assets/{DTvvMKZZfsVRhbow.js → DYkBvlMlZjOASUJs.js} +2 -2
- package/cdn/assets/{C5NMOq74C3Sme49x.js → ON5--a75QdEU99y_.js} +3 -3
- package/cdn/assets/{Dbd0AFDlzQDW0tOg.js → PIZDjyqIbvmHXs1T.js} +2 -2
- package/cdn/assets/{DuU1-7vd87A1wfGJ.js → TOkIJFYhNg78FdJa.js} +2 -2
- package/cdn/assets/{g4FhlroGKmJM7Utd.js → b9dlFmoFz8tJhV0Z.js} +2 -2
- package/cdn/assets/{tJI1G_FjDgqWo3rJ.js → d1PG-QPA1GcQ_RuH.js} +64 -64
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),t=require("@sheetxl/sdk"),n=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),t=require("@sheetxl/sdk"),n=require("./CalnqtYH48_x2rcI.cjs"),c=({range:d,options:a,cell:b,onDone:s,...C})=>{const[i,l]=x.useState(a??t.Sort.DefaultRangeOptions),u=n.fe(e=>{let r=null;e==="Sort"&&(r={...a,options:i}),s?.(r)},[i,s,a]);return o.jsx(n.b4,{title:"Sort",options:["Sort","Cancel"],onDone:u,...C,children:o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column"},children:[o.jsx(n.FormControlLabel,{control:o.jsx(n.Checkbox,{checked:!i.reverse,onChange:()=>l(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),o.jsx(n.FormControlLabel,{control:o.jsx(n.Checkbox,{checked:i.hasHeader,onChange:()=>l(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),o.jsx(n.FormControlLabel,{control:o.jsx(n.Checkbox,{checked:i.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity,onChange:()=>l(e=>({...e,collatorOptions:i.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity?t.Sort.CaseInsensitiveOptions:t.Sort.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),o.jsx(n.FormControlLabel,{control:o.jsx(n.Checkbox,{checked:i.orientation===t.IRange.Orientation.Row,onChange:()=>l(e=>{const r=e.orientation===t.IRange.Orientation.Row?t.IRange.Orientation.Column:t.IRange.Orientation.Row;return{...d.getDefaultSortCriteria(r,b).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:r}})}),label:"Row Sort",labelPlacement:"end"}),o.jsx(n.FormControlLabel,{control:o.jsx(n.Checkbox,{checked:i.includeHidden,onChange:()=>l(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=c,exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),a=require("react"),n=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),a=require("react"),n=require("./CalnqtYH48_x2rcI.cjs"),L=["Input"],N=a.memo(a.forwardRef((y,O)=>{const{initialValue:b="",onOption:k,onValidateOption:l,onInputOption:s,onValidateInputOption:r,onDone:u,inputProps:c,inputLabel:T,inputType:w,inputPlaceHolder:F,options:d=L,autoFocusSel:S=".autoFocus",cancelOption:g,defaultOption:f=d?.[0],...P}=y,[v,C]=a.useState(!1),[e,I]=a.useState(b),[j,V]=a.useState(""),[q,B]=a.useState(!0),i=n.kn(async(t,o)=>{if(!r)return!0;const h=await r?.(t,o);V(h?.message??"");const x=h?.valid??!0;return B(x),x},[r]),m=n.kn(async t=>{s?.(e,t)},[e,s,u,k,g,f]),D=n.kn(async t=>{t.keyCode===n.ir.Enter&&await i?.(e,null)},[e,m]),M=n.kn(t=>{I(t.target.value),i?.(t.target.value,null)},[l]),H=n.kn(async t=>{let o=await i(e,t);try{o!==!1&&(o=await i(e,t))}catch{}return o??!0},[e,l]);return p.jsx(n.b4,{options:d,onDone:u,onOption:(t,o)=>{o||m(t)},onValidateOption:H,cancelOption:g,defaultOption:f,autoFocusSel:S,ref:O,...P,children:p.jsx(n.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:p.jsx(n.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:p.jsx(n.TextField,{onFocus:t=>{v||t.target?.select(),C(!0)},type:w,label:T,helperText:j||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:q?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:F,spellCheck:!1,autoComplete:"off",...c,className:n.Go("autoFocus",c?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",n.Yb(5))}, ${n.alpha("#fff",n.Yb(5))})`}}},value:e,onChange:M,onKeyDown:D,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=N;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),t=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),t=require("./CalnqtYH48_x2rcI.cjs"),h=a.memo(p=>{const{title:f,onHide:y,autoFocusSel:b=".range-input input",context:j,notifier:l=t.bu,command:r,commands:c,...S}=p,[w,d]=a.useState(!1),[g,x]=a.useState(!1),m=a.useRef(null),[F,C]=a.useReducer(e=>e+1,0),[v,{width:H}]=t.gc();t.Ji(r);const i=j??r.context(),o=i.table(),[B,R]=a.useState(()=>o?i.getNames().getRanges(o.getRange()):null),N=a.useMemo(()=>o?.getName()??"",[o]);t.cn(i.table(),{onAnchorCoordsChange(e){R(i.getNames().getRanges(e.getRange()))},onProtectedChange(e){C()}});const T=t.fe(e=>{i?.table().setName(e)},[i]),D=t.fe(e=>{i?.table().resize(e.at(0))},[i]);let u=null;return i.table()||(u=n.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:n.jsx("div",{children:"No table selected"})})),n.jsx(t.lS,{ref:m,title:f??"Table Details",initialPosition:{y:"35"},autoFocusSel:b,onHide:y,onFocus:()=>d(!0),onBlur:e=>{m?.current?.contains(e.relatedTarget)||d(!1)},PaperProps:{elevation:w?3:1},...S,children:n.jsxs(t.DialogContent,{dividers:!0,ref:v,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[n.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:i.table()?1:0},children:[n.jsx(t.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:n.jsx(t.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:n.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[n.jsx(t.sM,{formName:"name",defaultInput:N,value:o?.getName()??"No table",onChangeInput:T,onValidate:e=>{o&&o.getName().toLowerCase()===e.toLowerCase()||i?.getNames().validateName(e)},disabled:o?.isProtected()??!0,onFocus:e=>{g||e.target?.select(),x(!0)}}),n.jsx(t.cM,{formName:"range",value:B,onChangeInput:D,resolvedAddress:i.getNames().getRanges.bind(i.getNames()),disabled:o?.isProtected()??!0,onFocus:e=>{g||e.target?.select(),x(!0)}})]})})}),n.jsxs(t.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[n.jsx(t.$t,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),n.jsx(t.BR,{disabled:o?.isProtected(),styleOptions:o?.getStyleOptions()??null,onStyleOptionsChange:e=>{o.updateStyleOptions(e)},showHeaderRow:o?.getShowHeaders(),onShowHeaderRowChange:e=>{try{o.setShowHeaders(e)}catch(s){l.showError(s)}},showTotalRow:o?.getShowTotals(),onShowTotalRowChange:e=>{try{o.setShowTotals(e)}catch(s){l.showError(s)}},showFilterButton:o?.getFilter()?o.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{o.setShowFilterButton(e)}catch(s){l.showError(s)}}}),n.jsx(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:n.jsx(t.eM,{table:o,styles:i.styles(),bodyStyle:i.bodyStyle(),cellHeight:30,isLive:!0})}),n.jsx(t.$t,{orientation:"horizontal"}),n.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[n.jsx(t.Le,{variant:t.Qt.Menuitem,command:c.getCommand("convertTableToRange"),commandState:o,icon:t.ve(n.jsx(t.W1,{}))}),n.jsx(t.Le,{variant:t.Qt.Menuitem,commandState:o,command:c.getCommand("deleteTable"),icon:t.ve(n.jsx(t.W1,{}))})]})]})]}),u]})})});exports.TableDetailsWindow=h,exports.default=h;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/const m=require("react/jsx-runtime"),l=require("react"),i=require("./6Wu3sLyx-7NM6CXS.cjs"),Wt=require("react-dom"),ce=require("@sheetxl/sdk");function Pt(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const de=Pt(l);function At(e){return i.generateUtilityClass("MuiCollapse",e)}i.generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const It=i.styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,o[r.orientation],r.state==="entered"&&o.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&o.hidden]}})(i.memoTheme(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Nt=i.styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,o)=>o.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ft=i.styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,o)=>o.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Fe=de.forwardRef(function(e,o){const r=i.useDefaultProps({props:e,name:"MuiCollapse"}),{addEndListener:t,children:n,className:a,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:x,onExit:E,onExited:y,onExiting:b,orientation:v="vertical",style:k,timeout:h=i.duration.standard,TransitionComponent:j=i.Transition,...C}=r,W={...r,orientation:v,collapsedSize:s},O=(S=>{const{orientation:U,classes:V}=S,X={root:["root",`${U}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${U}`],wrapperInner:["wrapperInner",`${U}`]};return i.composeClasses(X,At,V)})(W),q=i.useTheme(),z=i.useTimeout(),I=de.useRef(null),_=de.useRef(),G=typeof s=="number"?`${s}px`:s,J=v==="horizontal",re=J?"width":"height",N=de.useRef(null),$=i.useForkRef(o,N),w=S=>U=>{if(S){const V=N.current;U===void 0?S(V):S(V,U)}},T=()=>I.current?I.current[J?"clientWidth":"clientHeight"]:0,M=w((S,U)=>{I.current&&J&&(I.current.style.position="absolute"),S.style[re]=G,p&&p(S,U)}),F=w((S,U)=>{const V=T();I.current&&J&&(I.current.style.position="");const{duration:X,easing:ie}=i.getTransitionProps({style:k,timeout:h,easing:c},{mode:"enter"});if(h==="auto"){const pe=q.transitions.getAutoHeightDuration(V);S.style.transitionDuration=`${pe}ms`,_.current=pe}else S.style.transitionDuration=typeof X=="string"?X:`${X}ms`;S.style[re]=`${V}px`,S.style.transitionTimingFunction=ie,x&&x(S,U)}),H=w((S,U)=>{S.style[re]="auto",f&&f(S,U)}),B=w(S=>{S.style[re]=`${T()}px`,E&&E(S)}),ae=w(y),P=w(S=>{const U=T(),{duration:V,easing:X}=i.getTransitionProps({style:k,timeout:h,easing:c},{mode:"exit"});if(h==="auto"){const ie=q.transitions.getAutoHeightDuration(U);S.style.transitionDuration=`${ie}ms`,_.current=ie}else S.style.transitionDuration=typeof V=="string"?V:`${V}ms`;S.style[re]=G,S.style.transitionTimingFunction=X,b&&b(S)});return m.jsx(j,{in:d,onEnter:M,onEntered:H,onEntering:F,onExit:B,onExited:ae,onExiting:P,addEndListener:S=>{h==="auto"&&z.start(_.current||0,S),t&&t(N.current,S)},nodeRef:N,timeout:h==="auto"?null:h,...C,children:(S,{ownerState:U,...V})=>m.jsx(It,{as:u,className:i.clsx(O.root,a,{entered:O.entered,exited:!d&&G==="0px"&&O.hidden}[S]),style:{[J?"minWidth":"minHeight"]:G,...k},ref:$,ownerState:{...W,state:S},...V,children:m.jsx(Nt,{ownerState:{...W,state:S},className:O.wrapper,ref:I,children:m.jsx(Ft,{ownerState:{...W,state:S},className:O.wrapperInner,children:n})})})})});function qt(e){return i.generateUtilityClass("MuiCard",e)}Fe&&(Fe.muiSupportAuto=!0),i.generateUtilityClasses("MuiCard",["root"]);const Ht=i.styled(i.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})({overflow:"hidden"}),Bt=de.forwardRef(function(e,o){const r=i.useDefaultProps({props:e,name:"MuiCard"}),{className:t,raised:n=!1,...a}=r,s={...r,raised:n},u=(c=>{const{classes:d}=c;return i.composeClasses({root:["root"]},qt,d)})(s);return m.jsx(Ht,{className:i.clsx(u.root,t),elevation:n?8:void 0,ref:o,ownerState:s,...a})});function zt(e){return i.generateUtilityClass("MuiCardActions",e)}i.generateUtilityClasses("MuiCardActions",["root","spacing"]);const _t=i.styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,!r.disableSpacing&&o.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ut=de.forwardRef(function(e,o){const r=i.useDefaultProps({props:e,name:"MuiCardActions"}),{disableSpacing:t=!1,className:n,...a}=r,s={...r,disableSpacing:t},u=(c=>{const{classes:d,disableSpacing:p}=c,f={root:["root",!p&&"spacing"]};return i.composeClasses(f,zt,d)})(s);return m.jsx(_t,{className:i.clsx(u.root,n),ownerState:s,ref:o,...a})}),Ge=typeof i.globalCss({})=="function",Vt=(e,o)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...o&&!e.vars&&{colorScheme:e.palette.mode}}),$t=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),tt=(e,o=!1)=>{const r={};o&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const u=e.getColorSchemeSelector(a);u.startsWith("@")?r[u]={":root":{colorScheme:s.palette?.mode}}:r[u.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let t={html:Vt(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...$t(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const n=e.components?.MuiCssBaseline?.styleOverrides;return n&&(t=[t,n]),t},Ie="mui-ecs",Kt=i.globalCss(Ge?({theme:e,enableColorScheme:o})=>tt(e,o):({theme:e})=>(o=>{const r=tt(o,!1),t=Array.isArray(r)?r[0]:r;return!o.vars&&t&&(t.html[`:root:has(${Ie})`]={colorScheme:o.palette.mode}),o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([n,a])=>{const s=o.getColorSchemeSelector(n);s.startsWith("@")?t[s]={[`:root:not(:has(.${Ie}))`]:{colorScheme:a.palette?.mode}}:t[s.replace(/\s*&/,"")]={[`&:not(:has(.${Ie}))`]:{colorScheme:a.palette?.mode}}}),r})(e));function Gt(e){const o=i.useDefaultProps({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:t=!1}=o;return m.jsxs(de.Fragment,{children:[Ge&&m.jsx(Kt,{enableColorScheme:t}),!Ge&&!t&&m.jsx("span",{className:Ie,style:{display:"none"}}),r]})}const Xt=i.createSvgIcon(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),Zt=l.createContext(null),Be={didCatch:!1,error:null};class Qt extends l.Component{constructor(o){super(o),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Be}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}resetErrorBoundary(){const{error:o}=this.state;if(o!==null){for(var r,t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(r=(t=this.props).onReset)===null||r===void 0||r.call(t,{args:a,reason:"imperative-api"}),this.setState(Be)}}componentDidCatch(o,r){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,o,r)}componentDidUpdate(o,r){const{didCatch:t}=this.state,{resetKeys:n}=this.props;var a,s;t&&r.error!==null&&function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return u.length!==c.length||u.some((d,p)=>!Object.is(d,c[p]))}(o.resetKeys,n)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:n,prev:o.resetKeys,reason:"keys"}),this.setState(Be))}render(){const{children:o,fallbackRender:r,FallbackComponent:t,fallback:n}=this.props,{didCatch:a,error:s}=this.state;let u=o;if(a){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")u=r(c);else if(t)u=l.createElement(t,c);else{if(n===void 0)throw s;u=n}}return l.createElement(Zt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function ht(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(r=ht(e[o]))&&(t&&(t+=" "),t+=r);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function oe(){for(var e,o,r=0,t="";r<arguments.length;)(e=arguments[r++])&&(o=ht(e))&&(t&&(t+=" "),t+=o);return t}let Jt={data:""},Yt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,en=/\/\*[^]*?\*\/| +/g,nt=/\n+/g,ue=(e,o)=>{let r="",t="",n="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+s+";":t+=a[1]=="f"?ue(s,a):a+"{"+ue(s,a[1]=="k"?"":o)+"}":typeof s=="object"?t+=ue(s,o?o.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,u):u?u+" "+c:c)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ue.p?ue.p(a,s):a+":"+s+";")}return r+(o&&n?o+"{"+n+"}":n)+t},te={},gt=e=>{if(typeof e=="object"){let o="";for(let r in e)o+=r+gt(e[r]);return o}return e};function Xe(e){let o=this||{},r=e.call?e(o.p):e;return((s,u,c,d,p)=>{let f=gt(s),x=te[f]||(te[f]=(h=>{let j=0,C=11;for(;j<h.length;)C=101*C+h.charCodeAt(j++)>>>0;return"go"+C})(f));if(!te[x]){let h=f!==s?s:(j=>{let C,W,O=[{}];for(;C=Yt.exec(j.replace(en,""));)C[4]?O.shift():C[3]?(W=C[3].replace(nt," ").trim(),O.unshift(O[0][W]=O[0][W]||{})):O[0][C[1]]=C[2].replace(nt," ").trim();return O[0]})(s);te[x]=ue(p?{["@keyframes "+x]:h}:h,c?"":"."+x)}let E=c&&te.g?te.g:null;return c&&(te.g=te[x]),y=te[x],b=u,v=d,(k=E)?b.data=b.data.replace(k,y):b.data.indexOf(y)===-1&&(b.data=v?y+b.data:b.data+y),x;var y,b,v,k})(r.unshift?r.raw?(t=r,n=[].slice.call(arguments,1),a=o.p,t.reduce((s,u,c)=>{let d=n[c];if(d&&d.call){let p=d(a),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;d=f?"."+f:p&&typeof p=="object"?p.props?"":ue(p,""):p===!1?"":p}return s+u+(d??"")},"")):r.reduce((s,u)=>Object.assign(s,u&&u.call?u(o.p):u),{}):r,(s=>typeof window=="object"?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||Jt)(o.target),o.g,o.o,o.k);var t,n,a}function kt(e,o,r){return o&&function(t,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(e.prototype,o),e}function L(){return L=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},L.apply(this,arguments)}function bt(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function Se(e,o){if(e==null)return{};var r,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)r=a[t],o.indexOf(r)>=0||(n[r]=e[r]);return n}function ot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Xe.bind({g:1}),Xe.bind({k:1});var rt=function(){return""},xt=l.createContext({enqueueSnackbar:rt,closeSnackbar:rt}),ze="@media (max-width:599.95px)",Ne="@media (min-width:600px)",it=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Qe=function(e){return""+it(e.vertical)+it(e.horizontal)},Me=function(e){return!!e||e===0},Te="unmounted",fe="exited",he="entering",ye="entered",at="exiting",Je=function(e){function o(t){var n;n=e.call(this,t)||this;var a,s=t.appear;return n.appearStatus=null,t.in?s?(a=fe,n.appearStatus=he):a=ye:a=t.unmountOnExit||t.mountOnEnter?Te:fe,n.state={status:a},n.nextCallback=null,n}bt(o,e),o.getDerivedStateFromProps=function(t,n){return t.in&&n.status===Te?{status:fe}:null};var r=o.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var n=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==he&&a!==ye&&(n=he):a!==he&&a!==ye||(n=at)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t=this.props.timeout,n=t,a=t;return t!=null&&typeof t!="number"&&typeof t!="string"&&(a=t.exit,n=t.enter),{exit:a,enter:n}},r.updateStatus=function(t,n){t===void 0&&(t=!1),n!==null?(this.cancelNextCallback(),n===he?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===fe&&this.setState({status:Te})},r.performEnter=function(t){var n=this,a=this.props.enter,s=t,u=this.getTimeouts();t||a?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:he},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(u.enter,function(){n.safeSetState({status:ye},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:ye},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},r.performExit=function(){var t=this,n=this.props.exit,a=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:at},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:fe},function(){t.props.onExited&&t.props.onExited(t.node)})})})):this.safeSetState({status:fe},function(){t.props.onExited&&t.props.onExited(t.node)})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},r.setNextCallback=function(t){var n=this,a=!0;return this.nextCallback=function(){a&&(a=!1,n.nextCallback=null,t())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(t,n){this.setNextCallback(n);var a=t==null&&!this.props.addEndListener;this.node&&!a?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),t!=null&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===Te)return null;var n=this.props;return(0,n.children)(t,Se(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},kt(o,[{key:"node",get:function(){var t,n=(t=this.props.nodeRef)===null||t===void 0?void 0:t.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),o}(l.Component);function ge(){}function st(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Ze(e,o){return l.useMemo(function(){return e==null&&o==null?null:function(r){st(e,r),st(o,r)}},[e,o])}function qe(e){var o=e.timeout,r=e.style,t=r===void 0?{}:r,n=e.mode;return{duration:typeof o=="object"?o[n]||0:o,easing:t.transitionTimingFunction,delay:t.transitionDelay}}Je.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ge,onEntering:ge,onEntered:ge,onExit:ge,onExiting:ge,onExited:ge};var yt=function(e){e.scrollTop=e.scrollTop},lt=function(e){return Math.round(e)+"ms"};function ke(e,o){e===void 0&&(e=["all"]);var r=o||{},t=r.duration,n=t===void 0?300:t,a=r.easing,s=a===void 0?"cubic-bezier(0.4, 0, 0.2, 1)":a,u=r.delay,c=u===void 0?0:u;return(Array.isArray(e)?e:[e]).map(function(d){var p=typeof n=="string"?n:lt(n),f=typeof c=="string"?c:lt(c);return d+" "+p+" "+s+" "+f}).join(",")}function wt(e){var o;return((o=e)&&o.ownerDocument||document).defaultView||window}function Re(e,o){if(o){var r=function(t,n){var a,s=n.getBoundingClientRect(),u=wt(n);if(n.fakeTransform)a=n.fakeTransform;else{var c=u.getComputedStyle(n);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var d=0,p=0;if(a&&a!=="none"&&typeof a=="string"){var f=a.split("(")[1].split(")")[0].split(",");d=parseInt(f[4],10),p=parseInt(f[5],10)}switch(t){case"left":return"translateX("+(u.innerWidth+d-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-d)+"px)";case"up":return"translateY("+(u.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(e,o);r&&(o.style.webkitTransform=r,o.style.transform=r)}}var vt=l.forwardRef(function(e,o){var r=e.children,t=e.direction,n=t===void 0?"down":t,a=e.in,s=e.style,u=e.timeout,c=u===void 0?0:u,d=e.onEnter,p=e.onEntered,f=e.onExit,x=e.onExited,E=Se(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=l.useRef(null),b=Ze(r.ref,y),v=Ze(b,o),k=l.useCallback(function(){y.current&&Re(n,y.current)},[n]);return l.useEffect(function(){if(!a&&n!=="down"&&n!=="right"){var h=function(C,W){var O;function q(){for(var z=this,I=arguments.length,_=new Array(I),G=0;G<I;G++)_[G]=arguments[G];clearTimeout(O),O=setTimeout(function(){C.apply(z,_)},W)}return W===void 0&&(W=166),q.clear=function(){clearTimeout(O)},q}(function(){y.current&&Re(n,y.current)}),j=wt(y.current);return j.addEventListener("resize",h),function(){h.clear(),j.removeEventListener("resize",h)}}},[n,a]),l.useEffect(function(){a||k()},[a,k]),l.createElement(Je,Object.assign({appear:!0,nodeRef:y,onEnter:function(h,j){Re(n,h),yt(h),d&&d(h,j)},onEntered:p,onEntering:function(h){var j=qe({timeout:c,mode:"enter",style:L({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.0, 0, 0.2, 1)"})});h.style.webkitTransition=ke("-webkit-transform",j),h.style.transition=ke("transform",j),h.style.webkitTransform="none",h.style.transform="none"},onExit:function(h){var j=qe({timeout:c,mode:"exit",style:L({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.4, 0, 0.6, 1)"})});h.style.webkitTransition=ke("-webkit-transform",j),h.style.transition=ke("transform",j),Re(n,h),f&&f(h)},onExited:function(h){h.style.webkitTransition="",h.style.transition="",x&&x(h)},in:a,timeout:c},E),function(h,j){return l.cloneElement(r,L({ref:v,style:L({visibility:h!=="exited"||a?void 0:"hidden"},s,{},r.props.style)},j))})});vt.displayName="Slide";var Le=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},le={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
6
|
+
*/const m=require("react/jsx-runtime"),l=require("react"),i=require("./CalnqtYH48_x2rcI.cjs"),Wt=require("react-dom"),ce=require("@sheetxl/sdk");function Pt(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const de=Pt(l);function At(e){return i.generateUtilityClass("MuiCollapse",e)}i.generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const It=i.styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,o[r.orientation],r.state==="entered"&&o.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&o.hidden]}})(i.memoTheme(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Nt=i.styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,o)=>o.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ft=i.styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,o)=>o.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Fe=de.forwardRef(function(e,o){const r=i.useDefaultProps({props:e,name:"MuiCollapse"}),{addEndListener:t,children:n,className:a,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:x,onExit:E,onExited:y,onExiting:b,orientation:v="vertical",style:k,timeout:h=i.duration.standard,TransitionComponent:j=i.Transition,...C}=r,W={...r,orientation:v,collapsedSize:s},M=(S=>{const{orientation:U,classes:V}=S,X={root:["root",`${U}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${U}`],wrapperInner:["wrapperInner",`${U}`]};return i.composeClasses(X,At,V)})(W),q=i.useTheme(),B=i.useTimeout(),I=de.useRef(null),_=de.useRef(),G=typeof s=="number"?`${s}px`:s,Q=v==="horizontal",re=Q?"width":"height",N=de.useRef(null),$=i.useForkRef(o,N),w=S=>U=>{if(S){const V=N.current;U===void 0?S(V):S(V,U)}},T=()=>I.current?I.current[Q?"clientWidth":"clientHeight"]:0,O=w((S,U)=>{I.current&&Q&&(I.current.style.position="absolute"),S.style[re]=G,p&&p(S,U)}),F=w((S,U)=>{const V=T();I.current&&Q&&(I.current.style.position="");const{duration:X,easing:ie}=i.getTransitionProps({style:k,timeout:h,easing:c},{mode:"enter"});if(h==="auto"){const pe=q.transitions.getAutoHeightDuration(V);S.style.transitionDuration=`${pe}ms`,_.current=pe}else S.style.transitionDuration=typeof X=="string"?X:`${X}ms`;S.style[re]=`${V}px`,S.style.transitionTimingFunction=ie,x&&x(S,U)}),H=w((S,U)=>{S.style[re]="auto",f&&f(S,U)}),z=w(S=>{S.style[re]=`${T()}px`,E&&E(S)}),ae=w(y),P=w(S=>{const U=T(),{duration:V,easing:X}=i.getTransitionProps({style:k,timeout:h,easing:c},{mode:"exit"});if(h==="auto"){const ie=q.transitions.getAutoHeightDuration(U);S.style.transitionDuration=`${ie}ms`,_.current=ie}else S.style.transitionDuration=typeof V=="string"?V:`${V}ms`;S.style[re]=G,S.style.transitionTimingFunction=X,b&&b(S)});return m.jsx(j,{in:d,onEnter:O,onEntered:H,onEntering:F,onExit:z,onExited:ae,onExiting:P,addEndListener:S=>{h==="auto"&&B.start(_.current||0,S),t&&t(N.current,S)},nodeRef:N,timeout:h==="auto"?null:h,...C,children:(S,{ownerState:U,...V})=>m.jsx(It,{as:u,className:i.clsx(M.root,a,{entered:M.entered,exited:!d&&G==="0px"&&M.hidden}[S]),style:{[Q?"minWidth":"minHeight"]:G,...k},ref:$,ownerState:{...W,state:S},...V,children:m.jsx(Nt,{ownerState:{...W,state:S},className:M.wrapper,ref:I,children:m.jsx(Ft,{ownerState:{...W,state:S},className:M.wrapperInner,children:n})})})})});function qt(e){return i.generateUtilityClass("MuiCard",e)}Fe&&(Fe.muiSupportAuto=!0),i.generateUtilityClasses("MuiCard",["root"]);const Ht=i.styled(i.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})({overflow:"hidden"}),zt=de.forwardRef(function(e,o){const r=i.useDefaultProps({props:e,name:"MuiCard"}),{className:t,raised:n=!1,...a}=r,s={...r,raised:n},u=(c=>{const{classes:d}=c;return i.composeClasses({root:["root"]},qt,d)})(s);return m.jsx(Ht,{className:i.clsx(u.root,t),elevation:n?8:void 0,ref:o,ownerState:s,...a})});function Bt(e){return i.generateUtilityClass("MuiCardActions",e)}i.generateUtilityClasses("MuiCardActions",["root","spacing"]);const _t=i.styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,!r.disableSpacing&&o.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ut=de.forwardRef(function(e,o){const r=i.useDefaultProps({props:e,name:"MuiCardActions"}),{disableSpacing:t=!1,className:n,...a}=r,s={...r,disableSpacing:t},u=(c=>{const{classes:d,disableSpacing:p}=c,f={root:["root",!p&&"spacing"]};return i.composeClasses(f,Bt,d)})(s);return m.jsx(_t,{className:i.clsx(u.root,n),ownerState:s,ref:o,...a})}),Ge=typeof i.globalCss({})=="function",Vt=(e,o)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...o&&!e.vars&&{colorScheme:e.palette.mode}}),$t=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),tt=(e,o=!1)=>{const r={};o&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const u=e.getColorSchemeSelector(a);u.startsWith("@")?r[u]={":root":{colorScheme:s.palette?.mode}}:r[u.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let t={html:Vt(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...$t(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const n=e.components?.MuiCssBaseline?.styleOverrides;return n&&(t=[t,n]),t},Ie="mui-ecs",Kt=i.globalCss(Ge?({theme:e,enableColorScheme:o})=>tt(e,o):({theme:e})=>(o=>{const r=tt(o,!1),t=Array.isArray(r)?r[0]:r;return!o.vars&&t&&(t.html[`:root:has(${Ie})`]={colorScheme:o.palette.mode}),o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([n,a])=>{const s=o.getColorSchemeSelector(n);s.startsWith("@")?t[s]={[`:root:not(:has(.${Ie}))`]:{colorScheme:a.palette?.mode}}:t[s.replace(/\s*&/,"")]={[`&:not(:has(.${Ie}))`]:{colorScheme:a.palette?.mode}}}),r})(e));function Gt(e){const o=i.useDefaultProps({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:t=!1}=o;return m.jsxs(de.Fragment,{children:[Ge&&m.jsx(Kt,{enableColorScheme:t}),!Ge&&!t&&m.jsx("span",{className:Ie,style:{display:"none"}}),r]})}const Xt=i.createSvgIcon(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),Zt=l.createContext(null),ze={didCatch:!1,error:null};class Jt extends l.Component{constructor(o){super(o),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ze}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}resetErrorBoundary(){const{error:o}=this.state;if(o!==null){for(var r,t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(r=(t=this.props).onReset)===null||r===void 0||r.call(t,{args:a,reason:"imperative-api"}),this.setState(ze)}}componentDidCatch(o,r){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,o,r)}componentDidUpdate(o,r){const{didCatch:t}=this.state,{resetKeys:n}=this.props;var a,s;t&&r.error!==null&&function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return u.length!==c.length||u.some((d,p)=>!Object.is(d,c[p]))}(o.resetKeys,n)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:n,prev:o.resetKeys,reason:"keys"}),this.setState(ze))}render(){const{children:o,fallbackRender:r,FallbackComponent:t,fallback:n}=this.props,{didCatch:a,error:s}=this.state;let u=o;if(a){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")u=r(c);else if(t)u=l.createElement(t,c);else{if(n===void 0)throw s;u=n}}return l.createElement(Zt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function ht(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(r=ht(e[o]))&&(t&&(t+=" "),t+=r);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function oe(){for(var e,o,r=0,t="";r<arguments.length;)(e=arguments[r++])&&(o=ht(e))&&(t&&(t+=" "),t+=o);return t}let Qt={data:""},Yt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,en=/\/\*[^]*?\*\/| +/g,nt=/\n+/g,ue=(e,o)=>{let r="",t="",n="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+s+";":t+=a[1]=="f"?ue(s,a):a+"{"+ue(s,a[1]=="k"?"":o)+"}":typeof s=="object"?t+=ue(s,o?o.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,u):u?u+" "+c:c)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ue.p?ue.p(a,s):a+":"+s+";")}return r+(o&&n?o+"{"+n+"}":n)+t},te={},gt=e=>{if(typeof e=="object"){let o="";for(let r in e)o+=r+gt(e[r]);return o}return e};function Xe(e){let o=this||{},r=e.call?e(o.p):e;return((s,u,c,d,p)=>{let f=gt(s),x=te[f]||(te[f]=(h=>{let j=0,C=11;for(;j<h.length;)C=101*C+h.charCodeAt(j++)>>>0;return"go"+C})(f));if(!te[x]){let h=f!==s?s:(j=>{let C,W,M=[{}];for(;C=Yt.exec(j.replace(en,""));)C[4]?M.shift():C[3]?(W=C[3].replace(nt," ").trim(),M.unshift(M[0][W]=M[0][W]||{})):M[0][C[1]]=C[2].replace(nt," ").trim();return M[0]})(s);te[x]=ue(p?{["@keyframes "+x]:h}:h,c?"":"."+x)}let E=c&&te.g?te.g:null;return c&&(te.g=te[x]),y=te[x],b=u,v=d,(k=E)?b.data=b.data.replace(k,y):b.data.indexOf(y)===-1&&(b.data=v?y+b.data:b.data+y),x;var y,b,v,k})(r.unshift?r.raw?(t=r,n=[].slice.call(arguments,1),a=o.p,t.reduce((s,u,c)=>{let d=n[c];if(d&&d.call){let p=d(a),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;d=f?"."+f:p&&typeof p=="object"?p.props?"":ue(p,""):p===!1?"":p}return s+u+(d??"")},"")):r.reduce((s,u)=>Object.assign(s,u&&u.call?u(o.p):u),{}):r,(s=>typeof window=="object"?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||Qt)(o.target),o.g,o.o,o.k);var t,n,a}function kt(e,o,r){return o&&function(t,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(e.prototype,o),e}function L(){return L=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},L.apply(this,arguments)}function bt(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function Se(e,o){if(e==null)return{};var r,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)r=a[t],o.indexOf(r)>=0||(n[r]=e[r]);return n}function ot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Xe.bind({g:1}),Xe.bind({k:1});var rt=function(){return""},xt=l.createContext({enqueueSnackbar:rt,closeSnackbar:rt}),Be="@media (max-width:599.95px)",Ne="@media (min-width:600px)",it=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Je=function(e){return""+it(e.vertical)+it(e.horizontal)},Oe=function(e){return!!e||e===0},Te="unmounted",fe="exited",he="entering",ye="entered",at="exiting",Qe=function(e){function o(t){var n;n=e.call(this,t)||this;var a,s=t.appear;return n.appearStatus=null,t.in?s?(a=fe,n.appearStatus=he):a=ye:a=t.unmountOnExit||t.mountOnEnter?Te:fe,n.state={status:a},n.nextCallback=null,n}bt(o,e),o.getDerivedStateFromProps=function(t,n){return t.in&&n.status===Te?{status:fe}:null};var r=o.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var n=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==he&&a!==ye&&(n=he):a!==he&&a!==ye||(n=at)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t=this.props.timeout,n=t,a=t;return t!=null&&typeof t!="number"&&typeof t!="string"&&(a=t.exit,n=t.enter),{exit:a,enter:n}},r.updateStatus=function(t,n){t===void 0&&(t=!1),n!==null?(this.cancelNextCallback(),n===he?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===fe&&this.setState({status:Te})},r.performEnter=function(t){var n=this,a=this.props.enter,s=t,u=this.getTimeouts();t||a?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:he},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(u.enter,function(){n.safeSetState({status:ye},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:ye},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},r.performExit=function(){var t=this,n=this.props.exit,a=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:at},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:fe},function(){t.props.onExited&&t.props.onExited(t.node)})})})):this.safeSetState({status:fe},function(){t.props.onExited&&t.props.onExited(t.node)})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},r.setNextCallback=function(t){var n=this,a=!0;return this.nextCallback=function(){a&&(a=!1,n.nextCallback=null,t())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(t,n){this.setNextCallback(n);var a=t==null&&!this.props.addEndListener;this.node&&!a?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),t!=null&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===Te)return null;var n=this.props;return(0,n.children)(t,Se(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},kt(o,[{key:"node",get:function(){var t,n=(t=this.props.nodeRef)===null||t===void 0?void 0:t.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),o}(l.Component);function ge(){}function st(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Ze(e,o){return l.useMemo(function(){return e==null&&o==null?null:function(r){st(e,r),st(o,r)}},[e,o])}function qe(e){var o=e.timeout,r=e.style,t=r===void 0?{}:r,n=e.mode;return{duration:typeof o=="object"?o[n]||0:o,easing:t.transitionTimingFunction,delay:t.transitionDelay}}Qe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ge,onEntering:ge,onEntered:ge,onExit:ge,onExiting:ge,onExited:ge};var yt=function(e){e.scrollTop=e.scrollTop},lt=function(e){return Math.round(e)+"ms"};function ke(e,o){e===void 0&&(e=["all"]);var r=o||{},t=r.duration,n=t===void 0?300:t,a=r.easing,s=a===void 0?"cubic-bezier(0.4, 0, 0.2, 1)":a,u=r.delay,c=u===void 0?0:u;return(Array.isArray(e)?e:[e]).map(function(d){var p=typeof n=="string"?n:lt(n),f=typeof c=="string"?c:lt(c);return d+" "+p+" "+s+" "+f}).join(",")}function wt(e){var o;return((o=e)&&o.ownerDocument||document).defaultView||window}function Re(e,o){if(o){var r=function(t,n){var a,s=n.getBoundingClientRect(),u=wt(n);if(n.fakeTransform)a=n.fakeTransform;else{var c=u.getComputedStyle(n);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var d=0,p=0;if(a&&a!=="none"&&typeof a=="string"){var f=a.split("(")[1].split(")")[0].split(",");d=parseInt(f[4],10),p=parseInt(f[5],10)}switch(t){case"left":return"translateX("+(u.innerWidth+d-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-d)+"px)";case"up":return"translateY("+(u.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(e,o);r&&(o.style.webkitTransform=r,o.style.transform=r)}}var vt=l.forwardRef(function(e,o){var r=e.children,t=e.direction,n=t===void 0?"down":t,a=e.in,s=e.style,u=e.timeout,c=u===void 0?0:u,d=e.onEnter,p=e.onEntered,f=e.onExit,x=e.onExited,E=Se(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=l.useRef(null),b=Ze(r.ref,y),v=Ze(b,o),k=l.useCallback(function(){y.current&&Re(n,y.current)},[n]);return l.useEffect(function(){if(!a&&n!=="down"&&n!=="right"){var h=function(C,W){var M;function q(){for(var B=this,I=arguments.length,_=new Array(I),G=0;G<I;G++)_[G]=arguments[G];clearTimeout(M),M=setTimeout(function(){C.apply(B,_)},W)}return W===void 0&&(W=166),q.clear=function(){clearTimeout(M)},q}(function(){y.current&&Re(n,y.current)}),j=wt(y.current);return j.addEventListener("resize",h),function(){h.clear(),j.removeEventListener("resize",h)}}},[n,a]),l.useEffect(function(){a||k()},[a,k]),l.createElement(Qe,Object.assign({appear:!0,nodeRef:y,onEnter:function(h,j){Re(n,h),yt(h),d&&d(h,j)},onEntered:p,onEntering:function(h){var j=qe({timeout:c,mode:"enter",style:L({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.0, 0, 0.2, 1)"})});h.style.webkitTransition=ke("-webkit-transform",j),h.style.transition=ke("transform",j),h.style.webkitTransform="none",h.style.transform="none"},onExit:function(h){var j=qe({timeout:c,mode:"exit",style:L({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.4, 0, 0.6, 1)"})});h.style.webkitTransition=ke("-webkit-transform",j),h.style.transition=ke("transform",j),Re(n,h),f&&f(h)},onExited:function(h){h.style.webkitTransition="",h.style.transition="",x&&x(h)},in:a,timeout:c},E),function(h,j){return l.cloneElement(r,L({ref:v,style:L({visibility:h!=="exited"||a?void 0:"hidden"},s,{},r.props.style)},j))})});vt.displayName="Slide";var Le=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},le={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
7
7
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},null),warning:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
8
8
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
9
9
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},null),info:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
10
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:vt,transitionDuration:{enter:225,exit:195}};function De(e){return Object.entries(e).reduce(function(o,r){var t,n=r[0],a=r[1];return L({},o,((t={})[n]=Xe(a),t))},{})}var Et="notistack-CollapseWrapper",tn=function(e){return"notistack-MuiContent-"+e},ct=De({root:{height:0},entered:{height:"auto"}}),_e="0px",Ct=l.forwardRef(function(e,o){var r=e.children,t=e.in,n=e.onExited,a=l.useRef(null),s=l.useRef(null),u=Ze(o,s),c=function(){return a.current?a.current.clientHeight:0};return l.createElement(Je,{in:t,unmountOnExit:!0,onEnter:function(d){d.style.height=_e},onEntered:function(d){d.style.height="auto"},onEntering:function(d){var p=c(),f=qe({timeout:175,mode:"enter"}),x=f.duration,E=f.easing;d.style.transitionDuration=typeof x=="string"?x:x+"ms",d.style.height=p+"px",d.style.transitionTimingFunction=E||""},onExit:function(d){d.style.height=c()+"px"},onExited:n,onExiting:function(d){yt(d);var p=qe({timeout:175,mode:"exit"}),f=p.duration,x=p.easing;d.style.transitionDuration=typeof f=="string"?f:f+"ms",d.style.height=_e,d.style.transitionTimingFunction=x||""},nodeRef:s,timeout:175},function(d,p){return l.createElement("div",Object.assign({ref:u,className:oe(ct.root,d==="entered"&&ct.entered),style:L({pointerEvents:"all",overflow:"hidden",minHeight:_e,transition:ke("height")},d==="entered"&&{overflow:"visible"},{},d==="exited"&&!t&&{visibility:"hidden"})},p),l.createElement("div",{ref:a,className:Et,style:{display:"flex",width:"100%"}},r))})});Ct.displayName="Collapse";var ut={right:"left",left:"right",bottom:"up",top:"down"},nn=function(e){return"anchorOrigin"+Qe(e)},on=function(){};function Ce(e,o){return e.reduce(function(r,t){return t==null?r:function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var u=[].concat(a);o&&u.indexOf(o)===-1&&u.push(o),r.apply(this,u),t.apply(this,u)}},on)}var rn=typeof window<"u"?l.useLayoutEffect:l.useEffect;function dt(e){var o=l.useRef(e);return rn(function(){o.current=e}),l.useCallback(function(){return o.current.apply(void 0,arguments)},[])}var Ue,St=l.forwardRef(function(e,o){var r=e.children,t=e.className,n=e.autoHideDuration,a=e.disableWindowBlurListener,s=a!==void 0&&a,u=e.onClose,c=e.id,d=e.open,p=e.SnackbarProps,f=p===void 0?{}:p,x=l.useRef(),E=dt(function(){u&&u.apply(void 0,arguments)}),y=dt(function(k){u&&k!=null&&(x.current&&clearTimeout(x.current),x.current=setTimeout(function(){E(null,"timeout",c)},k))});l.useEffect(function(){return d&&y(n),function(){x.current&&clearTimeout(x.current)}},[d,n,y]);var b=function(){x.current&&clearTimeout(x.current)},v=l.useCallback(function(){n!=null&&y(.5*n)},[n,y]);return l.useEffect(function(){if(!s&&d)return window.addEventListener("focus",v),window.addEventListener("blur",b),function(){window.removeEventListener("focus",v),window.removeEventListener("blur",b)}},[s,v,d]),l.createElement("div",Object.assign({ref:o},f,{className:oe("notistack-Snackbar",t),onMouseEnter:function(k){f.onMouseEnter&&f.onMouseEnter(k),b()},onMouseLeave:function(k){f.onMouseLeave&&f.onMouseLeave(k),v()}}),r)});St.displayName="Snackbar";var an=De({root:(Ue={display:"flex",flexWrap:"wrap",flexGrow:1},Ue[Ne]={flexGrow:"initial",minWidth:"288px"},Ue)}),Ye=l.forwardRef(function(e,o){var r=e.className,t=Se(e,["className"]);return l.createElement("div",Object.assign({ref:o,className:oe(an.root,r)},t))});Ye.displayName="SnackbarContent";var we=De({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),pt="notistack-snackbar",Dt=l.forwardRef(function(e,o){var r=e.id,t=e.message,n=e.action,a=e.iconVariant,s=e.variant,u=e.hideIconVariant,c=e.style,d=e.className,p=a[s],f=n;return typeof f=="function"&&(f=f(r)),l.createElement(Ye,{ref:o,role:"alert","aria-describedby":pt,style:c,className:oe("notistack-MuiContent",tn(s),we.root,we[s],d,!u&&p&&we.lessPadding)},l.createElement("div",{id:pt,className:we.message},u?null:p,t),f&&l.createElement("div",{className:we.action},f))});Dt.displayName="MaterialDesignContent";var ve,Ve,We,Pe,$e,sn=l.memo(Dt),ln=De({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),cn=function(e){var o=l.useRef(),r=l.useState(!0),t=r[0],n=r[1],a=Ce([e.snack.onClose,e.onClose]),s=l.useCallback(function(){o.current=setTimeout(function(){n(function(z){return!z})},125)},[]);l.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var u,c=e.snack,d=e.classes,p=e.Component,f=p===void 0?sn:p,x=l.useMemo(function(){return function(z){z===void 0&&(z={});var I={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(z).filter(function(_){return!I[_]}).reduce(function(_,G){var J;return L({},_,((J={})[G]=z[G],J))},{})}(d)},[d]),E=c.open,y=c.SnackbarProps,b=c.TransitionComponent,v=c.TransitionProps,k=c.transitionDuration,h=c.disableWindowBlurListener,j=c.content,C=Se(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),W=L({direction:(u=C.anchorOrigin,u.horizontal!=="center"?ut[u.horizontal]:ut[u.vertical]),timeout:k},v),O=j;typeof O=="function"&&(O=O(C.id,C.message));var q=["onEnter","onEntered","onExit","onExited"].reduce(function(z,I){var _;return L({},z,((_={})[I]=Ce([e.snack[I],e[I]],C.id),_))},{});return l.createElement(Ct,{in:t,onExited:q.onExited},l.createElement(St,{open:E,id:C.id,disableWindowBlurListener:h,autoHideDuration:C.autoHideDuration,className:oe(ln.wrappedRoot,x.root,x[nn(C.anchorOrigin)]),SnackbarProps:y,onClose:a},l.createElement(b,Object.assign({},W,{appear:!0,in:E,onExit:q.onExit,onExited:s,onEnter:q.onEnter,onEntered:Ce([q.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],C.id)}),O||l.createElement(f,Object.assign({},C)))))},Ee=20,Ke=6,un=2,mt="."+Et,Ae=De({root:(ve={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:ke(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},ve[mt]={padding:Ke+"px 0px",transition:"padding 300ms ease 0ms"},ve.maxWidth="calc(100% - "+2*Ee+"px)",ve[ze]={width:"100%",maxWidth:"calc(100% - 32px)"},ve),rootDense:(Ve={},Ve[mt]={padding:un+"px 0px"},Ve),top:{top:Ee-Ke+"px",flexDirection:"column"},bottom:{bottom:Ee-Ke+"px",flexDirection:"column-reverse"},left:(We={left:Ee+"px"},We[Ne]={alignItems:"flex-start"},We[ze]={left:"16px"},We),right:(Pe={right:Ee+"px"},Pe[Ne]={alignItems:"flex-end"},Pe[ze]={right:"16px"},Pe),center:($e={left:"50%",transform:"translateX(-50%)"},$e[Ne]={alignItems:"center"},$e)}),dn=l.memo(function(e){var o=e.classes,r=o===void 0?{}:o,t=e.anchorOrigin,n=e.dense,a=e.children,s=oe("notistack-SnackbarContainer",Ae[t.vertical],Ae[t.horizontal],Ae.root,r.containerRoot,r["containerAnchorOrigin"+Qe(t)],n&&Ae.rootDense);return l.createElement("div",{className:s},a)}),ft=function(e){return!(typeof e=="string"||l.isValidElement(e))},pn=function(e){function o(r){var t;return(t=e.call(this,r)||this).enqueueSnackbar=function(n,a){if(a===void 0&&(a={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=ft(n)?n:a,u=ft(n)?n.message:n,c=s.key,d=s.preventDuplicate,p=Se(s,["key","preventDuplicate"]),f=Me(c),x=f?c:new Date().getTime()+Math.random(),E=function(b,v){return function(k,h){return h===void 0&&(h=!1),h?L({},le[k],{},v[k],{},b[k]):k==="autoHideDuration"?(O=b.autoHideDuration,q=v.autoHideDuration,(z=function(I){return typeof I=="number"||I===null})(O)?O:z(q)?q:le.autoHideDuration):k==="transitionDuration"?(j=b.transitionDuration,C=v.transitionDuration,(W=function(I,_){return _.some(function(G){return typeof I===G})})(j,["string","number"])?j:W(j,["object"])?L({},le.transitionDuration,{},W(C,["object"])&&C,{},j):W(C,["string","number"])?C:W(C,["object"])?L({},le.transitionDuration,{},C):le.transitionDuration):b[k]||v[k]||le[k];var j,C,W,O,q,z}}(p,t.props),y=L({id:x},p,{message:u,open:!0,entered:!1,requestClose:!1,persist:E("persist"),action:E("action"),content:E("content"),variant:E("variant"),anchorOrigin:E("anchorOrigin"),disableWindowBlurListener:E("disableWindowBlurListener"),autoHideDuration:E("autoHideDuration"),hideIconVariant:E("hideIconVariant"),TransitionComponent:E("TransitionComponent"),transitionDuration:E("transitionDuration"),TransitionProps:E("TransitionProps",!0),iconVariant:E("iconVariant",!0),style:E("style",!0),SnackbarProps:E("SnackbarProps",!0),className:oe(t.props.className,p.className)});return y.persist&&(y.autoHideDuration=void 0),t.setState(function(b){if(d===void 0&&t.props.preventDuplicate||d){var v=function(j){return f?j.id===x:j.message===u},k=b.queue.findIndex(v)>-1,h=b.snacks.findIndex(v)>-1;if(k||h)return b}return t.handleDisplaySnack(L({},b,{queue:[].concat(b.queue,[y])}))}),x},t.handleDisplaySnack=function(n){return n.snacks.length>=t.maxSnack?t.handleDismissOldest(n):t.processQueue(n)},t.processQueue=function(n){var a=n.queue,s=n.snacks;return a.length>0?L({},n,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):n},t.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var a=!1,s=!1;n.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0)===t.maxSnack&&(s=!0);var u=n.snacks.map(function(c){return a||c.persist&&!s?L({},c):(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),t.props.onClose&&t.props.onClose(null,"maxsnack",c.id),L({},c,{open:!1})):L({},c,{requestClose:!0}))});return L({},n,{snacks:u})},t.handleEnteredSnack=function(n,a,s){if(!Me(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(u){return{snacks:u.snacks.map(function(c){return c.id===s?L({},c,{entered:!0}):L({},c)})}})},t.handleCloseSnack=function(n,a,s){t.props.onClose&&t.props.onClose(n,a,s);var u=s===void 0;t.setState(function(c){var d=c.snacks,p=c.queue;return{snacks:d.map(function(f){return u||f.id===s?f.entered?L({},f,{open:!1}):L({},f,{requestClose:!0}):L({},f)}),queue:p.filter(function(f){return f.id!==s})}})},t.closeSnackbar=function(n){var a=t.state.snacks.find(function(s){return s.id===n});Me(n)&&a&&a.onClose&&a.onClose(null,"instructed",n),t.handleCloseSnack(null,"instructed",n)},t.handleExitedSnack=function(n,a){if(!Me(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(s){var u=t.processQueue(L({},s,{snacks:s.snacks.filter(function(c){return c.id!==a})}));return u.queue.length===0?u:t.handleDismissOldest(u)})},t.enqueueSnackbar,t.closeSnackbar,t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar.bind(ot(t)),closeSnackbar:t.closeSnackbar.bind(ot(t))}},t}return bt(o,e),o.prototype.render=function(){var r=this,t=this.state.contextValue,n=this.props,a=n.domRoot,s=n.children,u=n.dense,c=u!==void 0&&u,d=n.Components,p=d===void 0?{}:d,f=n.classes,x=this.state.snacks.reduce(function(y,b){var v,k=Qe(b.anchorOrigin),h=y[k]||[];return L({},y,((v={})[k]=[].concat(h,[b]),v))},{}),E=Object.keys(x).map(function(y){var b=x[y],v=b[0];return l.createElement(dn,{key:y,dense:c,anchorOrigin:v.anchorOrigin,classes:f},b.map(function(k){return l.createElement(cn,{key:k.id,snack:k,classes:f,Component:p[k.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:Ce([r.handleExitedSnack,r.props.onExited],k.id),onEntered:Ce([r.handleEnteredSnack,r.props.onEntered],k.id)})}))});return l.createElement(xt.Provider,{value:t},s,a?Wt.createPortal(E,a):E)},kt(o,[{key:"maxSnack",get:function(){return this.props.maxSnack||le.maxSnack}}]),o}(l.Component),jt=function(){return l.useContext(xt)};const ne={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},Ot=l.forwardRef((e,o)=>{const{id:r,message:t,iconVariant:n,error:a,hideIconVariant:s,...u}=e,{closeSnackbar:c}=jt(),d=i.T0(),[p,f]=l.useState(!1),x=l.useCallback(()=>{f(b=>!b)},[]),E=l.useCallback(()=>{c(r)},[r,c]);let y=a?.message;return!y&&l.isValidElement(t)&&(y=t),y||typeof t!="string"||(y=t),y||(y=`Unknown Error: ${t}`),m.jsx(Ye,{ref:o,className:i.yo(ne.root,"error-snackbar"),children:m.jsxs(Bt,{className:ne.card,style:{backgroundColor:d.palette.error.dark,border:`1px solid ${d.palette.error.dark}`},children:[m.jsxs(Ut,{className:ne.actionRoot,children:[s?null:n?.error,m.jsx(i.Typography,{variant:"body2",component:"div",className:ne.typography,style:{color:d.palette.text.primary},children:y}),m.jsx("div",{style:{flex:"1 1 auto"}}),m.jsxs("div",{className:ne.icons,children:[a?m.jsx(i.IconButton,{"aria-label":"Show more",size:"small",className:i.yo(ne.expand,{[ne.expandOpen]:p}),style:{color:d.palette.action.active},onClick:x,children:m.jsx(i.Xn,{})}):null,m.jsx(i.IconButton,{size:"small",className:ne.expand,style:{color:d.palette.action.active},onClick:E,children:m.jsx(i._o,{fontSize:"small"})})]})]}),a?m.jsx(Fe,{in:p,timeout:"auto",unmountOnExit:!0,children:m.jsx("div",{className:ne.stackTraceContainer,style:{backgroundColor:d.palette.error.light,borderTop:`1px solid ${d.palette.error.main}`},children:m.jsx(i.L9,{error:a,hideLineNumbers:!0})})}):null]})})});Ot.displayName="ToastError";const Mt=l.memo(l.forwardRef((e,o)=>{const{commands:r,commandHook:t,scope:n="workbook",disabled:a=!1,...s}=e,u=i.fe(d=>{const p={variant:i.Qt.Menuitem,parentFloat:d.floatReference,commandHook:t,scope:n,disabled:a},f=m.jsxs(m.Fragment,{children:[m.jsx(i.Le,{...p,command:r.getCommand("newWorkbook"),icon:i.ve(m.jsx(i.yR,{}))}),m.jsx(i.$t,{orientation:"horizontal"}),m.jsx(i.Le,{...p,command:r.getCommand("openWorkbook"),icon:i.ve(m.jsx(i.bR,{}))}),m.jsx(i.Kn,{...p,commands:r,quickCommand:"saveWorkbook",icon:i.ve(m.jsx(i.wR,{})),createPopupPanel:x=>{const E={...p,parentFloat:x.floatReference,scope:"saveWorkbook"},y=[];return i.qR.getWriteFormats().forEach(b=>{if(b.isDefault)return;let v=null;b.key==="CSV"?v=i.ve(m.jsx(i.xR,{})):b.key==="Excel"&&(v=i.ve(m.jsx(i.vR,{})));const k=r.getCommand(`saveWorkbookAs${b.key}`);k?y.push(l.createElement(i.Le,{...E,key:b.key,command:k,icon:v})):console.warn(`Unable to resolve command: 'saveWorkbookAs${b.key}'`)}),i.Fn({...x,children:y,onClick:()=>{x.closeFloatAll()}})}})]});return i.Fn({...d,children:f,onClick:x=>{x.isDefaultPrevented||d.closeFloatAll()}})},[a,r,t,n]),c="File";return m.jsx(i.Kn,{commands:r,disabled:a,commandHook:t,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:d=>`calc(1.25rem + ${d.spacing(2)}px)`}},...s,createPopupPanel:u,icon:m.jsx(i.ns,{className:"label",icon:null,label:c})})}));Mt.displayName="StandaloneFileCommandButton";const mn=m.jsx(i.ar,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:m.jsx(i.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:m.jsx(i.VR,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Tt=l.memo(l.forwardRef((e,o)=>{const{commands:r,workbook:t,logo:n=mn,mainElement:a,showFileMenu:s=!0,showAppearanceMenu:u=!0,...c}=e,{reference:d}=i.N0(),[p,{width:f}]=i.gc(),x=f<530,E=s?m.jsx(Mt,{commands:r,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,j){}}}):null,y=u?m.jsx(i.HR,{commands:r,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,j){}}}):null,b=l.useMemo(()=>({paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)}),[]),v=l.useRef(null);return m.jsx(i.Box,{ref:i.h5([v,p,o]),...c,children:i.DM({commands:r,renderCompact:x,workbook:t,selectWrapper:k=>m.jsxs(i.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:h=>h.spacing(1),paddingLeft:h=>h.spacing(1),paddingRight:h=>h.spacing(1)},children:[m.jsxs(i.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:h=>h.spacing(.5)},children:[n,m.jsxs(i.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:h=>h.spacing(.25)},children:[E,k]})]}),m.jsx(i.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:a}),m.jsx(i.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:x&&!y?"0 0 auto":"1 1 100%"},children:y})]}),selectProps:b,toolbarsProps:{Home:{sx:{}}}})})}));Tt.displayName="StudioToolbar";const Rt=l.memo(l.forwardRef((e,o)=>{const{workbook:r,setWorkbook:t,refWorkbookTitle:n,titleWorkbook:a,setWorkbookTitle:s,titlePlaceHolder:u,children:c,undoManager:d,commands:p,importExportDisabled:f,themeOptions:x}=e,E=jt(),y=E?E.enqueueSnackbar:()=>{},b=E?E.closeSnackbar:()=>{},[v,k]=l.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),h=l.useCallback(()=>{k($=>({...$,isMounted:!0}))},[]),j=l.useCallback(()=>{k($=>({...$,isMounted:!1}))},[]),C=i.OR(),W=i.LR(),O=i.AR(),q=l.useRef(new Set),z=l.useMemo(()=>{const $=(w,T)=>{if(T?.onceKey){if(q.current.has(T.onceKey))return;const F=new Set(q.current);F.add(T.onceKey),q.current=F}const M={variant:T?.type??i.F0.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:T?.preventDuplicate,persist:T?.persist??T?.type===i.F0.Error,action:F=>m.jsx(i.IconButton,{onClick:()=>b(F),children:m.jsx(Xt,{})})};T?.enqueueProps&&Object.assign(M,T.enqueueProps),w||console.log("message is 'null'",T),y(w??"Alert",M)};return{showMessage:$,showBusy:(w,T)=>{let M=null;const F=new Promise(H=>{M=H});return k(H=>{const B=new Map(H.starting);return B.set(F,M),{...H,label:w,starting:B}}),F},showWindow:(w,T,M)=>{const F={...T,onKeyDown:H=>{p?.dispatchToFocusedCommand(H),H.isDefaultPrevented()||H.isPropagationStopped()||T?.onKeyDown?.(H)}};return C(w,{sort:()=>Promise.resolve().then(()=>require("./CHSE1pa8SMApg4BM.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./bHWvGntvmuk8t7sX.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./Cqymi9AOXO_JYvY4.cjs")),comments:()=>Promise.resolve().then(()=>require("./BIPxYhhi1F-y0gSm.cjs")),find:()=>Promise.resolve().then(()=>require("./B11W4AIKbkJQG6ug.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./C6nZKAevPqj8zJY-.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./BCnlTOmUDmizyvVV.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./euAV1pPrNOIb6DV4.cjs"))}[w],F,M)},showOptions:W,showInputOptions:O,showError:w=>{let T,M=i.F0.Error,F="Unknown Error";typeof w=="string"?F=w:w instanceof Error&&(T=w,w.message&&(F=w.message)),w instanceof ce.PartialError&&(M=i.F0.Info),$(F,{type:M,enqueueProps:{error:T}})}}},[]),I=l.useCallback(()=>{},[]),_=($=>{const{workbook:w,setWorkbook:T,importExportDisabled:M,workbookTitle:F="export",setWorkbookTitle:H,notifier:B,requestWorkbookTitle:ae,themeOptions:P,undoManager:S,commands:U,onExecute:V}=$,X=i.fe(P?.onModeChange,[P?.onModeChange]),ie=i.fe(P?.onEnabledDarkGridChange,[P?.onEnabledDarkGridChange]),pe=i.fe(P?.onEnabledDarkImagesChange,[P?.onEnabledDarkImagesChange]),me=i.fe(async(A=null,ee=null)=>{const R=[];let g,D=null,Q=null;if(typeof A=="string"?Q=A:D=A,g=D?A:await i.Jt.openFileDialog(Q??i.qR.getAllReadFormatTypeAsString().join(",")),!g)return null;const Y={source:g,createWorkbookOptions:ee,onWarning:He=>{R.push(He)}},xe=await i.qR.read(Y,B);return R.length>0&&(B?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
|
|
10
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:vt,transitionDuration:{enter:225,exit:195}};function De(e){return Object.entries(e).reduce(function(o,r){var t,n=r[0],a=r[1];return L({},o,((t={})[n]=Xe(a),t))},{})}var Et="notistack-CollapseWrapper",tn=function(e){return"notistack-MuiContent-"+e},ct=De({root:{height:0},entered:{height:"auto"}}),_e="0px",Ct=l.forwardRef(function(e,o){var r=e.children,t=e.in,n=e.onExited,a=l.useRef(null),s=l.useRef(null),u=Ze(o,s),c=function(){return a.current?a.current.clientHeight:0};return l.createElement(Qe,{in:t,unmountOnExit:!0,onEnter:function(d){d.style.height=_e},onEntered:function(d){d.style.height="auto"},onEntering:function(d){var p=c(),f=qe({timeout:175,mode:"enter"}),x=f.duration,E=f.easing;d.style.transitionDuration=typeof x=="string"?x:x+"ms",d.style.height=p+"px",d.style.transitionTimingFunction=E||""},onExit:function(d){d.style.height=c()+"px"},onExited:n,onExiting:function(d){yt(d);var p=qe({timeout:175,mode:"exit"}),f=p.duration,x=p.easing;d.style.transitionDuration=typeof f=="string"?f:f+"ms",d.style.height=_e,d.style.transitionTimingFunction=x||""},nodeRef:s,timeout:175},function(d,p){return l.createElement("div",Object.assign({ref:u,className:oe(ct.root,d==="entered"&&ct.entered),style:L({pointerEvents:"all",overflow:"hidden",minHeight:_e,transition:ke("height")},d==="entered"&&{overflow:"visible"},{},d==="exited"&&!t&&{visibility:"hidden"})},p),l.createElement("div",{ref:a,className:Et,style:{display:"flex",width:"100%"}},r))})});Ct.displayName="Collapse";var ut={right:"left",left:"right",bottom:"up",top:"down"},nn=function(e){return"anchorOrigin"+Je(e)},on=function(){};function Ce(e,o){return e.reduce(function(r,t){return t==null?r:function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var u=[].concat(a);o&&u.indexOf(o)===-1&&u.push(o),r.apply(this,u),t.apply(this,u)}},on)}var rn=typeof window<"u"?l.useLayoutEffect:l.useEffect;function dt(e){var o=l.useRef(e);return rn(function(){o.current=e}),l.useCallback(function(){return o.current.apply(void 0,arguments)},[])}var Ue,St=l.forwardRef(function(e,o){var r=e.children,t=e.className,n=e.autoHideDuration,a=e.disableWindowBlurListener,s=a!==void 0&&a,u=e.onClose,c=e.id,d=e.open,p=e.SnackbarProps,f=p===void 0?{}:p,x=l.useRef(),E=dt(function(){u&&u.apply(void 0,arguments)}),y=dt(function(k){u&&k!=null&&(x.current&&clearTimeout(x.current),x.current=setTimeout(function(){E(null,"timeout",c)},k))});l.useEffect(function(){return d&&y(n),function(){x.current&&clearTimeout(x.current)}},[d,n,y]);var b=function(){x.current&&clearTimeout(x.current)},v=l.useCallback(function(){n!=null&&y(.5*n)},[n,y]);return l.useEffect(function(){if(!s&&d)return window.addEventListener("focus",v),window.addEventListener("blur",b),function(){window.removeEventListener("focus",v),window.removeEventListener("blur",b)}},[s,v,d]),l.createElement("div",Object.assign({ref:o},f,{className:oe("notistack-Snackbar",t),onMouseEnter:function(k){f.onMouseEnter&&f.onMouseEnter(k),b()},onMouseLeave:function(k){f.onMouseLeave&&f.onMouseLeave(k),v()}}),r)});St.displayName="Snackbar";var an=De({root:(Ue={display:"flex",flexWrap:"wrap",flexGrow:1},Ue[Ne]={flexGrow:"initial",minWidth:"288px"},Ue)}),Ye=l.forwardRef(function(e,o){var r=e.className,t=Se(e,["className"]);return l.createElement("div",Object.assign({ref:o,className:oe(an.root,r)},t))});Ye.displayName="SnackbarContent";var we=De({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),pt="notistack-snackbar",Dt=l.forwardRef(function(e,o){var r=e.id,t=e.message,n=e.action,a=e.iconVariant,s=e.variant,u=e.hideIconVariant,c=e.style,d=e.className,p=a[s],f=n;return typeof f=="function"&&(f=f(r)),l.createElement(Ye,{ref:o,role:"alert","aria-describedby":pt,style:c,className:oe("notistack-MuiContent",tn(s),we.root,we[s],d,!u&&p&&we.lessPadding)},l.createElement("div",{id:pt,className:we.message},u?null:p,t),f&&l.createElement("div",{className:we.action},f))});Dt.displayName="MaterialDesignContent";var ve,Ve,We,Pe,$e,sn=l.memo(Dt),ln=De({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),cn=function(e){var o=l.useRef(),r=l.useState(!0),t=r[0],n=r[1],a=Ce([e.snack.onClose,e.onClose]),s=l.useCallback(function(){o.current=setTimeout(function(){n(function(B){return!B})},125)},[]);l.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var u,c=e.snack,d=e.classes,p=e.Component,f=p===void 0?sn:p,x=l.useMemo(function(){return function(B){B===void 0&&(B={});var I={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(B).filter(function(_){return!I[_]}).reduce(function(_,G){var Q;return L({},_,((Q={})[G]=B[G],Q))},{})}(d)},[d]),E=c.open,y=c.SnackbarProps,b=c.TransitionComponent,v=c.TransitionProps,k=c.transitionDuration,h=c.disableWindowBlurListener,j=c.content,C=Se(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),W=L({direction:(u=C.anchorOrigin,u.horizontal!=="center"?ut[u.horizontal]:ut[u.vertical]),timeout:k},v),M=j;typeof M=="function"&&(M=M(C.id,C.message));var q=["onEnter","onEntered","onExit","onExited"].reduce(function(B,I){var _;return L({},B,((_={})[I]=Ce([e.snack[I],e[I]],C.id),_))},{});return l.createElement(Ct,{in:t,onExited:q.onExited},l.createElement(St,{open:E,id:C.id,disableWindowBlurListener:h,autoHideDuration:C.autoHideDuration,className:oe(ln.wrappedRoot,x.root,x[nn(C.anchorOrigin)]),SnackbarProps:y,onClose:a},l.createElement(b,Object.assign({},W,{appear:!0,in:E,onExit:q.onExit,onExited:s,onEnter:q.onEnter,onEntered:Ce([q.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],C.id)}),M||l.createElement(f,Object.assign({},C)))))},Ee=20,Ke=6,un=2,mt="."+Et,Ae=De({root:(ve={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:ke(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},ve[mt]={padding:Ke+"px 0px",transition:"padding 300ms ease 0ms"},ve.maxWidth="calc(100% - "+2*Ee+"px)",ve[Be]={width:"100%",maxWidth:"calc(100% - 32px)"},ve),rootDense:(Ve={},Ve[mt]={padding:un+"px 0px"},Ve),top:{top:Ee-Ke+"px",flexDirection:"column"},bottom:{bottom:Ee-Ke+"px",flexDirection:"column-reverse"},left:(We={left:Ee+"px"},We[Ne]={alignItems:"flex-start"},We[Be]={left:"16px"},We),right:(Pe={right:Ee+"px"},Pe[Ne]={alignItems:"flex-end"},Pe[Be]={right:"16px"},Pe),center:($e={left:"50%",transform:"translateX(-50%)"},$e[Ne]={alignItems:"center"},$e)}),dn=l.memo(function(e){var o=e.classes,r=o===void 0?{}:o,t=e.anchorOrigin,n=e.dense,a=e.children,s=oe("notistack-SnackbarContainer",Ae[t.vertical],Ae[t.horizontal],Ae.root,r.containerRoot,r["containerAnchorOrigin"+Je(t)],n&&Ae.rootDense);return l.createElement("div",{className:s},a)}),ft=function(e){return!(typeof e=="string"||l.isValidElement(e))},pn=function(e){function o(r){var t;return(t=e.call(this,r)||this).enqueueSnackbar=function(n,a){if(a===void 0&&(a={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=ft(n)?n:a,u=ft(n)?n.message:n,c=s.key,d=s.preventDuplicate,p=Se(s,["key","preventDuplicate"]),f=Oe(c),x=f?c:new Date().getTime()+Math.random(),E=function(b,v){return function(k,h){return h===void 0&&(h=!1),h?L({},le[k],{},v[k],{},b[k]):k==="autoHideDuration"?(M=b.autoHideDuration,q=v.autoHideDuration,(B=function(I){return typeof I=="number"||I===null})(M)?M:B(q)?q:le.autoHideDuration):k==="transitionDuration"?(j=b.transitionDuration,C=v.transitionDuration,(W=function(I,_){return _.some(function(G){return typeof I===G})})(j,["string","number"])?j:W(j,["object"])?L({},le.transitionDuration,{},W(C,["object"])&&C,{},j):W(C,["string","number"])?C:W(C,["object"])?L({},le.transitionDuration,{},C):le.transitionDuration):b[k]||v[k]||le[k];var j,C,W,M,q,B}}(p,t.props),y=L({id:x},p,{message:u,open:!0,entered:!1,requestClose:!1,persist:E("persist"),action:E("action"),content:E("content"),variant:E("variant"),anchorOrigin:E("anchorOrigin"),disableWindowBlurListener:E("disableWindowBlurListener"),autoHideDuration:E("autoHideDuration"),hideIconVariant:E("hideIconVariant"),TransitionComponent:E("TransitionComponent"),transitionDuration:E("transitionDuration"),TransitionProps:E("TransitionProps",!0),iconVariant:E("iconVariant",!0),style:E("style",!0),SnackbarProps:E("SnackbarProps",!0),className:oe(t.props.className,p.className)});return y.persist&&(y.autoHideDuration=void 0),t.setState(function(b){if(d===void 0&&t.props.preventDuplicate||d){var v=function(j){return f?j.id===x:j.message===u},k=b.queue.findIndex(v)>-1,h=b.snacks.findIndex(v)>-1;if(k||h)return b}return t.handleDisplaySnack(L({},b,{queue:[].concat(b.queue,[y])}))}),x},t.handleDisplaySnack=function(n){return n.snacks.length>=t.maxSnack?t.handleDismissOldest(n):t.processQueue(n)},t.processQueue=function(n){var a=n.queue,s=n.snacks;return a.length>0?L({},n,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):n},t.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var a=!1,s=!1;n.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0)===t.maxSnack&&(s=!0);var u=n.snacks.map(function(c){return a||c.persist&&!s?L({},c):(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),t.props.onClose&&t.props.onClose(null,"maxsnack",c.id),L({},c,{open:!1})):L({},c,{requestClose:!0}))});return L({},n,{snacks:u})},t.handleEnteredSnack=function(n,a,s){if(!Oe(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(u){return{snacks:u.snacks.map(function(c){return c.id===s?L({},c,{entered:!0}):L({},c)})}})},t.handleCloseSnack=function(n,a,s){t.props.onClose&&t.props.onClose(n,a,s);var u=s===void 0;t.setState(function(c){var d=c.snacks,p=c.queue;return{snacks:d.map(function(f){return u||f.id===s?f.entered?L({},f,{open:!1}):L({},f,{requestClose:!0}):L({},f)}),queue:p.filter(function(f){return f.id!==s})}})},t.closeSnackbar=function(n){var a=t.state.snacks.find(function(s){return s.id===n});Oe(n)&&a&&a.onClose&&a.onClose(null,"instructed",n),t.handleCloseSnack(null,"instructed",n)},t.handleExitedSnack=function(n,a){if(!Oe(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(s){var u=t.processQueue(L({},s,{snacks:s.snacks.filter(function(c){return c.id!==a})}));return u.queue.length===0?u:t.handleDismissOldest(u)})},t.enqueueSnackbar,t.closeSnackbar,t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar.bind(ot(t)),closeSnackbar:t.closeSnackbar.bind(ot(t))}},t}return bt(o,e),o.prototype.render=function(){var r=this,t=this.state.contextValue,n=this.props,a=n.domRoot,s=n.children,u=n.dense,c=u!==void 0&&u,d=n.Components,p=d===void 0?{}:d,f=n.classes,x=this.state.snacks.reduce(function(y,b){var v,k=Je(b.anchorOrigin),h=y[k]||[];return L({},y,((v={})[k]=[].concat(h,[b]),v))},{}),E=Object.keys(x).map(function(y){var b=x[y],v=b[0];return l.createElement(dn,{key:y,dense:c,anchorOrigin:v.anchorOrigin,classes:f},b.map(function(k){return l.createElement(cn,{key:k.id,snack:k,classes:f,Component:p[k.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:Ce([r.handleExitedSnack,r.props.onExited],k.id),onEntered:Ce([r.handleEnteredSnack,r.props.onEntered],k.id)})}))});return l.createElement(xt.Provider,{value:t},s,a?Wt.createPortal(E,a):E)},kt(o,[{key:"maxSnack",get:function(){return this.props.maxSnack||le.maxSnack}}]),o}(l.Component),jt=function(){return l.useContext(xt)};const ne={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},Mt=l.forwardRef((e,o)=>{const{id:r,message:t,iconVariant:n,error:a,hideIconVariant:s,...u}=e,{closeSnackbar:c}=jt(),d=i.T0(),[p,f]=l.useState(!1),x=l.useCallback(()=>{f(b=>!b)},[]),E=l.useCallback(()=>{c(r)},[r,c]);let y=a?.message;return!y&&l.isValidElement(t)&&(y=t),y||typeof t!="string"||(y=t),y||(y=`Unknown Error: ${t}`),m.jsx(Ye,{ref:o,className:i.yo(ne.root,"error-snackbar"),children:m.jsxs(zt,{className:ne.card,style:{backgroundColor:d.palette.error.dark,border:`1px solid ${d.palette.error.dark}`},children:[m.jsxs(Ut,{className:ne.actionRoot,children:[s?null:n?.error,m.jsx(i.Typography,{variant:"body2",component:"div",className:ne.typography,style:{color:d.palette.text.primary},children:y}),m.jsx("div",{style:{flex:"1 1 auto"}}),m.jsxs("div",{className:ne.icons,children:[a?m.jsx(i.IconButton,{"aria-label":"Show more",size:"small",className:i.yo(ne.expand,{[ne.expandOpen]:p}),style:{color:d.palette.action.active},onClick:x,children:m.jsx(i.Xn,{})}):null,m.jsx(i.IconButton,{size:"small",className:ne.expand,style:{color:d.palette.action.active},onClick:E,children:m.jsx(i._o,{fontSize:"small"})})]})]}),a?m.jsx(Fe,{in:p,timeout:"auto",unmountOnExit:!0,children:m.jsx("div",{className:ne.stackTraceContainer,style:{backgroundColor:d.palette.error.light,borderTop:`1px solid ${d.palette.error.main}`},children:m.jsx(i.L9,{error:a,hideLineNumbers:!0})})}):null]})})});Mt.displayName="ToastError";const Ot=l.memo(l.forwardRef((e,o)=>{const{commands:r,commandHook:t,scope:n="workbook",disabled:a=!1,...s}=e,u=i.fe(d=>{const p={variant:i.Qt.Menuitem,parentFloat:d.floatReference,commandHook:t,scope:n,disabled:a},f=m.jsxs(m.Fragment,{children:[m.jsx(i.Le,{...p,command:r.getCommand("newWorkbook"),icon:i.ve(m.jsx(i.yR,{}))}),m.jsx(i.$t,{orientation:"horizontal"}),m.jsx(i.Le,{...p,command:r.getCommand("openWorkbook"),icon:i.ve(m.jsx(i.bR,{}))}),m.jsx(i.Kn,{...p,commands:r,quickCommand:"saveWorkbook",icon:i.ve(m.jsx(i.wR,{})),createPopupPanel:x=>{const E={...p,parentFloat:x.floatReference,scope:"saveWorkbook"},y=[];return i.qR.getWriteFormats().forEach(b=>{if(b.isDefault)return;let v=null;b.key==="CSV"?v=i.ve(m.jsx(i.xR,{})):b.key==="Excel"&&(v=i.ve(m.jsx(i.vR,{})));const k=r.getCommand(`saveWorkbookAs${b.key}`);k?y.push(l.createElement(i.Le,{...E,key:b.key,command:k,icon:v})):console.warn(`Unable to resolve command: 'saveWorkbookAs${b.key}'`)}),i.Fn({...x,children:y,onClick:()=>{x.closeFloatAll()}})}})]});return i.Fn({...d,children:f,onClick:x=>{x.isDefaultPrevented||d.closeFloatAll()}})},[a,r,t,n]),c="File";return m.jsx(i.Kn,{commands:r,disabled:a,commandHook:t,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:d=>`calc(1.25rem + ${d.spacing(2)}px)`}},...s,createPopupPanel:u,icon:m.jsx(i.ns,{className:"label",icon:null,label:c})})}));Ot.displayName="StandaloneFileCommandButton";const mn=m.jsx(i.ar,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:m.jsx(i.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:m.jsx(i.VR,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Tt=l.memo(l.forwardRef((e,o)=>{const{commands:r,workbook:t,logo:n=mn,mainElement:a,showFileMenu:s=!0,showAppearanceMenu:u=!0,...c}=e,{reference:d}=i.N0(),[p,{width:f}]=i.gc(),x=f<530,E=s?m.jsx(Ot,{commands:r,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,j){}}}):null,y=u?m.jsx(i.HR,{commands:r,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,j){}}}):null,b=l.useMemo(()=>({paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)}),[]),v=l.useRef(null);return m.jsx(i.Box,{ref:i.h5([v,p,o]),...c,children:i.DM({commands:r,renderCompact:x,workbook:t,selectWrapper:k=>m.jsxs(i.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:h=>h.spacing(1),paddingLeft:h=>h.spacing(1),paddingRight:h=>h.spacing(1)},children:[m.jsxs(i.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:h=>h.spacing(.5)},children:[n,m.jsxs(i.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:h=>h.spacing(.25)},children:[E,k]})]}),m.jsx(i.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:a}),m.jsx(i.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:x&&!y?"0 0 auto":"1 1 100%"},children:y})]}),selectProps:b,toolbarsProps:{Home:{sx:{}}}})})}));Tt.displayName="StudioToolbar";const Rt=l.memo(l.forwardRef((e,o)=>{const{workbook:r,setWorkbook:t,refWorkbookTitle:n,titleWorkbook:a,setWorkbookTitle:s,titlePlaceHolder:u,children:c,undoManager:d,commands:p,importExportDisabled:f,themeOptions:x}=e,E=jt(),y=E?E.enqueueSnackbar:()=>{},b=E?E.closeSnackbar:()=>{},[v,k]=l.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),h=l.useCallback(()=>{k($=>({...$,isMounted:!0}))},[]),j=l.useCallback(()=>{k($=>({...$,isMounted:!1}))},[]),C=i.OR(),W=i.LR(),M=i.AR(),q=l.useRef(new Set),B=l.useMemo(()=>{const $=(w,T)=>{if(T?.onceKey){if(q.current.has(T.onceKey))return;const F=new Set(q.current);F.add(T.onceKey),q.current=F}const O={variant:T?.type??i.F0.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:T?.preventDuplicate,persist:T?.persist??T?.type===i.F0.Error,action:F=>m.jsx(i.IconButton,{onClick:()=>b(F),children:m.jsx(Xt,{})})};T?.enqueueProps&&Object.assign(O,T.enqueueProps),w||console.log("message is 'null'",T),y(w??"Alert",O)};return{showMessage:$,showBusy:(w,T)=>{let O=null;const F=new Promise(H=>{O=H});return k(H=>{const z=new Map(H.starting);return z.set(F,O),{...H,label:w,starting:z}}),F},showWindow:(w,T,O)=>{const F={...T,onKeyDown:H=>{p?.dispatchToFocusedCommand(H),H.isDefaultPrevented()||H.isPropagationStopped()||T?.onKeyDown?.(H)}};return C(w,{sort:()=>Promise.resolve().then(()=>require("./3GhIDU8JK1oBJrCA.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./kfV5Cli9oE9IsCtx.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./BoojmbbjqixMVu2H.cjs")),comments:()=>Promise.resolve().then(()=>require("./CsCaFaiySArzEfdH.cjs")),find:()=>Promise.resolve().then(()=>require("./Y6OgkWqbIB761o5q.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./B4K6KuggSdXj-V8g.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./B7eW1GQgFvphlLGY.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./CjDsO4sQWUHbIX1N.cjs"))}[w],F,O)},showOptions:W,showInputOptions:M,showError:w=>{let T,O=i.F0.Error,F="Unknown Error";typeof w=="string"?F=w:w instanceof Error&&(T=w,w.message&&(F=w.message)),w instanceof ce.PartialError&&(O=i.F0.Info),$(F,{type:O,enqueueProps:{error:T}})}}},[]),I=l.useCallback(()=>{},[]),_=($=>{const{workbook:w,setWorkbook:T,importExportDisabled:O,workbookTitle:F="export",setWorkbookTitle:H,notifier:z,requestWorkbookTitle:ae,themeOptions:P,undoManager:S,commands:U,onExecute:V}=$,X=i.fe(P?.onModeChange,[P?.onModeChange]),ie=i.fe(P?.onEnabledDarkGridChange,[P?.onEnabledDarkGridChange]),pe=i.fe(P?.onEnabledDarkImagesChange,[P?.onEnabledDarkImagesChange]),me=i.fe(async(A=null,ee=null)=>{const R=[];let g,D=null,J=null;if(typeof A=="string"?J=A:D=A,g=D?A:await i.Jt.openFileDialog(J??i.qR.getAllReadFormatTypeAsString().join(",")),!g)return null;const Y={source:g,createWorkbookOptions:ee,onWarning:He=>{R.push(He)}},xe=await i.qR.read(Y,z);return R.length>0&&(z?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
|
|
11
11
|
`+R.join(`
|
|
12
|
-
`))),xe},[V,B,w]),je=i.fe(async(A,ee,R)=>{if(!ee&&ae){const g=await ae("Enter Workbook name to "+(R.isDefault?"Save.":`Export as ${R.description}.`));return g!==null&&i.qR.writeFile(g,A,{formatType:R.key})}return i.qR.writeFile(ee,A,{formatType:R.key})},[B,w,ae]),K=l.useCallback(()=>({contains:A=>!0,focus(){}}),[]),se=l.useMemo(()=>{const A=[];M||(i.qR.getWriteFormats().forEach(R=>{const g=R.isDefault,D={label:g?"Save Workbook":`Save Workbook as ${R.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${R.description}`},tags:R.tags,description:`Save the workbook to the desktop${g?"":` as ${R.description}`}.`};g&&(D.shortcut={key:"S",modifiers:[i.De.Ctrl]},A.push(new i.Oe("saveWorkbookAs",K,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[i.De.Shift,i.De.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{je(w,null,R).catch(Y=>{B?.showError?.(Y)})})));const Q=g?"saveWorkbook":`saveWorkbookAs${R.key}`;A.push(new i.Oe(Q,K,D,Y=>{je(w,Y??F,R).catch(xe=>{B?.showError?.(xe)})}))}),A.push(new i.Oe("openWorkbook",K,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[i.De.Ctrl]}},async(R=null)=>{const g={date1904:w.isDate1904(),...w.options};try{const D=await me(R,g);if(!D)return;const Q=D.title,Y=D.workbook,xe=Y.getSelectedSheet();if(D.formatType.mimeType==="text/csv"){const He=w.findValidSheetName(Q);await w.doBatch(async()=>{const et=xe.getUsedRange();et?await w.getSheets().add({name:He,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(et):B?.showMessage("The file appears to be blank.")},`Import CSV '${Q}'`)}else w?.close(),H?.(Q),T(Y)}catch(D){B?.showError?.(D)}})),A.push(new i.Oe("openWorkbookFromUrl",K,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(R){if(!R){const g=await B?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(g.option!=="Open")return;R=g.input}R&&console.log("openWorkbookFromUrl",R)})));let ee=[];return P&&(ee=[new i.Oe("themeMode",K,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new i.Oe("defaultThemeMode",K,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new i.Oe("enableDarkGrid",K,{label:"Enable Dark Grid",description:"Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new i.Oe("enableDarkImages",K,{label:"Enable Dark Images",description:"Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...A,...ee,new i.Tt("help",K,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new i.Tt("showKeyboardShortcuts",K,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[i.De.Ctrl]}},()=>{}),new i.Oe("gotoUrlGithub",K,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new i.Oe("gotoUrlDiscord",K,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new i.Oe("gotoUrlDocumentation",K,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new i.Oe("gotoUrlIssue",K,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[w,F,B,M,P,U,S]),Z=l.useMemo(()=>{let A=null;return A=U?U.createChildGroup(K,"standaloneWorkbook",!1):new i.gs(K,"standaloneWorkbook"),A.addCommands(se,!0),A},[U,se]);i.gR({manager:S,commands:Z,notifier:B});const{themeMode:be}=i.UR();l.useEffect(()=>{if(!P||!Z)return;const A=P.mode==="dark"||!P.mode&&be==="dark";Z.getCommand("themeMode").update({state:P.mode??null,label:A?"Dark Mode":"Light Mode",scopedLabels:{appearance:A?"Dark Mode":"Light Mode"}}).updateCallback(()=>{X(A?i.WR.Light:i.WR.Dark)}),Z.getCommand("defaultThemeMode").update({state:!P.mode}).updateCallback(()=>{X(null)}),Z.getCommand("enableDarkGrid").update({state:P.enableDarkGrid}).updateCallback(()=>{ie(!P.enableDarkGrid)}),Z.getCommand("enableDarkImages").update({state:P.enableDarkImages}).updateCallback(()=>{pe(!P.enableDarkImages)})},[be,P,se]);const{showModal:Oe}=i.Bu();return l.useEffect(()=>{const A=()=>new Promise((ee,R)=>{const g=l.lazy(()=>Promise.resolve().then(()=>require("./VJLb1uMfbKAUW1QF.cjs"))),D=Oe(g,{title:"Shortcut Keys Reference",commands:Z,onDone:()=>{D.hide()},TransitionProps:{onExited:()=>{ee(!0)}}})});Z.getCommand("showKeyboardShortcuts").updateCallback(()=>A()),Z.getCommand("help").updateCallback(()=>A())},[se,Z]),Z})({workbook:r,setWorkbook:t,importExportDisabled:f,workbookTitle:a,setWorkbookTitle:s,commands:p,requestWorkbookTitle:$=>new Promise(w=>{n.current?n.current.requestWorkbookTitle((T,M)=>{w(T)},{selectAll:!0,requestReason:$}):w(u)}),themeOptions:x,undoManager:d,notifier:z,onExecute:I});l.useEffect(()=>{v.starting.size<=0||!v.isMounted||k($=>{const w=new Map($.running);return $.starting.forEach((T,M)=>{const F=()=>{k(H=>{const B=new Map(H.running);return B.delete(M),{...H,running:B}})};w.set(M,F),T(F)}),{...$,starting:new Map,running:w}})},[v]);const[G,J]=l.useState(null);l.useEffect(()=>{v.starting.size!==0||v.running.size!==0?J(m.jsx(i.Vl,{icon:m.jsx(i.RR,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:v.label,onMount:h,onUnmount:j,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):J(null)},[v.starting,v.running]);const re=l.useMemo(()=>m.jsx(i.$R,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),N={notifier:z,commands:_};return r&&(N.statusBarProps={childrenEnd:re}),m.jsxs(m.Fragment,{children:[G,c?l.cloneElement(c,N):null]})}));Rt.displayName="SnackbarAndCommandsWrapper";const Lt=l.memo(l.forwardRef((e,o)=>{const{className:r,sx:t,style:n,onElementLoad:a,onError:s,undoManager:u,errorPanel:c=i.xx,onKeyDown:d,workbook:p,createWorkbookOptions:f,onWorkbookChange:x,logo:E,importExportDisabled:y=!1,themeOptions:b,autoFocus:v=!1,commands:k,title:h,onTitleChange:j,titleProps:C,renderLoadingPanel:W,...O}=e,q=l.useRef(null),z=i.fe(x,[x]),I=i.fe(j??C?.onTitleChange,[j??C?.onTitleChange]),_=C?.placeHolder??"Untitled",G=b?.mode,{themeMode:J,source:re}=i.UR({mode:G}),N=l.useMemo(()=>({...b,light:i.DR(!1,ce.CommonUtils.deepMerge(b?.theme??{},b?.light??{})),dark:i.DR(!0,ce.CommonUtils.deepMerge(b?.theme??{},b?.dark??{}))}),[b]),$=J===i.WR.Dark,[w,T]=l.useState(null);l.useEffect(()=>{T(u??new ce.UndoManager)},[u]);const[M,F]=l.useState(null),[H,B]=l.useState(null),ae=i.Xf();l.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!ce.CommonUtils.isPromiseLike(p)){const g={theme:ae.getDefaultTheme(),...f};B(new ce.Workbook(g))}else B(p)},[p]),l.useLayoutEffect(()=>{if(H){if(H instanceof ce.Workbook)return F({workbook:H}),void(p!==H&&z?.(H));(async()=>{try{let g,D=await Promise.resolve(H);D&&D.source&&(D=await i.qR.read(D)),D.workbook?(X(D.title),g=D.workbook):g=D,z?.(g),F({workbook:g})}catch(g){z?.(null),F({error:g})}})()}},[H]);const[P,S]=l.useState(null);l.useEffect(()=>{if(!w||!M)return;w.clear();const g=M?.workbook?.getTransactions();return g?g.addListener({onCommitEnd:D=>{D.getDescription()?w.addUndoOperation({description:D.getDescription(),undo:()=>(g.revert(D.getId()),P.source?.focus(),()=>{g.restore(D.getId()),P.source?.focus()})}):console.warn("commit has no description",D)}}):void 0},[w,M,P]);const U=i.fe(g=>{g?w.setRepeatableOperation({description:g.label(),repeat:async()=>g.execute()}):w.setRepeatableOperation(null)},[w]),[V,X]=l.useState(h??C?.title??"");l.useEffect(()=>{X(h??C?.title??"")},[h??C?.title]),l.useEffect(()=>{I?.(V)},[V]);const[ie,pe]=l.useState(null),me=l.useMemo(()=>{const g=()=>({contains:D=>!0,focus(){}});return k?k.createChildGroup(g,"application",!1):new i.gs(g,"application")},[k]),je=i.fe(g=>{pe(g.source.getViewportElement()),S(g),me.activate("sheet"),a?.(g)},[me]);l.useEffect(()=>{P&&v&&P.source?.focus(typeof v=="object"?v:void 0)},[P]);const K=l.useRef(null),se=l.useCallback(g=>{let D=null;return C?.hidden||(D=m.jsx(i.eR,{...C,style:{maxWidth:"100%",...C?.style},workbook:q.current,ref:K,title:V,placeHolder:_,onTitleChange:Q=>{X(Q)}})),m.jsx(Tt,{...g,logo:E,mainElement:D,showFileMenu:!y,showAppearanceMenu:!!(N?.onEnabledDarkGridChange||N?.onEnabledDarkImagesChange||N?.onModeChange)})},[E,V,C,N,y,me]);l.useEffect(()=>{const g=D=>D.preventDefault();return q.current?.addEventListener("wheel",g,{passive:!1}),()=>{q.current?.removeEventListener("wheel",g)}},[]);const Z=l.useMemo(()=>{const g={transparentBackground:!0};return m.jsx(i.Box,{sx:t,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",...n},children:W?.(g)??m.jsx(i.Vl,{...g})})},[t,n,W]),be=l.useCallback(({error:g})=>(s?.(g),m.jsx(c,{sx:t,style:n,error:g??"Unable to display empty workbook."})),[t,n,s]),Oe=l.useMemo(()=>({...t,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:g=>g.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[t]),A=i.h5([q,o]),ee=l.useMemo(()=>{if(!M)return Z;if(M.error||!M.workbook)return be({error:M.error});let g=null,D=null,Q=!1;return N&&(g=$?N.dark:N.light,D=$&&N.enableDarkGrid?N.dark:N.light,Q=N.enableDarkImages),m.jsx(i.JM,{sx:Oe,style:n,tabIndex:0,autoFocus:!0,workbook:M.workbook,ref:A,renderToolbar:se,onElementLoad:je,onRepeatCommandChange:U,onKeyDown:Y=>{d?.(Y)},renderLoadingPanel:W,gridTheme:D,headersTheme:g,enableDarkImages:Q,className:i.yo(r,"sheetxl-workbook"),onContextMenu:Y=>Y.preventDefault(),...O},"WorkbookElement")},[M,V,w,Z,W,N,O,se,Oe]);let R=m.jsx(Qt,{fallbackRender:be,children:m.jsx(pn,{maxSnack:3,domRoot:ie,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(g,D,Q)=>{q.current?.focus()},Components:{error:Ot},iconVariant:{success:m.jsx(i.SvgIcon,{style:{marginRight:"8px"},children:m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:m.jsx(i.MR,{style:{marginRight:"8px"}})},children:m.jsx(i.IR,{children:m.jsx(Rt,{workbook:M?.workbook,setWorkbook:B,importExportDisabled:y,titlePlaceHolder:_,titleWorkbook:V,setWorkbookTitle:X,refWorkbookTitle:K,commands:me,undoManager:w,themeOptions:N,children:ee})})})});return N&&(R=m.jsxs(i.nk,{theme:$?N.dark:N.light,children:[N.cssBaseline?m.jsx(Gt,{}):null,R]})),R}));Lt.displayName="EagerStudio";const fn=Object.freeze(Object.defineProperty({__proto__:null,default:Lt},Symbol.toStringTag,{value:"Module"})),hn=Object.freeze(Object.defineProperty({__proto__:null,E:fn,c:oe},Symbol.toStringTag,{value:"Module"}));exports.ABtrpK9yMoHh6oPr=hn,exports.Collapse=Fe,exports.he=oe;
|
|
12
|
+
`))),xe},[V,z,w]),je=i.fe(async(A,ee,R)=>{if(!ee&&ae){const g=await ae("Enter Workbook name to "+(R.isDefault?"Save.":`Export as ${R.description}.`));return g!==null&&i.qR.writeFile(g,A,{formatType:R.key})}return i.qR.writeFile(ee,A,{formatType:R.key})},[z,w,ae]),K=l.useCallback(()=>({contains:A=>!0,focus(){}}),[]),se=l.useMemo(()=>{const A=[];O||(i.qR.getWriteFormats().forEach(R=>{const g=R.isDefault,D={label:g?"Save Workbook":`Save Workbook as ${R.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${R.description}`},tags:R.tags,description:`Save the workbook to the desktop${g?"":` as ${R.description}`}.`};g&&(D.shortcut={key:"S",modifiers:[i.De.Ctrl]},A.push(new i.Oe("saveWorkbookAs",K,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[i.De.Shift,i.De.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{je(w,null,R).catch(Y=>{z?.showError?.(Y)})})));const J=g?"saveWorkbook":`saveWorkbookAs${R.key}`;A.push(new i.Oe(J,K,D,Y=>{je(w,Y??F,R).catch(xe=>{z?.showError?.(xe)})}))}),A.push(new i.Oe("openWorkbook",K,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[i.De.Ctrl]}},async(R=null)=>{const g={date1904:w.isDate1904(),...w.options};try{const D=await me(R,g);if(!D)return;const J=D.title,Y=D.workbook,xe=Y.getSelectedSheet();if(D.formatType.mimeType==="text/csv"){const He=w.findValidSheetName(J);await w.doBatch(async()=>{const et=xe.getUsedRange();et?await w.getSheets().add({name:He,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(et):z?.showMessage("The file appears to be blank.")},`Import CSV '${J}'`)}else w?.close(),H?.(J),T(Y)}catch(D){z?.showError?.(D)}})),A.push(new i.Oe("openWorkbookFromUrl",K,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(R){if(!R){const g=await z?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(g.option!=="Open")return;R=g.input}R&&console.log("openWorkbookFromUrl",R)})));let ee=[];return P&&(ee=[new i.Oe("themeMode",K,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new i.Oe("defaultThemeMode",K,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new i.Oe("enableDarkGrid",K,{label:"Enable Dark Grid",description:"Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new i.Oe("enableDarkImages",K,{label:"Enable Dark Images",description:"Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...A,...ee,new i.Tt("help",K,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new i.Tt("showKeyboardShortcuts",K,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[i.De.Ctrl]}},()=>{}),new i.Oe("gotoUrlGithub",K,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new i.Oe("gotoUrlDiscord",K,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new i.Oe("gotoUrlDocumentation",K,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new i.Oe("gotoUrlIssue",K,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[w,F,z,O,P,U,S]),Z=l.useMemo(()=>{let A=null;return A=U?U.createChildGroup(K,"standaloneWorkbook",!1):new i.gs(K,"standaloneWorkbook"),A.addCommands(se,!0),A},[U,se]);i.gR({manager:S,commands:Z,notifier:z});const{themeMode:be}=i.UR();l.useEffect(()=>{if(!P||!Z)return;const A=P.mode==="dark"||!P.mode&&be==="dark";Z.getCommand("themeMode").update({state:P.mode??null,label:A?"Dark Mode":"Light Mode",scopedLabels:{appearance:A?"Dark Mode":"Light Mode"}}).updateCallback(()=>{X(A?i.WR.Light:i.WR.Dark)}),Z.getCommand("defaultThemeMode").update({state:!P.mode}).updateCallback(()=>{X(null)}),Z.getCommand("enableDarkGrid").update({state:P.enableDarkGrid}).updateCallback(()=>{ie(!P.enableDarkGrid)}),Z.getCommand("enableDarkImages").update({state:P.enableDarkImages}).updateCallback(()=>{pe(!P.enableDarkImages)})},[be,P,se]);const{showModal:Me}=i.Bu();return l.useEffect(()=>{const A=()=>new Promise((ee,R)=>{const g=l.lazy(()=>Promise.resolve().then(()=>require("./gbABnN2zW1kHo3_I.cjs"))),D=Me(g,{title:"Shortcut Keys Reference",commands:Z,onDone:()=>{D.hide()},TransitionProps:{onExited:()=>{ee(!0)}}})});Z.getCommand("showKeyboardShortcuts").updateCallback(()=>A()),Z.getCommand("help").updateCallback(()=>A())},[se,Z]),Z})({workbook:r,setWorkbook:t,importExportDisabled:f,workbookTitle:a,setWorkbookTitle:s,commands:p,requestWorkbookTitle:$=>new Promise(w=>{n.current?n.current.requestWorkbookTitle((T,O)=>{w(T)},{selectAll:!0,requestReason:$}):w(u)}),themeOptions:x,undoManager:d,notifier:B,onExecute:I});l.useEffect(()=>{v.starting.size<=0||!v.isMounted||k($=>{const w=new Map($.running);return $.starting.forEach((T,O)=>{const F=()=>{k(H=>{const z=new Map(H.running);return z.delete(O),{...H,running:z}})};w.set(O,F),T(F)}),{...$,starting:new Map,running:w}})},[v]);const[G,Q]=l.useState(null);l.useEffect(()=>{v.starting.size!==0||v.running.size!==0?Q(m.jsx(i.Vl,{icon:m.jsx(i.RR,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:v.label,onMount:h,onUnmount:j,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):Q(null)},[v.starting,v.running]);const re=l.useMemo(()=>m.jsx(i.$R,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),N={notifier:B,commands:_};return r&&(N.statusBarProps={childrenEnd:re}),m.jsxs(m.Fragment,{children:[G,c?l.cloneElement(c,N):null]})}));Rt.displayName="SnackbarAndCommandsWrapper";const Lt=l.memo(l.forwardRef((e,o)=>{const{className:r,sx:t,style:n,onElementLoad:a,onError:s,undoManager:u,errorPanel:c=i.xx,onKeyDown:d,workbook:p,createWorkbookOptions:f,onWorkbookChange:x,logo:E,importExportDisabled:y=!1,themeOptions:b,autoFocus:v=!1,commands:k,title:h,onTitleChange:j,titleProps:C,renderLoadingPanel:W,...M}=e,q=l.useRef(null),B=i.fe(x,[x]),I=i.fe(j??C?.onTitleChange,[j??C?.onTitleChange]),_=C?.placeHolder??"Untitled",G=b?.mode,{themeMode:Q,source:re}=i.UR({mode:G}),N=l.useMemo(()=>({...b,light:i.DR(!1,ce.CommonUtils.deepMerge(b?.theme??{},b?.light??{})),dark:i.DR(!0,ce.CommonUtils.deepMerge(b?.theme??{},b?.dark??{}))}),[b]),$=Q===i.WR.Dark,[w,T]=l.useState(null);l.useEffect(()=>{T(u??new ce.UndoManager)},[u]);const[O,F]=l.useState(null),[H,z]=l.useState(null),ae=i.Xf();l.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!ce.CommonUtils.isPromiseLike(p)){const g={theme:ae.getDefaultTheme(),...f};z(new ce.Workbook(g))}else z(p)},[p]),l.useLayoutEffect(()=>{if(H){if(H instanceof ce.Workbook)return F({workbook:H}),void(p!==H&&B?.(H));(async()=>{try{let g,D=await Promise.resolve(H);D&&D.source&&(D=await i.qR.read(D)),D.workbook?(X(D.title),g=D.workbook):g=D,B?.(g),F({workbook:g})}catch(g){B?.(null),F({error:g})}})()}},[H]);const[P,S]=l.useState(null);l.useEffect(()=>{if(!w||!O)return;w.clear();const g=O?.workbook?.getTransactions();return g?g.addListener({onCommitEnd:D=>{D.getDescription()?w.addUndoOperation({description:D.getDescription(),undo:()=>(g.revert(D.getId()),P.source?.focus(),()=>{g.restore(D.getId()),P.source?.focus()})}):console.warn("commit has no description",D)}}):void 0},[w,O,P]);const U=i.fe(g=>{g?w.setRepeatableOperation({description:g.label(),repeat:async()=>g.execute()}):w.setRepeatableOperation(null)},[w]),[V,X]=l.useState(h??C?.title??"");l.useEffect(()=>{X(h??C?.title??"")},[h??C?.title]),l.useEffect(()=>{I?.(V)},[V]);const[ie,pe]=l.useState(null),me=l.useMemo(()=>{const g=()=>({contains:D=>!0,focus(){}});return k?k.createChildGroup(g,"application",!1):new i.gs(g,"application")},[k]),je=i.fe(g=>{pe(g.source.getViewportElement()),S(g),me.activate("sheet"),a?.(g)},[me]);l.useEffect(()=>{P&&v&&P.source?.focus(typeof v=="object"?v:void 0)},[P]);const K=l.useRef(null),se=l.useCallback(g=>{let D=null;return C?.hidden||(D=m.jsx(i.eR,{...C,style:{maxWidth:"100%",...C?.style},workbook:q.current,ref:K,title:V,placeHolder:_,onTitleChange:J=>{X(J)}})),m.jsx(Tt,{...g,logo:E,mainElement:D,showFileMenu:!y,showAppearanceMenu:!!(N?.onEnabledDarkGridChange||N?.onEnabledDarkImagesChange||N?.onModeChange)})},[E,V,C,N,y,me]);l.useEffect(()=>{const g=D=>D.preventDefault();return q.current?.addEventListener("wheel",g,{passive:!1}),()=>{q.current?.removeEventListener("wheel",g)}},[]);const Z=l.useMemo(()=>{const g={transparentBackground:!0};return m.jsx(i.Box,{sx:t,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",...n},children:W?.(g)??m.jsx(i.Vl,{...g})})},[t,n,W]),be=l.useCallback(({error:g})=>(s?.(g),m.jsx(c,{sx:t,style:n,error:g??"Unable to display empty workbook."})),[t,n,s]),Me=l.useMemo(()=>({...t,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:g=>g.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[t]),A=i.h5([q,o]),ee=l.useMemo(()=>{if(!O)return Z;if(O.error||!O.workbook)return be({error:O.error});let g=null,D=null,J=!1;return N&&(g=$?N.dark:N.light,D=$&&N.enableDarkGrid?N.dark:N.light,J=N.enableDarkImages),m.jsx(i.JM,{sx:Me,style:n,tabIndex:0,autoFocus:!0,workbook:O.workbook,ref:A,renderToolbar:se,onElementLoad:je,onRepeatCommandChange:U,onKeyDown:Y=>{d?.(Y)},renderLoadingPanel:W,gridTheme:D,headersTheme:g,enableDarkImages:J,className:i.yo(r,"sheetxl-workbook"),onContextMenu:Y=>Y.preventDefault(),...M},"WorkbookElement")},[O,V,w,Z,W,N,M,se,Me]);let R=m.jsx(Jt,{fallbackRender:be,children:m.jsx(pn,{maxSnack:3,domRoot:ie,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(g,D,J)=>{q.current?.focus()},Components:{error:Mt},iconVariant:{success:m.jsx(i.SvgIcon,{style:{marginRight:"8px"},children:m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:m.jsx(i.MR,{style:{marginRight:"8px"}})},children:m.jsx(i.IR,{children:m.jsx(Rt,{workbook:O?.workbook,setWorkbook:z,importExportDisabled:y,titlePlaceHolder:_,titleWorkbook:V,setWorkbookTitle:X,refWorkbookTitle:K,commands:me,undoManager:w,themeOptions:N,children:ee})})})});return N&&(R=m.jsxs(i.nk,{theme:$?N.dark:N.light,children:[N.cssBaseline?m.jsx(Gt,{}):null,R]})),R}));Lt.displayName="EagerStudio";const fn=Object.freeze(Object.defineProperty({__proto__:null,default:Lt},Symbol.toStringTag,{value:"Module"})),hn=Object.freeze(Object.defineProperty({__proto__:null,E:fn,c:oe},Symbol.toStringTag,{value:"Module"}));exports.Collapse=Fe,exports.DffuCp_514AjqJLT=hn,exports.he=oe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),n=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),n=require("./CalnqtYH48_x2rcI.cjs"),k=["Ok","Cancel"],b=a.memo(x=>{const{tableOptions:o,context:c,onOption:p,onValidateOption:y,onDone:d,options:u=k,defaultOption:s=u?.[0],cancelOption:i="Cancel",sx:h,...m}=x,[O,f]=a.useState(!1),[l,C]=a.useState(()=>o?.hasHeader??!1),[r,j]=a.useState(()=>o?.ranges??null),S=n.fe(e=>{const g={...o,hasHeader:l,ranges:r};p?.(e,e===i,e===s),d?.({option:e,tableOptions:g})},[d,p,s,i,l,r,o]),T=a.useCallback(async(e,g)=>null,[]);return t.jsx(n.b4,{title:"Insert Table",options:u,onDone:S,onValidateOption:T,defaultOption:s,cancelOption:i,autoFocusSel:".range-input input",sx:{width:"360px",...h},...m,children:t.jsxs(n.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[t.jsx(n.cM,{formName:"range",value:r,onChangeInput:e=>j(e),resolvedAddress:c.getNames().getRanges.bind(c.getNames()),onFocus:e=>{O||e.target?.select(),f(!0)}}),t.jsx(n.FormControlLabel,{control:t.jsx(n.Checkbox,{checked:l,onChange:()=>C(!l)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
|