Mercurial > repos > fubar > jbrowse2
diff x/static/js/3106.e1981605.chunk.js @ 125:49f3d3878413 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author | fubar |
---|---|
date | Sat, 05 Oct 2024 23:58:05 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/x/static/js/3106.e1981605.chunk.js Sat Oct 05 23:58:05 2024 +0000 @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3106],{23106:(e,o,t)=>{t.r(o),t.d(o,{default:()=>u});var a=t(7552),r=t(68446),n=t(29499),l=t(36715),s=t(33371),i=t(33248),c=t(58507),d=t(5401),p=t(49823),m=t(66395);const u=(0,r.observer)((function({model:e,handleClose:o}){const[t,r]=(0,a.useState)(!1);return a.createElement(p.Dialog,{open:!0,onClose:o,title:"Set color"},a.createElement(n.A,null,a.createElement(l.A,null,"Select either an overall color, or the positive/negative colors. Note that density renderers only work properly with positive/negative colors"),a.createElement(s.A,{checked:!t,onClick:()=>{r(!1)},control:a.createElement(i.A,null),label:"Overall color"}),a.createElement(s.A,{checked:t,onClick:()=>{r(!0)},control:a.createElement(i.A,null),label:"Positive/negative color"}),t?a.createElement(a.Fragment,null,a.createElement(l.A,null,"Positive color"),a.createElement(m.sk,{color:e.posColor||"black",onChange:o=>{e.setPosColor(o),e.setColor(void 0)}}),a.createElement(l.A,null,"Negative color"),a.createElement(m.sk,{color:e.negColor||"black",onChange:o=>{e.setNegColor(o),e.setColor(void 0)}})):a.createElement(a.Fragment,null,a.createElement(l.A,null,"Overall color"),a.createElement(m.sk,{color:e.color||"black",onChange:o=>{e.setColor(o)}}))),a.createElement(c.A,null,a.createElement(d.A,{onClick:()=>{e.setPosColor(void 0),e.setNegColor(void 0),e.setColor(void 0)},color:"secondary",variant:"contained"},"Restore default"),a.createElement(d.A,{variant:"contained",color:"primary",type:"submit",onClick:()=>{o()}},"Submit")))}))},33248:(e,o,t)=>{t.d(o,{A:()=>x});var a=t(7552),r=t(93878),n=t(70799),l=t(72639),s=t(15110),i=t(74893),c=t(69500);const d=(0,i.A)((0,c.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=(0,i.A)((0,c.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var m=t(55270),u=t(51148),v=t(60129);const h=(0,u.Ay)("span",{shouldForwardProp:m.A})({position:"relative",display:"flex"}),A=(0,u.Ay)(d)({transform:"scale(1)"}),b=(0,u.Ay)(p)((0,v.A)((({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})))),C=function(e){const{checked:o=!1,classes:t={},fontSize:a}=e,r={...e,checked:o};return(0,c.jsxs)(h,{className:t.root,ownerState:r,children:[(0,c.jsx)(A,{fontSize:a,className:t.background,ownerState:r}),(0,c.jsx)(b,{fontSize:a,className:t.dot,ownerState:r})]})};var k=t(15622),g=t(4402),f=t(33960),y=t(39006),S=t(38127),E=t(58520),z=t(4785);const w=(0,u.Ay)(s.A,{shouldForwardProp:e=>(0,m.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,"medium"!==t.size&&o[`size${(0,k.A)(t.size)}`],o[`color${(0,k.A)(t.color)}`]]}})((0,v.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${S.A.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,E.A)()).map((([o])=>({props:{color:o,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[o].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter((0,E.A)()).map((([o])=>({props:{color:o,disabled:!1},style:{[`&.${S.A.checked}`]:{color:(e.vars||e).palette[o].main}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),R=(0,c.jsx)(C,{checked:!0}),j=(0,c.jsx)(C,{}),x=a.forwardRef((function(e,o){const t=(0,z.b)({props:e,name:"MuiRadio"}),{checked:l,checkedIcon:s=R,color:i="primary",icon:d=j,name:p,onChange:m,size:u="medium",className:v,disabled:h,disableRipple:A=!1,...b}=t,C=(0,f.A)();let E=h;C&&void 0===E&&(E=C.disabled),E??=!1;const x={...t,disabled:E,disableRipple:A,color:i,size:u},$=(e=>{const{classes:o,color:t,size:a}=e,r={root:["root",`color${(0,k.A)(t)}`,"medium"!==a&&`size${(0,k.A)(a)}`]};return{...o,...(0,n.A)(r,S.q,o)}})(x),N=(0,y.A)();let O=l;const P=(0,g.A)(m,N&&N.onChange);let M=p;var F,_;return N&&(void 0===O&&(F=N.value,O="object"==typeof(_=t.value)&&null!==_?F===_:String(F)===String(_)),void 0===M&&(M=N.name)),(0,c.jsx)(w,{type:"radio",icon:a.cloneElement(d,{fontSize:j.props.fontSize??u}),checkedIcon:a.cloneElement(s,{fontSize:R.props.fontSize??u}),disabled:E,ownerState:x,classes:$,name:M,checked:O,onChange:P,ref:o,className:(0,r.A)($.root,v),...b})}))},38127:(e,o,t)=>{t.d(o,{A:()=>l,q:()=>n});var a=t(33761),r=t(85693);function n(e){return(0,r.Ay)("MuiRadio",e)}const l=(0,a.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"])},76258:(e,o,t)=>{t.d(o,{A:()=>a});const a=t(7552).createContext(void 0)},39006:(e,o,t)=>{t.d(o,{A:()=>n});var a=t(7552),r=t(76258);function n(){return a.useContext(r.A)}}}]); +//# sourceMappingURL=3106.e1981605.chunk.js.map \ No newline at end of file