Mercurial > repos > fubar > jbrowse2
annotate x/static/js/4741.5a289f5d.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 |
rev | line source |
---|---|
125
49f3d3878413
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
fubar
parents:
diff
changeset
|
1 "use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4741],{84741:(e,t,o)=>{o.r(t),o.d(t,{default:()=>g});var a=o(7552),n=o(49823),r=o(29499),s=o(99123),l=o(61723),i=o(48171),c=o(56089),d=o(33371),u=o(33248),h=o(74893),p=o(69500);const m=(0,h.A)((0,p.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 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 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");function v({onClose:e,open:t}){return a.createElement(n.Dialog,{onClose:()=>{e()},open:t,title:"Info about session URLs"},a.createElement(r.A,null,a.createElement(s.A,null,"Because everything about the JBrowse session is encoded in the URL (e.g. state of the tracks, views, features selected, etc.) the sessions can get very long. Therefore, we created a URL shortener, both as a convenience and because long URLs can break some programs. Note that both the long and short URLs encode the same data, but due to long URLs causing problems with some programs, we recommend sharing short URLs."),a.createElement(s.A,null,'We generate the short URLs in a secure manner which involves encrypting the session on the client side with a random password string and uploading them to a central database. Then the random password is added to the URL but is not uploaded to the central database, making these short URLs effectively "end-to-end encrypted"'),a.createElement(s.A,null,"Only users with a share link can read the session.")))}const A="jbrowse-shareURL";function g(e){const{onClose:t,open:o,currentSetting:h}=e,[p,g]=(0,a.useState)(h),[b,f]=(0,a.useState)(!1);return a.createElement(a.Fragment,null,a.createElement(n.Dialog,{onClose:()=>{localStorage.setItem(A,p),t(p)},open:o,title:"Configure session sharing"},a.createElement(r.A,null,a.createElement(s.A,null,"Select between generating long or short URLs for the session sharing",a.createElement(l.A,{onClick:()=>{f(!0)}},a.createElement(m,null))),a.createElement(i.A,{component:"fieldset"},a.createElement(c.A,{value:p,onChange:e=>{g(e.target.value)}},a.createElement(d.A,{value:"short",control:a.createElement(u.A,null),label:"Short URL"}),a.createElement(d.A,{value:"long",control:a.createElement(u.A,null),label:"Long URL"}))))),a.createElement(v,{open:b,onClose:()=>{f(!1)}}))}},33248:(e,t,o)=>{o.d(t,{A:()=>x});var a=o(7552),n=o(93878),r=o(70799),s=o(72639),l=o(15110),i=o(74893),c=o(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"),u=(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 h=o(55270),p=o(51148),m=o(60129);const v=(0,p.Ay)("span",{shouldForwardProp:h.A})({position:"relative",display:"flex"}),A=(0,p.Ay)(d)({transform:"scale(1)"}),g=(0,p.Ay)(u)((0,m.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})}}]})))),b=function(e){const{checked:t=!1,classes:o={},fontSize:a}=e,n={...e,checked:t};return(0,c.jsxs)(v,{className:o.root,ownerState:n,children:[(0,c.jsx)(A,{fontSize:a,className:o.background,ownerState:n}),(0,c.jsx)(g,{fontSize:a,className:o.dot,ownerState:n})]})};var f=o(15622),R=o(4402),C=o(33960),w=o(39006),y=o(38127),k=o(58520),S=o(4785);const E=(0,p.Ay)(l.A,{shouldForwardProp:e=>(0,h.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"medium"!==o.size&&t[`size${(0,f.A)(o.size)}`],t[`color${(0,f.A)(o.color)}`]]}})((0,m.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${y.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,s.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,k.A)()).map((([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter((0,k.A)()).map((([t])=>({props:{color:t,disabled:!1},style:{[`&.${y.A.checked}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),z=(0,c.jsx)(b,{checked:!0}),j=(0,c.jsx)(b,{}),x=a.forwardRef((function(e,t){const o=(0,S.b)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:l=z,color:i="primary",icon:d=j,name:u,onChange:h,size:p="medium",className:m,disabled:v,disableRipple:A=!1,...g}=o,b=(0,C.A)();let k=v;b&&void 0===k&&(k=b.disabled),k??=!1;const x={...o,disabled:k,disableRipple:A,color:i,size:p},L=(e=>{const{classes:t,color:o,size:a}=e,n={root:["root",`color${(0,f.A)(o)}`,"medium"!==a&&`size${(0,f.A)(a)}`]};return{...t,...(0,r.A)(n,y.q,t)}})(x),U=(0,w.A)();let M=s;const $=(0,R.A)(h,U&&U.onChange);let O=u;var N,B;return U&&(void 0===M&&(N=U.value,M="object"==typeof(B=o.value)&&null!==B?N===B:String(N)===String(B)),void 0===O&&(O=U.name)),(0,c.jsx)(E,{type:"radio",icon:a.cloneElement(d,{fontSize:j.props.fontSize??p}),checkedIcon:a.cloneElement(l,{fontSize:z.props.fontSize??p}),disabled:k,ownerState:x,classes:L,name:O,checked:M,onChange:$,ref:t,className:(0,n.A)(L.root,m),...g})}))},38127:(e,t,o)=>{o.d(t,{A:()=>s,q:()=>r});var a=o(33761),n=o(85693);function r(e){return(0,n.Ay)("MuiRadio",e)}const s=(0,a.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"])},56089:(e,t,o)=>{o.d(t,{A:()=>p});var a=o(7552),n=o(93878),r=o(70799),s=o(83867),l=o(87625),i=o(51584),c=o(77259),d=o(76258),u=o(89456),h=o(69500);const p=a.forwardRef((function(e,t){const{actions:o,children:p,className:m,defaultValue:v,name:A,onChange:g,value:b,...f}=e,R=a.useRef(null),C=(e=>{const{classes:t,row:o,error:a}=e,n={root:["root",o&&"row",a&&"error"]};return(0,r.A)(n,l.B,t)})(e),[w,y]=(0,c.A)({controlled:b,default:v,name:"RadioGroup"});a.useImperativeHandle(o,(()=>({focus:()=>{let e=R.current.querySelector("input:not(:disabled):checked");e||(e=R.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const k=(0,i.A)(t,R),S=(0,u.A)(A),E=a.useMemo((()=>({name:S,onChange(e){y(e.target.value),g&&g(e,e.target.value)},value:w})),[S,g,y,w]);return(0,h.jsx)(d.A.Provider,{value:E,children:(0,h.jsx)(s.A,{role:"radiogroup",ref:k,className:(0,n.A)(C.root,m),...f,children:p})})}))},76258:(e,t,o)=>{o.d(t,{A:()=>a});const a=o(7552).createContext(void 0)},87625:(e,t,o)=>{o.d(t,{A:()=>s,B:()=>r});var a=o(33761),n=o(85693);function r(e){return(0,n.Ay)("MuiRadioGroup",e)}const s=(0,a.A)("MuiRadioGroup",["root","row","error"])},39006:(e,t,o)=>{o.d(t,{A:()=>r});var a=o(7552),n=o(76258);function r(){return a.useContext(n.A)}}}]); |
49f3d3878413
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
fubar
parents:
diff
changeset
|
2 //# sourceMappingURL=4741.5a289f5d.chunk.js.map |