streamlit-toggle-diy 1.0.1__py3-none-any.whl → 1.1.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. streamlit_toggle_diy/__init__.py +208 -53
  2. streamlit_toggle_diy/frontend/build/asset-manifest.json +19 -0
  3. streamlit_toggle_diy/frontend/build/bootstrap.min.css +9501 -0
  4. streamlit_toggle_diy/frontend/build/index.html +1 -0
  5. streamlit_toggle_diy/frontend/build/precache-manifest.208239bd31634c912148876425127f2c.js +22 -0
  6. streamlit_toggle_diy/frontend/build/precache-manifest.669f85f994ea2c0d193915faa9d91f97.js +22 -0
  7. streamlit_toggle_diy/frontend/build/precache-manifest.b7df6085566f07f8f27b94ee8ed2d302.js +22 -0
  8. streamlit_toggle_diy/frontend/build/service-worker.js +39 -0
  9. streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js +3 -0
  10. streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js.LICENSE.txt +68 -0
  11. streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js.map +1 -0
  12. streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js +3 -0
  13. streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.LICENSE.txt +68 -0
  14. streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.map +1 -0
  15. streamlit_toggle_diy/frontend/build/static/js/main.72a874a0.chunk.js +2 -0
  16. streamlit_toggle_diy/frontend/build/static/js/main.72a874a0.chunk.js.map +1 -0
  17. streamlit_toggle_diy/frontend/build/static/js/main.93eb9d37.chunk.js +2 -0
  18. streamlit_toggle_diy/frontend/build/static/js/main.93eb9d37.chunk.js.map +1 -0
  19. streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js +2 -0
  20. streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js.map +1 -0
  21. streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js +2 -0
  22. streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js.map +1 -0
  23. streamlit_toggle_diy/frontend/build/static/js/runtime-main.d76c522e.js +2 -0
  24. streamlit_toggle_diy/frontend/build/static/js/runtime-main.d76c522e.js.map +1 -0
  25. streamlit_toggle_diy/frontend/public/bootstrap.min.css +9501 -0
  26. streamlit_toggle_diy/frontend/public/index.html +25 -0
  27. streamlit_toggle_diy/frontend/src/index.tsx +11 -0
  28. streamlit_toggle_diy/frontend/src/react-app-env.d.ts +1 -0
  29. streamlit_toggle_diy/frontend/src/streamlit_toggle.tsx +170 -0
  30. streamlit_toggle_diy/frontend/src/style.css +6 -0
  31. streamlit_toggle_diy-1.1.4.dist-info/METADATA +88 -0
  32. streamlit_toggle_diy-1.1.4.dist-info/RECORD +35 -0
  33. {streamlit_toggle_diy-1.0.1.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/WHEEL +1 -1
  34. streamlit_toggle_diy-1.0.1.dist-info/METADATA +0 -10
  35. streamlit_toggle_diy-1.0.1.dist-info/RECORD +0 -6
  36. {streamlit_toggle_diy-1.0.1.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/LICENSE +0 -0
  37. {streamlit_toggle_diy-1.0.1.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2 @@
1
+ (this.webpackJsonpsstreamlit_toggle_switch_diy=this.webpackJsonpsstreamlit_toggle_switch_diy||[]).push([[0],{38:function(e,t,a){e.exports=a(45)},45:function(e,t,a){"use strict";a.r(t);var o=a(0),c=a.n(o),r=a(13),n=a.n(r),i=a(5),l=a(3),d=a(2),s=a(27),u=a(34),b=a(64),_=a(65),g=a(66),m=a(63),p=Object(s.b)((function(e){var t=e.args,a=t.default_value,r=t.label_start,n=t.label_end,p=t.justify,f=void 0===p?"flex-start":p,h=t.inactive_color,v=void 0===h?"#CEE8FF":h,k=t.active_color,F=void 0===k?"#00668c":k,E=t.track_color,y=void 0===E?"#3D5A80":E,j=t.label_bg_color_start,x=void 0===j?"#FFFFFF":j,w=t.label_bg_color_end,S=void 0===w?"yellow":w,C=t.background_color_near_button_start,O=void 0===C?"#FFFFFF":C,z=t.background_color_near_button_end,R=void 0===z?"#FFFFFF":z,B=t.border_radius,I=void 0===B?"30px":B,$=t.label_start_color,J=void 0===$?"#333333":$,M=t.label_end_color,W=void 0===M?"red":M,A=t.label_font_size,D=void 0===A?"16px":A,H=t.label_font_weight,V=void 0===H?"bold":H,q=t.switch_size,G=void 0===q?"medium":q,K=Object(o.useRef)(null);Object(o.useEffect)((function(){s.a.setFrameHeight()}),[]);var L=c.a.useState({checkStatus:a}),N=Object(d.a)(L,2),P=N[0],Q=N[1],T=Object(u.a)({overrides:{MuiSwitch:{switchBase:{color:v},colorSecondary:{"&$checked":{color:F}},track:{opacity:.1,backgroundColor:y,"$checked$checked + &":{opacity:1,backgroundColor:y}}}}}),U={backgroundColor:x,color:J,padding:"4px 8px",borderRadius:I,display:"inline-block",fontWeight:V,fontSize:D},X={backgroundColor:S,color:W,padding:"4px 8px",borderRadius:I,display:"inline-block",fontWeight:V,fontSize:D},Y={background:O&&R?"linear-gradient(to right, ".concat(O,", ").concat(R,")"):O||R||"#ffffff",padding:"10px",borderRadius:I,display:"flex",alignItems:"center"};return c.a.createElement(m.a,{theme:T},c.a.createElement(b.a,{component:"div",variant:"subtitle1",paragraph:!1,gutterBottom:!1},c.a.createElement("div",{ref:K,style:Y},c.a.createElement(_.a,{container:!0,justifyContent:f,alignItems:"center",spacing:1},r&&c.a.createElement(_.a,{item:!0},c.a.createElement("span",{style:U},r)),c.a.createElement(_.a,{item:!0},c.a.createElement(g.a,{checked:P.checkStatus,onChange:function(e){Q(Object(l.a)(Object(l.a)({},P),{},Object(i.a)({},e.target.name,e.target.checked))),s.a.setComponentValue(e.target.checked)},name:"checkStatus",size:G})),n&&c.a.createElement(_.a,{item:!0},c.a.createElement("span",{style:X},n))))))}));n.a.render(c.a.createElement(c.a.StrictMode,null,c.a.createElement(p,null)),document.getElementById("root"))}},[[38,1,2]]]);
2
+ //# sourceMappingURL=main.72a874a0.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["streamlit_toggle.tsx","index.tsx"],"names":["withStreamlitConnection","props","_ref","args","default_value","label_start","label_end","_ref$justify","justify","_ref$inactive_color","inactive_color","_ref$active_color","active_color","_ref$track_color","track_color","_ref$label_bg_color_s","label_bg_color_start","_ref$label_bg_color_e","label_bg_color_end","_ref$background_color","background_color_near_button_start","_ref$background_color2","background_color_near_button_end","_ref$border_radius","border_radius","_ref$label_start_colo","label_start_color","_ref$label_end_color","label_end_color","_ref$label_font_size","label_font_size","_ref$label_font_weigh","label_font_weight","_ref$switch_size","switch_size","containerRef","useRef","useEffect","Streamlit","setFrameHeight","_React$useState","React","useState","checkStatus","_React$useState2","_slicedToArray","state","setState","snowflakeTheme","createTheme","overrides","MuiSwitch","switchBase","color","colorSecondary","track","opacity","backgroundColor","labelStartStyle","padding","borderRadius","display","fontWeight","fontSize","labelEndStyle","buttonBackgroundStyle","background","concat","alignItems","createElement","ThemeProvider","theme","Typography","component","variant","paragraph","gutterBottom","ref","style","Grid","container","justifyContent","spacing","item","Switch","checked","onChange","event","_objectSpread","_defineProperty","target","name","setComponentValue","size","ReactDOM","render","StrictMode","StreamlitToggleSwitch","document","getElementById"],"mappings":"kSAyKeA,eA1IS,SAACC,GAEvB,IAAAC,EAoBID,EAAME,KAlBRC,EAAaF,EAAbE,cAEAC,EAAWH,EAAXG,YACAC,EAASJ,EAATI,UAASC,EAAAL,EACTM,eAAO,IAAAD,EAAG,aAAYA,EAAAE,EAAAP,EACtBQ,sBAAc,IAAAD,EAAC,UAASA,EAAAE,EAAAT,EACxBU,oBAAY,IAAAD,EAAC,UAASA,EAAAE,EAAAX,EACtBY,mBAAW,IAAAD,EAAC,UAASA,EAAAE,EAAAb,EACrBc,4BAAoB,IAAAD,EAAC,UAASA,EAAAE,EAAAf,EAC9BgB,0BAAkB,IAAAD,EAAC,SAA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4B,cAACC,IAAa,CAACC,MAAOvB,GACpBP,IAAA4B,cAACG,IAAU,CACTC,UAAU,MACVC,QAAQ,YACRC,WAAW,EACXC,cAAc,GAEdnC,IAAA4B,cAAA,OAAKQ,IAAK1C,EAAc2C,MAAOb,GAC7BxB,IAAA4B,cAACU,IAAI,CAACC,WAAS,EAACC,eAAgBzE,EAAS4D,WAAW,SAASc,QAAS,GACnE7E,GACCoC,IAAA4B,cAACU,IAAI,CAACI,MAAI,GACR1C,IAAA4B,cAAA,QAAMS,MAAOpB,GAAkBrD,IAGnCoC,IAAA4B,cAACU,IAAI,CAACI,MAAI,GACR1C,IAAA4B,cAACe,IAAM,CACLC,QAASvC,EAAMH,YACf2C,SApFO,SAACC,GACpBxC,EAAQyC,wBAAC,GAAK1C,GAAK,GAAA2C,YAAA,GAAGF,EAAMG,OAAOC,KAAOJ,EAAMG,OAAOL,WAEvD/C,IAAUsD,kBAAkBL,EAAMG,OAAOL,UAkF7BM,KAAK,cACLE,KAAM3D,KAGT5B,GACCmC,IAAA4B,cAACU,IAAI,CAACI,MAAI,GACR1C,IAAA4B,cAAA,QAAMS,MAAOd,GAAgB1D,WC1J7CwF,IAASC,OACPtD,IAAA4B,cAAC5B,IAAMuD,WAAU,KACfvD,IAAA4B,cAAC4B,EAAqB,OAExBC,SAASC,eAAe,W","file":"static/js/main.72a874a0.chunk.js","sourcesContent":["import {\n ComponentProps,\n Streamlit,\n withStreamlitConnection,\n} from \"streamlit-component-lib\";\nimport React, { useEffect, useRef } from \"react\";\nimport { createTheme } from \"@material-ui/core/styles\";\nimport { Typography, Switch, Grid } from \"@material-ui/core\";\nimport { ThemeProvider } from \"@material-ui/styles\";\n\ninterface ToggleSwitchProps {\n // 原有参数\n default_value: boolean;\n label_start?: string;\n label_end?: string;\n justify?: \"flex-start\" | \"center\" | \"flex-end\";\n active_color?: string;\n inactive_color?: string;\n track_color?: string;\n label_bg_color_start?: string;\n label_bg_color_end?: string;\n background_color_near_button_start?: string;\n background_color_near_button_end?: string;\n border_radius?: string;\n label_start_color?: string; // 左侧标签文字颜色\n label_end_color?: string; // 右侧标签文字颜色\n label_font_size?: string; // 标签文字大小\n label_font_weight?: string; // 标签文字粗细\n switch_size?: \"small\" | \"medium\"; // Switch 尺寸\n}\n\nconst StreamlitToggle = (props: ComponentProps) => {\n // 1. 从 props.args 中解构所有参数\n const {\n // -- 基础必选 --\n default_value,\n // -- 已有可选 --\n label_start,\n label_end,\n justify = \"flex-start\",\n inactive_color='#CEE8FF',\n active_color=\"#00668c\",\n track_color=\"#3D5A80\",\n label_bg_color_start=\"#FFFFFF\",\n label_bg_color_end=\"yellow\",\n background_color_near_button_start=\"#FFFFFF\",\n background_color_near_button_end=\"#FFFFFF\",\n border_radius='30px',\n label_start_color=\"#333333\",\n label_end_color=\"red\",\n label_font_size=\"16px\",\n label_font_weight=\"bold\",\n switch_size=\"medium\",\n } = props.args as ToggleSwitchProps;\n\n // 2. 引入容器引用,以便 setFrameHeight() 时保证内容高度正确\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n // 通知 Streamlit 调整 iframe 高度\n Streamlit.setFrameHeight();\n }, []);\n\n // 3. 管理 Switch 状态\n const [state, setState] = React.useState({\n checkStatus: default_value,\n });\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setState({ ...state, [event.target.name]: event.target.checked });\n // 将选中状态传回 Python\n Streamlit.setComponentValue(event.target.checked);\n };\n\n // 4. Material-UI 主题:动态覆盖 Switch 的颜色\n const snowflakeTheme = createTheme({\n overrides: {\n MuiSwitch: {\n switchBase: {\n color: inactive_color, // 未选中时的按钮颜色\n },\n colorSecondary: {\n \"&$checked\": {\n color: active_color, // 选中时按钮颜色\n },\n },\n track: {\n opacity: 0.1,\n backgroundColor: track_color, // 轨道颜色\n \"$checked$checked + &\": {\n opacity: 1,\n backgroundColor: track_color,\n },\n },\n },\n },\n });\n\n // 5. 样式:标签与背景\n const labelStartStyle: React.CSSProperties = {\n backgroundColor: label_bg_color_start,\n color: label_start_color,\n padding: \"4px 8px\",\n borderRadius: border_radius,\n display: \"inline-block\",\n fontWeight: label_font_weight,\n fontSize: label_font_size,\n };\n\n const labelEndStyle: React.CSSProperties = {\n backgroundColor: label_bg_color_end,\n color: label_end_color,\n padding: \"4px 8px\",\n borderRadius: border_radius,\n display: \"inline-block\",\n fontWeight: label_font_weight,\n fontSize: label_font_size,\n };\n\n // 背景(左右渐变或单色)\n const buttonBackgroundStyle: React.CSSProperties = {\n background:\n background_color_near_button_start && background_color_near_button_end\n ? `linear-gradient(to right, ${background_color_near_button_start}, ${background_color_near_button_end})`\n : background_color_near_button_start ||\n background_color_near_button_end ||\n \"#ffffff\",\n padding: \"10px\",\n borderRadius: border_radius,\n display: \"flex\",\n alignItems: \"center\",\n };\n\n // 6. 组件 JSX\n return (\n <ThemeProvider theme={snowflakeTheme}>\n <Typography\n component=\"div\"\n variant=\"subtitle1\"\n paragraph={false}\n gutterBottom={false}\n >\n <div ref={containerRef} style={buttonBackgroundStyle}>\n <Grid container justifyContent={justify} alignItems=\"center\" spacing={1}>\n {label_start && (\n <Grid item>\n <span style={labelStartStyle}>{label_start}</span>\n </Grid>\n )}\n <Grid item>\n <Switch\n checked={state.checkStatus}\n onChange={handleChange}\n name=\"checkStatus\"\n size={switch_size} // 新增:Switch 尺寸\n />\n </Grid>\n {label_end && (\n <Grid item>\n <span style={labelEndStyle}>{label_end}</span>\n </Grid>\n )}\n </Grid>\n </div>\n </Typography>\n </ThemeProvider>\n );\n};\n\nexport default withStreamlitConnection(StreamlitToggle);\n","import React from \"react\"\nimport ReactDOM from \"react-dom\"\nimport StreamlitToggleSwitch from \"./streamlit_toggle\"\n\n\nReactDOM.render(\n <React.StrictMode>\n <StreamlitToggleSwitch />\n </React.StrictMode>,\n document.getElementById(\"root\")\n)\n"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (this.webpackJsonpsstreamlit_toggle_switch_diy=this.webpackJsonpsstreamlit_toggle_switch_diy||[]).push([[0],{38:function(e,t,a){e.exports=a(45)},45:function(e,t,a){"use strict";a.r(t);var c=a(0),o=a.n(c),r=a(13),n=a.n(r),l=a(2),i=a(5),s=a(3),d=a(27),u=a(34),b=a(64),g=a(65),p=a(66),m=a(63),_=Object(d.b)((function(e){var t=e.args,a=t.default_value,r=t.label_end,n=t.label_start,_=t.justify,h=t.active_color,k=t.inactive_color,E=t.track_color,f=t.label_bg_color_start,y=t.label_bg_color_end,j=t.background_color_near_button_start,v=t.background_color_near_button_end;Object(c.useEffect)((function(){return d.a.setFrameHeight()}));var x=o.a.useState({checkStatus:a}),C=Object(l.a)(x,2),F=C[0],O=C[1],S=Object(u.a)({overrides:{MuiSwitch:{switchBase:{color:k},colorSecondary:{"&$checked":{color:h}},track:{opacity:.1,backgroundColor:E,"$checked$checked + &":{opacity:1,backgroundColor:E}}}}}),w={backgroundColor:f||"#6e6abb",color:"#7f1916",padding:"4px 8px",borderRadius:"4px",display:"inline-block",fontWeight:"bold"},B={backgroundColor:y||"#0F1C2E",color:"#FFFFFF",padding:"4px 8px",borderRadius:"4px",display:"inline-block",fontWeight:"bold"};return o.a.createElement(m.a,{theme:S},o.a.createElement(b.a,{component:"div",variant:"subtitle1",paragraph:!1,gutterBottom:!1},o.a.createElement(g.a,{container:!0,justifyContent:_,alignItems:"center",spacing:1,style:j||v?{backgroundColor:j||v,padding:"10px",borderRadius:"8px"}:{}},o.a.createElement(g.a,{item:!0},o.a.createElement("span",{style:w},n)),o.a.createElement(g.a,{item:!0},o.a.createElement(p.a,{checked:F.checkStatus,onChange:function(e){O(Object(s.a)(Object(s.a)({},F),{},Object(i.a)({},e.target.name,e.target.checked))),d.a.setComponentValue(e.target.checked)},name:"checkStatus"})),o.a.createElement(g.a,{item:!0},o.a.createElement("span",{style:B},r)))))}));n.a.render(o.a.createElement(o.a.StrictMode,null,o.a.createElement(_,null)),document.getElementById("root"))}},[[38,1,2]]]);
2
+ //# sourceMappingURL=main.93eb9d37.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["streamlit_toggle.tsx","index.tsx"],"names":["withStreamlitConnection","props","_props$args","args","default_value","label_end","label_start","justify","active_color","inactive_color","track_color","label_bg_color_start","label_bg_color_end","background_color_near_button_start","background_color_near_button_end","useEffect","Streamlit","setFrameHeight","_React$useState","React","useState","checkStatus","_React$useState2","_slicedToArray","state","setState","snowflakeTheme","createTheme","overrides","MuiSwitch","switchBase","color","colorSecondary","track","opacity","backgroundColor","labelStartStyle","padding","borderRadius","display","fontWeight","labelEndStyle","createElement","ThemeProvider","theme","Typography","component","variant","paragraph","gutterBottom","Grid","container","justifyContent","alignItems","spacing","style","item","Switch","checked","onChange","event","_objectSpread","_defineProperty","target","name","setComponentValue","ReactDOM","render","StrictMode","StreamlitToggleSwitch","document","getElementById"],"mappings":"kSAyIeA,eA7HS,SAACC,GACvB,IAAAC,EAYID,EAAME,KAXRC,EAAaF,EAAbE,cACAC,EAASH,EAATG,UACAC,EAAWJ,EAAXI,YACAC,EAAOL,EAAPK,QACAC,EAAYN,EAAZM,aACAC,EAAcP,EAAdO,eACAC,EAAWR,EAAXQ,YACAC,EAAoBT,EAApBS,qBACAC,EAAkBV,EAAlBU,mBACAC,EAAkCX,EAAlCW,mCACAC,EAAgCZ,EAAhCY,iCAGFC,qBAAU,kBAAMC,IAAUC,oBAE1B,IAKAC,EAA0BC,IAAMC,SAAS,CACvCC,YAAajB,IACbkB,EAAAC,YAAAL,EAAA,GAFKM,EAAKF,EAAA,GAAEG,EAAQH,EAAA,GAIhBI,EAAiBC,YAAY,CACjCC,UAAW,CACTC,UAAW,CACTC,WAAY,CAEVC,MAAOtB,GAETuB,eAAgB,CACd,YAAa,CAEXD,MAAOvB,IAGXyB,MAAO,CAELC,QAAS,GACTC,gBAAiBzB,EACjB,uBAAwB,CACtBwB,QAAS,EACTC,gBAAiBzB,QAQrB0B,EAAkB,CACtBD,gBAAiBxB,GAAwB,UACzCoB,MAAO,UACPM,QAAS,UACTC,aAAc,MACdC,QAAS,eACTC,WAAY,QAGRC,EAAgB,CACpBN,gBAAiBvB,GAAsB,UACvCmB,MAAO,UACPM,QAAS,UACTC,aAAc,MACdC,QAAS,eACTC,WAAY,QAoBd,OACErB,IAAAuB,cAACC,IAAa,CAACC,MAAOlB,GACpBP,IAAAuB,cAACG,IAAU,CAACC,UAAU,MAAMC,QAAQ,YAAYC,WAAW,EAAOC,cAAc,GAC9E9B,IAAAuB,cAACQ,IAAI,CACHC,WAAS,EACTC,eAAgB7C,EAChB8C,WAAW,SACXC,QAAS,EACTC,MACE1C,GAAsCC,EAClC,CACEqB,gBAAiBtB,GAAsCC,EACvDuB,QAAS,OACTC,aAAc,OAEhB,IAGNnB,IAAAuB,cAACQ,IAAI,CAACM,MAAI,GACRrC,IAAAuB,cAAA,QAAMa,MAAOnB,GAAkB9B,IAEjCa,IAAAuB,cAACQ,IAAI,CAACM,MAAI,GACRrC,IAAAuB,cAACe,IAAM,CACLC,QAASlC,EAAMH,YACfsC,SA/FS,SAACC,GACpBnC,EAAQoC,wBAAC,GAAKrC,GAAK,GAAAsC,YAAA,GAAGF,EAAMG,OAAOC,KAAOJ,EAAMG,OAAOL,WACvD1C,IAAUiD,kBAAkBL,EAAMG,OAAOL,UA8F/BM,KAAK,iBAGT7C,IAAAuB,cAACQ,IAAI,CAACM,MAAI,GACRrC,IAAAuB,cAAA,QAAMa,MAAOd,GAAgBpC,UC5HzC6D,IAASC,OACPhD,IAAAuB,cAACvB,IAAMiD,WAAU,KACfjD,IAAAuB,cAAC2B,EAAqB,OAExBC,SAASC,eAAe,W","file":"static/js/main.93eb9d37.chunk.js","sourcesContent":["import {\n ComponentProps,\n Streamlit,\n withStreamlitConnection,\n} from \"streamlit-component-lib\";\nimport React, { useEffect } from \"react\";\nimport { createTheme } from \"@material-ui/core/styles\";\nimport { Typography, Switch, Grid } from \"@material-ui/core\";\nimport { ThemeProvider } from \"@material-ui/styles\";\n// 如果有自定义 CSS 文件,可以在这里导入\n// import './streamlit_toggle_diy.css';\n\nconst StreamlitToggle = (props: ComponentProps) => {\n const {\n default_value,\n label_end,\n label_start,\n justify,\n active_color,\n inactive_color,\n track_color,\n label_bg_color_start,\n label_bg_color_end,\n background_color_near_button_start, // 新增参数\n background_color_near_button_end, // 新增参数\n } = props.args;\n\n useEffect(() => Streamlit.setFrameHeight());\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setState({ ...state, [event.target.name]: event.target.checked });\n Streamlit.setComponentValue(event.target.checked);\n };\n\n const [state, setState] = React.useState({\n checkStatus: default_value,\n });\n\n const snowflakeTheme = createTheme({\n overrides: {\n MuiSwitch: {\n switchBase: {\n // 控制滑块未激活时的颜色\n color: inactive_color,\n },\n colorSecondary: {\n \"&$checked\": {\n // 控制滑块激活时的颜色\n color: active_color,\n },\n },\n track: {\n // 控制轨道未激活时的颜色\n opacity: 0.1,\n backgroundColor: track_color,\n \"$checked$checked + &\": {\n opacity: 1,\n backgroundColor: track_color,\n },\n },\n },\n },\n });\n\n // 定义动态标签样式,使用传入的背景颜色参数\n const labelStartStyle = {\n backgroundColor: label_bg_color_start || \"#6e6abb\", // 如果未传入,使用默认颜色\n color: \"#7f1916\",\n padding: \"4px 8px\",\n borderRadius: \"4px\",\n display: \"inline-block\",\n fontWeight: \"bold\",\n };\n\n const labelEndStyle = {\n backgroundColor: label_bg_color_end || \"#0F1C2E\", // 如果未传入,使用默认颜色\n color: \"#FFFFFF\",\n padding: \"4px 8px\",\n borderRadius: \"4px\",\n display: \"inline-block\",\n fontWeight: \"bold\",\n };\n\n // 定义按钮附近背景样式\n const buttonBackgroundStartStyle = {\n backgroundColor: background_color_near_button_start || \"#ffffff\", // 默认白色\n padding: \"10px\",\n borderRadius: \"8px\",\n display: \"flex\",\n alignItems: \"center\",\n };\n\n const buttonBackgroundEndStyle = {\n backgroundColor: background_color_near_button_end || \"#ffffff\", // 默认白色\n padding: \"10px\",\n borderRadius: \"8px\",\n display: \"flex\",\n alignItems: \"center\",\n };\n\n return (\n <ThemeProvider theme={snowflakeTheme}>\n <Typography component=\"div\" variant=\"subtitle1\" paragraph={false} gutterBottom={false}>\n <Grid\n container\n justifyContent={justify}\n alignItems=\"center\"\n spacing={1}\n style={\n background_color_near_button_start || background_color_near_button_end\n ? {\n backgroundColor: background_color_near_button_start || background_color_near_button_end,\n padding: \"10px\",\n borderRadius: \"8px\",\n }\n : {}\n }\n >\n <Grid item>\n <span style={labelStartStyle}>{label_start}</span>\n </Grid>\n <Grid item>\n <Switch\n checked={state.checkStatus}\n onChange={handleChange}\n name=\"checkStatus\"\n />\n </Grid>\n <Grid item>\n <span style={labelEndStyle}>{label_end}</span>\n </Grid>\n </Grid>\n </Typography>\n </ThemeProvider>\n );\n};\n\nexport default withStreamlitConnection(StreamlitToggle);\n","import React from \"react\"\nimport ReactDOM from \"react-dom\"\nimport StreamlitToggleSwitch from \"./streamlit_toggle\"\n\n\nReactDOM.render(\n <React.StrictMode>\n <StreamlitToggleSwitch />\n </React.StrictMode>,\n document.getElementById(\"root\")\n)\n"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (this.webpackJsonpstreamlit_toggle_diy=this.webpackJsonpstreamlit_toggle_diy||[]).push([[0],{38:function(e,t,a){e.exports=a(45)},45:function(e,t,a){"use strict";a.r(t);var o=a(0),c=a.n(o),r=a(13),n=a.n(r),l=a(5),i=a(3),d=a(2),s=a(27),u=a(34),b=a(64),_=a(65),g=a(66),m=a(63),p=Object(s.b)((function(e){var t=e.args,a=t.default_value,r=t.label_start,n=t.label_end,p=t.justify,f=void 0===p?"flex-start":p,v=t.inactive_color,h=void 0===v?"#CEE8FF":v,k=t.active_color,F=void 0===k?"#00668c":k,E=t.track_color,y=void 0===E?"#3D5A80":E,j=t.label_bg_color_start,x=void 0===j?"#FFFFFF":j,S=t.label_bg_color_end,C=void 0===S?"yellow":S,O=t.background_color_near_button_start,w=void 0===O?"#FFFFFF":O,z=t.background_color_near_button_end,R=void 0===z?"#FFFFFF":z,B=t.border_radius,I=void 0===B?"30px":B,$=t.label_start_color,J=void 0===$?"#333333":$,M=t.label_end_color,W=void 0===M?"red":M,A=t.label_font_size,D=void 0===A?"16px":A,H=t.label_font_weight,V=void 0===H?"bold":H,q=t.switch_size,G=void 0===q?"medium":q,K=Object(o.useRef)(null);Object(o.useEffect)((function(){s.a.setFrameHeight()}),[]);var L=c.a.useState({checkStatus:a}),N=Object(d.a)(L,2),P=N[0],Q=N[1],T=Object(u.a)({overrides:{MuiSwitch:{switchBase:{color:h},colorSecondary:{"&$checked":{color:F}},track:{opacity:.1,backgroundColor:y,"$checked$checked + &":{opacity:1,backgroundColor:y}}}}}),U={backgroundColor:x,color:J,padding:"4px 8px",borderRadius:I,display:"inline-block",fontWeight:V,fontSize:D},X={backgroundColor:C,color:W,padding:"4px 8px",borderRadius:I,display:"inline-block",fontWeight:V,fontSize:D},Y={background:w&&R?"linear-gradient(to right, ".concat(w,", ").concat(R,")"):w||R||"#ffffff",padding:"10px",borderRadius:I,display:"flex",alignItems:"center"};return c.a.createElement(m.a,{theme:T},c.a.createElement(b.a,{component:"div",variant:"subtitle1",paragraph:!1,gutterBottom:!1},c.a.createElement("div",{ref:K,style:Y},c.a.createElement(_.a,{container:!0,justifyContent:f,alignItems:"center",spacing:1},r&&c.a.createElement(_.a,{item:!0},c.a.createElement("span",{style:U},r)),c.a.createElement(_.a,{item:!0},c.a.createElement(g.a,{checked:P.checkStatus,onChange:function(e){Q(Object(i.a)(Object(i.a)({},P),{},Object(l.a)({},e.target.name,e.target.checked))),s.a.setComponentValue(e.target.checked)},name:"checkStatus",size:G})),n&&c.a.createElement(_.a,{item:!0},c.a.createElement("span",{style:X},n))))))}));n.a.render(c.a.createElement(c.a.StrictMode,null,c.a.createElement(p,null)),document.getElementById("root"))}},[[38,1,2]]]);
2
+ //# sourceMappingURL=main.9f3c3eed.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["streamlit_toggle.tsx","index.tsx"],"names":["withStreamlitConnection","props","_ref","args","default_value","label_start","label_end","_ref$justify","justify","_ref$inactive_color","inactive_color","_ref$active_color","active_color","_ref$track_color","track_color","_ref$label_bg_color_s","label_bg_color_start","_ref$label_bg_color_e","label_bg_color_end","_ref$background_color","background_color_near_button_start","_ref$background_color2","background_color_near_button_end","_ref$border_radius","border_radius","_ref$label_start_colo","label_start_color","_ref$label_end_color","label_end_color","_ref$label_font_size","label_font_size","_ref$label_font_weigh","label_font_weight","_ref$switch_size","switch_size","containerRef","useRef","useEffect","Streamlit","setFrameHeight","_React$useState","React","useState","checkStatus","_React$useState2","_slicedToArray","state","setState","snowflakeTheme","createTheme","overrides","MuiSwitch","switchBase","color","colorSecondary","track","opacity","backgroundColor","labelStartStyle","padding","borderRadius","display","fontWeight","fontSize","labelEndStyle","buttonBackgroundStyle","background","concat","alignItems","createElement","ThemeProvider","theme","Typography","component","variant","paragraph","gutterBottom","ref","style","Grid","container","justifyContent","spacing","item","Switch","checked","onChange","event","_objectSpread","_defineProperty","target","name","setComponentValue","size","ReactDOM","render","StrictMode","StreamlitToggleSwitch","document","getElementById"],"mappings":"kRAyKeA,eA1IS,SAACC,GAEvB,IAAAC,EAoBID,EAAME,KAlBRC,EAAaF,EAAbE,cAEAC,EAAWH,EAAXG,YACAC,EAASJ,EAATI,UAASC,EAAAL,EACTM,eAAO,IAAAD,EAAG,aAAYA,EAAAE,EAAAP,EACtBQ,sBAAc,IAAAD,EAAC,UAASA,EAAAE,EAAAT,EACxBU,oBAAY,IAAAD,EAAC,UAASA,EAAAE,EAAAX,EACtBY,mBAAW,IAAAD,EAAC,UAASA,EAAAE,EAAAb,EACrBc,4BAAoB,IAAAD,EAAC,UAASA,EAAAE,EAAAf,EAC9BgB,0BAAkB,IAAAD,EAAC,SAAQA,EAAAE,EAAAjB,EAC3BkB,0CAAkC,IAAAD,EAAC,UAASA,EAAAE,EAAAnB,EAC5CoB,wCAAgC,IAAAD,EAAC,UAASA,EAAAE,EAAArB,EAC1CsB,qBAAa,IAAAD,EAAC,OAAMA,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,GAC7BxB,IAAA4B,cAACU,IAAI,CAACC,WAAS,EAACC,eAAgBzE,EAAS4D,WAAW,SAASc,QAAS,GACnE7E,GACCoC,IAAA4B,cAACU,IAAI,CAACI,MAAI,GACR1C,IAAA4B,cAAA,QAAMS,MAAOpB,GAAkBrD,IAGnCoC,IAAA4B,cAACU,IAAI,CAACI,MAAI,GACR1C,IAAA4B,cAACe,IAAM,CACLC,QAASvC,EAAMH,YACf2C,SApFO,SAACC,GACpBxC,EAAQyC,wBAAC,GAAK1C,GAAK,GAAA2C,YAAA,GAAGF,EAAMG,OAAOC,KAAOJ,EAAMG,OAAOL,WAEvD/C,IAAUsD,kBAAkBL,EAAMG,OAAOL,UAkF7BM,KAAK,cACLE,KAAM3D,KAGT5B,GACCmC,IAAA4B,cAACU,IAAI,CAACI,MAAI,GACR1C,IAAA4B,cAAA,QAAMS,MAAOd,GAAgB1D,WC1J7CwF,IAASC,OACPtD,IAAA4B,cAAC5B,IAAMuD,WAAU,KACfvD,IAAA4B,cAAC4B,EAAqB,OAExBC,SAASC,eAAe,W","file":"static/js/main.9f3c3eed.chunk.js","sourcesContent":["import {\n ComponentProps,\n Streamlit,\n withStreamlitConnection,\n} from \"streamlit-component-lib\";\nimport React, { useEffect, useRef } from \"react\";\nimport { createTheme } from \"@material-ui/core/styles\";\nimport { Typography, Switch, Grid } from \"@material-ui/core\";\nimport { ThemeProvider } from \"@material-ui/styles\";\n\ninterface ToggleSwitchProps {\n // 原有参数\n default_value: boolean;\n label_start?: string;\n label_end?: string;\n justify?: \"flex-start\" | \"center\" | \"flex-end\";\n active_color?: string;\n inactive_color?: string;\n track_color?: string;\n label_bg_color_start?: string;\n label_bg_color_end?: string;\n background_color_near_button_start?: string;\n background_color_near_button_end?: string;\n border_radius?: string;\n label_start_color?: string; // 左侧标签文字颜色\n label_end_color?: string; // 右侧标签文字颜色\n label_font_size?: string; // 标签文字大小\n label_font_weight?: string; // 标签文字粗细\n switch_size?: \"small\" | \"medium\"; // Switch 尺寸\n}\n\nconst StreamlitToggle = (props: ComponentProps) => {\n // 1. 从 props.args 中解构所有参数\n const {\n // -- 基础必选 --\n default_value,\n // -- 已有可选 --\n label_start,\n label_end,\n justify = \"flex-start\",\n inactive_color='#CEE8FF',\n active_color=\"#00668c\",\n track_color=\"#3D5A80\",\n label_bg_color_start=\"#FFFFFF\",\n label_bg_color_end=\"yellow\",\n background_color_near_button_start=\"#FFFFFF\",\n background_color_near_button_end=\"#FFFFFF\",\n border_radius='30px',\n label_start_color=\"#333333\",\n label_end_color=\"red\",\n label_font_size=\"16px\",\n label_font_weight=\"bold\",\n switch_size=\"medium\",\n } = props.args as ToggleSwitchProps;\n\n // 2. 引入容器引用,以便 setFrameHeight() 时保证内容高度正确\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n // 通知 Streamlit 调整 iframe 高度\n Streamlit.setFrameHeight();\n }, []);\n\n // 3. 管理 Switch 状态\n const [state, setState] = React.useState({\n checkStatus: default_value,\n });\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setState({ ...state, [event.target.name]: event.target.checked });\n // 将选中状态传回 Python\n Streamlit.setComponentValue(event.target.checked);\n };\n\n // 4. Material-UI 主题:动态覆盖 Switch 的颜色\n const snowflakeTheme = createTheme({\n overrides: {\n MuiSwitch: {\n switchBase: {\n color: inactive_color, // 未选中时的按钮颜色\n },\n colorSecondary: {\n \"&$checked\": {\n color: active_color, // 选中时按钮颜色\n },\n },\n track: {\n opacity: 0.1,\n backgroundColor: track_color, // 轨道颜色\n \"$checked$checked + &\": {\n opacity: 1,\n backgroundColor: track_color,\n },\n },\n },\n },\n });\n\n // 5. 样式:标签与背景\n const labelStartStyle: React.CSSProperties = {\n backgroundColor: label_bg_color_start,\n color: label_start_color,\n padding: \"4px 8px\",\n borderRadius: border_radius,\n display: \"inline-block\",\n fontWeight: label_font_weight,\n fontSize: label_font_size,\n };\n\n const labelEndStyle: React.CSSProperties = {\n backgroundColor: label_bg_color_end,\n color: label_end_color,\n padding: \"4px 8px\",\n borderRadius: border_radius,\n display: \"inline-block\",\n fontWeight: label_font_weight,\n fontSize: label_font_size,\n };\n\n // 背景(左右渐变或单色)\n const buttonBackgroundStyle: React.CSSProperties = {\n background:\n background_color_near_button_start && background_color_near_button_end\n ? `linear-gradient(to right, ${background_color_near_button_start}, ${background_color_near_button_end})`\n : background_color_near_button_start ||\n background_color_near_button_end ||\n \"#ffffff\",\n padding: \"10px\",\n borderRadius: border_radius,\n display: \"flex\",\n alignItems: \"center\",\n };\n\n // 6. 组件 JSX\n return (\n <ThemeProvider theme={snowflakeTheme}>\n <Typography\n component=\"div\"\n variant=\"subtitle1\"\n paragraph={false}\n gutterBottom={false}\n >\n <div ref={containerRef} style={buttonBackgroundStyle}>\n <Grid container justifyContent={justify} alignItems=\"center\" spacing={1}>\n {label_start && (\n <Grid item>\n <span style={labelStartStyle}>{label_start}</span>\n </Grid>\n )}\n <Grid item>\n <Switch\n checked={state.checkStatus}\n onChange={handleChange}\n name=\"checkStatus\"\n size={switch_size} // 新增:Switch 尺寸\n />\n </Grid>\n {label_end && (\n <Grid item>\n <span style={labelEndStyle}>{label_end}</span>\n </Grid>\n )}\n </Grid>\n </div>\n </Typography>\n </ThemeProvider>\n );\n};\n\nexport default withStreamlitConnection(StreamlitToggle);\n","import React from \"react\"\nimport ReactDOM from \"react-dom\"\nimport StreamlitToggleSwitch from \"./streamlit_toggle\"\n\n\nReactDOM.render(\n <React.StrictMode>\n <StreamlitToggleSwitch />\n </React.StrictMode>,\n document.getElementById(\"root\")\n)\n"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ !function(e){function t(t){for(var n,l,i=t[0],a=t[1],f=t[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var a=r[i];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var i=this.webpackJsonpstreamlit_toggle_diy=this.webpackJsonpstreamlit_toggle_diy||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var f=0;f<i.length;f++)t(i[f]);var p=a;r()}([]);
2
+ //# sourceMappingURL=runtime-main.cc20bba3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice"],"mappings":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AIoD,EAAWlD,OAAQF,IAAKP,EAAqB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"static/js/runtime-main.cc20bba3.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \tvar jsonpArray = this[\"webpackJsonpstreamlit_toggle_diy\"] = this[\"webpackJsonpstreamlit_toggle_diy\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ !function(e){function t(t){for(var n,i,l=t[0],a=t[1],f=t[2],p=0,s=[];p<l.length;p++)i=l[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);s.length;)s.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="./";var l=this.webpackJsonpsstreamlit_toggle_switch_diy=this.webpackJsonpsstreamlit_toggle_switch_diy||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var f=0;f<l.length;f++)t(l[f]);var c=a;r()}([]);
2
+ //# sourceMappingURL=runtime-main.d76c522e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG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Xa,QAA0BA,OAAOC,aAC1CpC,OAAO+B,eAAeT,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DrC,OAAO+B,eAAeT,EAAS,aAAc,CAAEe,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKzC,OAAO0C,OAAO,MAGvB,GAFAxB,EAAoBgB,EAAEO,GACtBzC,OAAO+B,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOnB,EAAoBS,EAAEc,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRvB,EAAoB2B,EAAI,SAAStB,GAChC,IAAIM,EAASN,GAAUA,EAAOiB,WAC7B,WAAwB,OAAOjB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAL,EAAoBS,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRX,EAAoBY,EAAI,SAASgB,EAAQC,GAAY,OAAO/C,OAAOC,UAAUC,eAAeC,KAAK2C,EAAQC,IAGzG7B,EAAoB8B,EAAI,KAExB,IAAIC,EAAaC,KAA+C,yCAAIA,KAA+C,0CAAK,GACpHC,EAAmBF,EAAW5C,KAAKuC,KAAKK,GAC5CA,EAAW5C,KAAOf,EAClB2D,EAAaA,EAAWG,QACxB,IAAI,IAAIvD,EAAI,EAAGA,EAAIoD,EAAWlD,OAAQF,IAAKP,EAAqB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"static/js/runtime-main.d76c522e.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \tvar jsonpArray = this[\"webpackJsonpsstreamlit_toggle_switch_diy\"] = this[\"webpackJsonpsstreamlit_toggle_switch_diy\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}