diff --git a/assets/Color-F6OSRLHC-h-OBFI2K.js b/assets/Color-F6OSRLHC-nuEa7yaH.js similarity index 99% rename from assets/Color-F6OSRLHC-h-OBFI2K.js rename to assets/Color-F6OSRLHC-nuEa7yaH.js index e8c2cca8a0..37d49e7cfe 100644 --- a/assets/Color-F6OSRLHC-h-OBFI2K.js +++ b/assets/Color-F6OSRLHC-nuEa7yaH.js @@ -1 +1 @@ -import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./DocsRenderer-CFRXHY34-0Sl8y62n.js";import{R as m,r as p}from"./index-6oxdNXpR.js";import"./iframe-ZJ6Y6Oqt.js";import"../sb-preview/runtime.js";import"./jsx-runtime-63Ea5SlK.js";import"./index-9gkyvru-.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-4FLvW62B.js";import"./index-mQRHDdot.js";import"./index-PPLHz8o0.js";import"./react-18-8FLnVqma.js";import"./client-Rb4DelHy.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},gr=rr;export{rr as ColorControl,gr as default}; +import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./DocsRenderer-CFRXHY34-L8h3Z5pz.js";import{R as m,r as p}from"./index-6oxdNXpR.js";import"./iframe-DrKPbhiz.js";import"../sb-preview/runtime.js";import"./jsx-runtime-63Ea5SlK.js";import"./index-9gkyvru-.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-4FLvW62B.js";import"./index-mQRHDdot.js";import"./index-PPLHz8o0.js";import"./react-18-8FLnVqma.js";import"./client-Rb4DelHy.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},gr=rr;export{rr as ColorControl,gr as default}; diff --git a/assets/DocsRenderer-CFRXHY34-0Sl8y62n.js b/assets/DocsRenderer-CFRXHY34-L8h3Z5pz.js similarity index 99% rename from assets/DocsRenderer-CFRXHY34-0Sl8y62n.js rename to assets/DocsRenderer-CFRXHY34-L8h3Z5pz.js index 631333661b..f541a7adca 100644 --- a/assets/DocsRenderer-CFRXHY34-0Sl8y62n.js +++ b/assets/DocsRenderer-CFRXHY34-L8h3Z5pz.js @@ -1,4 +1,4 @@ -var Vx=Object.defineProperty;var Ux=(e,t,r)=>t in e?Vx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rn=(e,t,r)=>(Ux(e,typeof t!="symbol"?t+"":t,r),r);import{_ as Y1}from"./iframe-ZJ6Y6Oqt.js";import{r as l,R as y}from"./index-6oxdNXpR.js";import{j as J}from"./jsx-runtime-63Ea5SlK.js";import{r as fs,F as G4}from"./index-9gkyvru-.js";import{O as Y4,P as qx}from"./index-4FLvW62B.js";import{y as hh,g as Eu}from"./index-mQRHDdot.js";import{d as Wx}from"./index-PPLHz8o0.js";import{renderElement as Gx,unmountElement as Yx}from"./react-18-8FLnVqma.js";var Kx=Object.create,K4=Object.defineProperty,Zx=Object.getOwnPropertyDescriptor,Z4=Object.getOwnPropertyNames,Jx=Object.getPrototypeOf,Xx=Object.prototype.hasOwnProperty,xi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),mn=(e,t)=>function(){return t||(0,e[Z4(e)[0]])((t={exports:{}}).exports,t),t.exports},Qx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Z4(t))!Xx.call(e,a)&&a!==r&&K4(e,a,{get:()=>t[a],enumerable:!(n=Zx(t,a))||n.enumerable});return e},K1=(e,t,r)=>(r=e!=null?Kx(Jx(e)):{},Qx(t||!e||!e.__esModule?K4(r,"default",{value:e,enumerable:!0}):r,e));function eD(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r!=null&&r.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function vV(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=eD(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function tD(e){return Array.from(new Set(e))}function rD(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,hs=e=>`set-${e.replace(/\s+/g,"-")}`,cD=Object.create,Z1=Object.defineProperty,dD=Object.getOwnPropertyDescriptor,pD=Object.getOwnPropertyNames,fD=Object.getPrototypeOf,hD=Object.prototype.hasOwnProperty,R=(e,t)=>Z1(e,"name",{value:t,configurable:!0}),Di=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ms=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pD(t))!hD.call(e,a)&&a!==r&&Z1(e,a,{get:()=>t[a],enumerable:!(n=dD(t,a))||n.enumerable});return e},J1=(e,t,r)=>(r=e!=null?cD(fD(e)):{},mD(t||!e||!e.__esModule?Z1(r,"default",{value:e,enumerable:!0}):r,e)),gD=ms(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var rt=$.$$typeof;switch(rt){case r:var xt=$.type;switch(xt){case d:case p:case a:case i:case o:case h:return xt;default:var Mr=xt&&xt.$$typeof;switch(Mr){case c:case m:case g:case v:case s:return Mr;default:return rt}}case n:return rt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,B=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function Z($){return C($)===s}R(Z,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function Et($){return C($)===i}R(Et,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function tt($){return C($)===h}R(tt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=B,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=Z,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=Et,e.isStrictMode=He,e.isSuspense=tt,e.isValidElementType=b,e.typeOf=C})()}),vD=ms((e,t)=>{t.exports=gD()}),J4=ms((e,t)=>{var r=vD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Di=="function"&&Di;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Di=="function"&&Di,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;tt in e?Vx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rn=(e,t,r)=>(Ux(e,typeof t!="symbol"?t+"":t,r),r);import{_ as Y1}from"./iframe-DrKPbhiz.js";import{r as l,R as y}from"./index-6oxdNXpR.js";import{j as J}from"./jsx-runtime-63Ea5SlK.js";import{r as fs,F as G4}from"./index-9gkyvru-.js";import{O as Y4,P as qx}from"./index-4FLvW62B.js";import{y as hh,g as Eu}from"./index-mQRHDdot.js";import{d as Wx}from"./index-PPLHz8o0.js";import{renderElement as Gx,unmountElement as Yx}from"./react-18-8FLnVqma.js";var Kx=Object.create,K4=Object.defineProperty,Zx=Object.getOwnPropertyDescriptor,Z4=Object.getOwnPropertyNames,Jx=Object.getPrototypeOf,Xx=Object.prototype.hasOwnProperty,xi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),mn=(e,t)=>function(){return t||(0,e[Z4(e)[0]])((t={exports:{}}).exports,t),t.exports},Qx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Z4(t))!Xx.call(e,a)&&a!==r&&K4(e,a,{get:()=>t[a],enumerable:!(n=Zx(t,a))||n.enumerable});return e},K1=(e,t,r)=>(r=e!=null?Kx(Jx(e)):{},Qx(t||!e||!e.__esModule?K4(r,"default",{value:e,enumerable:!0}):r,e));function eD(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r!=null&&r.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function vV(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=eD(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function tD(e){return Array.from(new Set(e))}function rD(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,hs=e=>`set-${e.replace(/\s+/g,"-")}`,cD=Object.create,Z1=Object.defineProperty,dD=Object.getOwnPropertyDescriptor,pD=Object.getOwnPropertyNames,fD=Object.getPrototypeOf,hD=Object.prototype.hasOwnProperty,R=(e,t)=>Z1(e,"name",{value:t,configurable:!0}),Di=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ms=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pD(t))!hD.call(e,a)&&a!==r&&Z1(e,a,{get:()=>t[a],enumerable:!(n=dD(t,a))||n.enumerable});return e},J1=(e,t,r)=>(r=e!=null?cD(fD(e)):{},mD(t||!e||!e.__esModule?Z1(r,"default",{value:e,enumerable:!0}):r,e)),gD=ms(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var rt=$.$$typeof;switch(rt){case r:var xt=$.type;switch(xt){case d:case p:case a:case i:case o:case h:return xt;default:var Mr=xt&&xt.$$typeof;switch(Mr){case c:case m:case g:case v:case s:return Mr;default:return rt}}case n:return rt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,B=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function Z($){return C($)===s}R(Z,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function Et($){return C($)===i}R(Et,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function tt($){return C($)===h}R(tt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=B,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=Z,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=Et,e.isStrictMode=He,e.isSuspense=tt,e.isValidElementType=b,e.typeOf=C})()}),vD=ms((e,t)=>{t.exports=gD()}),J4=ms((e,t)=>{var r=vD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Di=="function"&&Di;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Di=="function"&&Di,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?we(ka,--$e):0,la--,de===10&&(la=1,ys--),de}R(i3,"prev");function Oe(){return de=$e2||sa(de)>3?"":" "}R(l3,"whitespace");function s3(e,t){for(;--t&&Oe()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return Aa(e,bo()+(t<6&&dt()==32&&Oe()==32))}R(s3,"escaping");function Cl(e){for(;Oe();)switch(de){case e:return $e;case 34:case 39:e!==34&&e!==39&&Cl(de);break;case 40:e===41&&Cl(e);break;case 92:Oe();break}return $e}R(Cl,"delimiter");function u3(e,t){for(;Oe()&&e+de!==57&&!(e+de===84&&dt()===47););return"/*"+Aa(t,$e-1)+"*"+gs(e===47?e:Oe())}R(u3,"commenter");function c3(e){for(;!sa(dt());)Oe();return Aa(e,$e)}R(c3,"identifier");function d3(e){return op(Eo("",null,null,null,[""],e=ap(e),0,[0],e))}R(d3,"compile");function Eo(e,t,r,n,a,o,i,s,c){for(var d=0,p=0,m=i,h=0,f=0,v=0,g=1,w=1,x=1,D=0,E="",b=a,C=o,S=n,k=E;w;)switch(v=D,D=Oe()){case 40:if(v!=108&&we(k,m-1)==58){Dl(k+=ee(wo(D),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=wo(D);break;case 9:case 10:case 13:case 32:k+=l3(v);break;case 92:k+=s3(bo()-1,7);continue;case 47:switch(dt()){case 42:case 47:oo(p3(u3(Oe(),bo()),t,r),c);break;default:k+="/"}break;case 123*g:s[d++]=lt(k)*x;case 125*g:case 59:case 0:switch(D){case 0:case 125:w=0;case 59+p:x==-1&&(k=ee(k,/\f/g,"")),f>0&<(k)-m&&oo(f>32?Q0(k+";",n,r,m-1):Q0(ee(k," ","")+";",n,r,m-2),c);break;case 59:k+=";";default:if(oo(S=X0(k,t,r,d,p,a,s,E,b=[],C=[],m),o),D===123)if(p===0)Eo(k,t,S,S,b,o,m,s,C);else switch(h===99&&we(k,3)===110?100:h){case 100:case 108:case 109:case 115:Eo(e,S,S,n&&oo(X0(e,S,S,0,0,a,s,E,a,b=[],m),C),a,C,m,s,n?b:C);break;default:Eo(k,S,S,S,[""],C,0,s,C)}}d=p=f=0,g=x=1,E=k="",m=i;break;case 58:m=1+lt(k),f=v;default:if(g<1){if(D==123)--g;else if(D==125&&g++==0&&i3()==125)continue}switch(k+=gs(D),D*g){case 38:x=p>0?1:(k+="\f",-1);break;case 44:s[d++]=(lt(k)-1)*x,x=1;break;case 64:dt()===45&&(k+=wo(Oe())),h=dt(),p=m=lt(E=k+=c3(bo())),D++;break;case 45:v===45&<(k)==2&&(g=0)}}return o}R(Eo,"parse");function X0(e,t,r,n,a,o,i,s,c,d,p){for(var m=a-1,h=a===0?o:[""],f=vs(h),v=0,g=0,w=0;v0?h[x]+" "+D:ee(D,/&\f/g,h[x])))&&(c[w++]=E);return Ko(e,t,r,a===0?tp:s,c,d,p)}R(X0,"ruleset");function p3(e,t,r){return Ko(e,t,r,ep,gs(o3()),ia(e,2,-2),0)}R(p3,"comment");function Q0(e,t,r,n){return Ko(e,t,r,rp,ia(e,0,n),ia(e,n+1,-1),n)}R(Q0,"declaration");function an(e,t){for(var r="",n=vs(e),a=0;a-1},"isIgnoringComment"),BD=R(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var c=i[s];if(c.line=0;r--)if(!m3(t[r]))return!0;return!1},"isPrependedWithRegularRules"),yh=R(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),zD=R(function(e,t,r){m3(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),yh(e)):TD(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yh(e)))},"incorrectImportAlarm");function ip(e,t){switch(t3(e,t)){case 5103:return te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+xl+e+_e+e+e;case 6828:case 4268:return te+e+_e+e+e;case 6165:return te+e+_e+"flex-"+e+e;case 5187:return te+e+ee(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return te+e+_e+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return te+e+_e+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+_e+ee(e,"shrink","negative")+e;case 5292:return te+e+_e+ee(e,"basis","preferred-size")+e;case 6060:return te+"box-"+ee(e,"-grow","")+te+e+_e+ee(e,"grow","positive")+e;case 4554:return te+ee(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lt(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+xl+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dl(e,"stretch")?ip(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(we(e,t+1)!==115)break;case 6444:switch(we(e,lt(e)-3-(~Dl(e,"!important")&&10))){case 107:return ee(e,":",":"+te)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(we(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+_e+"$2box$3")+e}break;case 5936:switch(we(e,t+11)){case 114:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+_e+e+e}return e}R(ip,"prefix");var LD=R(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case rp:e.return=ip(e.value,e.length);break;case e3:return an([$n(e,{value:ee(e.value,"@","@"+te)})],n);case tp:if(e.length)return n3(e.props,function(a){switch(r3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([$n(e,{props:[ee(a,/:(read-\w+)/,":"+xl+"$1")]})],n);case"::placeholder":return an([$n(e,{props:[ee(a,/:(plac\w+)/,":"+te+"input-$1")]}),$n(e,{props:[ee(a,/:(plac\w+)/,":"+xl+"$1")]}),$n(e,{props:[ee(a,/:(plac\w+)/,_e+"input-$1")]})],n)}return""})}},"prefixer"),OD=[LD],MD=R(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||OD;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),w=1;w=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}R(g3,"murmur2");var HD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bh=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -676,7 +676,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function YL(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var w4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ZL(e){if(typeof e!="string")return e;var t=e.toLowerCase();return w4[t]?"#"+w4[t]:e}var JL=/^#[a-fA-F0-9]{6}$/,XL=/^#[a-fA-F0-9]{8}$/,QL=/^#[a-fA-F0-9]{3}$/,eO=/^#[a-fA-F0-9]{4}$/,j0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,tO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,rO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,nO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function du(e){if(typeof e!="string")throw new Ot(3);var t=ZL(e);if(t.match(JL))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(XL)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(QL))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(eO)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=j0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=tO.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=rO.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+Go(s,c,d)+")",m=j0.exec(p);if(!m)throw new Ot(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=nO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+Go(f,v,g)+")",x=j0.exec(w);if(!x)throw new Ot(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ot(5)}function aO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?ps(e,t,r):"rgba("+Go(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ps(e.hue,e.saturation,e.lightness):"rgba("+Go(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ot(2)}function P1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return M1("#"+Yr(e)+Yr(t)+Yr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return M1("#"+Yr(e.red)+Yr(e.green)+Yr(e.blue));throw new Ot(6)}function nr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=du(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?P1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?P1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ot(7)}var uO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},cO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},dO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},pO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function O9(e){if(typeof e!="object")throw new Ot(8);if(cO(e))return nr(e);if(uO(e))return P1(e);if(pO(e))return sO(e);if(dO(e))return lO(e);throw new Ot(8)}function M9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):M9(e,t,n)}}function pu(e){return M9(e,e.length,[])}function fu(e,t,r){return Math.max(e,Math.min(t,r))}function fO(e,t){if(t==="transparent")return t;var r=L9(t);return O9(Ca({},r,{lightness:fu(0,1,r.lightness-parseFloat(e))}))}var hO=pu(fO),Rt=hO;function mO(e,t){if(t==="transparent")return t;var r=L9(t);return O9(Ca({},r,{lightness:fu(0,1,r.lightness+parseFloat(e))}))}var gO=pu(mO),Kr=gO;function vO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,(n*100+parseFloat(e)*100)/100)});return nr(a)}var yO=pu(vO),Zi=yO;function bO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return nr(a)}var wO=pu(bO),oe=wO,EO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),P9=e=>y.createElement(EO,{...e,className:"docblock-emptyblock sb-unstyled"}),xO=F(jf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),DO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Ji=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${nd}`]:{margin:0}})),CO=()=>y.createElement(DO,null,y.createElement(Ji,null),y.createElement(Ji,{style:{width:"80%"}}),y.createElement(Ji,{style:{width:"30%"}}),y.createElement(Ji,{style:{width:"80%"}})),$9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=x3();if(e)return y.createElement(CO,null);if(t)return y.createElement(P9,null,t);let c=y.createElement(xO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?td.dark:td.light;return y.createElement(D3,{theme:rd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Qf=600,SO=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),kO=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),AO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),FO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Qf}px)`]:{}})),_O=({children:e,toc:t})=>y.createElement(FO,{className:"sbdocs sbdocs-wrapper"},y.createElement(AO,{className:"sbdocs sbdocs-content"},e),t),hu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:RO}=globalThis,IO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=RO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},N9=l.createContext({scale:1}),{PREVIEW_URL:BO}=globalThis,TO=BO||"iframe.html",$1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,zO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(WT,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${$1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(H9,null),y.createElement("div",{ref:t,id:`${$1(e)}-inner`,"data-name":i.name}))},LO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(N9.Consumer,null,({scale:r})=>y.createElement(IO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:mL(TO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),OO=F.strong(({theme:e})=>({color:e.color.orange})),MO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(OO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:$1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(zO,{...e}):y.createElement(LO,{...e}))},H9=()=>y.createElement(hL,null),PO=F(Jf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),$O=F.div({display:"flex",alignItems:"center",gap:4}),NO=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),HO=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(PO,{...o},y.createElement($O,{key:"left"},e?[1,2,3].map(i=>y.createElement(NO,{key:i})):y.createElement(y.Fragment,null,y.createElement(sn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(bL,null)),y.createElement(sn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(wL,null)),y.createElement(sn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(EL,null))))),jO=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),E4=F($9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content)}})),VO=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...hu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),UO=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(E4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(E4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function qO(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var WO=F(HO)({position:"absolute",top:0,left:0,right:0,height:40}),GO=F.div({overflow:"hidden",position:"relative"}),j9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=UO(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await Y1(()=>import("./index-RygV29-W.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(B=>B.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(B=>B.title!=="Copied")),1500)}))};return y.createElement(VO,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(WO,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:qO(n),baseUrl:"./iframe.html"}),y.createElement(N9.Provider,{value:{scale:g}},y.createElement(GO,{className:"docs-story",onCopyCapture:a&&A},y.createElement(jO,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(PT.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Cp,{actionItems:C}))),a&&m&&f)};F(j9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),S4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},KO=["style","script"],ZO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,JO=/mailto:/i,XO=/\n{2,}$/,V9=/^(\s*>[\s\S]*?)(?=\n{2,})/,QO=/^ *> ?/gm,eM=/^ {2,}\n/,tM=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,U9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,q9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,rM=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,nM=/^(?:\n *)*\n/,aM=/\r\n?/g,oM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,iM=/^\[\^([^\]]+)]/,lM=/\f/g,sM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,uM=/^\s*?\[(x|\s)\]/,W9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,G9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Y9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,cM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,K9=/^)/,dM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,H1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,pM=/^\{.*\}$/,fM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,hM=/^<([^ >]+@[^ >]+)>/,mM=/^<([^ >]+:\/[^ >]+)>/,gM=/-([a-z])?/gi,Z9=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,vM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,yM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,bM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,wM=/(\[|\])/g,EM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,xM=/\t/g,DM=/^ *\| */,CM=/(^ *\||\| *$)/g,SM=/ *$/,kM=/^ *:-+: *$/,AM=/^ *:-+ *$/,FM=/^ *-+: *$/,mu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",_M=new RegExp(`^([*_])\\1${mu}\\1\\1(?!\\1)`),RM=new RegExp(`^([*_])${mu}\\1(?!\\1|\\w)`),IM=new RegExp(`^==${mu}==`),BM=new RegExp(`^~~${mu}~~`),TM=/^\\([^0-9A-Za-z\s])/,zM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,LM=/^\n+/,OM=/^([ \t]*)/,MM=/\\([^\\])/g,k4=/ *\n+$/,PM=/(?:^|\n)( *)$/,eh="(?:\\d+\\.)",th="(?:[*+-])";function J9(e){return"( *)("+(e===1?eh:th)+") +"}var X9=J9(1),Q9=J9(2);function ex(e){return new RegExp("^"+(e===1?X9:Q9))}var $M=ex(1),NM=ex(2);function tx(e){return new RegExp("^"+(e===1?X9:Q9)+"[^\\n]*(?:\\n(?!\\1"+(e===1?eh:th)+" )[^\\n]*)*(\\n|$)","gm")}var rx=tx(1),nx=tx(2);function ax(e){let t=e===1?eh:th;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ox=ax(1),ix=ax(2);function A4(e,t){let r=t===1,n=r?ox:ix,a=r?rx:nx,o=r?$M:NM;return{match(i,s,c){let d=PM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(XO,` +`};function YL(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var w4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ZL(e){if(typeof e!="string")return e;var t=e.toLowerCase();return w4[t]?"#"+w4[t]:e}var JL=/^#[a-fA-F0-9]{6}$/,XL=/^#[a-fA-F0-9]{8}$/,QL=/^#[a-fA-F0-9]{3}$/,eO=/^#[a-fA-F0-9]{4}$/,j0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,tO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,rO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,nO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function du(e){if(typeof e!="string")throw new Ot(3);var t=ZL(e);if(t.match(JL))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(XL)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(QL))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(eO)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=j0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=tO.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=rO.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+Go(s,c,d)+")",m=j0.exec(p);if(!m)throw new Ot(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=nO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+Go(f,v,g)+")",x=j0.exec(w);if(!x)throw new Ot(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ot(5)}function aO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?ps(e,t,r):"rgba("+Go(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ps(e.hue,e.saturation,e.lightness):"rgba("+Go(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ot(2)}function P1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return M1("#"+Yr(e)+Yr(t)+Yr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return M1("#"+Yr(e.red)+Yr(e.green)+Yr(e.blue));throw new Ot(6)}function nr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=du(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?P1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?P1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ot(7)}var uO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},cO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},dO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},pO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function O9(e){if(typeof e!="object")throw new Ot(8);if(cO(e))return nr(e);if(uO(e))return P1(e);if(pO(e))return sO(e);if(dO(e))return lO(e);throw new Ot(8)}function M9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):M9(e,t,n)}}function pu(e){return M9(e,e.length,[])}function fu(e,t,r){return Math.max(e,Math.min(t,r))}function fO(e,t){if(t==="transparent")return t;var r=L9(t);return O9(Ca({},r,{lightness:fu(0,1,r.lightness-parseFloat(e))}))}var hO=pu(fO),Rt=hO;function mO(e,t){if(t==="transparent")return t;var r=L9(t);return O9(Ca({},r,{lightness:fu(0,1,r.lightness+parseFloat(e))}))}var gO=pu(mO),Kr=gO;function vO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,(n*100+parseFloat(e)*100)/100)});return nr(a)}var yO=pu(vO),Zi=yO;function bO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return nr(a)}var wO=pu(bO),oe=wO,EO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),P9=e=>y.createElement(EO,{...e,className:"docblock-emptyblock sb-unstyled"}),xO=F(jf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),DO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Ji=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${nd}`]:{margin:0}})),CO=()=>y.createElement(DO,null,y.createElement(Ji,null),y.createElement(Ji,{style:{width:"80%"}}),y.createElement(Ji,{style:{width:"30%"}}),y.createElement(Ji,{style:{width:"80%"}})),$9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=x3();if(e)return y.createElement(CO,null);if(t)return y.createElement(P9,null,t);let c=y.createElement(xO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?td.dark:td.light;return y.createElement(D3,{theme:rd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Qf=600,SO=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),kO=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),AO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),FO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Qf}px)`]:{}})),_O=({children:e,toc:t})=>y.createElement(FO,{className:"sbdocs sbdocs-wrapper"},y.createElement(AO,{className:"sbdocs sbdocs-content"},e),t),hu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:RO}=globalThis,IO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=RO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},N9=l.createContext({scale:1}),{PREVIEW_URL:BO}=globalThis,TO=BO||"iframe.html",$1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,zO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(WT,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${$1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(H9,null),y.createElement("div",{ref:t,id:`${$1(e)}-inner`,"data-name":i.name}))},LO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(N9.Consumer,null,({scale:r})=>y.createElement(IO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:mL(TO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),OO=F.strong(({theme:e})=>({color:e.color.orange})),MO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(OO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:$1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(zO,{...e}):y.createElement(LO,{...e}))},H9=()=>y.createElement(hL,null),PO=F(Jf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),$O=F.div({display:"flex",alignItems:"center",gap:4}),NO=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),HO=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(PO,{...o},y.createElement($O,{key:"left"},e?[1,2,3].map(i=>y.createElement(NO,{key:i})):y.createElement(y.Fragment,null,y.createElement(sn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(bL,null)),y.createElement(sn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(wL,null)),y.createElement(sn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(EL,null))))),jO=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),E4=F($9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content)}})),VO=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...hu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),UO=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(E4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(E4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function qO(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var WO=F(HO)({position:"absolute",top:0,left:0,right:0,height:40}),GO=F.div({overflow:"hidden",position:"relative"}),j9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=UO(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await Y1(()=>import("./index-aeV4xcSr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(B=>B.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(B=>B.title!=="Copied")),1500)}))};return y.createElement(VO,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(WO,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:qO(n),baseUrl:"./iframe.html"}),y.createElement(N9.Provider,{value:{scale:g}},y.createElement(GO,{className:"docs-story",onCopyCapture:a&&A},y.createElement(jO,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(PT.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Cp,{actionItems:C}))),a&&m&&f)};F(j9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),S4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},KO=["style","script"],ZO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,JO=/mailto:/i,XO=/\n{2,}$/,V9=/^(\s*>[\s\S]*?)(?=\n{2,})/,QO=/^ *> ?/gm,eM=/^ {2,}\n/,tM=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,U9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,q9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,rM=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,nM=/^(?:\n *)*\n/,aM=/\r\n?/g,oM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,iM=/^\[\^([^\]]+)]/,lM=/\f/g,sM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,uM=/^\s*?\[(x|\s)\]/,W9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,G9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Y9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,cM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,K9=/^)/,dM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,H1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,pM=/^\{.*\}$/,fM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,hM=/^<([^ >]+@[^ >]+)>/,mM=/^<([^ >]+:\/[^ >]+)>/,gM=/-([a-z])?/gi,Z9=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,vM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,yM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,bM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,wM=/(\[|\])/g,EM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,xM=/\t/g,DM=/^ *\| */,CM=/(^ *\||\| *$)/g,SM=/ *$/,kM=/^ *:-+: *$/,AM=/^ *:-+ *$/,FM=/^ *-+: *$/,mu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",_M=new RegExp(`^([*_])\\1${mu}\\1\\1(?!\\1)`),RM=new RegExp(`^([*_])${mu}\\1(?!\\1|\\w)`),IM=new RegExp(`^==${mu}==`),BM=new RegExp(`^~~${mu}~~`),TM=/^\\([^0-9A-Za-z\s])/,zM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,LM=/^\n+/,OM=/^([ \t]*)/,MM=/\\([^\\])/g,k4=/ *\n+$/,PM=/(?:^|\n)( *)$/,eh="(?:\\d+\\.)",th="(?:[*+-])";function J9(e){return"( *)("+(e===1?eh:th)+") +"}var X9=J9(1),Q9=J9(2);function ex(e){return new RegExp("^"+(e===1?X9:Q9))}var $M=ex(1),NM=ex(2);function tx(e){return new RegExp("^"+(e===1?X9:Q9)+"[^\\n]*(?:\\n(?!\\1"+(e===1?eh:th)+" )[^\\n]*)*(\\n|$)","gm")}var rx=tx(1),nx=tx(2);function ax(e){let t=e===1?eh:th;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ox=ax(1),ix=ax(2);function A4(e,t){let r=t===1,n=r?ox:ix,a=r?rx:nx,o=r?$M:NM;return{match(i,s,c){let d=PM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(XO,` `).match(a),m=!1;return{items:p.map(function(h,f){let v=o.exec(h)[0].length,g=new RegExp("^ {1,"+v+"}","gm"),w=h.replace(g,"").replace(o,""),x=f===p.length-1,D=w.indexOf(` `)!==-1||x&&m;m=D;let E=c.inline,b=c.list,C;c.list=!0,D?(c.inline=!1,C=w.replace(k4,` @@ -707,7 +707,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' ${Rt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Kr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Kr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${nr(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),wx=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),KP=F(wx)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),ZP=F.div({display:"flex",alignItems:"center",width:"100%"});function JP(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var XP=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{var f;let d=v=>{r(sP(v.target.value))},p=t!==void 0,m=l.useMemo(()=>JP(o),[o]),h=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return y.createElement(ZP,{"aria-readonly":h},y.createElement(wx,null,n),y.createElement(YP,{id:vt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(KP,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},QP=F.label({display:"flex"}),e$=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),t$=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},c=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Sn,{variant:"outline",size:"medium",disabled:c,id:hs(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(QP,null,y.createElement(yi.Textarea,{id:vt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(e$,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},r$=F(yi.Input)({padding:10});function n$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var a$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var c;let o=l.useRef(null),i=(c=a==null?void 0:a.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),n$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(r$,{ref:o,id:vt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},o$=l.lazy(()=>Y1(()=>import("./Color-F6OSRLHC-h-OBFI2K.js"),__vite__mapDeps([11,2,3,1,4,5,6,7,8,9,10]),import.meta.url)),i$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(o$,{...e})),l$={array:M4,object:M4,boolean:eP,color:i$,date:iP,number:cP,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:XP,text:t$,file:a$},P4=()=>y.createElement(y.Fragment,null,"-"),s$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(w=>(d({value:w}),r({[a]:w}),w),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let w=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(P4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=l$[o.type]||P4;return y.createElement(v,{...f,...o,controlType:o.type})},u$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Lr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),c$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(u$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},d$=K1(T9()),U1=8,$4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),p$=F.span(Lr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),f$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),h$=F.div(Lr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),m$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),g$=F(RL)({marginLeft:4}),v$=F(B9)({marginLeft:4}),y$=()=>y.createElement("span",null,"-"),Ex=({text:e,simple:t})=>y.createElement(p$,{simple:t},e),b$=(0,d$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),w$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return tD(t)},N4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,U1)),r.map(n=>y.createElement(Ex,{key:n,text:n===""?'""':n}))},E$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(Ex,{text:c});let d=w$(c),p=d.length;return p>U1?y.createElement($4,{isExpanded:i},N4(d,i),y.createElement(f$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-U1} more...`)):y.createElement($4,null,N4(d))}return y.createElement(yz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(m$,{width:b$(n)},y.createElement(jf,{language:"jsx",format:!1},n))},y.createElement(h$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(g$,null):y.createElement(v$,null)))},K0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(y$,null):y.createElement(E$,{value:e,initialExpandedArgs:t}),x$=F.span({fontWeight:"bold"}),D$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),C$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Lr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),S$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),k$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),A$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),F$=e=>e&&{summary:typeof e=="string"?e:e.name},Xi=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||F$(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(A$,{expandable:i},y.createElement(x$,null,c),f?y.createElement(D$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(C$,null,y.createElement(sx,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(k$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s})),y.createElement(c$,{tags:p.jsDocTags})):y.createElement(S$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(K0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(s$,{...e,isHovered:t})):null)},_$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),R$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),I$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),B$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(_$,{inAddonPanel:e},y.createElement(S9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(R$,null,e&&y.createElement(y.Fragment,null,y.createElement(oa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(CL,null)," Watch 5m video"),y.createElement(I$,null),y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read docs")),!e&&y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Learn how to set that up"))}))},T$=F(FL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),z$=F(_L)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),L$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),O$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),M$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),P$=F.td(()=>({position:"relative"})),$$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Kr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),H4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Z0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?M$:O$,c=(r==null?void 0:r.length)||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement($$,{title:p},y.createElement(s,{colSpan:1},y.createElement(H4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(L$,null,o?y.createElement(T$,null):y.createElement(z$,null),t)),y.createElement(P$,{colSpan:a-1},y.createElement(H4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Qi=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],N$=()=>y.createElement(y.Fragment,null,y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),H$=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),j$=F(sn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),V$=F.span({display:"flex",justifyContent:"space-between"}),U$={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},q$=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=U$[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},W$=(e,t,r)=>{try{return qx(e,t,r)}catch(n){return TL.warn(n.message),!1}},q1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(P9,null,D," ",y.createElement(oa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read the docs"))}if(s)return y.createElement(N$,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=q$(rD(c||{},D=>{var E;return!((E=D==null?void 0:D.table)!=null&&E.disable)&&W$(D,d||{},p||{})}),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(B$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(H8,null,y.createElement(H$,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(V$,null,"Control"," ",!s&&r&&y.createElement(j$,{onClick:()=>r(),title:"Reset controls"},y.createElement(IL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Xi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(Z0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Xi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},G$=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(q1,{...r[0][1],...t}):y.createElement(eL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(q1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...hu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...hu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...hu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var Y$=e=>`anchor--${e}`,K$=({storyId:e,children:t})=>y.createElement("div",{id:Y$(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Yt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),kn=(e,t)=>l.useContext(Yt).resolveOf(e,t),Z$=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),J$=e=>{if(e)return typeof e=="string"?e.includes("-")?Z$(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function X$(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var Q$=Object.create,xx=Object.defineProperty,eN=Object.getOwnPropertyDescriptor,Dx=Object.getOwnPropertyNames,tN=Object.getPrototypeOf,rN=Object.prototype.hasOwnProperty,et=(e,t)=>function(){return t||(0,e[Dx(e)[0]])((t={exports:{}}).exports,t),t.exports},nN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dx(t))!rN.call(e,a)&&a!==r&&xx(e,a,{get:()=>t[a],enumerable:!(n=eN(t,a))||n.enumerable});return e},ah=(e,t,r)=>(r=e!=null?Q$(tN(e)):{},nN(t||!e||!e.__esModule?xx(r,"default",{value:e,enumerable:!0}):r,e)),aN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],oN=["detail"];function iN(e){let t=aN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&oN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var lN=K1(T9(),1),Cx=et({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),Sx=et({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Cx();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),sN=et({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=oh(),D=uN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},B=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=B("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,Z);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[Z]}else ne=D(U,Z),U=U[Z];ne&&!V&&(v[j]=U)}}return U}}}),cN=et({"node_modules/call-bind/index.js"(e,t){var r=oh(),n=kx(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),dN=et({"node_modules/call-bind/callBound.js"(e,t){var r=kx(),n=cN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),pN=et({"node_modules/has-tostringtag/shams.js"(e,t){var r=Cx();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),fN=et({"node_modules/is-regex/index.js"(e,t){var r=dN(),n=pN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),hN=et({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),mN=et({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Sx()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),gN=ah(fN()),vN=ah(hN()),yN=ah(mN());function bN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var wN=typeof global=="object"&&global&&global.Object===Object&&global,EN=wN,xN=typeof self=="object"&&self&&self.Object===Object&&self,DN=EN||xN||Function("return this")(),ih=DN,CN=ih.Symbol,Sa=CN,Ax=Object.prototype,SN=Ax.hasOwnProperty,kN=Ax.toString,ao=Sa?Sa.toStringTag:void 0;function AN(e){var t=SN.call(e,ao),r=e[ao];try{e[ao]=void 0;var n=!0}catch{}var a=kN.call(e);return n&&(t?e[ao]=r:delete e[ao]),a}var FN=AN,_N=Object.prototype,RN=_N.toString;function IN(e){return RN.call(e)}var BN=IN,TN="[object Null]",zN="[object Undefined]",j4=Sa?Sa.toStringTag:void 0;function LN(e){return e==null?e===void 0?zN:TN:j4&&j4 in Object(e)?FN(e):BN(e)}var ON=LN,V4=Sa?Sa.prototype:void 0;V4&&V4.toString;function MN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fx=MN,PN="[object AsyncFunction]",$N="[object Function]",NN="[object GeneratorFunction]",HN="[object Proxy]";function jN(e){if(!Fx(e))return!1;var t=ON(e);return t==$N||t==NN||t==PN||t==HN}var VN=jN,UN=ih["__core-js_shared__"],J0=UN,U4=function(){var e=/[^.]+$/.exec(J0&&J0.keys&&J0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qN(e){return!!U4&&U4 in e}var WN=qN,GN=Function.prototype,YN=GN.toString;function KN(e){if(e!=null){try{return YN.call(e)}catch{}try{return e+""}catch{}}return""}var ZN=KN,JN=/[\\^$.*+?()[\]{}|]/g,XN=/^\[object .+?Constructor\]$/,QN=Function.prototype,eH=Object.prototype,tH=QN.toString,rH=eH.hasOwnProperty,nH=RegExp("^"+tH.call(rH).replace(JN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aH(e){if(!Fx(e)||WN(e))return!1;var t=VN(e)?nH:XN;return t.test(ZN(e))}var oH=aH;function iH(e,t){return e==null?void 0:e[t]}var lH=iH;function sH(e,t){var r=lH(e,t);return oH(r)?r:void 0}var _x=sH;function uH(e,t){return e===t||e!==e&&t!==t}var cH=uH,dH=_x(Object,"create"),Yo=dH;function pH(){this.__data__=Yo?Yo(null):{},this.size=0}var fH=pH;function hH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mH=hH,gH="__lodash_hash_undefined__",vH=Object.prototype,yH=vH.hasOwnProperty;function bH(e){var t=this.__data__;if(Yo){var r=t[e];return r===gH?void 0:r}return yH.call(t,e)?t[e]:void 0}var wH=bH,EH=Object.prototype,xH=EH.hasOwnProperty;function DH(e){var t=this.__data__;return Yo?t[e]!==void 0:xH.call(t,e)}var CH=DH,SH="__lodash_hash_undefined__";function kH(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yo&&t===void 0?SH:t,this}var AH=kH;function La(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var PH=MH;function $H(e,t){var r=this.__data__,n=vu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var NH=$H;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),ZP=F.div({display:"flex",alignItems:"center",width:"100%"});function JP(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var XP=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{var f;let d=v=>{r(sP(v.target.value))},p=t!==void 0,m=l.useMemo(()=>JP(o),[o]),h=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return y.createElement(ZP,{"aria-readonly":h},y.createElement(wx,null,n),y.createElement(YP,{id:vt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(KP,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},QP=F.label({display:"flex"}),e$=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),t$=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},c=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Sn,{variant:"outline",size:"medium",disabled:c,id:hs(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(QP,null,y.createElement(yi.Textarea,{id:vt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(e$,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},r$=F(yi.Input)({padding:10});function n$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var a$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var c;let o=l.useRef(null),i=(c=a==null?void 0:a.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),n$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(r$,{ref:o,id:vt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},o$=l.lazy(()=>Y1(()=>import("./Color-F6OSRLHC-nuEa7yaH.js"),__vite__mapDeps([11,2,3,1,4,5,6,7,8,9,10]),import.meta.url)),i$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(o$,{...e})),l$={array:M4,object:M4,boolean:eP,color:i$,date:iP,number:cP,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:XP,text:t$,file:a$},P4=()=>y.createElement(y.Fragment,null,"-"),s$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(w=>(d({value:w}),r({[a]:w}),w),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let w=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(P4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=l$[o.type]||P4;return y.createElement(v,{...f,...o,controlType:o.type})},u$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Lr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),c$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(u$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},d$=K1(T9()),U1=8,$4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),p$=F.span(Lr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),f$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),h$=F.div(Lr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),m$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),g$=F(RL)({marginLeft:4}),v$=F(B9)({marginLeft:4}),y$=()=>y.createElement("span",null,"-"),Ex=({text:e,simple:t})=>y.createElement(p$,{simple:t},e),b$=(0,d$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),w$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return tD(t)},N4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,U1)),r.map(n=>y.createElement(Ex,{key:n,text:n===""?'""':n}))},E$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(Ex,{text:c});let d=w$(c),p=d.length;return p>U1?y.createElement($4,{isExpanded:i},N4(d,i),y.createElement(f$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-U1} more...`)):y.createElement($4,null,N4(d))}return y.createElement(yz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(m$,{width:b$(n)},y.createElement(jf,{language:"jsx",format:!1},n))},y.createElement(h$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(g$,null):y.createElement(v$,null)))},K0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(y$,null):y.createElement(E$,{value:e,initialExpandedArgs:t}),x$=F.span({fontWeight:"bold"}),D$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),C$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Lr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),S$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),k$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),A$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),F$=e=>e&&{summary:typeof e=="string"?e:e.name},Xi=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||F$(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(A$,{expandable:i},y.createElement(x$,null,c),f?y.createElement(D$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(C$,null,y.createElement(sx,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(k$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s})),y.createElement(c$,{tags:p.jsDocTags})):y.createElement(S$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(K0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(s$,{...e,isHovered:t})):null)},_$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),R$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),I$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),B$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(_$,{inAddonPanel:e},y.createElement(S9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(R$,null,e&&y.createElement(y.Fragment,null,y.createElement(oa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(CL,null)," Watch 5m video"),y.createElement(I$,null),y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read docs")),!e&&y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Learn how to set that up"))}))},T$=F(FL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),z$=F(_L)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),L$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),O$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),M$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),P$=F.td(()=>({position:"relative"})),$$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Kr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),H4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Z0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?M$:O$,c=(r==null?void 0:r.length)||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement($$,{title:p},y.createElement(s,{colSpan:1},y.createElement(H4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(L$,null,o?y.createElement(T$,null):y.createElement(z$,null),t)),y.createElement(P$,{colSpan:a-1},y.createElement(H4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Qi=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],N$=()=>y.createElement(y.Fragment,null,y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),H$=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),j$=F(sn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),V$=F.span({display:"flex",justifyContent:"space-between"}),U$={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},q$=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=U$[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},W$=(e,t,r)=>{try{return qx(e,t,r)}catch(n){return TL.warn(n.message),!1}},q1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(P9,null,D," ",y.createElement(oa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read the docs"))}if(s)return y.createElement(N$,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=q$(rD(c||{},D=>{var E;return!((E=D==null?void 0:D.table)!=null&&E.disable)&&W$(D,d||{},p||{})}),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(B$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(H8,null,y.createElement(H$,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(V$,null,"Control"," ",!s&&r&&y.createElement(j$,{onClick:()=>r(),title:"Reset controls"},y.createElement(IL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Xi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(Z0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(Z0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Xi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},G$=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(q1,{...r[0][1],...t}):y.createElement(eL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(q1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...hu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...hu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...hu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var Y$=e=>`anchor--${e}`,K$=({storyId:e,children:t})=>y.createElement("div",{id:Y$(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Yt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),kn=(e,t)=>l.useContext(Yt).resolveOf(e,t),Z$=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),J$=e=>{if(e)return typeof e=="string"?e.includes("-")?Z$(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function X$(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var Q$=Object.create,xx=Object.defineProperty,eN=Object.getOwnPropertyDescriptor,Dx=Object.getOwnPropertyNames,tN=Object.getPrototypeOf,rN=Object.prototype.hasOwnProperty,et=(e,t)=>function(){return t||(0,e[Dx(e)[0]])((t={exports:{}}).exports,t),t.exports},nN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dx(t))!rN.call(e,a)&&a!==r&&xx(e,a,{get:()=>t[a],enumerable:!(n=eN(t,a))||n.enumerable});return e},ah=(e,t,r)=>(r=e!=null?Q$(tN(e)):{},nN(t||!e||!e.__esModule?xx(r,"default",{value:e,enumerable:!0}):r,e)),aN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],oN=["detail"];function iN(e){let t=aN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&oN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var lN=K1(T9(),1),Cx=et({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),Sx=et({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Cx();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),sN=et({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=oh(),D=uN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},B=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=B("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,Z);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[Z]}else ne=D(U,Z),U=U[Z];ne&&!V&&(v[j]=U)}}return U}}}),cN=et({"node_modules/call-bind/index.js"(e,t){var r=oh(),n=kx(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),dN=et({"node_modules/call-bind/callBound.js"(e,t){var r=kx(),n=cN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),pN=et({"node_modules/has-tostringtag/shams.js"(e,t){var r=Cx();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),fN=et({"node_modules/is-regex/index.js"(e,t){var r=dN(),n=pN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),hN=et({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),mN=et({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Sx()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),gN=ah(fN()),vN=ah(hN()),yN=ah(mN());function bN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var wN=typeof global=="object"&&global&&global.Object===Object&&global,EN=wN,xN=typeof self=="object"&&self&&self.Object===Object&&self,DN=EN||xN||Function("return this")(),ih=DN,CN=ih.Symbol,Sa=CN,Ax=Object.prototype,SN=Ax.hasOwnProperty,kN=Ax.toString,ao=Sa?Sa.toStringTag:void 0;function AN(e){var t=SN.call(e,ao),r=e[ao];try{e[ao]=void 0;var n=!0}catch{}var a=kN.call(e);return n&&(t?e[ao]=r:delete e[ao]),a}var FN=AN,_N=Object.prototype,RN=_N.toString;function IN(e){return RN.call(e)}var BN=IN,TN="[object Null]",zN="[object Undefined]",j4=Sa?Sa.toStringTag:void 0;function LN(e){return e==null?e===void 0?zN:TN:j4&&j4 in Object(e)?FN(e):BN(e)}var ON=LN,V4=Sa?Sa.prototype:void 0;V4&&V4.toString;function MN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fx=MN,PN="[object AsyncFunction]",$N="[object Function]",NN="[object GeneratorFunction]",HN="[object Proxy]";function jN(e){if(!Fx(e))return!1;var t=ON(e);return t==$N||t==NN||t==PN||t==HN}var VN=jN,UN=ih["__core-js_shared__"],J0=UN,U4=function(){var e=/[^.]+$/.exec(J0&&J0.keys&&J0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qN(e){return!!U4&&U4 in e}var WN=qN,GN=Function.prototype,YN=GN.toString;function KN(e){if(e!=null){try{return YN.call(e)}catch{}try{return e+""}catch{}}return""}var ZN=KN,JN=/[\\^$.*+?()[\]{}|]/g,XN=/^\[object .+?Constructor\]$/,QN=Function.prototype,eH=Object.prototype,tH=QN.toString,rH=eH.hasOwnProperty,nH=RegExp("^"+tH.call(rH).replace(JN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aH(e){if(!Fx(e)||WN(e))return!1;var t=VN(e)?nH:XN;return t.test(ZN(e))}var oH=aH;function iH(e,t){return e==null?void 0:e[t]}var lH=iH;function sH(e,t){var r=lH(e,t);return oH(r)?r:void 0}var _x=sH;function uH(e,t){return e===t||e!==e&&t!==t}var cH=uH,dH=_x(Object,"create"),Yo=dH;function pH(){this.__data__=Yo?Yo(null):{},this.size=0}var fH=pH;function hH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mH=hH,gH="__lodash_hash_undefined__",vH=Object.prototype,yH=vH.hasOwnProperty;function bH(e){var t=this.__data__;if(Yo){var r=t[e];return r===gH?void 0:r}return yH.call(t,e)?t[e]:void 0}var wH=bH,EH=Object.prototype,xH=EH.hasOwnProperty;function DH(e){var t=this.__data__;return Yo?t[e]!==void 0:xH.call(t,e)}var CH=DH,SH="__lodash_hash_undefined__";function kH(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yo&&t===void 0?SH:t,this}var AH=kH;function La(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var PH=MH;function $H(e,t){var r=this.__data__,n=vu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var NH=$H;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;idj(e).replace(/\n\s*/g,"").trim()),fj=function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let a=r;return a=a.replace(e,"function"),a+n},hj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Ix(e){if(!cj(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=iN(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var mj=function(e){let t,r,n,a;return function(o,i){try{if(o==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return hj.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,gN.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,vN.default)(i)){if(!e.allowFunction)return;let{name:d}=i,p=i.toString();return p.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${pj(fj(o,p))}`}if((0,yN.default)(i)){if(!e.allowSymbol)return;let d=Symbol.keyFor(i);return d!==void 0?`_gsymbol_${d}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let c=t.get(i);if(!c){let d=Array.isArray(i)?i:Ix(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":i.constructor.name})}catch{}return a.push(o),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}catch{return}}},gj={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},vj=(e,t={})=>{let r={...gj,...t};return JSON.stringify(Ix(e),mj(r),t.space)};function Bx(e){return vj(e,{allowFunction:!1})}var Tx=l.createContext({sources:{}}),zx="--unknown--",yj=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:c,args:d=void 0,source:p,format:m}=typeof o=="string"?{id:o,source:i,format:s}:o,h=d?Bx(d):zx;n(f=>({...f,[c]:{...f[c],[h]:{code:p,format:m}}}))};return t.on(hh,a),()=>t.off(hh,a)},[]),y.createElement(Tx.Provider,{value:{sources:r}},e)},bj=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[Bx(t)])||(a==null?void 0:a[zx])||{code:""}},wj=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var c,d;let{__isArgsStory:a}=t.parameters,o=((c=t.parameters.docs)==null?void 0:c.source)||{},i=r||o.type||Eu.AUTO;if(o.code!==void 0)return o.code;let s=i===Eu.DYNAMIC||i===Eu.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},Ej=(e,t,r)=>{var f,v,g,w;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,s=e.format??o.format,c=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:c,dark:d};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,h=bj(n.id,m,r);return s=h.format??((w=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:w.format)??!1,{code:wj({snippet:h.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:c,dark:d}};function xj(e,t){let r=Dj([e],t);return r&&r[0]}function Dj(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Cj=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},Sj=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,c=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:c,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},kj=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(Yt),r=Cj(e,t),n=xj(r,t);if(!n)return y.createElement(H9,null);let a=Sj(e,n,t);return a?y.createElement(MO,{...a}):null},Aj=e=>{var h,f,v,g,w,x,D,E,b,C;let t=l.useContext(Yt),r=l.useContext(Tx),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=kn(n||"story",["story"]),i=Ej({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((f=(h=o.parameters.docs)==null?void 0:h.canvas)==null?void 0:f.layout)??"padded",c=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((x=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:x.additionalActions),p=e.sourceState??((E=(D=o.parameters.docs)==null?void 0:D.canvas)==null?void 0:E.sourceState)??"hidden",m=e.className??((C=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:C.className);return y.createElement(j9,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:c,additionalActions:d,className:m,layout:s},y.createElement(kj,{of:n||o.moduleExport,meta:e.meta,...e.story}))},Fj=(e,t)=>{let r=_j(e,t);if(!r)throw new Error("No result when story was defined");return r},_j=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let c=d=>{d.storyId===n&&o(d.args)};return t.channel.on(y4,c),()=>t.channel.off(y4,c)},[n,t.channel]);let i=l.useCallback(c=>t.channel.emit(zL,{storyId:n,updatedArgs:c}),[n,t.channel]),s=l.useCallback(c=>t.channel.emit(LL,{storyId:n,argNames:c}),[n,t.channel]);return e&&[a,i,s]},Rj=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(b4,o),()=>t.channel.off(b4,o)},[t.channel]),[n]};function Ij(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Bj=e=>{var b;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(Yt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,c=((b=a.docs)==null?void 0:b.controls)||{},d=e.include??c.include,p=e.exclude??c.exclude,m=e.sort??c.sort,[h,f,v]=Fj(n,r),[g]=Rj(n,r),w=v4(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(w).length>0||Object.keys(h).length>0?y.createElement(q1,{rows:w,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v}):null;let x=J$(i),D=Object.fromEntries(Object.entries(s).map(([C,S])=>[C,{rows:v4(Ij(S,a),d,p),sort:m}])),E={[x]:{rows:w,sort:m},...D};return y.createElement(G$,{tabs:E,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v})},{document:Lx}=globalThis,Ox=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(j8,null,t);let n=e&&e.split("-");return y.createElement($9,{language:n&&n[1]||"text",format:!1,code:t,...r})};function sh(e,t){e.channel.emit(OL,t)}var W1=vL.a,Tj=({hash:e,children:t})=>{let r=l.useContext(Yt);return y.createElement(W1,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);Lx.getElementById(a)&&sh(r,e)}},t)},Mx=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(Yt);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(W1,{...e}):t.startsWith("#")?y.createElement(Tj,{hash:t},n):y.createElement(W1,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),sh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},Px=["h1","h2","h3","h4","h5","h6"],zj=Px.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Lj=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Oj=({as:e,id:t,children:r,...n})=>{let a=l.useContext(Yt),o=zj[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Lj,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{Lx.getElementById(t)&&sh(a,i)}},y.createElement(AL,null)),r)},uh=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Oj,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...le(s,t)})},$x=Px.reduce((e,t)=>({...e,[t]:r=>y.createElement(uh,{as:t,...r})}),{}),Mj=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Wx`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' @@ -729,7 +729,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' `);return y.createElement(sx,{...e,options:{forceBlock:!0,overrides:{code:Ox,a:Mx,...$x,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},Pj=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(Pj||{}),$j=e=>{var t,r,n,a,o,i,s,c;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:d,component:p}=e.preparedMeta;return((a=(n=d.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(o=d.docs)==null?void 0:o.extractComponentDescription)==null?void 0:i.call(o,p,{component:p,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:p}}=e;return((c=(s=p.docs)==null?void 0:s.extractComponentDescription)==null?void 0:c.call(s,d,{component:d,parameters:p}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},G1=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=kn(t||"meta"),n=$j(r);return n?y.createElement(Mj,null,n):null},W4=K1(jL()),Nj=F.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Hj=F.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),jj=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),Vj=({title:e})=>e===null?null:typeof e=="string"?y.createElement(jj,null,e):e,Uj=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:o})=>(l.useEffect(()=>{let i={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...o},s=setTimeout(()=>W4.init(i),100);return()=>{clearTimeout(s),W4.destroy()}},[t]),y.createElement(y.Fragment,null,y.createElement(Nj,null,t?null:y.createElement(Hj,null,y.createElement(Vj,{title:e||null}),y.createElement("div",{className:"toc-wrapper"}))))),{document:qj,window:Wj}=globalThis,Gj=({context:e,theme:t,children:r})=>{var a,o,i,s,c;let n;try{n=(o=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:o.toc}catch{n=(c=(s=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:s.docs)==null?void 0:c.toc}return l.useEffect(()=>{let d;try{if(d=new URL(Wj.parent.location.toString()),d.hash){let p=qj.getElementById(decodeURIComponent(d.hash.substring(1)));p&&setTimeout(()=>{X$(p)},200)}}catch{}}),y.createElement(Yt.Provider,{value:e},y.createElement(yj,{channel:e.channel},y.createElement(D3,{theme:nS(t)},y.createElement(_O,{toc:n?y.createElement(Uj,{className:"sbdocs sbdocs-toc--custom",...n}):null},r))))},Yj=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return y.createElement(U8,null,e);let r=globalThis.encodeURIComponent(e.toLowerCase());return y.createElement(uh,{as:"h3",id:r},e)},Nx=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var s,c;let{story:o}=kn(e||"story",["story"]),i=((c=(s=o.parameters.docs)==null?void 0:s.canvas)==null?void 0:c.withToolbar)??r;return y.createElement(K$,{storyId:o.id},t&&y.createElement(y.Fragment,null,y.createElement(Yj,null,o.name),y.createElement(G1,{of:e})),y.createElement(Aj,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},Kj=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=kn(t||"meta",["meta"]),n=l.useContext(Yt).componentStoriesFromCSFFile(r)[0];return n?y.createElement(Nx,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},Zj=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return y.createElement(V8,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return y.createElement(uh,{as:"h2",id:n,...r},e)},Jj=F(Zj)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),Xj=({title:e="Stories",includePrimary:t=!0})=>{var s;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=l.useContext(Yt),o=r(),{stories:{filter:i}={filter:void 0}}=((s=n.parameters)==null?void 0:s.docs)||{};return i&&(o=o.filter(c=>i(c,a(c)))),o.some(c=>{var d;return(d=c.tags)==null?void 0:d.includes("autodocs")})&&(o=o.filter(c=>{var d;return((d=c.tags)==null?void 0:d.includes("autodocs"))&&!c.usesMount})),t||(o=o.slice(1)),!o||o.length===0?null:y.createElement(y.Fragment,null,y.createElement(Jj,null,e),o.map(c=>c&&y.createElement(Nx,{key:c.id,of:c.moduleExport,expanded:!0,__forceInitialArgs:!0})))},Qj="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",eV=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=kn(t||"meta",["meta"]).preparedMeta}catch(s){if(r&&!s.message.includes("did you forget to use ?"))throw s}let{componentSubtitle:a,docs:o}=(n==null?void 0:n.parameters)||{};a&&BL(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${Qj}`);let i=r||(o==null?void 0:o.subtitle)||a;return i?y.createElement(kO,{className:"sbdocs-subtitle sb-unstyled"},i):null},tV=/\s*\/\s*/,rV=e=>{let t=e.trim().split(tV);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},nV=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=kn(r||"meta",["meta"]).preparedMeta}catch(o){if(t&&!o.message.includes("did you forget to use ?"))throw o}let a=t||rV(n==null?void 0:n.title);return a?y.createElement(SO,{className:"sbdocs-title sb-unstyled"},a):null},aV=()=>{let e=kn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return y.createElement(y.Fragment,null,y.createElement(nV,null),y.createElement(eV,null),y.createElement(G1,{of:"meta"}),r?y.createElement(G1,{of:"story"}):null,y.createElement(Kj,null),y.createElement(Bj,null),r?null:y.createElement(Xj,null))};function oV({context:e,docsParameter:t}){let r=t.container||Gj,n=t.page||aV;return y.createElement(r,{context:e,theme:t.theme},y.createElement(n,null))}var Hx={code:Ox,a:Mx,...$x},iV=class extends l.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:y.createElement(y.Fragment,null,t)}},lV=class{constructor(){this.render=async(e,t,r)=>{let n={...Hx,...t==null?void 0:t.components},a=oV;return new Promise((o,i)=>{Y1(()=>import("./index-fP2ooXcT.js"),__vite__mapDeps([12,2,3]),import.meta.url).then(({MDXProvider:s})=>Gx(y.createElement(iV,{showException:i,key:Math.random()},y.createElement(s,{components:n},y.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>o())})},this.unmount=e=>{Yx(e)}}};const jV=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:lV,defaultComponents:Hx},Symbol.toStringTag,{value:"Module"}));export{S9 as $,$A as A,LV as B,LA as C,V8 as D,bV as E,NA as F,BV as G,zV as H,sn as I,jf as J,yV as K,Sn as L,WA as M,yi as N,cu as O,x9 as P,_V as Q,PA as R,MA as S,VA as T,GA as U,F9 as V,EV as W,_9 as X,eL as Y,Mz as Z,kV as _,Cp as a,AV as a0,KA as a1,SV as a2,yz as a3,PT as a4,Lr as a5,vL as a6,sd as a7,mL as a8,T1 as a9,IV as aa,le as ab,yL as ac,se as ad,K1 as ae,F as af,PV as ag,vV as ah,vt as ai,mn as aj,jV as ak,MV as b,TA as c,Jf as d,zA as e,OA as f,AA as g,FV as h,TV as i,oa as j,zz as k,hL as l,kA as m,jA as n,UA as o,H8 as p,zl as q,R9 as r,xV as s,DV as t,qA as u,j8 as v,BA as w,U8 as x,WT as y,OV as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index-RygV29-W.js","./iframe-ZJ6Y6Oqt.js","./index-6oxdNXpR.js","./_commonjsHelpers-4gQjN7DL.js","./jsx-runtime-63Ea5SlK.js","./index-9gkyvru-.js","./index-4FLvW62B.js","./index-mQRHDdot.js","./index-PPLHz8o0.js","./react-18-8FLnVqma.js","./client-Rb4DelHy.js","./Color-F6OSRLHC-h-OBFI2K.js","./index-fP2ooXcT.js"] + __vite__mapDeps.viteFileDeps = ["./index-aeV4xcSr.js","./iframe-DrKPbhiz.js","./index-6oxdNXpR.js","./_commonjsHelpers-4gQjN7DL.js","./jsx-runtime-63Ea5SlK.js","./index-9gkyvru-.js","./index-4FLvW62B.js","./index-mQRHDdot.js","./index-PPLHz8o0.js","./react-18-8FLnVqma.js","./client-Rb4DelHy.js","./Color-F6OSRLHC-nuEa7yaH.js","./index-fP2ooXcT.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/article-editor-f268t0Bj.js b/assets/article-editor-eS0mHgX3.js similarity index 99% rename from assets/article-editor-f268t0Bj.js rename to assets/article-editor-eS0mHgX3.js index 9f2d7e38ab..aaaf7779ec 100644 --- a/assets/article-editor-f268t0Bj.js +++ b/assets/article-editor-eS0mHgX3.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import{_ as p}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import{P as d,E as y}from"./perseus-error-l3K_anoI.js";import"./dependencies-CP7Uh8Kq.js";import{A as m}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c}from"./components-2XngBvY8.js";import{i as b}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{r as v}from"./index-6oxdNXpR.js";import{D as w}from"./device-framer-MUDr0WgQ.js";import{I as f,J as k}from"./register-all-widgets-and-editors-for-testing-4tsEoT6X.js";import{S as i}from"./section-control-button-Hi-3GzxK.js";import{E as q}from"./editor-JBlHUPac.js";import{i as h,a as R,b as T}from"./icon-paths-EoBkHOLI.js";const{HUD:A,InlineIcon:j}=c,l=class l extends v.Component{constructor(){super(...arguments),this.state={highlightLint:!0},this._handleJsonChange=t=>{this.props.onChange({json:t})},this._handleEditorChange=(t,e)=>{const n=[...this._sections()];n[t]={...n[t],...e},this.props.onChange({json:n})}}componentDidMount(){this._updatePreviewFrames()}componentDidUpdate(){this._updatePreviewFrames()}_updatePreviewFrames(){this.props.mode==="preview"?this.refs["frame-all"].sendNewData({type:"article-all",data:this._sections().map((t,e)=>this._apiOptionsForSection(t,e))}):this.props.mode==="edit"&&this._sections().forEach((t,e)=>{this.refs["frame-"+e].sendNewData({type:"article",data:this._apiOptionsForSection(t,e)})})}_apiOptionsForSection(t,e){const n=this.refs[`editor${e}`];return{apiOptions:{...m.defaults,...this.props.apiOptions,showAlignmentOptions:!0,isArticle:!0},json:t,useNewStyles:this.props.useNewStyles,linterContext:{contentType:"article",highlightLint:this.state.highlightLint,paths:this.props.contentPaths},legacyPerseusLint:n?n.getSaveWarnings():[]}}_sections(){return Array.isArray(this.props.json)?this.props.json:[this.props.json]}_renderEditor(){const{imageUploader:t,sectionImageUploadGenerator:e}=this.props,n={...m.defaults,...this.props.apiOptions,showAlignmentOptions:!0,isArticle:!0},u=this._sections();return r.jsxs("div",{className:"perseus-editor-table",children:[u.map((g,a)=>[r.jsxs("div",{className:"perseus-editor-row",children:[r.jsxs("div",{className:"perseus-editor-left-cell",children:[r.jsxs("div",{className:"pod-title",children:["Section ",a+1,r.jsxs("div",{style:{display:"inline-block",float:"right"},children:[e(a),r.jsx(i,{icon:h,onClick:()=>{this._handleAddSectionAfter(a)},title:"Add a new section after this one"}),a+1{this._handleMoveSectionLater(a)},title:"Move this section down"}),a>0&&r.jsx(i,{icon:T,onClick:()=>{this._handleMoveSectionEarlier(a)},title:"Move this section up"}),r.jsx(i,{icon:b,onClick:()=>{const s="Are you sure you want to delete section "+(a+1)+"?";confirm(s)&&this._handleRemoveSection(a)},title:"Delete this section"})]})]}),r.jsx(q,{...g,apiOptions:n,imageUploader:t,onChange:s=>this._handleEditorChange(a,s),placeholder:"Type your section text here...",ref:"editor"+a})]}),r.jsx("div",{className:"editor-preview",children:this._renderIframePreview(a,!0)})]},a)]),this._renderAddSection(),this._renderLinterHUD()]})}_renderAddSection(){return r.jsx("div",{className:"perseus-editor-row",children:r.jsx("div",{className:"perseus-editor-left-cell",children:r.jsxs("a",{href:"#",className:"simple-button orange",onClick:()=>{this._handleAddSectionAfter(this._sections().length-1)},children:[r.jsx(j,{...h})," Add a section"]})})})}_renderLinterHUD(){return r.jsx(A,{message:"Style warnings",enabled:this.state.highlightLint,onClick:()=>{this.setState({highlightLint:!this.state.highlightLint})}})}_renderIframePreview(t,e){const n=this.props.screen==="phone"||this.props.screen==="tablet";return r.jsx(w,{deviceType:this.props.screen,nochrome:e,children:r.jsx(f,{ref:"frame-"+t,datasetKey:"mobile",datasetValue:n,seamless:e,url:this.props.previewURL},this.props.screen)})}_renderPreviewMode(){return r.jsx("div",{className:"standalone-preview",children:this._renderIframePreview("all",!1)})}_handleMoveSectionEarlier(t){if(t===0)return;const e=[...this._sections()],n=e[t];e.splice(t,1),e.splice(t-1,0,n),this.props.onChange({json:e})}_handleMoveSectionLater(t){const e=[...this._sections()];if(t+1===e.length)return;const n=e[t];e.splice(t,1),e.splice(t+1,0,n),this.props.onChange({json:e})}_handleAddSectionAfter(t){const e=p.clone(this.serialize()),n=t>=0?{widgets:e[t].widgets}:{};e.splice(t+1,0,n),this.props.onChange({json:e})}_handleRemoveSection(t){const e=[...this._sections()];e.splice(t,1),this.props.onChange({json:e})}serialize(){if(this.props.mode==="edit")return this._sections().map((t,e)=>this.refs["editor"+e].serialize());if(this.props.mode==="preview"||this.props.mode==="json")return this.props.json;throw new d("Could not serialize; mode "+this.props.mode+" not found",y.Internal)}getSaveWarnings(){if(this.props.mode!=="edit")throw new d("Can only get save warnings in edit mode.",y.NotAllowed);return this._sections().map((t,e)=>this.refs["editor"+e].getSaveWarnings())}render(){return r.jsxs("div",{className:"framework-perseus perseus-article-editor",children:[this.props.mode==="edit"&&this._renderEditor(),this.props.mode==="preview"&&this._renderPreviewMode(),this.props.mode==="json"&&r.jsxs("div",{className:"json-editor",children:[r.jsx("div",{className:"json-editor-warning",children:r.jsx("span",{children:"Warning: Editing in this mode can lead to broken articles!"})}),r.jsx(k,{multiLine:!0,onChange:this._handleJsonChange,value:this.props.json})]})]})}};l.defaultProps={contentPaths:[],json:[{}],mode:"edit",screen:"desktop",sectionImageUploadGenerator:()=>r.jsx("span",{}),useNewStyles:!1};let o=l;o.__docgenInfo={description:"",methods:[{name:"_updatePreviewFrames",docblock:null,modifiers:[],params:[],returns:null},{name:"_apiOptionsForSection",docblock:null,modifiers:[],params:[{name:"section",optional:!1,type:{name:"signature",type:"object",raw:`{ +import{j as r}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import{_ as p}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import{P as d,E as y}from"./perseus-error-l3K_anoI.js";import"./dependencies-CP7Uh8Kq.js";import{A as m}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c}from"./components-2XngBvY8.js";import{i as b}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{r as v}from"./index-6oxdNXpR.js";import{D as w}from"./device-framer-MUDr0WgQ.js";import{I as f,J as k}from"./register-all-widgets-and-editors-for-testing-QKLCyv1G.js";import{S as i}from"./section-control-button-Hi-3GzxK.js";import{E as q}from"./editor-JBlHUPac.js";import{i as h,a as R,b as T}from"./icon-paths-EoBkHOLI.js";const{HUD:A,InlineIcon:j}=c,l=class l extends v.Component{constructor(){super(...arguments),this.state={highlightLint:!0},this._handleJsonChange=t=>{this.props.onChange({json:t})},this._handleEditorChange=(t,e)=>{const n=[...this._sections()];n[t]={...n[t],...e},this.props.onChange({json:n})}}componentDidMount(){this._updatePreviewFrames()}componentDidUpdate(){this._updatePreviewFrames()}_updatePreviewFrames(){this.props.mode==="preview"?this.refs["frame-all"].sendNewData({type:"article-all",data:this._sections().map((t,e)=>this._apiOptionsForSection(t,e))}):this.props.mode==="edit"&&this._sections().forEach((t,e)=>{this.refs["frame-"+e].sendNewData({type:"article",data:this._apiOptionsForSection(t,e)})})}_apiOptionsForSection(t,e){const n=this.refs[`editor${e}`];return{apiOptions:{...m.defaults,...this.props.apiOptions,showAlignmentOptions:!0,isArticle:!0},json:t,useNewStyles:this.props.useNewStyles,linterContext:{contentType:"article",highlightLint:this.state.highlightLint,paths:this.props.contentPaths},legacyPerseusLint:n?n.getSaveWarnings():[]}}_sections(){return Array.isArray(this.props.json)?this.props.json:[this.props.json]}_renderEditor(){const{imageUploader:t,sectionImageUploadGenerator:e}=this.props,n={...m.defaults,...this.props.apiOptions,showAlignmentOptions:!0,isArticle:!0},u=this._sections();return r.jsxs("div",{className:"perseus-editor-table",children:[u.map((g,a)=>[r.jsxs("div",{className:"perseus-editor-row",children:[r.jsxs("div",{className:"perseus-editor-left-cell",children:[r.jsxs("div",{className:"pod-title",children:["Section ",a+1,r.jsxs("div",{style:{display:"inline-block",float:"right"},children:[e(a),r.jsx(i,{icon:h,onClick:()=>{this._handleAddSectionAfter(a)},title:"Add a new section after this one"}),a+1{this._handleMoveSectionLater(a)},title:"Move this section down"}),a>0&&r.jsx(i,{icon:T,onClick:()=>{this._handleMoveSectionEarlier(a)},title:"Move this section up"}),r.jsx(i,{icon:b,onClick:()=>{const s="Are you sure you want to delete section "+(a+1)+"?";confirm(s)&&this._handleRemoveSection(a)},title:"Delete this section"})]})]}),r.jsx(q,{...g,apiOptions:n,imageUploader:t,onChange:s=>this._handleEditorChange(a,s),placeholder:"Type your section text here...",ref:"editor"+a})]}),r.jsx("div",{className:"editor-preview",children:this._renderIframePreview(a,!0)})]},a)]),this._renderAddSection(),this._renderLinterHUD()]})}_renderAddSection(){return r.jsx("div",{className:"perseus-editor-row",children:r.jsx("div",{className:"perseus-editor-left-cell",children:r.jsxs("a",{href:"#",className:"simple-button orange",onClick:()=>{this._handleAddSectionAfter(this._sections().length-1)},children:[r.jsx(j,{...h})," Add a section"]})})})}_renderLinterHUD(){return r.jsx(A,{message:"Style warnings",enabled:this.state.highlightLint,onClick:()=>{this.setState({highlightLint:!this.state.highlightLint})}})}_renderIframePreview(t,e){const n=this.props.screen==="phone"||this.props.screen==="tablet";return r.jsx(w,{deviceType:this.props.screen,nochrome:e,children:r.jsx(f,{ref:"frame-"+t,datasetKey:"mobile",datasetValue:n,seamless:e,url:this.props.previewURL},this.props.screen)})}_renderPreviewMode(){return r.jsx("div",{className:"standalone-preview",children:this._renderIframePreview("all",!1)})}_handleMoveSectionEarlier(t){if(t===0)return;const e=[...this._sections()],n=e[t];e.splice(t,1),e.splice(t-1,0,n),this.props.onChange({json:e})}_handleMoveSectionLater(t){const e=[...this._sections()];if(t+1===e.length)return;const n=e[t];e.splice(t,1),e.splice(t+1,0,n),this.props.onChange({json:e})}_handleAddSectionAfter(t){const e=p.clone(this.serialize()),n=t>=0?{widgets:e[t].widgets}:{};e.splice(t+1,0,n),this.props.onChange({json:e})}_handleRemoveSection(t){const e=[...this._sections()];e.splice(t,1),this.props.onChange({json:e})}serialize(){if(this.props.mode==="edit")return this._sections().map((t,e)=>this.refs["editor"+e].serialize());if(this.props.mode==="preview"||this.props.mode==="json")return this.props.json;throw new d("Could not serialize; mode "+this.props.mode+" not found",y.Internal)}getSaveWarnings(){if(this.props.mode!=="edit")throw new d("Can only get save warnings in edit mode.",y.NotAllowed);return this._sections().map((t,e)=>this.refs["editor"+e].getSaveWarnings())}render(){return r.jsxs("div",{className:"framework-perseus perseus-article-editor",children:[this.props.mode==="edit"&&this._renderEditor(),this.props.mode==="preview"&&this._renderPreviewMode(),this.props.mode==="json"&&r.jsxs("div",{className:"json-editor",children:[r.jsx("div",{className:"json-editor-warning",children:r.jsx("span",{children:"Warning: Editing in this mode can lead to broken articles!"})}),r.jsx(k,{multiLine:!0,onChange:this._handleJsonChange,value:this.props.json})]})]})}};l.defaultProps={contentPaths:[],json:[{}],mode:"edit",screen:"desktop",sectionImageUploadGenerator:()=>r.jsx("span",{}),useNewStyles:!1};let o=l;o.__docgenInfo={description:"",methods:[{name:"_updatePreviewFrames",docblock:null,modifiers:[],params:[],returns:null},{name:"_apiOptionsForSection",docblock:null,modifiers:[],params:[{name:"section",optional:!1,type:{name:"signature",type:"object",raw:`{ content?: string; widgets?: any; images?: any; diff --git a/assets/article-editor.stories-jEu4WYQs.js b/assets/article-editor.stories-oSmIuSSI.js similarity index 85% rename from assets/article-editor.stories-jEu4WYQs.js rename to assets/article-editor.stories-oSmIuSSI.js index f6df260e0d..3b80ca46a8 100644 --- a/assets/article-editor.stories-jEu4WYQs.js +++ b/assets/article-editor.stories-oSmIuSSI.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import{A as d}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{r as i}from"./index-6oxdNXpR.js";import{A as u}from"./article-editor-f268t0Bj.js";import{r as f}from"./register-all-widgets-and-editors-for-testing-4tsEoT6X.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./index-18qWGOW7.js";import"./index-dnMhQZ-1.js";import"./perseus-error-l3K_anoI.js";import"./index-Dfd6auV6.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./icon-paths-5JCXzGsq.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./shared-4TdECMLk.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./Popper-Y5KDXl-P.js";import"./answer-choices-o46t7GFm.js";import"./index-469F30Ub.js";import"./minus-bold-ONmDo3Ve.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./asset-context-H6Iqp7Gi.js";import"./tiny-invariant-bHgPayXn.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./fixed-to-responsive-for_tVF1.js";import"./video-transcript-link-_gpkjmR8.js";import"./arrow-square-out-bold-090vdhrx.js";import"./stub-tag-editor-qMhJW4bS.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./choice-none-above-qQVnMhkg.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./index-V5gl6frG.js";import"./components-2XngBvY8.js";import"./device-framer-MUDr0WgQ.js";import"./constants-p_UgHLsb.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";import"./graph-settings-RVCdgmRM.js";import"./index-0C4KXdeC.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-whGRFVv8.js";import"./dropdown-editor-aJLNeS97.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor-eqp-b25r.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-kVA-32xF.js";import"./heading-1izW0-GJ.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-y3ppaDa3.js";import"./locked-ellipse-settings-QEWwFykH.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-YpDy59Fp.js";import"./locked-point-settings-zw7k74iG.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-wVPxu4oj.js";import"./locked-vector-settings-ZrkXTg1R.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-z2JL1__O.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-3qfdTkF_.js";import"./sorter-editor-nvFR-j1p.js";f();const oo={title:"PerseusEditor/ArticleEditor"},r=()=>{const[s,n]=i.useState(),o=i.useRef();function a(c){n(c.json)}function l(){console.log(o.current.serialize())}return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:l,children:"Serialize"}),t.jsx("hr",{}),t.jsx(u,{apiOptions:d.defaults,imageUploader:()=>{},json:s,onChange:a,previewURL:"/perseus/frame",ref:o})]})};r.__docgenInfo={description:"",methods:[],displayName:"Base"};var p,m,e;r.parameters={...r.parameters,docs:{...(p=r.parameters)==null?void 0:p.docs,source:{originalSource:`(): React.ReactElement => { +import{j as t}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import{A as d}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{r as i}from"./index-6oxdNXpR.js";import{A as u}from"./article-editor-eS0mHgX3.js";import{r as f}from"./register-all-widgets-and-editors-for-testing-QKLCyv1G.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./index-18qWGOW7.js";import"./index-dnMhQZ-1.js";import"./perseus-error-l3K_anoI.js";import"./index-Dfd6auV6.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./icon-paths-5JCXzGsq.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./shared-4TdECMLk.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./Popper-Y5KDXl-P.js";import"./answer-choices-o46t7GFm.js";import"./index-469F30Ub.js";import"./minus-bold-ONmDo3Ve.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./asset-context-H6Iqp7Gi.js";import"./tiny-invariant-bHgPayXn.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./fixed-to-responsive-for_tVF1.js";import"./video-transcript-link-_gpkjmR8.js";import"./arrow-square-out-bold-090vdhrx.js";import"./stub-tag-editor-qMhJW4bS.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./choice-none-above-qQVnMhkg.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./index-V5gl6frG.js";import"./components-2XngBvY8.js";import"./device-framer-MUDr0WgQ.js";import"./constants-p_UgHLsb.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";import"./graph-settings-RVCdgmRM.js";import"./index-0C4KXdeC.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-mtNl78Ws.js";import"./dropdown-editor-zKHD15eA.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor--gvmUBTK.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-aOqBZtl-.js";import"./heading-1izW0-GJ.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-TVvL2-a2.js";import"./locked-ellipse-settings-EZXzWz0x.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-J8lMZ4RB.js";import"./locked-point-settings-tJQmmWj4.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-c4WjOmfA.js";import"./locked-vector-settings-2YztdJIb.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-YnVVoF5-.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-CEQdVGNe.js";import"./sorter-editor-nvFR-j1p.js";f();const oo={title:"PerseusEditor/ArticleEditor"},r=()=>{const[s,n]=i.useState(),o=i.useRef();function a(c){n(c.json)}function l(){console.log(o.current.serialize())}return t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:l,children:"Serialize"}),t.jsx("hr",{}),t.jsx(u,{apiOptions:d.defaults,imageUploader:()=>{},json:s,onChange:a,previewURL:"/perseus/frame",ref:o})]})};r.__docgenInfo={description:"",methods:[],displayName:"Base"};var p,m,e;r.parameters={...r.parameters,docs:{...(p=r.parameters)==null?void 0:p.docs,source:{originalSource:`(): React.ReactElement => { const [state, setState] = useState(); const articleEditorRef = useRef(); function handleChange(value) { diff --git a/assets/definition-editor-mtNl78Ws.js b/assets/definition-editor-mtNl78Ws.js new file mode 100644 index 0000000000..fcd7a56c36 --- /dev/null +++ b/assets/definition-editor-mtNl78Ws.js @@ -0,0 +1 @@ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{c as n,p}from"./article-renderer-h_m-tvVP.js";import{_ as a}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as m}from"./components-2XngBvY8.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{E as l}from"./editor-jsonify-UVC33bjS.js";import{P as r}from"./index-0C4KXdeC.js";import{r as d}from"./index-6oxdNXpR.js";import{E as c}from"./editor-JBlHUPac.js";const{TextInput:f}=m,t=class t extends d.Component{constructor(){super(...arguments),this.change=(...i)=>n.apply(this,i),this.serialize=()=>l.serialize.call(this)}render(){return e.jsxs("div",{className:"perseus-widget-definition-editor",children:[e.jsx("a",{href:"https://docs.google.com/document/d/1udaPef4imOfTMhmLDlWq4SM0mxL0r3YHFZE-5J1uGfo",target:"_blank",rel:"noreferrer",children:"Definition style guide"}),e.jsx("div",{className:"perseus-widget-row",children:e.jsxs("label",{children:["Word to be defined:"," ",e.jsx(f,{value:this.props.togglePrompt,onChange:this.change("togglePrompt"),placeholder:"define me"})]})}),e.jsx("div",{className:"perseus-widget-row",children:e.jsx(c,{apiOptions:this.props.apiOptions,content:this.props.definition,widgetEnabled:!1,placeholder:"definition goes here",onChange:i=>{const s={};a.has(i,"content")&&(s.definition=i.content),this.change(s)}})})]})}};t.propTypes={...p,togglePrompt:r.string,definition:r.string,apiOptions:r.any},t.widgetName="definition",t.defaultProps={togglePrompt:"",definition:""};let o=t;o.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"DefinitionEditor",props:{togglePrompt:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},definition:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},apiOptions:{description:"",type:{name:"any"},required:!1}},composes:["@khanacademy/perseus"]};export{o as D}; diff --git a/assets/definition-editor-whGRFVv8.js b/assets/definition-editor-whGRFVv8.js deleted file mode 100644 index 68bca9c895..0000000000 --- a/assets/definition-editor-whGRFVv8.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{c as n,p}from"./article-renderer-h_m-tvVP.js";import{_ as a}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as m}from"./components-2XngBvY8.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{E as l}from"./editor-jsonify-UVC33bjS.js";import{P as o}from"./index-0C4KXdeC.js";import{r as d}from"./index-6oxdNXpR.js";import{E as c}from"./editor-JBlHUPac.js";const{TextInput:u}=m,t=class t extends d.Component{constructor(){super(...arguments),this.change=(...i)=>n.apply(this,i),this.serialize=()=>l.serialize.call(this)}render(){return e.jsxs("div",{className:"perseus-widget-definition-editor",children:[e.jsx("a",{href:"https://docs.google.com/document/d/1udaPef4imOfTMhmLDlWq4SM0mxL0r3YHFZE-5J1uGfo",target:"_blank",children:"Definition style guide"}),e.jsx("div",{className:"perseus-widget-row",children:e.jsxs("label",{children:["Word to be defined:"," ",e.jsx(u,{value:this.props.togglePrompt,onChange:this.change("togglePrompt"),placeholder:"define me"})]})}),e.jsx("div",{className:"perseus-widget-row",children:e.jsx(c,{apiOptions:this.props.apiOptions,content:this.props.definition,widgetEnabled:!1,placeholder:"definition goes here",onChange:i=>{const r={};a.has(i,"content")&&(r.definition=i.content),this.change(r)}})})]})}};t.propTypes={...p,togglePrompt:o.string,definition:o.string,apiOptions:o.any},t.widgetName="definition",t.defaultProps={togglePrompt:"",definition:""};let s=t;s.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"DefinitionEditor",props:{togglePrompt:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},definition:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},apiOptions:{description:"",type:{name:"any"},required:!1}},composes:["@khanacademy/perseus"]};export{s as D}; diff --git a/assets/definition-editor.stories-lAq9_602.js b/assets/definition-editor.stories-2MNCEHxP.js similarity index 98% rename from assets/definition-editor.stories-lAq9_602.js rename to assets/definition-editor.stories-2MNCEHxP.js index b991033a1e..61bf43053e 100644 --- a/assets/definition-editor.stories-lAq9_602.js +++ b/assets/definition-editor.stories-2MNCEHxP.js @@ -1,3 +1,3 @@ -import{j as m}from"./jsx-runtime-63Ea5SlK.js";import{a as p}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{D as e}from"./definition-editor-whGRFVv8.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./editor-jsonify-UVC33bjS.js";import"./index-0C4KXdeC.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";const mo={title:"PerseusEditor/Widgets/Definition Editor"},t=n=>m.jsx(e,{onChange:p("onChange")});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { +import{j as m}from"./jsx-runtime-63Ea5SlK.js";import{a as p}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{D as e}from"./definition-editor-mtNl78Ws.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./editor-jsonify-UVC33bjS.js";import"./index-0C4KXdeC.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";const mo={title:"PerseusEditor/Widgets/Definition Editor"},t=n=>m.jsx(e,{onChange:p("onChange")});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { return ; }`,...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const po=["Default"];export{t as Default,po as __namedExportsOrder,mo as default}; diff --git a/assets/dropdown-editor-aJLNeS97.js b/assets/dropdown-editor-zKHD15eA.js similarity index 53% rename from assets/dropdown-editor-aJLNeS97.js rename to assets/dropdown-editor-zKHD15eA.js index 8a8527a0b3..14c5f7dd4a 100644 --- a/assets/dropdown-editor-aJLNeS97.js +++ b/assets/dropdown-editor-zKHD15eA.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import{_ as i}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as m}from"./components-2XngBvY8.js";import{i as u}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{E as f}from"./editor-jsonify-UVC33bjS.js";import{T as h}from"./index-V5gl6frG.js";import{L as b,a as t}from"./index-18qWGOW7.js";import{P as l}from"./index-0C4KXdeC.js";import{r as g}from"./index-6oxdNXpR.js";import{F as x}from"./index-9gkyvru-.js";import{i as C}from"./icon-paths-EoBkHOLI.js";const{InfoTip:c,InlineIcon:d}=m,r=class r extends g.Component{constructor(){super(...arguments),this.onVisibleLabelChange=s=>{this.props.onChange({visibleLabel:s})},this.onAriaLabelChange=s=>{this.props.onChange({ariaLabel:s})},this.onPlaceholderChange=s=>{this.props.onChange({placeholder:s})},this.onCorrectChange=s=>{const n=i.map(this.props.choices,function(o,a){return i.extend({},o,{correct:a===s})});this.props.onChange({choices:n})},this.onContentChange=(s,n)=>{const o=this.props.choices.slice(),a=i.clone(o[s]);a.content=n.target.value,o[s]=a,this.props.onChange({choices:o})},this.addChoice=s=>{s.preventDefault();const n=this.props.choices,o={content:"",correct:!1};this.props.onChange({choices:n.concat([o])},this.focus.bind(this,n.length))},this.removeChoice=(s,n)=>{n.preventDefault();const o=i(this.props.choices).clone();o.splice(s,1),this.props.onChange({choices:o})},this.focus=s=>(x.findDOMNode(this.refs["editor"+s]).focus(),!0),this.serialize=()=>f.serialize.call(this)}render(){const s=i.uniqueId("perseus_dropdown_");return e.jsxs("div",{className:"perseus-widget-dropdown",children:[e.jsxs("div",{className:"dropdown-info",children:[e.jsx(b,{children:"Dropdown"}),e.jsx(c,{children:e.jsxs("p",{children:["The drop down is useful for making inequalities in a custom format. We normally use the symbols ","<",","," ",">",', ≤, ≥ (in that order) which you can copy into the choices. When possible, use the "multiple choice" answer type instead.']})})]}),e.jsxs("div",{className:"dropdown-field",children:[e.jsxs(t,{children:["Visible label",e.jsx(h,{value:this.props.visibleLabel,onChange:this.onVisibleLabelChange})]}),e.jsx(c,{children:e.jsx("p",{children:"Optional visible label"})})]}),e.jsxs("div",{className:"dropdown-field",children:[e.jsxs(t,{children:["Aria label",e.jsx(h,{value:this.props.ariaLabel,onChange:this.onAriaLabelChange,type:"text"})]}),e.jsx(c,{children:e.jsxs("p",{children:["Label text that's read by screen readers. Highly recommend adding a label here to ensure your exercise is accessible. For more information on writing accessible labels, please see"," ",e.jsx("a",{href:"https://www.w3.org/WAI/tips/designing/#ensure-that-form-elements-include-clearly-associated-labels",target:"_blank",children:"this article."})," ",'If left blank, the value will default to "Select an answer".']})})]}),e.jsxs("div",{className:"dropdown-field",children:[e.jsxs(t,{children:["Placeholder",e.jsx(h,{value:this.props.placeholder,onChange:this.onPlaceholderChange,placeholder:"Placeholder value"})]}),e.jsx(c,{children:e.jsx("p",{children:"This value will appear as the drop down default. It should give the user some indication of the values available in the drop down itself, e.g., Yes/No/Maybe."})})]}),e.jsx("div",{className:"clearfix"}),e.jsx(t,{children:"Choices"}),e.jsx("ul",{className:"dropdown-choices",children:this.props.choices.map(function(n,o){const a=n.correct?"correct":"incorrect";return e.jsx("li",{children:e.jsxs("div",{children:[e.jsx("input",{ref:"radio"+o,type:"radio",name:s,checked:n.correct?"checked":"",onChange:this.onCorrectChange.bind(this,o),value:o}),e.jsx("input",{type:"text",ref:"editor"+o,onChange:this.onContentChange.bind(this,o),className:a,value:n.content}),e.jsx("a",{href:"#",className:"simple-button orange","aria-label":"Delete choice",onClick:this.removeChoice.bind(this,o),children:e.jsx("span",{className:"remove-choice",children:e.jsx(d,{...u})})})]})},""+o)},this)}),e.jsx("div",{className:"add-choice-container",children:e.jsxs("a",{href:"#",className:"simple-button orange",onClick:this.addChoice,children:[e.jsx(d,{...C})," Add a choice"," "]})})]})}};r.propTypes={choices:l.arrayOf(l.shape({content:l.string,correct:l.bool})),placeholder:l.string},r.widgetName="dropdown",r.defaultProps={placeholder:"",choices:[{content:"",correct:!1}]};let p=r;p.__docgenInfo={description:"",methods:[{name:"onVisibleLabelChange",docblock:null,modifiers:[],params:[{name:"visibleLabel",optional:!1,type:null}],returns:null},{name:"onAriaLabelChange",docblock:null,modifiers:[],params:[{name:"ariaLabel",optional:!1,type:null}],returns:null},{name:"onPlaceholderChange",docblock:null,modifiers:[],params:[{name:"placeholder",optional:!1,type:null}],returns:null},{name:"onCorrectChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"onContentChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"addChoice",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"removeChoice",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"focus",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"DropdownEditor",props:{placeholder:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},choices:{defaultValue:{value:`[ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import{_ as i}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as m}from"./components-2XngBvY8.js";import{i as u}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{E as f}from"./editor-jsonify-UVC33bjS.js";import{T as h}from"./index-V5gl6frG.js";import{L as b,a as t}from"./index-18qWGOW7.js";import{P as l}from"./index-0C4KXdeC.js";import{r as g}from"./index-6oxdNXpR.js";import{F as x}from"./index-9gkyvru-.js";import{i as C}from"./icon-paths-EoBkHOLI.js";const{InfoTip:c,InlineIcon:d}=m,r=class r extends g.Component{constructor(){super(...arguments),this.onVisibleLabelChange=s=>{this.props.onChange({visibleLabel:s})},this.onAriaLabelChange=s=>{this.props.onChange({ariaLabel:s})},this.onPlaceholderChange=s=>{this.props.onChange({placeholder:s})},this.onCorrectChange=s=>{const n=i.map(this.props.choices,function(o,a){return i.extend({},o,{correct:a===s})});this.props.onChange({choices:n})},this.onContentChange=(s,n)=>{const o=this.props.choices.slice(),a=i.clone(o[s]);a.content=n.target.value,o[s]=a,this.props.onChange({choices:o})},this.addChoice=s=>{s.preventDefault();const n=this.props.choices,o={content:"",correct:!1};this.props.onChange({choices:n.concat([o])},this.focus.bind(this,n.length))},this.removeChoice=(s,n)=>{n.preventDefault();const o=i(this.props.choices).clone();o.splice(s,1),this.props.onChange({choices:o})},this.focus=s=>(x.findDOMNode(this.refs["editor"+s]).focus(),!0),this.serialize=()=>f.serialize.call(this)}render(){const s=i.uniqueId("perseus_dropdown_");return e.jsxs("div",{className:"perseus-widget-dropdown",children:[e.jsxs("div",{className:"dropdown-info",children:[e.jsx(b,{children:"Dropdown"}),e.jsx(c,{children:e.jsxs("p",{children:["The drop down is useful for making inequalities in a custom format. We normally use the symbols ","<",","," ",">",', ≤, ≥ (in that order) which you can copy into the choices. When possible, use the "multiple choice" answer type instead.']})})]}),e.jsxs("div",{className:"dropdown-field",children:[e.jsxs(t,{children:["Visible label",e.jsx(h,{value:this.props.visibleLabel,onChange:this.onVisibleLabelChange})]}),e.jsx(c,{children:e.jsx("p",{children:"Optional visible label"})})]}),e.jsxs("div",{className:"dropdown-field",children:[e.jsxs(t,{children:["Aria label",e.jsx(h,{value:this.props.ariaLabel,onChange:this.onAriaLabelChange,type:"text"})]}),e.jsx(c,{children:e.jsxs("p",{children:["Label text that's read by screen readers. Highly recommend adding a label here to ensure your exercise is accessible. For more information on writing accessible labels, please see"," ",e.jsx("a",{href:"https://www.w3.org/WAI/tips/designing/#ensure-that-form-elements-include-clearly-associated-labels",target:"_blank",rel:"noreferrer",children:"this article."})," ",'If left blank, the value will default to "Select an answer".']})})]}),e.jsxs("div",{className:"dropdown-field",children:[e.jsxs(t,{children:["Placeholder",e.jsx(h,{value:this.props.placeholder,onChange:this.onPlaceholderChange,placeholder:"Placeholder value"})]}),e.jsx(c,{children:e.jsx("p",{children:"This value will appear as the drop down default. It should give the user some indication of the values available in the drop down itself, e.g., Yes/No/Maybe."})})]}),e.jsx("div",{className:"clearfix"}),e.jsx(t,{children:"Choices"}),e.jsx("ul",{className:"dropdown-choices",children:this.props.choices.map(function(n,o){const a=n.correct?"correct":"incorrect";return e.jsx("li",{children:e.jsxs("div",{children:[e.jsx("input",{ref:"radio"+o,type:"radio",name:s,checked:n.correct?"checked":"",onChange:this.onCorrectChange.bind(this,o),value:o}),e.jsx("input",{type:"text",ref:"editor"+o,onChange:this.onContentChange.bind(this,o),className:a,value:n.content}),e.jsx("a",{href:"#",className:"simple-button orange","aria-label":"Delete choice",onClick:this.removeChoice.bind(this,o),children:e.jsx("span",{className:"remove-choice",children:e.jsx(d,{...u})})})]})},""+o)},this)}),e.jsx("div",{className:"add-choice-container",children:e.jsxs("a",{href:"#",className:"simple-button orange",onClick:this.addChoice,children:[e.jsx(d,{...C})," Add a choice"," "]})})]})}};r.propTypes={choices:l.arrayOf(l.shape({content:l.string,correct:l.bool})),placeholder:l.string},r.widgetName="dropdown",r.defaultProps={placeholder:"",choices:[{content:"",correct:!1}]};let p=r;p.__docgenInfo={description:"",methods:[{name:"onVisibleLabelChange",docblock:null,modifiers:[],params:[{name:"visibleLabel",optional:!1,type:null}],returns:null},{name:"onAriaLabelChange",docblock:null,modifiers:[],params:[{name:"ariaLabel",optional:!1,type:null}],returns:null},{name:"onPlaceholderChange",docblock:null,modifiers:[],params:[{name:"placeholder",optional:!1,type:null}],returns:null},{name:"onCorrectChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"onContentChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"addChoice",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"removeChoice",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"focus",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"DropdownEditor",props:{placeholder:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},choices:{defaultValue:{value:`[ { content: "", correct: false, diff --git a/assets/dropdown-editor.stories-9FuT9tzH.js b/assets/dropdown-editor.stories-38QA__0v.js similarity index 98% rename from assets/dropdown-editor.stories-9FuT9tzH.js rename to assets/dropdown-editor.stories-38QA__0v.js index 099d826fc5..fb4cf5c348 100644 --- a/assets/dropdown-editor.stories-9FuT9tzH.js +++ b/assets/dropdown-editor.stories-38QA__0v.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-63Ea5SlK.js";import{a as p}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{D as e}from"./dropdown-editor-aJLNeS97.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./editor-jsonify-UVC33bjS.js";import"./index-0C4KXdeC.js";import"./icon-paths-EoBkHOLI.js";const $r={title:"PerseusEditor/Widgets/Dropdown Editor"},r=s=>o.jsx("div",{className:"framework-perseus",children:o.jsx(e,{onChange:p("onChange")})});r.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,i,m;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { +import{j as o}from"./jsx-runtime-63Ea5SlK.js";import{a as p}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{D as e}from"./dropdown-editor-zKHD15eA.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./editor-jsonify-UVC33bjS.js";import"./index-0C4KXdeC.js";import"./icon-paths-EoBkHOLI.js";const $r={title:"PerseusEditor/Widgets/Dropdown Editor"},r=s=>o.jsx("div",{className:"framework-perseus",children:o.jsx(e,{onChange:p("onChange")})});r.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,i,m;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { return
; diff --git a/assets/editor-3qfdTkF_.js b/assets/editor-3qfdTkF_.js deleted file mode 100644 index b59c289e05..0000000000 --- a/assets/editor-3qfdTkF_.js +++ /dev/null @@ -1 +0,0 @@ -import{j as n}from"./jsx-runtime-63Ea5SlK.js";import{c as y,p as v}from"./article-renderer-h_m-tvVP.js";import{_ as r}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import{A as b}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import{B as q}from"./base-radio-XsQBfrsT.js";import{c as x}from"./components-2XngBvY8.js";import{i as O}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{C as c}from"./index-V5gl6frG.js";import{P as t}from"./index-0C4KXdeC.js";import{r as g}from"./index-6oxdNXpR.js";import{E as f}from"./editor-JBlHUPac.js";import{i as C}from"./icon-paths-EoBkHOLI.js";const{InlineIcon:p}=x,d=class d extends g.Component{render(){const e=this.props.choice.correct?"correct":"incorrect";let s="Type a choice here...";this.props.choice.isNoneOfTheAbove&&(s=this.props.choice.correct?"Type the answer to reveal to the user...":"None of the above");const o=n.jsx(f,{ref:"content-editor",apiOptions:this.props.apiOptions,content:this.props.choice.content||"",widgetEnabled:!1,placeholder:s,disabled:this.props.choice.isNoneOfTheAbove&&!this.props.choice.correct,onChange:this.props.onContentChange}),i=n.jsx(f,{ref:"clue-editor",apiOptions:this.props.apiOptions,content:this.props.choice.clue||"",widgetEnabled:!1,placeholder:`Why is this choice ${e}?`,onChange:this.props.onClueChange}),l=n.jsx("a",{className:"simple-button orange delete-choice",href:"#",onClick:m=>{m.stopPropagation(),m.preventDefault(),this.props.onDelete()},title:"Remove this choice",children:n.jsx(p,{...O})});return n.jsxs("div",{className:"choice-clue-editors",children:[n.jsx("div",{className:`choice-editor ${e}`,children:o}),n.jsx("div",{className:"clue-editor",children:i}),this.props.showDelete&&l]})}};d.propTypes={apiOptions:b.propTypes,choice:t.object,showDelete:t.bool,onClueChange:t.func,onContentChange:t.func,onDelete:t.func};let h=d;const a=class a extends g.Component{constructor(){super(...arguments),this.change=(...e)=>y.apply(this,e),this.onMultipleSelectChange=e=>{e=e.multipleSelect;const s=r.reduce(this.props.choices,function(o,i){return i.correct?o+1:o},0);if(!e&&s>1){const o=r.map(this.props.choices,function(i){return r.defaults({correct:!1},i)});this.props.onChange({multipleSelect:e,choices:o})}else this.props.onChange({multipleSelect:e})},this.onCountChoicesChange=e=>{e=e.countChoices,this.props.onChange({countChoices:e})},this.onChange=({checked:e})=>{const s=r.map(this.props.choices,(o,i)=>r.extend({},o,{correct:e[i],content:o.isNoneOfTheAbove&&!e[i]?"":o.content}));this.props.onChange({choices:s})},this.onContentChange=(e,s)=>{const o=this.props.choices.slice();o[e]=r.extend({},o[e],{content:s}),this.props.onChange({choices:o})},this.onClueChange=(e,s)=>{const o=this.props.choices.slice();o[e]=r.extend({},o[e],{clue:s}),s===""&&delete o[e].clue,this.props.onChange({choices:o})},this.onDelete=e=>{const s=this.props.choices.slice(),o=s[e];s.splice(e,1),this.props.onChange({choices:s,hasNoneOfTheAbove:this.props.hasNoneOfTheAbove&&!o.isNoneOfTheAbove})},this.addChoice=(e,s)=>{s.preventDefault();const o=this.props.choices.slice(),i={isNoneOfTheAbove:e},l=o.length-(this.props.hasNoneOfTheAbove?1:0);o.splice(l,0,i),this.props.onChange({choices:o,hasNoneOfTheAbove:e||this.props.hasNoneOfTheAbove},()=>{this.refs[`choice-editor${l}`].refs["content-editor"].focus()})},this.setDisplayCount=e=>{this.props.onChange({displayCount:e})},this.focus=()=>(this.refs["choice-editor0"].refs["content-editor"].focus(),!0),this.getSaveWarnings=()=>r.some(r.pluck(this.props.choices,"correct"))?[]:["No choice is marked as correct."],this.serialize=()=>r.pick(this.props,"choices","randomize","multipleSelect","countChoices","displayCount","hasNoneOfTheAbove","deselectEnabled")}render(){const e=r.reduce(this.props.choices,function(s,o){return o.correct?s+1:s},0);return n.jsxs("div",{children:[n.jsxs("div",{className:"perseus-widget-row",children:[n.jsx("a",{href:"https://docs.google.com/document/d/1frZf7yrWVWb1n4tVjqlzqVUiv1pn4cZXbxgP62-JDBY/edit#heading=h.8ng1isya19nu",target:"_blank",children:"Multiple choice style guide"}),n.jsx("br",{}),n.jsx("div",{className:"perseus-widget-left-col",children:n.jsx(c,{label:"Multiple selections",checked:this.props.multipleSelect,onChange:s=>{this.onMultipleSelectChange({multipleSelect:s})}})}),n.jsx("div",{className:"perseus-widget-right-col",children:n.jsx(c,{label:"Randomize order",checked:this.props.randomize,onChange:s=>{this.props.onChange({randomize:s})}})}),this.props.multipleSelect&&n.jsx("div",{className:"perseus-widget-left-col",children:n.jsx(c,{label:"Specify number correct",checked:this.props.countChoices,onChange:s=>{this.onCountChoicesChange({countChoices:s})}})})]}),n.jsx(q,{multipleSelect:this.props.multipleSelect,countChoices:this.props.countChoices,numCorrect:e,editMode:!0,labelWrap:!1,apiOptions:this.props.apiOptions,reviewMode:!1,choices:this.props.choices.map((s,o)=>({content:n.jsx(h,{ref:`choice-editor${o}`,apiOptions:this.props.apiOptions,choice:s,onContentChange:i=>{"content"in i&&this.onContentChange(o,i.content)},onClueChange:i=>{"content"in i&&this.onClueChange(o,i.content)},onDelete:()=>this.onDelete(o),showDelete:this.props.choices.length>=2}),isNoneOfTheAbove:s.isNoneOfTheAbove,checked:s.correct}),this),onChange:this.onChange}),n.jsxs("div",{className:"add-choice-container",children:[n.jsxs("a",{className:"simple-button orange",href:"#",onClick:this.addChoice.bind(this,!1),children:[n.jsx(p,{...C})," Add a choice"," "]}),!this.props.hasNoneOfTheAbove&&n.jsxs("a",{className:"simple-button",href:"#",onClick:this.addChoice.bind(this,!0),children:[n.jsx(p,{...C})," None of the above"," "]})]})]})}};a.propTypes={...v,apiOptions:b.propTypes,choices:t.arrayOf(t.shape({content:t.string,clue:t.string,correct:t.bool})),displayCount:t.number,randomize:t.bool,hasNoneOfTheAbove:t.bool,multipleSelect:t.bool,countChoices:t.bool,deselectEnabled:t.bool,static:t.bool},a.widgetName="radio",a.defaultProps={choices:[{},{},{},{}],displayCount:null,randomize:!1,hasNoneOfTheAbove:!1,multipleSelect:!1,countChoices:!1,deselectEnabled:!1};let u=a;u.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"onMultipleSelectChange",docblock:null,modifiers:[],params:[{name:"allowMultiple",optional:!1,type:null}],returns:null},{name:"onCountChoicesChange",docblock:null,modifiers:[],params:[{name:"count",optional:!1,type:null}],returns:null},{name:"onChange",docblock:null,modifiers:[],params:[{name:"{checked}",optional:!1,type:null}],returns:null},{name:"onContentChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"newContent",optional:!1,type:null}],returns:null},{name:"onClueChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"newClue",optional:!1,type:null}],returns:null},{name:"onDelete",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"addChoice",docblock:null,modifiers:[],params:[{name:"noneOfTheAbove",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"setDisplayCount",docblock:null,modifiers:[],params:[{name:"num",optional:!1,type:null}],returns:null},{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"RadioEditor",props:{choices:{defaultValue:{value:"[{}, {}, {}, {}]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{content:{name:"string",required:!1},clue:{name:"string",required:!1},correct:{name:"bool",required:!1}}}},required:!1},displayCount:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"number"},required:!1},randomize:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},hasNoneOfTheAbove:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},multipleSelect:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},countChoices:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},deselectEnabled:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0},static:{description:"",type:{name:"bool"},required:!1}},composes:["@khanacademy/perseus"]};export{u as R}; diff --git a/assets/editor-CEQdVGNe.js b/assets/editor-CEQdVGNe.js new file mode 100644 index 0000000000..38978543f0 --- /dev/null +++ b/assets/editor-CEQdVGNe.js @@ -0,0 +1 @@ +import{j as n}from"./jsx-runtime-63Ea5SlK.js";import{c as y,p as v}from"./article-renderer-h_m-tvVP.js";import{_ as r}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import{A as b}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import{B as q}from"./base-radio-XsQBfrsT.js";import{c as x}from"./components-2XngBvY8.js";import{i as O}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{C as c}from"./index-V5gl6frG.js";import{P as t}from"./index-0C4KXdeC.js";import{r as g}from"./index-6oxdNXpR.js";import{E as f}from"./editor-JBlHUPac.js";import{i as C}from"./icon-paths-EoBkHOLI.js";const{InlineIcon:p}=x,d=class d extends g.Component{render(){const e=this.props.choice.correct?"correct":"incorrect";let s="Type a choice here...";this.props.choice.isNoneOfTheAbove&&(s=this.props.choice.correct?"Type the answer to reveal to the user...":"None of the above");const o=n.jsx(f,{ref:"content-editor",apiOptions:this.props.apiOptions,content:this.props.choice.content||"",widgetEnabled:!1,placeholder:s,disabled:this.props.choice.isNoneOfTheAbove&&!this.props.choice.correct,onChange:this.props.onContentChange}),i=n.jsx(f,{ref:"clue-editor",apiOptions:this.props.apiOptions,content:this.props.choice.clue||"",widgetEnabled:!1,placeholder:`Why is this choice ${e}?`,onChange:this.props.onClueChange}),l=n.jsx("a",{className:"simple-button orange delete-choice",href:"#",onClick:m=>{m.stopPropagation(),m.preventDefault(),this.props.onDelete()},title:"Remove this choice",children:n.jsx(p,{...O})});return n.jsxs("div",{className:"choice-clue-editors",children:[n.jsx("div",{className:`choice-editor ${e}`,children:o}),n.jsx("div",{className:"clue-editor",children:i}),this.props.showDelete&&l]})}};d.propTypes={apiOptions:b.propTypes,choice:t.object,showDelete:t.bool,onClueChange:t.func,onContentChange:t.func,onDelete:t.func};let h=d;const a=class a extends g.Component{constructor(){super(...arguments),this.change=(...e)=>y.apply(this,e),this.onMultipleSelectChange=e=>{e=e.multipleSelect;const s=r.reduce(this.props.choices,function(o,i){return i.correct?o+1:o},0);if(!e&&s>1){const o=r.map(this.props.choices,function(i){return r.defaults({correct:!1},i)});this.props.onChange({multipleSelect:e,choices:o})}else this.props.onChange({multipleSelect:e})},this.onCountChoicesChange=e=>{e=e.countChoices,this.props.onChange({countChoices:e})},this.onChange=({checked:e})=>{const s=r.map(this.props.choices,(o,i)=>r.extend({},o,{correct:e[i],content:o.isNoneOfTheAbove&&!e[i]?"":o.content}));this.props.onChange({choices:s})},this.onContentChange=(e,s)=>{const o=this.props.choices.slice();o[e]=r.extend({},o[e],{content:s}),this.props.onChange({choices:o})},this.onClueChange=(e,s)=>{const o=this.props.choices.slice();o[e]=r.extend({},o[e],{clue:s}),s===""&&delete o[e].clue,this.props.onChange({choices:o})},this.onDelete=e=>{const s=this.props.choices.slice(),o=s[e];s.splice(e,1),this.props.onChange({choices:s,hasNoneOfTheAbove:this.props.hasNoneOfTheAbove&&!o.isNoneOfTheAbove})},this.addChoice=(e,s)=>{s.preventDefault();const o=this.props.choices.slice(),i={isNoneOfTheAbove:e},l=o.length-(this.props.hasNoneOfTheAbove?1:0);o.splice(l,0,i),this.props.onChange({choices:o,hasNoneOfTheAbove:e||this.props.hasNoneOfTheAbove},()=>{this.refs[`choice-editor${l}`].refs["content-editor"].focus()})},this.setDisplayCount=e=>{this.props.onChange({displayCount:e})},this.focus=()=>(this.refs["choice-editor0"].refs["content-editor"].focus(),!0),this.getSaveWarnings=()=>r.some(r.pluck(this.props.choices,"correct"))?[]:["No choice is marked as correct."],this.serialize=()=>r.pick(this.props,"choices","randomize","multipleSelect","countChoices","displayCount","hasNoneOfTheAbove","deselectEnabled")}render(){const e=r.reduce(this.props.choices,function(s,o){return o.correct?s+1:s},0);return n.jsxs("div",{children:[n.jsxs("div",{className:"perseus-widget-row",children:[n.jsx("a",{href:"https://docs.google.com/document/d/1frZf7yrWVWb1n4tVjqlzqVUiv1pn4cZXbxgP62-JDBY/edit#heading=h.8ng1isya19nu",target:"_blank",rel:"noreferrer",children:"Multiple choice style guide"}),n.jsx("br",{}),n.jsx("div",{className:"perseus-widget-left-col",children:n.jsx(c,{label:"Multiple selections",checked:this.props.multipleSelect,onChange:s=>{this.onMultipleSelectChange({multipleSelect:s})}})}),n.jsx("div",{className:"perseus-widget-right-col",children:n.jsx(c,{label:"Randomize order",checked:this.props.randomize,onChange:s=>{this.props.onChange({randomize:s})}})}),this.props.multipleSelect&&n.jsx("div",{className:"perseus-widget-left-col",children:n.jsx(c,{label:"Specify number correct",checked:this.props.countChoices,onChange:s=>{this.onCountChoicesChange({countChoices:s})}})})]}),n.jsx(q,{multipleSelect:this.props.multipleSelect,countChoices:this.props.countChoices,numCorrect:e,editMode:!0,labelWrap:!1,apiOptions:this.props.apiOptions,reviewMode:!1,choices:this.props.choices.map((s,o)=>({content:n.jsx(h,{ref:`choice-editor${o}`,apiOptions:this.props.apiOptions,choice:s,onContentChange:i=>{"content"in i&&this.onContentChange(o,i.content)},onClueChange:i=>{"content"in i&&this.onClueChange(o,i.content)},onDelete:()=>this.onDelete(o),showDelete:this.props.choices.length>=2}),isNoneOfTheAbove:s.isNoneOfTheAbove,checked:s.correct}),this),onChange:this.onChange}),n.jsxs("div",{className:"add-choice-container",children:[n.jsxs("a",{className:"simple-button orange",href:"#",onClick:this.addChoice.bind(this,!1),children:[n.jsx(p,{...C})," Add a choice"," "]}),!this.props.hasNoneOfTheAbove&&n.jsxs("a",{className:"simple-button",href:"#",onClick:this.addChoice.bind(this,!0),children:[n.jsx(p,{...C})," None of the above"," "]})]})]})}};a.propTypes={...v,apiOptions:b.propTypes,choices:t.arrayOf(t.shape({content:t.string,clue:t.string,correct:t.bool})),displayCount:t.number,randomize:t.bool,hasNoneOfTheAbove:t.bool,multipleSelect:t.bool,countChoices:t.bool,deselectEnabled:t.bool,static:t.bool},a.widgetName="radio",a.defaultProps={choices:[{},{},{},{}],displayCount:null,randomize:!1,hasNoneOfTheAbove:!1,multipleSelect:!1,countChoices:!1,deselectEnabled:!1};let u=a;u.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"onMultipleSelectChange",docblock:null,modifiers:[],params:[{name:"allowMultiple",optional:!1,type:null}],returns:null},{name:"onCountChoicesChange",docblock:null,modifiers:[],params:[{name:"count",optional:!1,type:null}],returns:null},{name:"onChange",docblock:null,modifiers:[],params:[{name:"{checked}",optional:!1,type:null}],returns:null},{name:"onContentChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"newContent",optional:!1,type:null}],returns:null},{name:"onClueChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"newClue",optional:!1,type:null}],returns:null},{name:"onDelete",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"addChoice",docblock:null,modifiers:[],params:[{name:"noneOfTheAbove",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"setDisplayCount",docblock:null,modifiers:[],params:[{name:"num",optional:!1,type:null}],returns:null},{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"RadioEditor",props:{choices:{defaultValue:{value:"[{}, {}, {}, {}]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{content:{name:"string",required:!1},clue:{name:"string",required:!1},correct:{name:"bool",required:!1}}}},required:!1},displayCount:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"number"},required:!1},randomize:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},hasNoneOfTheAbove:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},multipleSelect:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},countChoices:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},deselectEnabled:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0},static:{description:"",type:{name:"bool"},required:!1}},composes:["@khanacademy/perseus"]};export{u as R}; diff --git a/assets/editor-page-IZU6eBRz.js b/assets/editor-page-lRZ_qmez.js similarity index 99% rename from assets/editor-page-IZU6eBRz.js rename to assets/editor-page-lRZ_qmez.js index 5084f53383..e7a070ac76 100644 --- a/assets/editor-page-IZU6eBRz.js +++ b/assets/editor-page-lRZ_qmez.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import{_ as s}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import{A as T,C as R}from"./perseus-api-1-ethIrW.js";import{c as A}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as w}from"./components-2XngBvY8.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{r as o}from"./index-6oxdNXpR.js";import{I as f,J as O}from"./register-all-widgets-and-editors-for-testing-4tsEoT6X.js";import{V as j}from"./viewport-resizer-XdI1AJxV.js";import{i as W}from"./icon-paths-5JCXzGsq.js";import{D as k}from"./device-framer-MUDr0WgQ.js";import{E as q}from"./editor-JBlHUPac.js";import{a as x,b as z,i as C}from"./icon-paths-EoBkHOLI.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{I}from"./item-extras-editor-59uwRwff.js";const{InfoTip:N,InlineIcon:u}=w,p=class p extends o.Component{constructor(){super(...arguments),this.editor=o.createRef(),this.handleChange=e=>{this.props.onChange({replace:e.target.checked})},this.focus=()=>{var e;(e=this.editor.current)==null||e.focus()},this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=e=>{var r;return(r=this.editor.current)==null?void 0:r.serialize(e)}}render(){return t.jsxs("div",{className:"perseus-hint-editor "+this.props.className,children:[this.props.showTitle&&t.jsx("div",{className:"pod-title",children:"Hint"}),t.jsx(q,{ref:this.editor,apiOptions:this.props.apiOptions,widgets:this.props.widgets||void 0,content:this.props.content||void 0,images:this.props.images,replace:this.props.replace,placeholder:"Type your hint here...",imageUploader:this.props.imageUploader,onChange:this.props.onChange},this.props.itemId),t.jsxs("div",{className:"hint-controls-container clearfix",children:[this.props.showMoveButtons&&t.jsxs("span",{className:"reorder-hints",children:[t.jsx("button",{type:"button",className:this.props.isLast?"hidden":"",onClick:s.partial(this.props.onMove,1),children:t.jsx(u,{...x})})," ",t.jsx("button",{type:"button",className:this.props.isFirst?"hidden":"",onClick:s.partial(this.props.onMove,-1),children:t.jsx(u,{...z})})," ",this.props.isLast&&t.jsx(N,{children:t.jsx("p",{children:"The last hint is automatically bolded."})})]}),t.jsx("input",{type:"checkbox",checked:this.props.replace,onChange:this.handleChange}),"Replace previous hint",this.props.showRemoveButton&&t.jsxs("button",{type:"button",className:"remove-hint simple-button orange",onClick:this.props.onRemove,children:[t.jsx(u,{...W}),"Remove this hint"," "]})]})]})}};p.defaultProps={className:"",content:"",replace:!1,showMoveButtons:!0,showTitle:!0,showRemoveButton:!0};let l=p;const c=class c extends o.Component{constructor(){super(...arguments),this.editor=o.createRef(),this.frame=o.createRef(),this.updatePreview=()=>{var r;const e=this.props.isLast&&!/\*\*/.test(this.props.hint.content);(r=this.frame.current)==null||r.sendNewData({type:"hint",data:{hint:this.props.hint,bold:e,pos:this.props.pos,apiOptions:this.props.apiOptions,linterContext:{contentType:"hint",highlightLint:this.props.highlightLint,paths:this.props.contentPaths}}})},this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=e=>{var r;return(r=this.editor.current)==null?void 0:r.serialize(e)},this.focus=()=>{var e;(e=this.editor.current)==null||e.focus()}}componentDidMount(){this.updatePreview()}componentDidUpdate(){this.updatePreview()}render(){const e=this.props.deviceType==="phone"||this.props.deviceType==="tablet";return t.jsxs("div",{className:"perseus-combined-hint-editor perseus-editor-row",children:[t.jsx("div",{className:"perseus-editor-left-cell",children:t.jsx(l,{ref:this.editor,itemId:this.props.itemId,isFirst:this.props.isFirst,isLast:this.props.isLast,widgets:this.props.hint.widgets,content:this.props.hint.content,images:this.props.hint.images,replace:this.props.hint.replace,imageUploader:this.props.imageUploader,onChange:this.props.onChange,onRemove:this.props.onRemove,onMove:this.props.onMove,apiOptions:this.props.apiOptions})}),t.jsx("div",{className:"perseus-editor-right-cell",children:t.jsx(k,{deviceType:this.props.deviceType,nochrome:!0,children:t.jsx(f,{ref:this.frame,datasetKey:"mobile",datasetValue:e,seamless:!0,url:this.props.previewURL})})})]})}};c.defaultProps={highlightLint:!1};let g=c;const m=class m extends o.Component{constructor(){super(...arguments),this.handleHintChange=(e,r,n,a)=>{const i=[...this.props.hints];i[e]=s.extend({},this.serializeHint(e,{keepDeletedWidgets:!0}),r),this.props.onChange({hints:i},n,a)},this.handleHintRemove=e=>{if(!confirm("Are you sure you want to delete this hint?"))return;const r=[...this.props.hints];r.splice(e,1),this.props.onChange({hints:r})},this.handleHintMove=(e,r)=>{const n=[...this.props.hints],a=n.splice(e,1)[0];n.splice(e+r,0,a),this.props.onChange({hints:n},()=>{this.refs["hintEditor"+(e+r)].focus()})},this.addHint=()=>{const e=this.props.hints.concat([{content:"",images:{},widgets:{}}]);this.props.onChange({hints:e},()=>{const r=e.length-1;this.refs["hintEditor"+r].focus()})},this.getSaveWarnings=()=>s.chain(this.props.hints).map((e,r)=>s.map(this.refs["hintEditor"+r].getSaveWarnings(),n=>"Hint "+(r+1)+": "+n)).flatten(!0).value(),this.serialize=e=>this.props.hints.map((r,n)=>this.serializeHint(n,e)),this.serializeHint=(e,r)=>this.refs["hintEditor"+e].serialize(r)}render(){const{itemId:e,hints:r}=this.props,n=s.map(r,function(a,i){return t.jsx(g,{ref:"hintEditor"+i,isFirst:i===0,isLast:i+1===r.length,itemId:e,hint:a,pos:i,imageUploader:this.props.imageUploader,onChange:this.handleHintChange.bind(this,i),onRemove:this.handleHintRemove.bind(this,i),onMove:this.handleHintMove.bind(this,i),deviceType:this.props.deviceType,apiOptions:this.props.apiOptions,highlightLint:this.props.highlightLint,previewURL:this.props.previewURL,contentPaths:[]},"hintEditor"+i)},this);return t.jsxs("div",{className:"perseus-hints-editor perseus-editor-table",children:[n,t.jsx("div",{className:"perseus-editor-row",children:t.jsx("div",{className:"add-hint-container perseus-editor-left-cell",children:t.jsxs("button",{type:"button",className:"add-hint simple-button orange",onClick:this.addHint,children:[t.jsx(u,{...C})," Add a hint"]})})})]})}};m.HintEditor=l,m.defaultProps={onChange:()=>{},hints:[],highlightLint:!1};let d=m;l.__docgenInfo={description:"",methods:[{name:"handleChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:{name:"ReactChangeEvent",raw:"React.ChangeEvent",elements:[{name:"HTMLInputElement"}],alias:"React.ChangeEvent"}}],returns:null},{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[{name:"options",optional:!1,type:{name:"any"}}],returns:null}],displayName:"HintEditor",props:{itemId:{required:!1,tsType:{name:"string"},description:""},apiOptions:{required:!1,tsType:{name:"Readonly",elements:[{name:"signature",type:"object",raw:`{ +import{j as t}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import{_ as s}from"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import{A as T,C as R}from"./perseus-api-1-ethIrW.js";import{c as A}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as w}from"./components-2XngBvY8.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{r as o}from"./index-6oxdNXpR.js";import{I as f,J as O}from"./register-all-widgets-and-editors-for-testing-QKLCyv1G.js";import{V as j}from"./viewport-resizer-XdI1AJxV.js";import{i as W}from"./icon-paths-5JCXzGsq.js";import{D as k}from"./device-framer-MUDr0WgQ.js";import{E as q}from"./editor-JBlHUPac.js";import{a as x,b as z,i as C}from"./icon-paths-EoBkHOLI.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{I}from"./item-extras-editor-59uwRwff.js";const{InfoTip:N,InlineIcon:u}=w,p=class p extends o.Component{constructor(){super(...arguments),this.editor=o.createRef(),this.handleChange=e=>{this.props.onChange({replace:e.target.checked})},this.focus=()=>{var e;(e=this.editor.current)==null||e.focus()},this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=e=>{var r;return(r=this.editor.current)==null?void 0:r.serialize(e)}}render(){return t.jsxs("div",{className:"perseus-hint-editor "+this.props.className,children:[this.props.showTitle&&t.jsx("div",{className:"pod-title",children:"Hint"}),t.jsx(q,{ref:this.editor,apiOptions:this.props.apiOptions,widgets:this.props.widgets||void 0,content:this.props.content||void 0,images:this.props.images,replace:this.props.replace,placeholder:"Type your hint here...",imageUploader:this.props.imageUploader,onChange:this.props.onChange},this.props.itemId),t.jsxs("div",{className:"hint-controls-container clearfix",children:[this.props.showMoveButtons&&t.jsxs("span",{className:"reorder-hints",children:[t.jsx("button",{type:"button",className:this.props.isLast?"hidden":"",onClick:s.partial(this.props.onMove,1),children:t.jsx(u,{...x})})," ",t.jsx("button",{type:"button",className:this.props.isFirst?"hidden":"",onClick:s.partial(this.props.onMove,-1),children:t.jsx(u,{...z})})," ",this.props.isLast&&t.jsx(N,{children:t.jsx("p",{children:"The last hint is automatically bolded."})})]}),t.jsx("input",{type:"checkbox",checked:this.props.replace,onChange:this.handleChange}),"Replace previous hint",this.props.showRemoveButton&&t.jsxs("button",{type:"button",className:"remove-hint simple-button orange",onClick:this.props.onRemove,children:[t.jsx(u,{...W}),"Remove this hint"," "]})]})]})}};p.defaultProps={className:"",content:"",replace:!1,showMoveButtons:!0,showTitle:!0,showRemoveButton:!0};let l=p;const c=class c extends o.Component{constructor(){super(...arguments),this.editor=o.createRef(),this.frame=o.createRef(),this.updatePreview=()=>{var r;const e=this.props.isLast&&!/\*\*/.test(this.props.hint.content);(r=this.frame.current)==null||r.sendNewData({type:"hint",data:{hint:this.props.hint,bold:e,pos:this.props.pos,apiOptions:this.props.apiOptions,linterContext:{contentType:"hint",highlightLint:this.props.highlightLint,paths:this.props.contentPaths}}})},this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=e=>{var r;return(r=this.editor.current)==null?void 0:r.serialize(e)},this.focus=()=>{var e;(e=this.editor.current)==null||e.focus()}}componentDidMount(){this.updatePreview()}componentDidUpdate(){this.updatePreview()}render(){const e=this.props.deviceType==="phone"||this.props.deviceType==="tablet";return t.jsxs("div",{className:"perseus-combined-hint-editor perseus-editor-row",children:[t.jsx("div",{className:"perseus-editor-left-cell",children:t.jsx(l,{ref:this.editor,itemId:this.props.itemId,isFirst:this.props.isFirst,isLast:this.props.isLast,widgets:this.props.hint.widgets,content:this.props.hint.content,images:this.props.hint.images,replace:this.props.hint.replace,imageUploader:this.props.imageUploader,onChange:this.props.onChange,onRemove:this.props.onRemove,onMove:this.props.onMove,apiOptions:this.props.apiOptions})}),t.jsx("div",{className:"perseus-editor-right-cell",children:t.jsx(k,{deviceType:this.props.deviceType,nochrome:!0,children:t.jsx(f,{ref:this.frame,datasetKey:"mobile",datasetValue:e,seamless:!0,url:this.props.previewURL})})})]})}};c.defaultProps={highlightLint:!1};let g=c;const m=class m extends o.Component{constructor(){super(...arguments),this.handleHintChange=(e,r,n,a)=>{const i=[...this.props.hints];i[e]=s.extend({},this.serializeHint(e,{keepDeletedWidgets:!0}),r),this.props.onChange({hints:i},n,a)},this.handleHintRemove=e=>{if(!confirm("Are you sure you want to delete this hint?"))return;const r=[...this.props.hints];r.splice(e,1),this.props.onChange({hints:r})},this.handleHintMove=(e,r)=>{const n=[...this.props.hints],a=n.splice(e,1)[0];n.splice(e+r,0,a),this.props.onChange({hints:n},()=>{this.refs["hintEditor"+(e+r)].focus()})},this.addHint=()=>{const e=this.props.hints.concat([{content:"",images:{},widgets:{}}]);this.props.onChange({hints:e},()=>{const r=e.length-1;this.refs["hintEditor"+r].focus()})},this.getSaveWarnings=()=>s.chain(this.props.hints).map((e,r)=>s.map(this.refs["hintEditor"+r].getSaveWarnings(),n=>"Hint "+(r+1)+": "+n)).flatten(!0).value(),this.serialize=e=>this.props.hints.map((r,n)=>this.serializeHint(n,e)),this.serializeHint=(e,r)=>this.refs["hintEditor"+e].serialize(r)}render(){const{itemId:e,hints:r}=this.props,n=s.map(r,function(a,i){return t.jsx(g,{ref:"hintEditor"+i,isFirst:i===0,isLast:i+1===r.length,itemId:e,hint:a,pos:i,imageUploader:this.props.imageUploader,onChange:this.handleHintChange.bind(this,i),onRemove:this.handleHintRemove.bind(this,i),onMove:this.handleHintMove.bind(this,i),deviceType:this.props.deviceType,apiOptions:this.props.apiOptions,highlightLint:this.props.highlightLint,previewURL:this.props.previewURL,contentPaths:[]},"hintEditor"+i)},this);return t.jsxs("div",{className:"perseus-hints-editor perseus-editor-table",children:[n,t.jsx("div",{className:"perseus-editor-row",children:t.jsx("div",{className:"add-hint-container perseus-editor-left-cell",children:t.jsxs("button",{type:"button",className:"add-hint simple-button orange",onClick:this.addHint,children:[t.jsx(u,{...C})," Add a hint"]})})})]})}};m.HintEditor=l,m.defaultProps={onChange:()=>{},hints:[],highlightLint:!1};let d=m;l.__docgenInfo={description:"",methods:[{name:"handleChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:{name:"ReactChangeEvent",raw:"React.ChangeEvent",elements:[{name:"HTMLInputElement"}],alias:"React.ChangeEvent"}}],returns:null},{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[{name:"options",optional:!1,type:{name:"any"}}],returns:null}],displayName:"HintEditor",props:{itemId:{required:!1,tsType:{name:"string"},description:""},apiOptions:{required:!1,tsType:{name:"Readonly",elements:[{name:"signature",type:"object",raw:`{ isArticle?: boolean; onFocusChange?: ( newFocusPath: FocusPath, diff --git a/assets/editor-page-with-storybook-preview-OQhZV8v2.js b/assets/editor-page-with-storybook-preview-Kxt2zK35.js similarity index 99% rename from assets/editor-page-with-storybook-preview-OQhZV8v2.js rename to assets/editor-page-with-storybook-preview-Kxt2zK35.js index 75131fa901..e0f85806e4 100644 --- a/assets/editor-page-with-storybook-preview-OQhZV8v2.js +++ b/assets/editor-page-with-storybook-preview-Kxt2zK35.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import{R as g}from"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import{m as h}from"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{B as R}from"./choice-Xr-SKHrB.js";import{V as o}from"./index-0DbkllkJ.js";import{I as A}from"./locked-label-settings-6ht0io0O.js";import{S as O}from"./index-nqMmpXbO.js";import{c as p,s as t}from"./index-deFLJwr4.js";import{L as j}from"./index-18qWGOW7.js";import{x as W}from"./index-f-3iKkZU.js";import{a as x}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{l as z}from"./index-awljIyHI.js";import{r as n}from"./index-6oxdNXpR.js";import{E as I}from"./editor-page-IZU6eBRz.js";import{f as C}from"./flags-for-api-options-buw2ikR-.js";const N=x("onChange");function E(l){const[c,b]=n.useState("phone"),[v,w]=n.useState(!1),[f,k]=n.useState(),[d,q]=n.useState(l.question),[i,T]=n.useState(l.hints),[s,y]=n.useState(!0),u=l.apiOptions??{isMobile:!1,flags:C};return r.jsxs(o,{children:[r.jsx(I,{apiOptions:u,previewDevice:c,onPreviewDeviceChange:e=>b(e),developerMode:!0,jsonMode:v,answerArea:f,question:d,hints:i,frameSource:"about:blank",previewURL:"about:blank",itemId:"1",onChange:e=>{N(e),"jsonMode"in e&&w(e.jsonMode),"answerArea"in e&&k(e.answerArea),"question"in e&&q(e.question),"hints"in e&&T(e.hints)}}),!s&&r.jsx(R,{onClick:()=>y(!s),style:a.openPanelButton,children:"Open preview (storybook only)"}),s&&r.jsxs(o,{style:a.panel,children:[r.jsx(A,{icon:W,onClick:()=>y(!s),style:a.closeButton}),r.jsx(o,{style:a.panelInner,children:r.jsx(g,{strings:h,apiOptions:u,...d})}),i==null?void 0:i.map((e,m)=>r.jsxs(o,{style:a.panelInner,children:[r.jsx(O,{size:t.medium_16}),r.jsx(j,{children:`Hint ${m+1}`}),r.jsx(g,{strings:h,apiOptions:u,...e})]},m))]})]})}const a=z.StyleSheet.create({panel:{position:"fixed",right:0,minWidth:500,height:"90vh",overflow:"auto",flex:"none",backgroundColor:p.fadedBlue16,padding:t.medium_16,borderRadius:t.small_12,alignItems:"end"},panelInner:{flex:"none",backgroundColor:p.white,borderRadius:t.xSmall_8,marginTop:t.medium_16,width:"100%",padding:t.xSmall_8},closeButton:{margin:0},openPanelButton:{position:"fixed",right:t.medium_16,bottom:t.xxxLarge_64}});E.__docgenInfo={description:"",methods:[],displayName:"EditorPageWithStorybookPreview",props:{apiOptions:{required:!1,tsType:{name:"Readonly",elements:[{name:"signature",type:"object",raw:`{ +import{j as r}from"./jsx-runtime-63Ea5SlK.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import{R as g}from"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import{m as h}from"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{B as R}from"./choice-Xr-SKHrB.js";import{V as o}from"./index-0DbkllkJ.js";import{I as A}from"./locked-label-settings-6ht0io0O.js";import{S as O}from"./index-nqMmpXbO.js";import{c as p,s as t}from"./index-deFLJwr4.js";import{L as j}from"./index-18qWGOW7.js";import{x as W}from"./index-f-3iKkZU.js";import{a as x}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{l as z}from"./index-awljIyHI.js";import{r as n}from"./index-6oxdNXpR.js";import{E as I}from"./editor-page-lRZ_qmez.js";import{f as C}from"./flags-for-api-options-buw2ikR-.js";const N=x("onChange");function E(l){const[c,b]=n.useState("phone"),[v,w]=n.useState(!1),[f,k]=n.useState(),[d,q]=n.useState(l.question),[i,T]=n.useState(l.hints),[s,y]=n.useState(!0),u=l.apiOptions??{isMobile:!1,flags:C};return r.jsxs(o,{children:[r.jsx(I,{apiOptions:u,previewDevice:c,onPreviewDeviceChange:e=>b(e),developerMode:!0,jsonMode:v,answerArea:f,question:d,hints:i,frameSource:"about:blank",previewURL:"about:blank",itemId:"1",onChange:e=>{N(e),"jsonMode"in e&&w(e.jsonMode),"answerArea"in e&&k(e.answerArea),"question"in e&&q(e.question),"hints"in e&&T(e.hints)}}),!s&&r.jsx(R,{onClick:()=>y(!s),style:a.openPanelButton,children:"Open preview (storybook only)"}),s&&r.jsxs(o,{style:a.panel,children:[r.jsx(A,{icon:W,onClick:()=>y(!s),style:a.closeButton}),r.jsx(o,{style:a.panelInner,children:r.jsx(g,{strings:h,apiOptions:u,...d})}),i==null?void 0:i.map((e,m)=>r.jsxs(o,{style:a.panelInner,children:[r.jsx(O,{size:t.medium_16}),r.jsx(j,{children:`Hint ${m+1}`}),r.jsx(g,{strings:h,apiOptions:u,...e})]},m))]})]})}const a=z.StyleSheet.create({panel:{position:"fixed",right:0,minWidth:500,height:"90vh",overflow:"auto",flex:"none",backgroundColor:p.fadedBlue16,padding:t.medium_16,borderRadius:t.small_12,alignItems:"end"},panelInner:{flex:"none",backgroundColor:p.white,borderRadius:t.xSmall_8,marginTop:t.medium_16,width:"100%",padding:t.xSmall_8},closeButton:{margin:0},openPanelButton:{position:"fixed",right:t.medium_16,bottom:t.xxxLarge_64}});E.__docgenInfo={description:"",methods:[],displayName:"EditorPageWithStorybookPreview",props:{apiOptions:{required:!1,tsType:{name:"Readonly",elements:[{name:"signature",type:"object",raw:`{ isArticle?: boolean; onFocusChange?: ( newFocusPath: FocusPath, diff --git a/assets/editor-page.stories-xTqlS0GI.js b/assets/editor-page.stories-DIUtPVoA.js similarity index 82% rename from assets/editor-page.stories-xTqlS0GI.js rename to assets/editor-page.stories-DIUtPVoA.js index e1739ca4ed..654a023778 100644 --- a/assets/editor-page.stories-xTqlS0GI.js +++ b/assets/editor-page.stories-DIUtPVoA.js @@ -1,3 +1,3 @@ -import{j as m}from"./jsx-runtime-63Ea5SlK.js";import{r as p}from"./register-all-widgets-and-editors-for-testing-4tsEoT6X.js";import{E as e}from"./editor-page-with-storybook-preview-OQhZV8v2.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./graph-settings-RVCdgmRM.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./index-0C4KXdeC.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-whGRFVv8.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";import"./dropdown-editor-aJLNeS97.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor-eqp-b25r.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-kVA-32xF.js";import"./heading-1izW0-GJ.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-y3ppaDa3.js";import"./locked-ellipse-settings-QEWwFykH.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-YpDy59Fp.js";import"./locked-point-settings-zw7k74iG.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-wVPxu4oj.js";import"./locked-vector-settings-ZrkXTg1R.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-z2JL1__O.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-3qfdTkF_.js";import"./sorter-editor-nvFR-j1p.js";import"./chunk-D5ZWXAHU-vR62DWf0.js";import"./v4-yQnnJER4.js";import"./editor-page-IZU6eBRz.js";import"./viewport-resizer-XdI1AJxV.js";import"./constants-p_UgHLsb.js";import"./device-framer-MUDr0WgQ.js";import"./item-extras-editor-59uwRwff.js";import"./flags-for-api-options-buw2ikR-.js";p();const ot={title:"PerseusEditor/EditorPage"},r=()=>m.jsx(e,{});r.__docgenInfo={description:"",methods:[],displayName:"Demo"};var o,t,i;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`(): React.ReactElement => { +import{j as m}from"./jsx-runtime-63Ea5SlK.js";import{r as p}from"./register-all-widgets-and-editors-for-testing-QKLCyv1G.js";import{E as e}from"./editor-page-with-storybook-preview-Kxt2zK35.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./graph-settings-RVCdgmRM.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./index-0C4KXdeC.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-mtNl78Ws.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";import"./dropdown-editor-zKHD15eA.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor--gvmUBTK.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-aOqBZtl-.js";import"./heading-1izW0-GJ.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-TVvL2-a2.js";import"./locked-ellipse-settings-EZXzWz0x.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-J8lMZ4RB.js";import"./locked-point-settings-tJQmmWj4.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-c4WjOmfA.js";import"./locked-vector-settings-2YztdJIb.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-YnVVoF5-.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-CEQdVGNe.js";import"./sorter-editor-nvFR-j1p.js";import"./chunk-D5ZWXAHU-vR62DWf0.js";import"./v4-yQnnJER4.js";import"./editor-page-lRZ_qmez.js";import"./viewport-resizer-XdI1AJxV.js";import"./constants-p_UgHLsb.js";import"./device-framer-MUDr0WgQ.js";import"./item-extras-editor-59uwRwff.js";import"./flags-for-api-options-buw2ikR-.js";p();const ot={title:"PerseusEditor/EditorPage"},r=()=>m.jsx(e,{});r.__docgenInfo={description:"",methods:[],displayName:"Demo"};var o,t,i;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`(): React.ReactElement => { return ; }`,...(i=(t=r.parameters)==null?void 0:t.docs)==null?void 0:i.source}}};const tt=["Demo"];export{r as Demo,tt as __namedExportsOrder,ot as default}; diff --git a/assets/editor.stories-jBup12x7.js b/assets/editor.stories-JIpR7Umf.js similarity index 88% rename from assets/editor.stories-jBup12x7.js rename to assets/editor.stories-JIpR7Umf.js index 2846dc5943..7d3e834a69 100644 --- a/assets/editor.stories-jBup12x7.js +++ b/assets/editor.stories-JIpR7Umf.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{V as R}from"./index-0DbkllkJ.js";import{a as x}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{r as e}from"./index-6oxdNXpR.js";import"./index-wBNCUhuP.js";import{S as O}from"./side-by-side-MBJuyilC.js";import{r as C}from"./register-all-widgets-and-editors-for-testing-4tsEoT6X.js";import{a as u}from"./flags-for-api-options-buw2ikR-.js";import{E as f}from"./editor-JBlHUPac.js";import"./index-awljIyHI.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./version-akiLXZts.js";import"./article-editor-f268t0Bj.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./device-framer-MUDr0WgQ.js";import"./constants-p_UgHLsb.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./icon-paths-EoBkHOLI.js";import"./viewport-resizer-XdI1AJxV.js";import"./index-0C4KXdeC.js";import"./structured-item-diff-DXp4z5uV.js";import"./text-diff-pKWm8aY9.js";import"./tags-diff-3VjcFXZJ.js";import"./editor-page-IZU6eBRz.js";import"./item-extras-editor-59uwRwff.js";import"./multi-items-IrUZEql6.js";/* empty css */import"./graph-settings-RVCdgmRM.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-whGRFVv8.js";import"./dropdown-editor-aJLNeS97.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor-eqp-b25r.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-kVA-32xF.js";import"./heading-1izW0-GJ.js";import"./toggleable-caret-YFS5vs4O.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-y3ppaDa3.js";import"./locked-ellipse-settings-QEWwFykH.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-YpDy59Fp.js";import"./locked-point-settings-zw7k74iG.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-wVPxu4oj.js";import"./locked-vector-settings-ZrkXTg1R.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-z2JL1__O.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-3qfdTkF_.js";import"./sorter-editor-nvFR-j1p.js";import"./tex-error-view-oha0Bum8.js";const s={content:`A sequence is defined recursively as follows: +import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{V as R}from"./index-0DbkllkJ.js";import{a as x}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{r as e}from"./index-6oxdNXpR.js";import"./index-MMN8f7sJ.js";import{S as O}from"./side-by-side-MBJuyilC.js";import{r as C}from"./register-all-widgets-and-editors-for-testing-QKLCyv1G.js";import{a as u}from"./flags-for-api-options-buw2ikR-.js";import{E as f}from"./editor-JBlHUPac.js";import"./index-awljIyHI.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./version-akiLXZts.js";import"./article-editor-eS0mHgX3.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./device-framer-MUDr0WgQ.js";import"./constants-p_UgHLsb.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./icon-paths-EoBkHOLI.js";import"./viewport-resizer-XdI1AJxV.js";import"./index-0C4KXdeC.js";import"./structured-item-diff-DXp4z5uV.js";import"./text-diff-pKWm8aY9.js";import"./tags-diff-3VjcFXZJ.js";import"./editor-page-lRZ_qmez.js";import"./item-extras-editor-59uwRwff.js";import"./multi-items-IrUZEql6.js";/* empty css */import"./graph-settings-RVCdgmRM.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-mtNl78Ws.js";import"./dropdown-editor-zKHD15eA.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor--gvmUBTK.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-aOqBZtl-.js";import"./heading-1izW0-GJ.js";import"./toggleable-caret-YFS5vs4O.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-TVvL2-a2.js";import"./locked-ellipse-settings-EZXzWz0x.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-J8lMZ4RB.js";import"./locked-point-settings-tJQmmWj4.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-c4WjOmfA.js";import"./locked-vector-settings-2YztdJIb.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-YnVVoF5-.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-CEQdVGNe.js";import"./sorter-editor-nvFR-j1p.js";import"./tex-error-view-oha0Bum8.js";const s={content:`A sequence is defined recursively as follows: $\\qquad\\displaystyle{{a}_{n}}=-\\frac{1}{a_{n-1}-1} diff --git a/assets/entry-preview-q_nhScy4.js b/assets/entry-preview-AnF0cNCV.js similarity index 99% rename from assets/entry-preview-q_nhScy4.js rename to assets/entry-preview-AnF0cNCV.js index cd15a3f360..39ef3cc2a5 100644 --- a/assets/entry-preview-q_nhScy4.js +++ b/assets/entry-preview-AnF0cNCV.js @@ -1,4 +1,4 @@ -import{_ as tr}from"./iframe-ZJ6Y6Oqt.js";import{_ as sr,a as nr,b as L}from"./chunk-XP5HYGXS-fUC2V6Et.js";import{r as Y,R as re}from"./index-6oxdNXpR.js";import{r as ar}from"./index-9gkyvru-.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-4gQjN7DL.js";var b={};/** +import{_ as tr}from"./iframe-DrKPbhiz.js";import{_ as sr,a as nr,b as L}from"./chunk-XP5HYGXS-fUC2V6Et.js";import{r as Y,R as re}from"./index-6oxdNXpR.js";import{r as ar}from"./index-9gkyvru-.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-4gQjN7DL.js";var b={};/** * @license React * react-dom-test-utils.production.min.js * diff --git a/assets/expression-editor-eqp-b25r.js b/assets/expression-editor--gvmUBTK.js similarity index 52% rename from assets/expression-editor-eqp-b25r.js rename to assets/expression-editor--gvmUBTK.js index 08ef60c284..1844432564 100644 --- a/assets/expression-editor-eqp-b25r.js +++ b/assets/expression-editor--gvmUBTK.js @@ -7,4 +7,4 @@ Takes an array of components to sort. As of 08/05/24, there are two sortable components (one in perseus and one in perseus-editor). As far as I can tell, this one is only used in ExpressionEditor.`,methods:[{name:"onDragStart",docblock:null,modifiers:[],params:[{name:"startIndex",optional:!1,type:null}],returns:null},{name:"onDrop",docblock:null,modifiers:[],params:[],returns:null},{name:"onDragEnter",docblock:null,modifiers:[],params:[{name:"enterIndex",optional:!1,type:null}],returns:null},{name:"_listenEvent",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"_cancelEvent",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"_setDragEvents",docblock:null,modifiers:[],params:[],returns:null}],displayName:"SortableArea",props:{className:{required:!1,tsType:{name:"string"},description:""},components:{required:!0,tsType:{name:"Array",elements:[{name:"ReactReactElement",raw:"React.ReactElement"}],raw:"React.ReactElement[]"},description:""},onReorder:{required:!0,tsType:{name:"signature",type:"function",raw:"(i: any[]) => void",signature:{arguments:[{type:{name:"Array",elements:[{name:"any"}],raw:"any[]"},name:"i"}],return:{name:"void"}}},description:""},style:{required:!1,tsType:{name:"any"},description:""},verify:{required:!1,tsType:{name:"signature",type:"function",raw:"(i: any) => boolean",signature:{arguments:[{type:{name:"any"},name:"i"}],return:{name:"boolean"}}},description:"",defaultValue:{value:"() => true",computed:!1}}}};const{InfoTip:m}=_,j=["basic","trig","prealgebra","logarithms","basic relations","advanced relations"],C=({key:l})=>Number.parseInt(l??""),B=l=>{const s=[];l.forEach(e=>{s[C(e)]=!0});for(let e=0;eA.apply(this,e),this.serialize=()=>{const e=["value","form","simplify","considered","key"],r=["answerForms","buttonSets","functions","times","visibleLabel","ariaLabel"],n=this.props.answerForms.map(a=>u(a).pick(e));return F(this.props).set(["answerForms"],n).mod([],a=>u(a).pick(r)).freeze()},this.getSaveWarnings=()=>{const e=[];return this.props.answerForms.length===0?e.push("No answers specified"):(this.props.answerForms.some(n=>n.considered==="correct")||e.push("No correct answer specified"),u(this.props.answerForms).each((n,a)=>{if(this.props.value==="")e.push(`Answer ${a+1} is empty`);else{const c=D(n.value,{functions:this.props.functions});c.parsed?n.simplify&&!c.expr.isSimplified()&&e.push(`${n.value} isn't simplified, but is required" + - " to be`):e.push(`Couldn't parse ${n.value}`)}})),e},this._newEmptyAnswerForm=()=>({considered:"correct",form:!1,key:B(this.props.answerForms),simplify:!1,value:""}),this.newAnswer=()=>{const e=this.props.answerForms.slice();e.push(this._newEmptyAnswerForm()),this.change({answerForms:e})},this.handleRemoveForm=e=>{const r=this.props.answerForms.slice();r.splice(e,1),this.change({answerForms:r})},this.handleReorder=e=>{const r=e.map(n=>{const a=u(n.props).pick("considered","form","simplify","value");return a.key=n.key,a});this.change({answerForms:r})},this.handleButtonSet=e=>{const n=j.filter(a=>this.props.buttonSets.includes(a)!==(a===e));this.props.onChange({buttonSets:n})},this.handleToggleDiv=()=>{let e,r;this.props.buttonSets.includes("basic+div")?(e="basic",r="basic+div"):(e="basic+div",r="basic");const n=this.props.buttonSets.filter(a=>a!==r).concat(e);this.change("buttonSets",n)},this.handleTexInsert=e=>{this.refs.expression.insert(e)},this.handleFunctions=e=>{this.setState({functionsInternal:e});const r={};r.functions=e.split(/[ ,]+/).filter(N),this.props.onChange(r)},this.changeExpressionWidget=(e,r)=>{const n={...this.props.answerForms[e],key:`${e}`,value:r.value};this.updateAnswerForm(e,n)},this.state={functionsInternal:this.props.functions.join(" ")}}updateAnswerForm(s,e){const r=F(this.props.answerForms).merge([s],e).freeze();this.change({answerForms:r})}changeSimplify(s,e){const r={...this.props.answerForms[s],key:`${s}`,simplify:e};this.updateAnswerForm(s,r)}changeForm(s,e){const r={...this.props.answerForms[s],form:e,key:`${s}`};this.updateAnswerForm(s,r)}changeConsidered(s,e){const r={...this.props.answerForms[s],key:`${s}`,considered:e};this.updateAnswerForm(s,r)}changeTimes(s){this.change({times:s})}render(){const s=this.props.answerForms.map(n=>{const a=C(n),c={times:this.props.times,functions:this.props.functions,buttonSets:this.props.buttonSets,buttonsVisible:"focused",value:n.value,onChange:d=>this.changeExpressionWidget(a,d),trackInteraction:()=>{},widgetId:this.props.widgetId+"-"+n.key,visibleLabel:this.props.visibleLabel,ariaLabel:this.props.ariaLabel};return t.jsx(z,{draggable:!0,considered:n.considered,expressionProps:c,form:n.form,simplify:n.simplify,onDelete:()=>this.handleRemoveForm(a),onChangeSimplify:d=>this.changeSimplify(a,d),onChangeForm:d=>this.changeForm(a,d),onChangeConsidered:d=>this.changeConsidered(a,d)})}),e=t.jsx(f,{components:s,onReorder:this.handleReorder}),r=j.map(n=>{const a=n==="basic",c=this.props.buttonSets.includes(n)||a;return t.jsx(h,{label:n,checked:c,disabled:a,onChange:()=>this.handleButtonSet(n)},n)});return r.unshift(t.jsx(h,{label:"show ÷ button",checked:this.props.buttonSets.includes("basic+div"),onChange:this.handleToggleDiv},"show ÷ button")),t.jsxs("div",{children:[t.jsx(k,{children:"Global Options"}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(x,{label:"Visible label",value:this.props.visibleLabel||"",onChange:this.change("visibleLabel")}),t.jsx(m,{children:t.jsx("p",{children:"Optional visible text; strongly encouraged to help learners using dictation software, but can be omitted if the surrounding content provides enough context."})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(x,{label:"Aria label",value:this.props.ariaLabel||"",onChange:this.change("ariaLabel")}),t.jsx(m,{children:t.jsxs("p",{children:["Label text that's read by screen readers. Highly recommend adding a label here to ensure your exercise is accessible. For more information on writting accessible labels, please see"," ",t.jsx("a",{href:"https://www.w3.org/WAI/tips/designing/#ensure-that-form-elements-include-clearly-associated-labels",target:"_blank",children:"this article."})]})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(x,{label:"Function variables",value:this.state.functionsInternal,onChange:this.handleFunctions}),t.jsx(m,{children:t.jsx("p",{children:'Single-letter variables listed here will be interpreted as functions. This let us know that f(x) means "f of x" and not "f times x".'})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(h,{label:"Use × instead of ⋅ for multiplication",checked:this.props.times,onChange:n=>{this.changeTimes(n)}}),t.jsx(m,{children:t.jsx("p",{children:"For pre-algebra problems this option displays multiplication as \\times instead of \\cdot in both the rendered output and the acceptable formats examples."})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(R,{children:"Button Sets"}),r]}),t.jsx(k,{children:"Answers"}),t.jsx("p",{style:{margin:"4px 0"},children:"student responses area matched against these from top to bottom"}),e,t.jsx("div",{children:t.jsx(g,{size:"small",onClick:this.newAnswer,children:"Add new answer"})})]})}};b.widgetName="expression",b.defaultProps={answerForms:[],times:!1,buttonSets:["basic"],functions:["f","g","h"]};let v=b;const Y=function(l,s){let e=l.indexOf(s);return e=(e+1)%l.length,l[e]};class z extends w.Component{constructor(){super(...arguments),this.state={deleteFocused:!1},this.change=(...s)=>A.apply(this,s),this.handleImSure=()=>{this.props.onDelete()},this.handleCancelDelete=()=>{this.setState({deleteFocused:!1})},this.handleDelete=()=>{this.setState({deleteFocused:!0})},this.toggleConsidered=()=>{const s=Y(E,this.props.considered);this.props.onChangeConsidered(s)}}render(){const s=this.state.deleteFocused?t.jsxs(t.Fragment,{children:[t.jsx(g,{size:"small",onClick:this.handleImSure,color:"destructive",children:"I'm sure!"}),t.jsx(T,{size:p.small_12}),t.jsx(g,{size:"small",onClick:this.handleCancelDelete,light:!0,children:"Cancel"})]}):t.jsx(g,{size:"small",onClick:this.handleDelete,color:"destructive",light:!0,children:"Delete"}),e=o.css(i.answerStatus,this.props.considered==="wrong"&&i.answerStatusWrong,this.props.considered==="correct"&&i.answerStatusCorrect,this.props.considered==="ungraded"&&i.answerStatusUngraded);return t.jsxs("div",{className:o.css(i.answerOption),children:[t.jsx("div",{className:o.css(i.answerHandle)}),t.jsxs("div",{className:o.css(i.answerBody),children:[t.jsxs("div",{children:[t.jsx("button",{onClick:this.toggleConsidered,className:e,children:this.props.considered}),t.jsx("div",{children:t.jsx(I,{...this.props.expressionProps})})]}),t.jsxs("div",{className:o.css(i.paddedY,i.paddedX),children:[t.jsx(h,{label:"Answer expression must have the same form.",checked:this.props.form,onChange:this.props.onChangeForm}),t.jsx(m,{children:t.jsx("p",{children:"The student's answer must be in the same form. Commutativity and excess negative signs are ignored."})})]}),t.jsxs("div",{className:o.css(i.paddedY,i.paddedX),children:[t.jsx(h,{label:"Answer expression must be fully expanded and simplified.",checked:this.props.simplify,onChange:this.props.onChangeSimplify}),t.jsx(m,{children:t.jsx("p",{children:`The student's answer must be fully expanded and simplified. Answering this equation (x^2+2x+1) with this factored equation (x+1)^2 will render this response "Your answer is not fully expanded and simplified."`})})]}),t.jsx("div",{className:o.css(i.buttonRow,i.paddedY),children:s})]})]})}}const i=o.StyleSheet.create({paddedX:{paddingLeft:p.xSmall_8,paddingRight:p.xSmall_8},paddedY:{paddingTop:p.xxSmall_6,paddingBottom:p.xxSmall_6},answerOption:{border:"1px solid #ddd",borderRadius:"3px",display:"flex"},answerHandle:{background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==) no-repeat 50% 50%",borderRight:"1px solid #ddd",cursor:"move",width:"20px",minWidth:"20px"},answerStatus:{border:"none",userSelect:"none",width:"100px",paddingTop:p.small_12,paddingBottom:p.small_12},answerStatusWrong:{backgroundColor:y.fadedRed16},answerStatusCorrect:{backgroundColor:y.fadedGreen16},answerStatusUngraded:{backgroundColor:y.fadedBlue16},answerBody:{},buttonRow:{display:"flex"}});v.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"_newEmptyAnswerForm",docblock:null,modifiers:[],params:[],returns:null},{name:"newAnswer",docblock:null,modifiers:[],params:[],returns:null},{name:"handleRemoveForm",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:null}],returns:null},{name:"updateAnswerForm",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:{name:"number"}},{name:"props",optional:!1,type:{name:"ReadonlyArray[number]",raw:'PerseusExpressionWidgetOptions["answerForms"][number]',alias:"AnswerForm"}}],returns:null},{name:"handleReorder",docblock:null,modifiers:[],params:[{name:"components",optional:!1,type:null}],returns:null},{name:"handleButtonSet",docblock:null,modifiers:[],params:[{name:"changingName",optional:!1,type:null}],returns:null},{name:"handleToggleDiv",docblock:null,modifiers:[],params:[],returns:null},{name:"handleTexInsert",docblock:null,modifiers:[],params:[{name:"str",optional:!1,type:null}],returns:null},{name:"handleFunctions",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"changeSimplify",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:{name:"number"}},{name:"simplify",optional:!1,type:{name:"boolean"}}],returns:null},{name:"changeForm",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:{name:"number"}},{name:"form",optional:!1,type:{name:"boolean"}}],returns:null},{name:"changeConsidered",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:{name:"number"}},{name:"considered",optional:!1,type:{name:"unknown[number]",raw:"(typeof PerseusExpressionAnswerFormConsidered)[number]"}}],returns:null},{name:"changeTimes",docblock:null,modifiers:[],params:[{name:"times",optional:!1,type:{name:"boolean"}}],returns:null},{name:"changeExpressionWidget",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:null},{name:"props",optional:!1,type:null}],returns:null}],displayName:"ExpressionEditor",props:{widgetId:{required:!1,tsType:{name:"any"},description:""},value:{required:!1,tsType:{name:"string"},description:""},answerForms:{defaultValue:{value:"[]",computed:!1},required:!1},times:{defaultValue:{value:"false",computed:!1},required:!1},buttonSets:{defaultValue:{value:'["basic"]',computed:!1},required:!1},functions:{defaultValue:{value:'["f", "g", "h"]',computed:!1},required:!1}}};export{v as E}; + " to be`):e.push(`Couldn't parse ${n.value}`)}})),e},this._newEmptyAnswerForm=()=>({considered:"correct",form:!1,key:B(this.props.answerForms),simplify:!1,value:""}),this.newAnswer=()=>{const e=this.props.answerForms.slice();e.push(this._newEmptyAnswerForm()),this.change({answerForms:e})},this.handleRemoveForm=e=>{const r=this.props.answerForms.slice();r.splice(e,1),this.change({answerForms:r})},this.handleReorder=e=>{const r=e.map(n=>{const a=u(n.props).pick("considered","form","simplify","value");return a.key=n.key,a});this.change({answerForms:r})},this.handleButtonSet=e=>{const n=j.filter(a=>this.props.buttonSets.includes(a)!==(a===e));this.props.onChange({buttonSets:n})},this.handleToggleDiv=()=>{let e,r;this.props.buttonSets.includes("basic+div")?(e="basic",r="basic+div"):(e="basic+div",r="basic");const n=this.props.buttonSets.filter(a=>a!==r).concat(e);this.change("buttonSets",n)},this.handleTexInsert=e=>{this.refs.expression.insert(e)},this.handleFunctions=e=>{this.setState({functionsInternal:e});const r={};r.functions=e.split(/[ ,]+/).filter(N),this.props.onChange(r)},this.changeExpressionWidget=(e,r)=>{const n={...this.props.answerForms[e],key:`${e}`,value:r.value};this.updateAnswerForm(e,n)},this.state={functionsInternal:this.props.functions.join(" ")}}updateAnswerForm(s,e){const r=F(this.props.answerForms).merge([s],e).freeze();this.change({answerForms:r})}changeSimplify(s,e){const r={...this.props.answerForms[s],key:`${s}`,simplify:e};this.updateAnswerForm(s,r)}changeForm(s,e){const r={...this.props.answerForms[s],form:e,key:`${s}`};this.updateAnswerForm(s,r)}changeConsidered(s,e){const r={...this.props.answerForms[s],key:`${s}`,considered:e};this.updateAnswerForm(s,r)}changeTimes(s){this.change({times:s})}render(){const s=this.props.answerForms.map(n=>{const a=C(n),c={times:this.props.times,functions:this.props.functions,buttonSets:this.props.buttonSets,buttonsVisible:"focused",value:n.value,onChange:d=>this.changeExpressionWidget(a,d),trackInteraction:()=>{},widgetId:this.props.widgetId+"-"+n.key,visibleLabel:this.props.visibleLabel,ariaLabel:this.props.ariaLabel};return t.jsx(z,{draggable:!0,considered:n.considered,expressionProps:c,form:n.form,simplify:n.simplify,onDelete:()=>this.handleRemoveForm(a),onChangeSimplify:d=>this.changeSimplify(a,d),onChangeForm:d=>this.changeForm(a,d),onChangeConsidered:d=>this.changeConsidered(a,d)},n.key)}),e=t.jsx(f,{components:s,onReorder:this.handleReorder}),r=j.map(n=>{const a=n==="basic",c=this.props.buttonSets.includes(n)||a;return t.jsx(h,{label:n,checked:c,disabled:a,onChange:()=>this.handleButtonSet(n)},n)});return r.unshift(t.jsx(h,{label:"show ÷ button",checked:this.props.buttonSets.includes("basic+div"),onChange:this.handleToggleDiv},"show ÷ button")),t.jsxs("div",{children:[t.jsx(k,{children:"Global Options"}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(x,{label:"Visible label",value:this.props.visibleLabel||"",onChange:this.change("visibleLabel")}),t.jsx(m,{children:t.jsx("p",{children:"Optional visible text; strongly encouraged to help learners using dictation software, but can be omitted if the surrounding content provides enough context."})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(x,{label:"Aria label",value:this.props.ariaLabel||"",onChange:this.change("ariaLabel")}),t.jsx(m,{children:t.jsxs("p",{children:["Label text that's read by screen readers. Highly recommend adding a label here to ensure your exercise is accessible. For more information on writting accessible labels, please see"," ",t.jsx("a",{href:"https://www.w3.org/WAI/tips/designing/#ensure-that-form-elements-include-clearly-associated-labels",target:"_blank",rel:"noreferrer",children:"this article."})]})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(x,{label:"Function variables",value:this.state.functionsInternal,onChange:this.handleFunctions}),t.jsx(m,{children:t.jsx("p",{children:'Single-letter variables listed here will be interpreted as functions. This let us know that f(x) means "f of x" and not "f times x".'})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(h,{label:"Use × instead of ⋅ for multiplication",checked:this.props.times,onChange:n=>{this.changeTimes(n)}}),t.jsx(m,{children:t.jsx("p",{children:"For pre-algebra problems this option displays multiplication as \\times instead of \\cdot in both the rendered output and the acceptable formats examples."})})]}),t.jsxs("div",{className:o.css(i.paddedY),children:[t.jsx(R,{children:"Button Sets"}),r]}),t.jsx(k,{children:"Answers"}),t.jsx("p",{style:{margin:"4px 0"},children:"student responses area matched against these from top to bottom"}),e,t.jsx("div",{children:t.jsx(g,{size:"small",onClick:this.newAnswer,children:"Add new answer"})})]})}};b.widgetName="expression",b.defaultProps={answerForms:[],times:!1,buttonSets:["basic"],functions:["f","g","h"]};let v=b;const Y=function(l,s){let e=l.indexOf(s);return e=(e+1)%l.length,l[e]};class z extends w.Component{constructor(){super(...arguments),this.state={deleteFocused:!1},this.change=(...s)=>A.apply(this,s),this.handleImSure=()=>{this.props.onDelete()},this.handleCancelDelete=()=>{this.setState({deleteFocused:!1})},this.handleDelete=()=>{this.setState({deleteFocused:!0})},this.toggleConsidered=()=>{const s=Y(E,this.props.considered);this.props.onChangeConsidered(s)}}render(){const s=this.state.deleteFocused?t.jsxs(t.Fragment,{children:[t.jsx(g,{size:"small",onClick:this.handleImSure,color:"destructive",children:"I'm sure!"}),t.jsx(T,{size:p.small_12}),t.jsx(g,{size:"small",onClick:this.handleCancelDelete,light:!0,children:"Cancel"})]}):t.jsx(g,{size:"small",onClick:this.handleDelete,color:"destructive",light:!0,children:"Delete"}),e=o.css(i.answerStatus,this.props.considered==="wrong"&&i.answerStatusWrong,this.props.considered==="correct"&&i.answerStatusCorrect,this.props.considered==="ungraded"&&i.answerStatusUngraded);return t.jsxs("div",{className:o.css(i.answerOption),children:[t.jsx("div",{className:o.css(i.answerHandle)}),t.jsxs("div",{className:o.css(i.answerBody),children:[t.jsxs("div",{children:[t.jsx("button",{onClick:this.toggleConsidered,className:e,children:this.props.considered}),t.jsx("div",{children:t.jsx(I,{...this.props.expressionProps})})]}),t.jsxs("div",{className:o.css(i.paddedY,i.paddedX),children:[t.jsx(h,{label:"Answer expression must have the same form.",checked:this.props.form,onChange:this.props.onChangeForm}),t.jsx(m,{children:t.jsx("p",{children:"The student's answer must be in the same form. Commutativity and excess negative signs are ignored."})})]}),t.jsxs("div",{className:o.css(i.paddedY,i.paddedX),children:[t.jsx(h,{label:"Answer expression must be fully expanded and simplified.",checked:this.props.simplify,onChange:this.props.onChangeSimplify}),t.jsx(m,{children:t.jsx("p",{children:`The student's answer must be fully expanded and simplified. Answering this equation (x^2+2x+1) with this factored equation (x+1)^2 will render this response "Your answer is not fully expanded and simplified."`})})]}),t.jsx("div",{className:o.css(i.buttonRow,i.paddedY),children:s})]})]})}}const i=o.StyleSheet.create({paddedX:{paddingLeft:p.xSmall_8,paddingRight:p.xSmall_8},paddedY:{paddingTop:p.xxSmall_6,paddingBottom:p.xxSmall_6},answerOption:{border:"1px solid #ddd",borderRadius:"3px",display:"flex"},answerHandle:{background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==) no-repeat 50% 50%",borderRight:"1px solid #ddd",cursor:"move",width:"20px",minWidth:"20px"},answerStatus:{border:"none",userSelect:"none",width:"100px",paddingTop:p.small_12,paddingBottom:p.small_12},answerStatusWrong:{backgroundColor:y.fadedRed16},answerStatusCorrect:{backgroundColor:y.fadedGreen16},answerStatusUngraded:{backgroundColor:y.fadedBlue16},answerBody:{},buttonRow:{display:"flex"}});v.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"_newEmptyAnswerForm",docblock:null,modifiers:[],params:[],returns:null},{name:"newAnswer",docblock:null,modifiers:[],params:[],returns:null},{name:"handleRemoveForm",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:null}],returns:null},{name:"updateAnswerForm",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:{name:"number"}},{name:"props",optional:!1,type:{name:"ReadonlyArray[number]",raw:'PerseusExpressionWidgetOptions["answerForms"][number]',alias:"AnswerForm"}}],returns:null},{name:"handleReorder",docblock:null,modifiers:[],params:[{name:"components",optional:!1,type:null}],returns:null},{name:"handleButtonSet",docblock:null,modifiers:[],params:[{name:"changingName",optional:!1,type:null}],returns:null},{name:"handleToggleDiv",docblock:null,modifiers:[],params:[],returns:null},{name:"handleTexInsert",docblock:null,modifiers:[],params:[{name:"str",optional:!1,type:null}],returns:null},{name:"handleFunctions",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"changeSimplify",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:{name:"number"}},{name:"simplify",optional:!1,type:{name:"boolean"}}],returns:null},{name:"changeForm",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:{name:"number"}},{name:"form",optional:!1,type:{name:"boolean"}}],returns:null},{name:"changeConsidered",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:{name:"number"}},{name:"considered",optional:!1,type:{name:"unknown[number]",raw:"(typeof PerseusExpressionAnswerFormConsidered)[number]"}}],returns:null},{name:"changeTimes",docblock:null,modifiers:[],params:[{name:"times",optional:!1,type:{name:"boolean"}}],returns:null},{name:"changeExpressionWidget",docblock:null,modifiers:[],params:[{name:"key",optional:!1,type:null},{name:"props",optional:!1,type:null}],returns:null}],displayName:"ExpressionEditor",props:{widgetId:{required:!1,tsType:{name:"any"},description:""},value:{required:!1,tsType:{name:"string"},description:""},answerForms:{defaultValue:{value:"[]",computed:!1},required:!1},times:{defaultValue:{value:"false",computed:!1},required:!1},buttonSets:{defaultValue:{value:'["basic"]',computed:!1},required:!1},functions:{defaultValue:{value:'["f", "g", "h"]',computed:!1},required:!1}}};export{v as E}; diff --git a/assets/expression-editor.stories-hbejij62.js b/assets/expression-editor.stories-Rc8WqxEX.js similarity index 98% rename from assets/expression-editor.stories-hbejij62.js rename to assets/expression-editor.stories-Rc8WqxEX.js index 1108475804..f634b1fa7c 100644 --- a/assets/expression-editor.stories-hbejij62.js +++ b/assets/expression-editor.stories-Rc8WqxEX.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-63Ea5SlK.js";import{l as p}from"./index-awljIyHI.js";import{r as c}from"./index-6oxdNXpR.js";import{R as u}from"./renderer-with-debug-ui-g9Q2O3kw.js";import{E as g}from"./expression-editor-eqp-b25r.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./side-by-side-MBJuyilC.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./components-2XngBvY8.js";const er={title:"PerseusEditor/Widgets/Expression Editor"};class x extends c.Component{constructor(e){super(e);const t=r.widgets["expression 1"].options;this.state={answerForms:t.answerForms,times:t.times,buttonSets:t.buttonSets,functions:t.functions}}mergeQuestionWithState(){return{...r,widgets:{...r.widgets,"expression 1":{...r.widgets["expression 1"],options:{...r.widgets["expression 1"].options,...this.state}}}}}render(){const e=Object.freeze({});return o.jsxs("div",{className:p.css(s.wrapper),children:[o.jsx("div",{className:p.css(s.editorWrapper),children:o.jsx(g,{...this.state,onChange:t=>{this.setState({...t})}})}),o.jsx(u,{question:this.mergeQuestionWithState(),apiOptions:e,reviewMode:!0})]})}}const i=d=>o.jsx(x,{}),r={content:`This is a cool expression question +import{j as o}from"./jsx-runtime-63Ea5SlK.js";import{l as p}from"./index-awljIyHI.js";import{r as c}from"./index-6oxdNXpR.js";import{R as u}from"./renderer-with-debug-ui-g9Q2O3kw.js";import{E as g}from"./expression-editor--gvmUBTK.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./side-by-side-MBJuyilC.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./components-2XngBvY8.js";const er={title:"PerseusEditor/Widgets/Expression Editor"};class x extends c.Component{constructor(e){super(e);const t=r.widgets["expression 1"].options;this.state={answerForms:t.answerForms,times:t.times,buttonSets:t.buttonSets,functions:t.functions}}mergeQuestionWithState(){return{...r,widgets:{...r.widgets,"expression 1":{...r.widgets["expression 1"],options:{...r.widgets["expression 1"].options,...this.state}}}}}render(){const e=Object.freeze({});return o.jsxs("div",{className:p.css(s.wrapper),children:[o.jsx("div",{className:p.css(s.editorWrapper),children:o.jsx(g,{...this.state,onChange:t=>{this.setState({...t})}})}),o.jsx(u,{question:this.mergeQuestionWithState(),apiOptions:e,reviewMode:!0})]})}}const i=d=>o.jsx(x,{}),r={content:`This is a cool expression question [[☃ expression 1]] diff --git a/assets/expression.stories-6MiCK-Zk.js b/assets/expression.stories-GFVmLdWR.js similarity index 98% rename from assets/expression.stories-6MiCK-Zk.js rename to assets/expression.stories-GFVmLdWR.js index 1c025da2f9..9bc99188b4 100644 --- a/assets/expression.stories-6MiCK-Zk.js +++ b/assets/expression.stories-GFVmLdWR.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{a as w}from"./mobile-keypad-Muuas9zV.js";import"./prop-types-d_cUcR3L.js";import"./key-translator-hixns6dh.js";import"./button-assets-ozecF1qE.js";import{K as R}from"./enums-x5qaTru7.js";import{a as T}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{S as _}from"./server-item-renderer-with-debug-ui-1bUVpaj2.js";import{T as W}from"./test-keypad-context-wrapper-qNJz2rBH.js";import{I as L,e as M}from"./article-renderer-h_m-tvVP.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./version-akiLXZts.js";import"./invariant-bu5zBsRS.js";import"./v4-yQnnJER4.js";import"./choice-Xr-SKHrB.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./util-AYeX86gl.js";import"./perseus-error-l3K_anoI.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-item-334dAsMX.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./hints-renderer-Ebeftjch.js";import"./shared-4TdECMLk.js";import"./base-radio-XsQBfrsT.js";import"./choice-none-above-qQVnMhkg.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./ke-score-ui-AQ1XUyPU.js";import"./side-by-side-MBJuyilC.js";import"./test-dependencies-pK6aZRAV.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./answer-choices-o46t7GFm.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";const c=(r,t)=>({question:{content:"[[☃ expression 1]]",images:{},widgets:{"expression 1":{type:"expression",graded:!0,options:r,version:t}}},answer:null,answerArea:Object.fromEntries(L.map(m=>[m,!1])),itemDataVersion:{major:0,minor:1},hints:[]});c({answerForms:[],times:!1,buttonSets:["basic"],functions:[],buttonsVisible:"always",ariaLabel:"Test aria label",visibleLabel:"Test visible label"},{major:1,minor:0});const N=c({answerForms:[{considered:"correct",form:!1,simplify:!1,value:"123-x"},{considered:"correct",form:!1,simplify:!1,value:"x-123"}],times:!1,buttonSets:["basic"],functions:["f","g","h"],buttonsVisible:"always"},{major:1,minor:0}),D={answerForms:[{considered:"ungraded",form:!1,simplify:!1,value:"x+1"},{considered:"wrong",form:!1,simplify:!1,value:"y+1"},{considered:"correct",form:!1,simplify:!1,value:"z+1"},{considered:"correct",form:!1,simplify:!1,value:"a+1"}],times:!1,buttonSets:["basic"],functions:["f","g","h"],buttonsVisible:"focused",visibleLabel:"number of cm",ariaLabel:"number of centimeters"},d=c(D,{major:1,minor:0}),n=({item:r,customKeypad:t,isMobile:m=!1})=>e.jsx(W,{children:e.jsx(w.Consumer,{children:({keypadElement:C})=>e.jsx(_,{item:r,keypadElement:C,apiOptions:{isMobile:m,customKeypad:t,onFocusChange:T("onFocusChange")}})})}),o=r=>{const t={keypadType:R.EXPRESSION,extraKeys:["x","y","z"]};return e.jsx("div",{style:{padding:"2rem"},children:e.jsx(M.widget,{alignment:null,value:"",visibleLabel:"",ariaLabel:"",containerSizeClass:"small",findWidgets:m=>[],isLastUsedWidget:!1,onChange:()=>{},problemNum:1,static:!1,trackInteraction:()=>{},widgetId:"expression",keypadConfiguration:t,reviewMode:!1})})},s=r=>e.jsx(n,{item:d,customKeypad:!1}),i=r=>e.jsxs("div",{children:[e.jsxs("p",{children:["MathInput uses touch events;"," ",e.jsx("a",{href:"https://developer.chrome.com/docs/devtools/device-mode/",children:"emulate mobile"})," ","to use the custom keypad."]}),e.jsx(n,{item:d,customKeypad:!0,isMobile:!0})]}),a=r=>e.jsx(n,{item:N,customKeypad:r.customKeypad}),p=r=>e.jsx(n,{item:d,customKeypad:r.customKeypad}),Rr={title:"Perseus/Widgets/Expression",argTypes:{customKeypad:{control:"boolean"}}};o.__docgenInfo={description:"",methods:[],displayName:"DesktopKitchenSink",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};s.__docgenInfo={description:"",methods:[],displayName:"Desktop",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};i.__docgenInfo={description:"",methods:[],displayName:"Mobile",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};a.__docgenInfo={description:"",methods:[],displayName:"ExpressionItem2",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};p.__docgenInfo={description:"",methods:[],displayName:"ExpressionItem3",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};var l,u,y;o.parameters={...o.parameters,docs:{...(l=o.parameters)==null?void 0:l.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{a as w}from"./mobile-keypad-Muuas9zV.js";import"./prop-types-d_cUcR3L.js";import"./key-translator-hixns6dh.js";import"./button-assets-ozecF1qE.js";import{K as R}from"./enums-x5qaTru7.js";import{a as T}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{S as _}from"./server-item-renderer-with-debug-ui-o9_yPBTG.js";import{T as W}from"./test-keypad-context-wrapper-qNJz2rBH.js";import{I as L,e as M}from"./article-renderer-h_m-tvVP.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./version-akiLXZts.js";import"./invariant-bu5zBsRS.js";import"./v4-yQnnJER4.js";import"./choice-Xr-SKHrB.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./util-AYeX86gl.js";import"./perseus-error-l3K_anoI.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-item-334dAsMX.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./hints-renderer-Ebeftjch.js";import"./shared-4TdECMLk.js";import"./base-radio-XsQBfrsT.js";import"./choice-none-above-qQVnMhkg.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./ke-score-ui-rxqDzQuA.js";import"./side-by-side-MBJuyilC.js";import"./test-dependencies-pK6aZRAV.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./answer-choices-o46t7GFm.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";const c=(r,t)=>({question:{content:"[[☃ expression 1]]",images:{},widgets:{"expression 1":{type:"expression",graded:!0,options:r,version:t}}},answer:null,answerArea:Object.fromEntries(L.map(m=>[m,!1])),itemDataVersion:{major:0,minor:1},hints:[]});c({answerForms:[],times:!1,buttonSets:["basic"],functions:[],buttonsVisible:"always",ariaLabel:"Test aria label",visibleLabel:"Test visible label"},{major:1,minor:0});const N=c({answerForms:[{considered:"correct",form:!1,simplify:!1,value:"123-x"},{considered:"correct",form:!1,simplify:!1,value:"x-123"}],times:!1,buttonSets:["basic"],functions:["f","g","h"],buttonsVisible:"always"},{major:1,minor:0}),D={answerForms:[{considered:"ungraded",form:!1,simplify:!1,value:"x+1"},{considered:"wrong",form:!1,simplify:!1,value:"y+1"},{considered:"correct",form:!1,simplify:!1,value:"z+1"},{considered:"correct",form:!1,simplify:!1,value:"a+1"}],times:!1,buttonSets:["basic"],functions:["f","g","h"],buttonsVisible:"focused",visibleLabel:"number of cm",ariaLabel:"number of centimeters"},d=c(D,{major:1,minor:0}),n=({item:r,customKeypad:t,isMobile:m=!1})=>e.jsx(W,{children:e.jsx(w.Consumer,{children:({keypadElement:C})=>e.jsx(_,{item:r,keypadElement:C,apiOptions:{isMobile:m,customKeypad:t,onFocusChange:T("onFocusChange")}})})}),o=r=>{const t={keypadType:R.EXPRESSION,extraKeys:["x","y","z"]};return e.jsx("div",{style:{padding:"2rem"},children:e.jsx(M.widget,{alignment:null,value:"",visibleLabel:"",ariaLabel:"",containerSizeClass:"small",findWidgets:m=>[],isLastUsedWidget:!1,onChange:()=>{},problemNum:1,static:!1,trackInteraction:()=>{},widgetId:"expression",keypadConfiguration:t,reviewMode:!1})})},s=r=>e.jsx(n,{item:d,customKeypad:!1}),i=r=>e.jsxs("div",{children:[e.jsxs("p",{children:["MathInput uses touch events;"," ",e.jsx("a",{href:"https://developer.chrome.com/docs/devtools/device-mode/",children:"emulate mobile"})," ","to use the custom keypad."]}),e.jsx(n,{item:d,customKeypad:!0,isMobile:!0})]}),a=r=>e.jsx(n,{item:N,customKeypad:r.customKeypad}),p=r=>e.jsx(n,{item:d,customKeypad:r.customKeypad}),Rr={title:"Perseus/Widgets/Expression",argTypes:{customKeypad:{control:"boolean"}}};o.__docgenInfo={description:"",methods:[],displayName:"DesktopKitchenSink",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};s.__docgenInfo={description:"",methods:[],displayName:"Desktop",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};i.__docgenInfo={description:"",methods:[],displayName:"Mobile",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};a.__docgenInfo={description:"",methods:[],displayName:"ExpressionItem2",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};p.__docgenInfo={description:"",methods:[],displayName:"ExpressionItem3",props:{customKeypad:{required:!0,tsType:{name:"boolean"},description:""}}};var l,u,y;o.parameters={...o.parameters,docs:{...(l=o.parameters)==null?void 0:l.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { const keypadConfiguration = { keypadType: KeypadType.EXPRESSION, extraKeys: ["x", "y", "z"] as Array diff --git a/assets/graphie.stories-xs_-3h1Z.js b/assets/graphie.stories-w75VOCRu.js similarity index 97% rename from assets/graphie.stories-xs_-3h1Z.js rename to assets/graphie.stories-w75VOCRu.js index f465df8cb6..31e27ab056 100644 --- a/assets/graphie.stories-xs_-3h1Z.js +++ b/assets/graphie.stories-w75VOCRu.js @@ -1,3 +1,3 @@ -import{j as l}from"./jsx-runtime-63Ea5SlK.js";import{S as u}from"./server-item-renderer-with-debug-ui-1bUVpaj2.js";import{I as h}from"./article-renderer-h_m-tvVP.js";import{a as g}from"./svg-image-FcZanvM1.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./index-awljIyHI.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-item-334dAsMX.js";import"./renderer-yXFj-6ty.js";import"./index-J2t_5nK1.js";import"./asset-context-H6Iqp7Gi.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./hints-renderer-Ebeftjch.js";import"./shared-4TdECMLk.js";import"./base-radio-XsQBfrsT.js";import"./choice-none-above-qQVnMhkg.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./ke-score-ui-AQ1XUyPU.js";import"./side-by-side-MBJuyilC.js";import"./test-dependencies-pK6aZRAV.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./enums-x5qaTru7.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./answer-choices-o46t7GFm.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./fixed-to-responsive-for_tVF1.js";import"./video-transcript-link-_gpkjmR8.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";const f={answerArea:Object.fromEntries(h.map(d=>[d,!1])),hints:[],itemDataVersion:{major:0,minor:1},question:{content:"[[☃ image 1]]",images:{},widgets:{"image 1":{alignment:"block",graded:!0,options:{alt:"This chart presents a pie graph divided into 2 sectors: 28 percent are unsuccessful and 72 percent are successful.",backgroundImage:{height:210,url:"web+graphie://cdn.kastatic.org/ka-perseus-graphie/7c0a5afb8670fad738df800ffe16c5e516b48777",width:210},box:[210,210],caption:"Source: NASA “Current and Past Missions”",labels:[],range:[[0,10],[0,10]],static:!1,title:"Percentage of Successful Cometary Missions (1978-2014)"},static:!1,type:"image",version:{major:0,minor:0}}}},answer:null},i=200,pt={title:"Perseus/Components/Graphie",component:g,args:{box:[i,i],setup:()=>{},setDrawingAreaAvailable:()=>{}}},t={},r=()=>l.jsx(u,{item:f});r.__docgenInfo={description:"A demonstration of a Graphie rendered using the Perseus `Renderer` complete\nwith overlaid labels and an image caption below.",methods:[],displayName:"PieChartGraphieLabels"};var e,o,m;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(m=(o=t.parameters)==null?void 0:o.docs)==null?void 0:m.source}}};var p,a,s,n,c;r.parameters={...r.parameters,docs:{...(p=r.parameters)==null?void 0:p.docs,source:{originalSource:`() => { +import{j as l}from"./jsx-runtime-63Ea5SlK.js";import{S as u}from"./server-item-renderer-with-debug-ui-o9_yPBTG.js";import{I as h}from"./article-renderer-h_m-tvVP.js";import{a as g}from"./svg-image-FcZanvM1.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./index-awljIyHI.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-item-334dAsMX.js";import"./renderer-yXFj-6ty.js";import"./index-J2t_5nK1.js";import"./asset-context-H6Iqp7Gi.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./hints-renderer-Ebeftjch.js";import"./shared-4TdECMLk.js";import"./base-radio-XsQBfrsT.js";import"./choice-none-above-qQVnMhkg.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./ke-score-ui-rxqDzQuA.js";import"./side-by-side-MBJuyilC.js";import"./test-dependencies-pK6aZRAV.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./enums-x5qaTru7.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./answer-choices-o46t7GFm.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./fixed-to-responsive-for_tVF1.js";import"./video-transcript-link-_gpkjmR8.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";const f={answerArea:Object.fromEntries(h.map(d=>[d,!1])),hints:[],itemDataVersion:{major:0,minor:1},question:{content:"[[☃ image 1]]",images:{},widgets:{"image 1":{alignment:"block",graded:!0,options:{alt:"This chart presents a pie graph divided into 2 sectors: 28 percent are unsuccessful and 72 percent are successful.",backgroundImage:{height:210,url:"web+graphie://cdn.kastatic.org/ka-perseus-graphie/7c0a5afb8670fad738df800ffe16c5e516b48777",width:210},box:[210,210],caption:"Source: NASA “Current and Past Missions”",labels:[],range:[[0,10],[0,10]],static:!1,title:"Percentage of Successful Cometary Missions (1978-2014)"},static:!1,type:"image",version:{major:0,minor:0}}}},answer:null},i=200,pt={title:"Perseus/Components/Graphie",component:g,args:{box:[i,i],setup:()=>{},setDrawingAreaAvailable:()=>{}}},t={},r=()=>l.jsx(u,{item:f});r.__docgenInfo={description:"A demonstration of a Graphie rendered using the Perseus `Renderer` complete\nwith overlaid labels and an image caption below.",methods:[],displayName:"PieChartGraphieLabels"};var e,o,m;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(m=(o=t.parameters)==null?void 0:o.docs)==null?void 0:m.source}}};var p,a,s,n,c;r.parameters={...r.parameters,docs:{...(p=r.parameters)==null?void 0:p.docs,source:{originalSource:`() => { return ; }`,...(s=(a=r.parameters)==null?void 0:a.docs)==null?void 0:s.source},description:{story:"A demonstration of a Graphie rendered using the Perseus `Renderer` complete\nwith overlaid labels and an image caption below.",...(c=(n=r.parameters)==null?void 0:n.docs)==null?void 0:c.description}}};const at=["SquareBoxSizeAndOtherwiseEmpty","PieChartGraphieLabels"];export{r as PieChartGraphieLabels,t as SquareBoxSizeAndOtherwiseEmpty,at as __namedExportsOrder,pt as default}; diff --git a/assets/iframe-ZJ6Y6Oqt.js b/assets/iframe-DrKPbhiz.js similarity index 92% rename from assets/iframe-ZJ6Y6Oqt.js rename to assets/iframe-DrKPbhiz.js index d43169aa35..478e80b811 100644 --- a/assets/iframe-ZJ6Y6Oqt.js +++ b/assets/iframe-DrKPbhiz.js @@ -1,7 +1,7 @@ -import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))p(t);new MutationObserver(t=>{for(const r of t)if(r.type==="childList")for(const _ of r.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&p(_)}).observe(document,{childList:!0,subtree:!0});function a(t){const r={};return t.integrity&&(r.integrity=t.integrity),t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?r.credentials="include":t.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(t){if(t.ep)return;t.ep=!0;const r=a(t);fetch(t.href,r)}})();const g="modulepreload",l=function(e,i){return new URL(e,i).href},d={},s=function(i,a,p){let t=Promise.resolve();if(a&&a.length>0){const r=document.getElementsByTagName("link");t=Promise.all(a.map(_=>{if(_=l(_,p),_ in d)return;d[_]=!0;const c=_.endsWith(".css"),E=c?'[rel="stylesheet"]':"";if(!!p)for(let m=r.length-1;m>=0;m--){const u=r[m];if(u.href===_&&(!c||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${E}`))return;const o=document.createElement("link");if(o.rel=c?"stylesheet":g,c||(o.as="script",o.crossOrigin=""),o.href=_,document.head.appendChild(o),c)return new Promise((m,u)=>{o.addEventListener("load",m),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})}))}return t.then(()=>i()).catch(r=>{const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=r,window.dispatchEvent(_),!_.defaultPrevented)throw r})},{createBrowserChannel:O}=__STORYBOOK_MODULE_CHANNELS__,{addons:v}=__STORYBOOK_MODULE_PREVIEW_API__,n=O({page:"preview"});v.setChannel(n);window.__STORYBOOK_ADDONS_CHANNEL__=n;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=n);const R={"./packages/math-input/src/components/keypad/keypad-button.stories.tsx":async()=>s(()=>import("./keypad-button.stories-DT8Y3Yxd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),"./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx":async()=>s(()=>import("./keypad-mathquill.stories-rpEbEeQe.js"),__vite__mapDeps([13,1,2,3,14,9,10,15,16,17,11,18,12,19,20,21,6,22,23,24,25,8,7,26,27,28]),import.meta.url),"./packages/math-input/src/components/keypad/keypad-pages/keypad-pages.stories.tsx":async()=>s(()=>import("./keypad-pages.stories-EACJuu7S.js"),__vite__mapDeps([29,1,2,3,4,5,30,26,6,7,8,9,10,11,12]),import.meta.url),"./packages/math-input/src/components/keypad/navigation-pad.stories.tsx":async()=>s(()=>import("./navigation-pad.stories-u1r2LJel.js"),__vite__mapDeps([31,1,2,3,4,5,27,9,10,12,6,8,11]),import.meta.url),"./packages/math-input/src/components/tabbar/tabbar.stories.tsx":async()=>s(()=>import("./tabbar.stories-anfVmrOR.js"),__vite__mapDeps([32,1,2,3,24,9,10,25,8,11,12]),import.meta.url),"./packages/math-input/src/components/tabbar/tabbaritem.stories.tsx":async()=>s(()=>import("./tabbaritem.stories-Z91bESHz.js"),__vite__mapDeps([33,25,1,2,3,8,9,10,11,12]),import.meta.url),"./packages/math-input/src/full-keypad.stories.tsx":async()=>s(()=>import("./full-keypad.stories-8Xty0u74.js"),__vite__mapDeps([34,30,22,1,2,3,10,15,19,23,9,12,24,25,8,11,6,7,26,27]),import.meta.url),"./packages/math-input/src/full-mobile-input.stories.tsx":async()=>s(()=>import("./full-mobile-input.stories-YLk0dNZF.js"),__vite__mapDeps([35,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,4,5,36,37,28,38,39,40]),import.meta.url),"./packages/perseus-editor/src/__stories__/article-editor.stories.tsx":async()=>s(()=>import("./article-editor.stories-jEu4WYQs.js"),__vite__mapDeps([41,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163]),import.meta.url),"./packages/perseus-editor/src/__stories__/content-preview.stories.tsx":async()=>s(()=>import("./content-preview.stories-4JfHWp4B.js"),__vite__mapDeps([164,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,165,166,109,110,167,108,119,168]),import.meta.url),"./packages/perseus-editor/src/__stories__/editor-page.stories.tsx":async()=>s(()=>import("./editor-page.stories-xTqlS0GI.js"),__vite__mapDeps([169,1,2,3,111,112,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,170,4,5,171,167,110,109,172,173]),import.meta.url),"./packages/perseus-editor/src/__stories__/editor.stories.tsx":async()=>s(()=>import("./editor.stories-jBup12x7.js"),__vite__mapDeps([174,1,2,3,9,10,4,5,175,37,107,42,43,44,45,36,22,15,19,23,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,167,176,177,178,171,172,179,168,180,173]),import.meta.url),"./packages/perseus-editor/src/__stories__/interactive-graph-editor.stories.tsx":async()=>s(()=>import("./interactive-graph-editor.stories-1dESAp0m.js"),__vite__mapDeps([181,1,2,3,9,10,83,12,21,4,5,175,37,107,42,43,44,45,36,22,15,19,23,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,167,176,177,178,171,172,179,168,182,183,170,173]),import.meta.url),"./packages/perseus-editor/src/__stories__/item-editor.stories.tsx":async()=>s(()=>import("./item-editor.stories-S6Eke9VF.js"),__vite__mapDeps([184,1,2,3,172,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,168]),import.meta.url),"./packages/perseus-editor/src/__stories__/tex-error-view.stories.tsx":async()=>s(()=>import("./tex-error-view.stories--fr65KDX.js"),__vite__mapDeps([185,122,1,2,3,9,10,123,69]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/blur-input.stories.tsx":async()=>s(()=>import("./blur-input.stories-MEVoLwh0.js"),__vite__mapDeps([186,1,2,3,4,5,116]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/color-select.stories.tsx":async()=>s(()=>import("./color-select.stories-fHmDK8dE.js"),__vite__mapDeps([187,1,2,3,139,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,140]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/color-swatch.stories.tsx":async()=>s(()=>import("./color-swatch.stories-R6Y4IyXa.js"),__vite__mapDeps([188,1,2,3,140,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/device-framer.stories.tsx":async()=>s(()=>import("./device-framer.stories--gF4_S4i.js"),__vite__mapDeps([189,1,2,3,12,109,110]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/graph-settings.stories.tsx":async()=>s(()=>import("./graph-settings.stories-3rqjHwDe.js"),__vite__mapDeps([190,1,2,3,112,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/interactive-graph-settings.stories.tsx":async()=>s(()=>import("./interactive-graph-settings.stories-6rlKeQoi.js"),__vite__mapDeps([191,1,2,3,132,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,131,121,123]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-ellipse-settings.stories.tsx":async()=>s(()=>import("./locked-ellipse-settings.stories-OR0OUkSL.js"),__vite__mapDeps([192,1,2,3,134,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,135,136,137,138,139,140,141]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-figures-section.stories.tsx":async()=>s(()=>import("./locked-figures-section.stories-hk1zdI2v.js"),__vite__mapDeps([193,1,2,3,9,10,12,133,81,11,18,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,131,121,123,91,75,46,37,44,23,48,50,51,43,52,55,58,59,60,61,66,67,134,42,36,22,24,25,8,6,7,26,27,28,39,40,68,70,72,73,74,76,77,78,80,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,135,136,137,138,139,140,141,142,143,144,145,146,147,148]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-function-settings.stories.tsx":async()=>s(()=>import("./locked-function-settings.stories-oDurB1_f.js"),__vite__mapDeps([194,1,2,3,142,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,91,75,46,37,44,23,48,50,51,43,52,55,58,59,60,61,66,67,74,138,42,36,22,24,25,8,6,7,26,27,28,39,40,68,70,72,73,76,77,78,80,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,136,139,140,135,141,143]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-label-settings.stories.tsx":async()=>s(()=>import("./locked-label-settings.stories-UDCs8DS1.js"),__vite__mapDeps([195,1,2,3,138,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,136,139,140]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-line-settings.stories.tsx":async()=>s(()=>import("./locked-line-settings.stories-rnFOENAq.js"),__vite__mapDeps([196,1,2,3,144,43,37,44,45,50,10,9,47,51,52,53,23,54,55,15,56,57,58,81,11,18,12,21,82,17,69,71,83,14,16,19,20,49,84,62,63,38,64,65,79,85,86,87,91,75,46,48,59,60,61,66,67,135,42,36,22,24,25,8,6,7,26,27,28,39,40,68,70,72,73,74,76,77,78,80,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,138,136,139,140,141,143,145,146]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-point-settings.stories.tsx":async()=>s(()=>import("./locked-point-settings.stories-AfdxqPJK.js"),__vite__mapDeps([197,1,2,3,145,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,135,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,138,136,139,140,146]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-polygon-settings.stories.tsx":async()=>s(()=>import("./locked-polygon-settings.stories-cBTGJhJl.js"),__vite__mapDeps([198,1,2,3,147,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,138,108,136,139,140,135,146,141]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-vector-settings.stories.tsx":async()=>s(()=>import("./locked-vector-settings.stories-gCF08jcf.js"),__vite__mapDeps([199,1,2,3,148,43,37,44,45,50,10,9,47,51,52,53,23,54,55,15,56,57,58,81,11,18,12,21,82,17,69,71,83,14,16,19,20,49,84,62,63,38,64,65,79,85,86,87,135,42,36,22,24,25,8,6,7,26,27,28,39,40,46,48,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,138,136,139,140,143]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/scrollless-number-text-field.stories.tsx":async()=>s(()=>import("./scrollless-number-text-field.stories-nVFV0ihc.js"),__vite__mapDeps([200,1,2,3,9,10,21,136,74,12,69,75]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/section-control-button.stories.tsx":async()=>s(()=>import("./section-control-button.stories-cmQmF1LX.js"),__vite__mapDeps([201,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,120,108,121]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/toggleable-caret.stories.tsx":async()=>s(()=>import("./toggleable-caret.stories-RjkVgUY7.js"),__vite__mapDeps([202,1,2,3,19,123,69,9,10]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/viewport-resizer.stories.tsx":async()=>s(()=>import("./viewport-resizer.stories-l8Z2nO_5.js"),__vite__mapDeps([203,1,2,3,4,5,167,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,119]),import.meta.url),"./packages/perseus-editor/src/diffs/__stories__/structured-item-diff.stories.tsx":async()=>s(()=>import("./structured-item-diff.stories-Y9_rE0v4.js"),__vite__mapDeps([204,1,2,3,176,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,177,108,113,178,205]),import.meta.url),"./packages/perseus-editor/src/diffs/__stories__/tags-diff.stories.tsx":async()=>s(()=>import("./tags-diff.stories-f3wNo1EZ.js"),__vite__mapDeps([206,1,2,3,178,177,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,205]),import.meta.url),"./packages/perseus-editor/src/diffs/__stories__/text-diff.stories.tsx":async()=>s(()=>import("./text-diff.stories-jY22YyyJ.js"),__vite__mapDeps([207,1,2,3,177,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,205]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/categorizer-editor.stories.tsx":async()=>s(()=>import("./categorizer-editor.stories-z4WFz_6s.js"),__vite__mapDeps([208,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,4,5,114,108,115,113]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/definition-editor.stories.tsx":async()=>s(()=>import("./definition-editor.stories-lAq9_602.js"),__vite__mapDeps([209,1,2,3,4,5,117,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/dropdown-editor.stories.tsx":async()=>s(()=>import("./dropdown-editor.stories-9FuT9tzH.js"),__vite__mapDeps([210,1,2,3,4,5,124,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113,119]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/explanation-editor.stories.tsx":async()=>s(()=>import("./explanation-editor.stories-zxz94yYI.js"),__vite__mapDeps([211,1,2,3,4,5,125,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/expression-editor.stories.tsx":async()=>s(()=>import("./expression-editor.stories-hbejij62.js"),__vite__mapDeps([212,1,2,3,10,213,81,9,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,126,108]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/image-editor.stories.tsx":async()=>s(()=>import("./image-editor.stories-jWEMwXwF.js"),__vite__mapDeps([215,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,4,5,127,108,115,116,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/input-number-editor.stories.tsx":async()=>s(()=>import("./input-number-editor.stories-RhRg3g-S.js"),__vite__mapDeps([216,1,2,3,4,5,128,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,116]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/interaction-editor.stories.tsx":async()=>s(()=>import("./interaction-editor.stories-cPrWmK-s.js"),__vite__mapDeps([217,1,2,3,129,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,115,112,108,113,119]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx":async()=>s(()=>import("./interactive-graph-editor.stories-ncOGdUyN.js"),__vite__mapDeps([218,1,2,3,4,5,173,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,130,108,131,121,123,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/label-image-editor.stories.tsx":async()=>s(()=>import("./label-image-editor.stories-klbeMUGW.js"),__vite__mapDeps([219,1,2,3,10,149,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,115,150,151,152,108,153,154,155,137,156]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/matcher-editor.stories.tsx":async()=>s(()=>import("./matcher-editor.stories-i5aptNie.js"),__vite__mapDeps([220,1,2,3,4,5,157,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/number-line-editor.stories.tsx":async()=>s(()=>import("./number-line-editor.stories--zVKYyCu.js"),__vite__mapDeps([221,1,2,3,4,5,158,43,37,44,45,42,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/numeric-input-editor.stories.tsx":async()=>s(()=>import("./numeric-input-editor.stories-wWJYMn1s.js"),__vite__mapDeps([222,1,2,3,4,5,159,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/phet-simulation-editor.stories.tsx":async()=>s(()=>import("./phet-simulation-editor.stories-y2VtI5bc.js"),__vite__mapDeps([223,4,5,160,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/python-program-editor.stories.tsx":async()=>s(()=>import("./python-program-editor.stories-pFVNl6vR.js"),__vite__mapDeps([224,1,2,3,4,5,161,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/radio-editor.stories.tsx":async()=>s(()=>import("./radio-editor.stories-gOf9aobq.js"),__vite__mapDeps([225,1,2,3,10,162,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/sorter-editor.stories.tsx":async()=>s(()=>import("./sorter-editor.stories-xtWFM1o0.js"),__vite__mapDeps([226,1,2,3,4,5,163,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/answer-choices.stories.tsx":async()=>s(()=>import("./answer-choices.stories-05uNmYPE.js"),__vite__mapDeps([227,1,2,3,4,5,10,152,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,150,151]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/behavior.stories.tsx":async()=>s(()=>import("./behavior.stories-vo4MkukQ.js"),__vite__mapDeps([228,1,2,3,4,5,153,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,151]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/marker.stories.tsx":async()=>s(()=>import("./marker.stories-acBNqIos.js"),__vite__mapDeps([229,1,2,3,4,5,10,155,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,151,137,150]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/question-markers.stories.tsx":async()=>s(()=>import("./question-markers.stories-knVz69Mo.js"),__vite__mapDeps([230,1,2,3,10,154,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,151,155,108,137,150]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/select-image.stories.tsx":async()=>s(()=>import("./select-image.stories-VpmIwbPa.js"),__vite__mapDeps([231,1,2,3,10,156,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,150,151]),import.meta.url),"./packages/perseus/src/__stories__/article-renderer.stories.tsx":async()=>s(()=>import("./article-renderer.stories-33H8zwUA.js"),__vite__mapDeps([232,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,4,5,233,214,42,43,37,44,45,36,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,234,165,235]),import.meta.url),"./packages/perseus/src/__stories__/hints-renderer.stories.tsx":async()=>s(()=>import("./hints-renderer.stories-cHl0wu4V.js"),__vite__mapDeps([236,1,2,3,9,10,106,46,37,44,38,23,47,45,15,48,49,50,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,79,80,182,94,95]),import.meta.url),"./packages/perseus/src/__stories__/server-item-renderer.stories.tsx":async()=>s(()=>import("./server-item-renderer.stories-fhCp9YLF.js"),__vite__mapDeps([237,1,2,3,238,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,239,180,233,214,234]),import.meta.url),"./packages/perseus/src/components/__stories__/button-group.stories.tsx":async()=>s(()=>import("./button-group.stories-SVj84HqS.js"),__vite__mapDeps([240,1,2,3,92,10]),import.meta.url),"./packages/perseus/src/components/__stories__/fixed-to-responsive.stories.tsx":async()=>s(()=>import("./fixed-to-responsive.stories-TlwP860I.js"),__vite__mapDeps([241,1,2,3,51,52,47,53]),import.meta.url),"./packages/perseus/src/components/__stories__/graph.stories.tsx":async()=>s(()=>import("./graph.stories-MRihw5tS.js"),__vite__mapDeps([242,93,1,2,3,43,37,44,45,50,10,9,47,51,52,53,23,54,55,15,56,57,58,48]),import.meta.url),"./packages/perseus/src/components/__stories__/graphie.stories.tsx":async()=>s(()=>import("./graphie.stories-xs_-3h1Z.js"),__vite__mapDeps([243,1,2,3,238,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,239,180,233,214,234]),import.meta.url),"./packages/perseus/src/components/__stories__/hud.stories.tsx":async()=>s(()=>import("./hud.stories-pOcT5wvD.js"),__vite__mapDeps([244,4,5,96,1,2,3,10,53]),import.meta.url),"./packages/perseus/src/components/__stories__/icon.stories.tsx":async()=>s(()=>import("./icon.stories-qKf7s47y.js"),__vite__mapDeps([245,57,84,1,2,3]),import.meta.url),"./packages/perseus/src/components/__stories__/image-loader.stories.tsx":async()=>s(()=>import("./image-loader.stories-oac2OU3c.js"),__vite__mapDeps([246,1,2,3,58,51]),import.meta.url),"./packages/perseus/src/components/__stories__/info-tip.stories.tsx":async()=>s(()=>import("./info-tip.stories-Gano9oQC.js"),__vite__mapDeps([247,1,2,3,68,69,9,10,54,15,16,17,11,18,12,19,21,20]),import.meta.url),"./packages/perseus/src/components/__stories__/inline-icon.stories.tsx":async()=>s(()=>import("./inline-icon.stories-kL5VCTgv.js"),__vite__mapDeps([248,56,1,2,3]),import.meta.url),"./packages/perseus/src/components/__stories__/input-with-examples.stories.tsx":async()=>s(()=>import("./input-with-examples.stories-g_iYIN8R.js"),__vite__mapDeps([249,4,5,72,1,2,3,46,37,44,38,23,47,45,15,48,49,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,73,74,12,21,69,75,76]),import.meta.url),"./packages/perseus/src/components/__stories__/lint.stories.tsx":async()=>s(()=>import("./lint.stories-U937ancb.js"),__vite__mapDeps([250,1,2,3,66,10,15,53,56]),import.meta.url),"./packages/perseus/src/components/__stories__/math-input.stories.tsx":async()=>s(()=>import("./math-input.stories-55BQXc10.js"),__vite__mapDeps([251,4,5,70,1,2,3,36,37,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,71,14,16,17,18,20,21,54,47,45,49]),import.meta.url),"./packages/perseus/src/components/__stories__/multi-button-group.stories.tsx":async()=>s(()=>import("./multi-button-group.stories-LnMy2Qwe.js"),__vite__mapDeps([252,1,2,3,97,10]),import.meta.url),"./packages/perseus/src/components/__stories__/number-input.stories.tsx":async()=>s(()=>import("./number-input.stories-408TlbwR.js"),__vite__mapDeps([253,4,5,98,1,2,3,43,37,44,45,47,63,38,49]),import.meta.url),"./packages/perseus/src/components/__stories__/range-input.stories.tsx":async()=>s(()=>import("./range-input.stories-nWKfQjxk.js"),__vite__mapDeps([254,4,5,99,1,2,3,63,38,98,43,37,44,45,47,49]),import.meta.url),"./packages/perseus/src/components/__stories__/simple-keypad-input.stories.tsx":async()=>s(()=>import("./simple-keypad-input.stories-UMFjk9DG.js"),__vite__mapDeps([255,4,5,77,1,2,3,36,37,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,63]),import.meta.url),"./packages/perseus/src/components/__stories__/sortable.stories.tsx":async()=>s(()=>import("./sortable.stories-3mjltSVe.js"),__vite__mapDeps([256,102,1,2,3,46,37,44,38,23,47,45,15,48,49,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/components/__stories__/stub-tag-editor.stories.tsx":async()=>s(()=>import("./stub-tag-editor.stories-6eMueEDt.js"),__vite__mapDeps([257,4,5,64,1,2,3,63,38,65,45,15]),import.meta.url),"./packages/perseus/src/components/__stories__/svg-image.stories.tsx":async()=>s(()=>import("./svg-image.stories-tU_aScnA.js"),__vite__mapDeps([258,50,1,2,3,37,44,10,9,47,45,51,43,52,53,23,54,55,15,56,57,58]),import.meta.url),"./packages/perseus/src/components/__stories__/tex.stories.tsx":async()=>s(()=>import("./tex.stories-dZhTYzdN.js"),__vite__mapDeps([259,59,1,2,3,51]),import.meta.url),"./packages/perseus/src/components/__stories__/text-input.stories.tsx":async()=>s(()=>import("./text-input.stories-UpjjnRUC.js"),__vite__mapDeps([260,4,5,73,1,2,3,37,44,74,9,10,12,21,69,75]),import.meta.url),"./packages/perseus/src/components/__stories__/text-list-editor.stories.tsx":async()=>s(()=>import("./text-list-editor.stories-MWgp-kIj.js"),__vite__mapDeps([261,1,2,3,4,5,65,45,63,38,15]),import.meta.url),"./packages/perseus/src/components/__stories__/tooltip.stories.tsx":async()=>s(()=>import("./tooltip.stories-e4zH05Vl.js"),__vite__mapDeps([262,1,2,3,9,10,76]),import.meta.url),"./packages/perseus/src/components/__stories__/zoomable-tex.stories.tsx":async()=>s(()=>import("./zoomable-tex.stories-Uprg1vT_.js"),__vite__mapDeps([263,1,2,3,61,48,59,51,60,15]),import.meta.url),"./packages/perseus/src/components/__stories__/zoomable.stories.tsx":async()=>s(()=>import("./zoomable.stories-uUuIBdOA.js"),__vite__mapDeps([264,1,2,3,60,15]),import.meta.url),"./packages/perseus/src/components/visibility-observer/__stories__/visibility-observer.stories.tsx":async()=>s(()=>import("./visibility-observer.stories-xElGlplw.js"),__vite__mapDeps([265,1,2,3,15]),import.meta.url),"./packages/perseus/src/multi-items/__stories__/multi-renderer.stories.tsx":async()=>s(()=>import("./multi-renderer.stories-jyyVKdgy.js"),__vite__mapDeps([266,1,2,3,9,10,21,81,11,18,12,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,179,239,180,233,214,234]),import.meta.url),"./packages/perseus/src/widgets/categorizer/categorizer.stories.tsx":async()=>s(()=>import("./categorizer.stories-LLLh5LQm.js"),__vite__mapDeps([267,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/cs-program/cs-program.stories.tsx":async()=>s(()=>import("./cs-program.stories-7NXvM3Fy.js"),__vite__mapDeps([268,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/definition/definition.stories.tsx":async()=>s(()=>import("./definition.stories-uLBvZ933.js"),__vite__mapDeps([269,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,233,234]),import.meta.url),"./packages/perseus/src/widgets/deprecated-standin/__stories__/deprecated-standin.stories.tsx":async()=>s(()=>import("./deprecated-standin.stories-FzgmQKuF.js"),__vite__mapDeps([270,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/dropdown/dropdown.stories.tsx":async()=>s(()=>import("./dropdown.stories-CFT4BSUl.js"),__vite__mapDeps([271,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/explanation/explanation.stories.tsx":async()=>s(()=>import("./explanation.stories-8Y51qHzh.js"),__vite__mapDeps([272,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/expression/expression.stories.tsx":async()=>s(()=>import("./expression.stories-6MiCK-Zk.js"),__vite__mapDeps([273,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,36,37,28,38,39,40,4,5,238,81,18,21,82,17,69,71,83,14,16,20,54,47,49,84,62,63,64,65,45,79,53,85,56,57,86,87,42,43,44,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,239,180,233,214,234,235]),import.meta.url),"./packages/perseus/src/widgets/graded-group-set/graded-group-set.stories.tsx":async()=>s(()=>import("./graded-group-set.stories-_cdJT5Zh.js"),__vite__mapDeps([274,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/graded-group/graded-group.stories.tsx":async()=>s(()=>import("./graded-group.stories-3V8c3gWn.js"),__vite__mapDeps([275,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/grapher/grapher.stories.tsx":async()=>s(()=>import("./grapher.stories-Ib7JbWUg.js"),__vite__mapDeps([276,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/group/group.stories.tsx":async()=>s(()=>import("./group.stories-fJsj3rqR.js"),__vite__mapDeps([277,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/iframe/iframe.stories.tsx":async()=>s(()=>import("./iframe.stories-JXdNawdu.js"),__vite__mapDeps([278,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/image/image.stories.tsx":async()=>s(()=>import("./image.stories-DRy6WMKW.js"),__vite__mapDeps([279,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/input-number/input-number.stories.tsx":async()=>s(()=>import("./input-number.stories-6zGNe9uf.js"),__vite__mapDeps([280,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/interaction/interaction.stories.tsx":async()=>s(()=>import("./interaction.stories-7y3qGsmG.js"),__vite__mapDeps([281,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/interactive-graphs/interactive-graph-regression.stories.tsx":async()=>s(()=>import("./interactive-graph-regression.stories-XruPHhdn.js"),__vite__mapDeps([282,1,2,3,46,37,44,38,23,47,45,15,48,49,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,182,94,95]),import.meta.url),"./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx":async()=>s(()=>import("./interactive-graph.stories-c0X6f-XP.js"),__vite__mapDeps([283,1,2,3,89,10,17,9,11,18,12,82,69,90,21,54,49,51,53,81,71,83,14,15,16,19,20,47,84,62,63,38,64,65,45,79,85,56,57,86,87,103,68,23,42,43,37,44,36,22,24,25,8,6,7,26,27,28,39,40,46,48,50,52,55,58,59,60,61,66,67,70,72,73,74,75,76,77,78,80,88,91,92,93,94,95,96,97,98,99,100,101,102,104,105,106,213,180,214,183,182]),import.meta.url),"./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-functions.stories.tsx":async()=>s(()=>import("./locked-functions.stories-_0JmWV2e.js"),__vite__mapDeps([284,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,183,182]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/answer-choices.stories.tsx":async()=>s(()=>import("./answer-choices.stories-gESlm1QQ.js"),__vite__mapDeps([285,1,2,3,21,9,10,91,18,11,12,69,75,15,17,19,20,16,49,46,37,44,38,23,47,45,48,50,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/answer-pill.stories.tsx":async()=>s(()=>import("./answer-pill.stories-r5F6bwNs.js"),__vite__mapDeps([286,1,2,3,101,9,10,18,11,12,21,54,20,15,49,46,37,44,38,23,47,45,48,50,51,43,52,53,55,56,57,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/label-image.stories.tsx":async()=>s(()=>import("./label-image.stories-AzycrKsn.js"),__vite__mapDeps([287,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/marker.stories.tsx":async()=>s(()=>import("./marker.stories-HQISqrJr.js"),__vite__mapDeps([288,1,2,3,10,100,9,54,49,84,57,101,18,11,12,21,20,15,46,37,44,38,23,47,45,48,50,51,43,52,53,55,56,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/widgets/matcher/matcher.stories.tsx":async()=>s(()=>import("./matcher.stories-r1gv6FIT.js"),__vite__mapDeps([289,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/matrix/matrix.stories.tsx":async()=>s(()=>import("./matrix.stories-ZmrDcGiD.js"),__vite__mapDeps([290,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/number-line/number-line.stories.tsx":async()=>s(()=>import("./number-line.stories-U_mwJQ_-.js"),__vite__mapDeps([291,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,213,81,18,21,82,17,69,71,83,14,16,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,238,239,233,234,235,4,5]),import.meta.url),"./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx":async()=>s(()=>import("./numeric-input.stories-gapEv5H3.js"),__vite__mapDeps([292,1,2,3,4,5,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/orderer/orderer.stories.tsx":async()=>s(()=>import("./orderer.stories-UP4-eBn3.js"),__vite__mapDeps([293,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/passage-ref/passage-ref.stories.tsx":async()=>s(()=>import("./passage-ref.stories-uT2YvrsN.js"),__vite__mapDeps([294,1,2,3,9,10,213,81,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/passage/passage.stories.tsx":async()=>s(()=>import("./passage.stories-zTZGdfoM.js"),__vite__mapDeps([295,1,2,3,9,10,213,81,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/phet-simulation/phet-simulation.stories.tsx":async()=>s(()=>import("./phet-simulation.stories-bbv0Wjep.js"),__vite__mapDeps([296,89,1,2,3,10,17,9,11,18,12,82,69,90,21,54,49,51,53]),import.meta.url),"./packages/perseus/src/widgets/plotter/plotter.stories.tsx":async()=>s(()=>import("./plotter.stories-ETXuXUjV.js"),__vite__mapDeps([297,1,2,3,9,10,213,81,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/python-program/python-program.stories.tsx":async()=>s(()=>import("./python-program.stories-ZC_T9x3-.js"),__vite__mapDeps([298,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/base-radio.stories.tsx":async()=>s(()=>import("./base-radio.stories-9gsv-96B.js"),__vite__mapDeps([299,1,2,3,4,5,78,10,47,15,45,49,62,63,38,64,65,53,79,80,43,37,44,81,9,11,18,12,21,82,17,69,71,83,14,16,19,20,54,84,85,56,57,86,87,88,46,23,48,50,51,52,55,58,59,60,61,66,67]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/choice-icon.stories.tsx":async()=>s(()=>import("./choice-icon.stories-2BPZpvZi.js"),__vite__mapDeps([300,1,2,3,85,54,10,49,56,57,53,86]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/choice-none-above.stories.tsx":async()=>s(()=>import("./choice-none-above.stories-1YOImOm6.js"),__vite__mapDeps([301,1,2,3,4,5,88,49,46,37,44,38,23,47,45,15,48,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,81,11,18,12,21,82,17,69,71,83,14,16,19,20,84,79,85,86,87]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/choice.stories.tsx":async()=>s(()=>import("./choice.stories-4KrIkHMw.js"),__vite__mapDeps([302,1,2,3,4,5,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/focus-ring.stories.tsx":async()=>s(()=>import("./focus-ring.stories-4AFN_C87.js"),__vite__mapDeps([303,1,2,3,53,86,10]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/option-status.stories.tsx":async()=>s(()=>import("./option-status.stories-vLiZB-UF.js"),__vite__mapDeps([304,1,2,3,87,54,10,49]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/radio.stories.tsx":async()=>s(()=>import("./radio.stories-lbTg9eud.js"),__vite__mapDeps([305,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,166]),import.meta.url),"./packages/perseus/src/widgets/sorter/sorter.stories.tsx":async()=>s(()=>import("./sorter.stories-SqACmqll.js"),__vite__mapDeps([306,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/video/video-transcript-link.stories.tsx":async()=>s(()=>import("./video-transcript-link.stories-QBSva3hd.js"),__vite__mapDeps([307,1,2,3,103,9,10,83,12,90,11,18,69,49,51]),import.meta.url),"./packages/perseus/src/widgets/video/video.stories.tsx":async()=>s(()=>import("./video.stories-A4NxoUpg.js"),__vite__mapDeps([308,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url)};async function y(e){return R[e]()}const{composeConfigs:T,PreviewWeb:L,ClientApi:V}=__STORYBOOK_MODULE_PREVIEW_API__,k=async(e=[])=>{const i=await Promise.all([e[0]??s(()=>import("./entry-preview-q_nhScy4.js"),__vite__mapDeps([309,310,2,3,15]),import.meta.url),e[1]??s(()=>import("./entry-preview-docs-O2vHoAqK.js"),__vite__mapDeps([311,310,312,3,2]),import.meta.url),e[2]??s(()=>import("./preview-VRZh9grL.js"),__vite__mapDeps([313,314]),import.meta.url),e[3]??s(()=>import("./preview-Ky7EaD7Y.js"),__vite__mapDeps([]),import.meta.url),e[4]??s(()=>import("./preview-tqQQd2o_.js"),__vite__mapDeps([315,5]),import.meta.url),e[5]??s(()=>import("./preview-wCp9WPam.js"),__vite__mapDeps([316,317]),import.meta.url),e[6]??s(()=>import("./preview-O_buDTJV.js"),__vite__mapDeps([]),import.meta.url),e[7]??s(()=>import("./preview-yMuHbJw4.js"),__vite__mapDeps([318,95]),import.meta.url),e[8]??s(()=>import("./preview-AFLxCOxy.js"),__vite__mapDeps([319,317]),import.meta.url),e[9]??s(()=>import("./preview-pF0Jw540.js"),__vite__mapDeps([]),import.meta.url),e[10]??s(()=>import("./preview-aQmuyPVZ.js"),__vite__mapDeps([]),import.meta.url),e[11]??s(()=>import("./preview-D37Zx18V.js"),__vite__mapDeps([320,1,2,3,12,9,10,42,43,37,44,45,36,22,15,19,23,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,233,214,234]),import.meta.url)]);return T(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new L(y,k);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{s as _}; +import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))p(t);new MutationObserver(t=>{for(const r of t)if(r.type==="childList")for(const _ of r.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&p(_)}).observe(document,{childList:!0,subtree:!0});function a(t){const r={};return t.integrity&&(r.integrity=t.integrity),t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?r.credentials="include":t.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(t){if(t.ep)return;t.ep=!0;const r=a(t);fetch(t.href,r)}})();const g="modulepreload",l=function(e,i){return new URL(e,i).href},d={},s=function(i,a,p){let t=Promise.resolve();if(a&&a.length>0){const r=document.getElementsByTagName("link");t=Promise.all(a.map(_=>{if(_=l(_,p),_ in d)return;d[_]=!0;const c=_.endsWith(".css"),E=c?'[rel="stylesheet"]':"";if(!!p)for(let m=r.length-1;m>=0;m--){const u=r[m];if(u.href===_&&(!c||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${E}`))return;const o=document.createElement("link");if(o.rel=c?"stylesheet":g,c||(o.as="script",o.crossOrigin=""),o.href=_,document.head.appendChild(o),c)return new Promise((m,u)=>{o.addEventListener("load",m),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})}))}return t.then(()=>i()).catch(r=>{const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=r,window.dispatchEvent(_),!_.defaultPrevented)throw r})},{createBrowserChannel:O}=__STORYBOOK_MODULE_CHANNELS__,{addons:v}=__STORYBOOK_MODULE_PREVIEW_API__,n=O({page:"preview"});v.setChannel(n);window.__STORYBOOK_ADDONS_CHANNEL__=n;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=n);const R={"./packages/math-input/src/components/keypad/keypad-button.stories.tsx":async()=>s(()=>import("./keypad-button.stories-DT8Y3Yxd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),"./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx":async()=>s(()=>import("./keypad-mathquill.stories-rpEbEeQe.js"),__vite__mapDeps([13,1,2,3,14,9,10,15,16,17,11,18,12,19,20,21,6,22,23,24,25,8,7,26,27,28]),import.meta.url),"./packages/math-input/src/components/keypad/keypad-pages/keypad-pages.stories.tsx":async()=>s(()=>import("./keypad-pages.stories-EACJuu7S.js"),__vite__mapDeps([29,1,2,3,4,5,30,26,6,7,8,9,10,11,12]),import.meta.url),"./packages/math-input/src/components/keypad/navigation-pad.stories.tsx":async()=>s(()=>import("./navigation-pad.stories-u1r2LJel.js"),__vite__mapDeps([31,1,2,3,4,5,27,9,10,12,6,8,11]),import.meta.url),"./packages/math-input/src/components/tabbar/tabbar.stories.tsx":async()=>s(()=>import("./tabbar.stories-anfVmrOR.js"),__vite__mapDeps([32,1,2,3,24,9,10,25,8,11,12]),import.meta.url),"./packages/math-input/src/components/tabbar/tabbaritem.stories.tsx":async()=>s(()=>import("./tabbaritem.stories-Z91bESHz.js"),__vite__mapDeps([33,25,1,2,3,8,9,10,11,12]),import.meta.url),"./packages/math-input/src/full-keypad.stories.tsx":async()=>s(()=>import("./full-keypad.stories-8Xty0u74.js"),__vite__mapDeps([34,30,22,1,2,3,10,15,19,23,9,12,24,25,8,11,6,7,26,27]),import.meta.url),"./packages/math-input/src/full-mobile-input.stories.tsx":async()=>s(()=>import("./full-mobile-input.stories-YLk0dNZF.js"),__vite__mapDeps([35,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,4,5,36,37,28,38,39,40]),import.meta.url),"./packages/perseus-editor/src/__stories__/article-editor.stories.tsx":async()=>s(()=>import("./article-editor.stories-oSmIuSSI.js"),__vite__mapDeps([41,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163]),import.meta.url),"./packages/perseus-editor/src/__stories__/content-preview.stories.tsx":async()=>s(()=>import("./content-preview.stories-4JfHWp4B.js"),__vite__mapDeps([164,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,165,166,109,110,167,108,119,168]),import.meta.url),"./packages/perseus-editor/src/__stories__/editor-page.stories.tsx":async()=>s(()=>import("./editor-page.stories-DIUtPVoA.js"),__vite__mapDeps([169,1,2,3,111,112,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,170,4,5,171,167,110,109,172,173]),import.meta.url),"./packages/perseus-editor/src/__stories__/editor.stories.tsx":async()=>s(()=>import("./editor.stories-JIpR7Umf.js"),__vite__mapDeps([174,1,2,3,9,10,4,5,175,37,107,42,43,44,45,36,22,15,19,23,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,167,176,177,178,171,172,179,168,180,173]),import.meta.url),"./packages/perseus-editor/src/__stories__/interactive-graph-editor.stories.tsx":async()=>s(()=>import("./interactive-graph-editor.stories-YG_3rEFr.js"),__vite__mapDeps([181,1,2,3,9,10,83,12,21,4,5,175,37,107,42,43,44,45,36,22,15,19,23,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,167,176,177,178,171,172,179,168,182,183,170,173]),import.meta.url),"./packages/perseus-editor/src/__stories__/item-editor.stories.tsx":async()=>s(()=>import("./item-editor.stories-S6Eke9VF.js"),__vite__mapDeps([184,1,2,3,172,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,168]),import.meta.url),"./packages/perseus-editor/src/__stories__/tex-error-view.stories.tsx":async()=>s(()=>import("./tex-error-view.stories--fr65KDX.js"),__vite__mapDeps([185,122,1,2,3,9,10,123,69]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/blur-input.stories.tsx":async()=>s(()=>import("./blur-input.stories-MEVoLwh0.js"),__vite__mapDeps([186,1,2,3,4,5,116]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/color-select.stories.tsx":async()=>s(()=>import("./color-select.stories-fHmDK8dE.js"),__vite__mapDeps([187,1,2,3,139,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,140]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/color-swatch.stories.tsx":async()=>s(()=>import("./color-swatch.stories-R6Y4IyXa.js"),__vite__mapDeps([188,1,2,3,140,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/device-framer.stories.tsx":async()=>s(()=>import("./device-framer.stories--gF4_S4i.js"),__vite__mapDeps([189,1,2,3,12,109,110]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/graph-settings.stories.tsx":async()=>s(()=>import("./graph-settings.stories-3rqjHwDe.js"),__vite__mapDeps([190,1,2,3,112,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/interactive-graph-settings.stories.tsx":async()=>s(()=>import("./interactive-graph-settings.stories-6rlKeQoi.js"),__vite__mapDeps([191,1,2,3,132,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,131,121,123]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-ellipse-settings.stories.tsx":async()=>s(()=>import("./locked-ellipse-settings.stories-oyJT5XK1.js"),__vite__mapDeps([192,1,2,3,134,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,135,136,137,138,139,140,141]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-figures-section.stories.tsx":async()=>s(()=>import("./locked-figures-section.stories-LKWvWkLI.js"),__vite__mapDeps([193,1,2,3,9,10,12,133,81,11,18,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,131,121,123,91,75,46,37,44,23,48,50,51,43,52,55,58,59,60,61,66,67,134,42,36,22,24,25,8,6,7,26,27,28,39,40,68,70,72,73,74,76,77,78,80,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,135,136,137,138,139,140,141,142,143,144,145,146,147,148]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-function-settings.stories.tsx":async()=>s(()=>import("./locked-function-settings.stories-oDurB1_f.js"),__vite__mapDeps([194,1,2,3,142,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,91,75,46,37,44,23,48,50,51,43,52,55,58,59,60,61,66,67,74,138,42,36,22,24,25,8,6,7,26,27,28,39,40,68,70,72,73,76,77,78,80,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,136,139,140,135,141,143]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-label-settings.stories.tsx":async()=>s(()=>import("./locked-label-settings.stories-UDCs8DS1.js"),__vite__mapDeps([195,1,2,3,138,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,136,139,140]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-line-settings.stories.tsx":async()=>s(()=>import("./locked-line-settings.stories-kBfEklAa.js"),__vite__mapDeps([196,1,2,3,144,43,37,44,45,50,10,9,47,51,52,53,23,54,55,15,56,57,58,81,11,18,12,21,82,17,69,71,83,14,16,19,20,49,84,62,63,38,64,65,79,85,86,87,91,75,46,48,59,60,61,66,67,135,42,36,22,24,25,8,6,7,26,27,28,39,40,68,70,72,73,74,76,77,78,80,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,138,136,139,140,141,143,145,146]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-point-settings.stories.tsx":async()=>s(()=>import("./locked-point-settings.stories-NqoZo2gx.js"),__vite__mapDeps([197,1,2,3,145,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,135,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,138,136,139,140,146]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-polygon-settings.stories.tsx":async()=>s(()=>import("./locked-polygon-settings.stories-elqLW6gq.js"),__vite__mapDeps([198,1,2,3,147,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,138,108,136,139,140,135,146,141]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/locked-vector-settings.stories.tsx":async()=>s(()=>import("./locked-vector-settings.stories-l8dg2yOI.js"),__vite__mapDeps([199,1,2,3,148,43,37,44,45,50,10,9,47,51,52,53,23,54,55,15,56,57,58,81,11,18,12,21,82,17,69,71,83,14,16,19,20,49,84,62,63,38,64,65,79,85,86,87,135,42,36,22,24,25,8,6,7,26,27,28,39,40,46,48,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,138,136,139,140,143]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/scrollless-number-text-field.stories.tsx":async()=>s(()=>import("./scrollless-number-text-field.stories-nVFV0ihc.js"),__vite__mapDeps([200,1,2,3,9,10,21,136,74,12,69,75]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/section-control-button.stories.tsx":async()=>s(()=>import("./section-control-button.stories-cmQmF1LX.js"),__vite__mapDeps([201,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,120,108,121]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/toggleable-caret.stories.tsx":async()=>s(()=>import("./toggleable-caret.stories-RjkVgUY7.js"),__vite__mapDeps([202,1,2,3,19,123,69,9,10]),import.meta.url),"./packages/perseus-editor/src/components/__stories__/viewport-resizer.stories.tsx":async()=>s(()=>import("./viewport-resizer.stories-l8Z2nO_5.js"),__vite__mapDeps([203,1,2,3,4,5,167,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,119]),import.meta.url),"./packages/perseus-editor/src/diffs/__stories__/structured-item-diff.stories.tsx":async()=>s(()=>import("./structured-item-diff.stories-f1IqFN6G.js"),__vite__mapDeps([204,1,2,3,176,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,177,108,113,178,205]),import.meta.url),"./packages/perseus-editor/src/diffs/__stories__/tags-diff.stories.tsx":async()=>s(()=>import("./tags-diff.stories-f3wNo1EZ.js"),__vite__mapDeps([206,1,2,3,178,177,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,205]),import.meta.url),"./packages/perseus-editor/src/diffs/__stories__/text-diff.stories.tsx":async()=>s(()=>import("./text-diff.stories-jY22YyyJ.js"),__vite__mapDeps([207,1,2,3,177,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,205]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/categorizer-editor.stories.tsx":async()=>s(()=>import("./categorizer-editor.stories-z4WFz_6s.js"),__vite__mapDeps([208,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,4,5,114,108,115,113]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/definition-editor.stories.tsx":async()=>s(()=>import("./definition-editor.stories-2MNCEHxP.js"),__vite__mapDeps([209,1,2,3,4,5,117,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/dropdown-editor.stories.tsx":async()=>s(()=>import("./dropdown-editor.stories-38QA__0v.js"),__vite__mapDeps([210,1,2,3,4,5,124,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113,119]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/explanation-editor.stories.tsx":async()=>s(()=>import("./explanation-editor.stories-zxz94yYI.js"),__vite__mapDeps([211,1,2,3,4,5,125,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/expression-editor.stories.tsx":async()=>s(()=>import("./expression-editor.stories-Rc8WqxEX.js"),__vite__mapDeps([212,1,2,3,10,213,81,9,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,126,108]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/image-editor.stories.tsx":async()=>s(()=>import("./image-editor.stories-jWEMwXwF.js"),__vite__mapDeps([215,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,4,5,127,108,115,116,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/input-number-editor.stories.tsx":async()=>s(()=>import("./input-number-editor.stories-RhRg3g-S.js"),__vite__mapDeps([216,1,2,3,4,5,128,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,116]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/interaction-editor.stories.tsx":async()=>s(()=>import("./interaction-editor.stories-cPrWmK-s.js"),__vite__mapDeps([217,1,2,3,129,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,115,112,108,113,119]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx":async()=>s(()=>import("./interactive-graph-editor.stories-WBXWBKn2.js"),__vite__mapDeps([218,1,2,3,4,5,173,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,130,108,131,121,123,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/label-image-editor.stories.tsx":async()=>s(()=>import("./label-image-editor.stories-klbeMUGW.js"),__vite__mapDeps([219,1,2,3,10,149,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,115,150,151,152,108,153,154,155,137,156]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/matcher-editor.stories.tsx":async()=>s(()=>import("./matcher-editor.stories-i5aptNie.js"),__vite__mapDeps([220,1,2,3,4,5,157,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/number-line-editor.stories.tsx":async()=>s(()=>import("./number-line-editor.stories--zVKYyCu.js"),__vite__mapDeps([221,1,2,3,4,5,158,43,37,44,45,42,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,113]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/numeric-input-editor.stories.tsx":async()=>s(()=>import("./numeric-input-editor.stories-I6ZIR46i.js"),__vite__mapDeps([222,1,2,3,4,5,159,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,115,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/phet-simulation-editor.stories.tsx":async()=>s(()=>import("./phet-simulation-editor.stories-y2VtI5bc.js"),__vite__mapDeps([223,4,5,160,1,2,3,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/python-program-editor.stories.tsx":async()=>s(()=>import("./python-program-editor.stories-pFVNl6vR.js"),__vite__mapDeps([224,1,2,3,4,5,161,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/radio-editor.stories.tsx":async()=>s(()=>import("./radio-editor.stories-ynnmprYP.js"),__vite__mapDeps([225,1,2,3,10,162,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113,118,119,120,121,122,123]),import.meta.url),"./packages/perseus-editor/src/widgets/__stories__/sorter-editor.stories.tsx":async()=>s(()=>import("./sorter-editor.stories-xtWFM1o0.js"),__vite__mapDeps([226,1,2,3,4,5,163,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,113]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/answer-choices.stories.tsx":async()=>s(()=>import("./answer-choices.stories-05uNmYPE.js"),__vite__mapDeps([227,1,2,3,4,5,10,152,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,150,151]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/behavior.stories.tsx":async()=>s(()=>import("./behavior.stories-vo4MkukQ.js"),__vite__mapDeps([228,1,2,3,4,5,153,42,43,37,44,45,36,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,151]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/marker.stories.tsx":async()=>s(()=>import("./marker.stories-acBNqIos.js"),__vite__mapDeps([229,1,2,3,4,5,10,155,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,151,137,150]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/question-markers.stories.tsx":async()=>s(()=>import("./question-markers.stories-knVz69Mo.js"),__vite__mapDeps([230,1,2,3,10,154,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,151,155,108,137,150]),import.meta.url),"./packages/perseus-editor/src/widgets/label-image/__stories__/select-image.stories.tsx":async()=>s(()=>import("./select-image.stories-VpmIwbPa.js"),__vite__mapDeps([231,1,2,3,10,156,42,43,37,44,45,36,22,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,150,151]),import.meta.url),"./packages/perseus/src/__stories__/article-renderer.stories.tsx":async()=>s(()=>import("./article-renderer.stories-33H8zwUA.js"),__vite__mapDeps([232,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,4,5,233,214,42,43,37,44,45,36,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,234,165,235]),import.meta.url),"./packages/perseus/src/__stories__/hints-renderer.stories.tsx":async()=>s(()=>import("./hints-renderer.stories-cHl0wu4V.js"),__vite__mapDeps([236,1,2,3,9,10,106,46,37,44,38,23,47,45,15,48,49,50,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,79,80,182,94,95]),import.meta.url),"./packages/perseus/src/__stories__/server-item-renderer.stories.tsx":async()=>s(()=>import("./server-item-renderer.stories-tuVQdP8K.js"),__vite__mapDeps([237,1,2,3,238,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,239,180,233,214,234]),import.meta.url),"./packages/perseus/src/components/__stories__/button-group.stories.tsx":async()=>s(()=>import("./button-group.stories-SVj84HqS.js"),__vite__mapDeps([240,1,2,3,92,10]),import.meta.url),"./packages/perseus/src/components/__stories__/fixed-to-responsive.stories.tsx":async()=>s(()=>import("./fixed-to-responsive.stories-TlwP860I.js"),__vite__mapDeps([241,1,2,3,51,52,47,53]),import.meta.url),"./packages/perseus/src/components/__stories__/graph.stories.tsx":async()=>s(()=>import("./graph.stories-MRihw5tS.js"),__vite__mapDeps([242,93,1,2,3,43,37,44,45,50,10,9,47,51,52,53,23,54,55,15,56,57,58,48]),import.meta.url),"./packages/perseus/src/components/__stories__/graphie.stories.tsx":async()=>s(()=>import("./graphie.stories-w75VOCRu.js"),__vite__mapDeps([243,1,2,3,238,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,239,180,233,214,234]),import.meta.url),"./packages/perseus/src/components/__stories__/hud.stories.tsx":async()=>s(()=>import("./hud.stories-pOcT5wvD.js"),__vite__mapDeps([244,4,5,96,1,2,3,10,53]),import.meta.url),"./packages/perseus/src/components/__stories__/icon.stories.tsx":async()=>s(()=>import("./icon.stories-qKf7s47y.js"),__vite__mapDeps([245,57,84,1,2,3]),import.meta.url),"./packages/perseus/src/components/__stories__/image-loader.stories.tsx":async()=>s(()=>import("./image-loader.stories-oac2OU3c.js"),__vite__mapDeps([246,1,2,3,58,51]),import.meta.url),"./packages/perseus/src/components/__stories__/info-tip.stories.tsx":async()=>s(()=>import("./info-tip.stories-Gano9oQC.js"),__vite__mapDeps([247,1,2,3,68,69,9,10,54,15,16,17,11,18,12,19,21,20]),import.meta.url),"./packages/perseus/src/components/__stories__/inline-icon.stories.tsx":async()=>s(()=>import("./inline-icon.stories-kL5VCTgv.js"),__vite__mapDeps([248,56,1,2,3]),import.meta.url),"./packages/perseus/src/components/__stories__/input-with-examples.stories.tsx":async()=>s(()=>import("./input-with-examples.stories-g_iYIN8R.js"),__vite__mapDeps([249,4,5,72,1,2,3,46,37,44,38,23,47,45,15,48,49,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,73,74,12,21,69,75,76]),import.meta.url),"./packages/perseus/src/components/__stories__/lint.stories.tsx":async()=>s(()=>import("./lint.stories-U937ancb.js"),__vite__mapDeps([250,1,2,3,66,10,15,53,56]),import.meta.url),"./packages/perseus/src/components/__stories__/math-input.stories.tsx":async()=>s(()=>import("./math-input.stories-55BQXc10.js"),__vite__mapDeps([251,4,5,70,1,2,3,36,37,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,71,14,16,17,18,20,21,54,47,45,49]),import.meta.url),"./packages/perseus/src/components/__stories__/multi-button-group.stories.tsx":async()=>s(()=>import("./multi-button-group.stories-LnMy2Qwe.js"),__vite__mapDeps([252,1,2,3,97,10]),import.meta.url),"./packages/perseus/src/components/__stories__/number-input.stories.tsx":async()=>s(()=>import("./number-input.stories-408TlbwR.js"),__vite__mapDeps([253,4,5,98,1,2,3,43,37,44,45,47,63,38,49]),import.meta.url),"./packages/perseus/src/components/__stories__/range-input.stories.tsx":async()=>s(()=>import("./range-input.stories-nWKfQjxk.js"),__vite__mapDeps([254,4,5,99,1,2,3,63,38,98,43,37,44,45,47,49]),import.meta.url),"./packages/perseus/src/components/__stories__/simple-keypad-input.stories.tsx":async()=>s(()=>import("./simple-keypad-input.stories-UMFjk9DG.js"),__vite__mapDeps([255,4,5,77,1,2,3,36,37,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,28,38,39,40,63]),import.meta.url),"./packages/perseus/src/components/__stories__/sortable.stories.tsx":async()=>s(()=>import("./sortable.stories-3mjltSVe.js"),__vite__mapDeps([256,102,1,2,3,46,37,44,38,23,47,45,15,48,49,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/components/__stories__/stub-tag-editor.stories.tsx":async()=>s(()=>import("./stub-tag-editor.stories-6eMueEDt.js"),__vite__mapDeps([257,4,5,64,1,2,3,63,38,65,45,15]),import.meta.url),"./packages/perseus/src/components/__stories__/svg-image.stories.tsx":async()=>s(()=>import("./svg-image.stories-tU_aScnA.js"),__vite__mapDeps([258,50,1,2,3,37,44,10,9,47,45,51,43,52,53,23,54,55,15,56,57,58]),import.meta.url),"./packages/perseus/src/components/__stories__/tex.stories.tsx":async()=>s(()=>import("./tex.stories-dZhTYzdN.js"),__vite__mapDeps([259,59,1,2,3,51]),import.meta.url),"./packages/perseus/src/components/__stories__/text-input.stories.tsx":async()=>s(()=>import("./text-input.stories-UpjjnRUC.js"),__vite__mapDeps([260,4,5,73,1,2,3,37,44,74,9,10,12,21,69,75]),import.meta.url),"./packages/perseus/src/components/__stories__/text-list-editor.stories.tsx":async()=>s(()=>import("./text-list-editor.stories-MWgp-kIj.js"),__vite__mapDeps([261,1,2,3,4,5,65,45,63,38,15]),import.meta.url),"./packages/perseus/src/components/__stories__/tooltip.stories.tsx":async()=>s(()=>import("./tooltip.stories-e4zH05Vl.js"),__vite__mapDeps([262,1,2,3,9,10,76]),import.meta.url),"./packages/perseus/src/components/__stories__/zoomable-tex.stories.tsx":async()=>s(()=>import("./zoomable-tex.stories-Uprg1vT_.js"),__vite__mapDeps([263,1,2,3,61,48,59,51,60,15]),import.meta.url),"./packages/perseus/src/components/__stories__/zoomable.stories.tsx":async()=>s(()=>import("./zoomable.stories-o_kFkCHK.js"),__vite__mapDeps([264,1,2,3,60,15]),import.meta.url),"./packages/perseus/src/components/visibility-observer/__stories__/visibility-observer.stories.tsx":async()=>s(()=>import("./visibility-observer.stories-xElGlplw.js"),__vite__mapDeps([265,1,2,3,15]),import.meta.url),"./packages/perseus/src/multi-items/__stories__/multi-renderer.stories.tsx":async()=>s(()=>import("./multi-renderer.stories-Fl1WvLOR.js"),__vite__mapDeps([266,1,2,3,9,10,21,81,11,18,12,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,179,239,180,233,214,234]),import.meta.url),"./packages/perseus/src/widgets/categorizer/categorizer.stories.tsx":async()=>s(()=>import("./categorizer.stories-LLLh5LQm.js"),__vite__mapDeps([267,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/cs-program/cs-program.stories.tsx":async()=>s(()=>import("./cs-program.stories-7NXvM3Fy.js"),__vite__mapDeps([268,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/definition/definition.stories.tsx":async()=>s(()=>import("./definition.stories-uLBvZ933.js"),__vite__mapDeps([269,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,233,234]),import.meta.url),"./packages/perseus/src/widgets/deprecated-standin/__stories__/deprecated-standin.stories.tsx":async()=>s(()=>import("./deprecated-standin.stories-FzgmQKuF.js"),__vite__mapDeps([270,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/dropdown/dropdown.stories.tsx":async()=>s(()=>import("./dropdown.stories-CFT4BSUl.js"),__vite__mapDeps([271,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/explanation/explanation.stories.tsx":async()=>s(()=>import("./explanation.stories-8Y51qHzh.js"),__vite__mapDeps([272,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/expression/expression.stories.tsx":async()=>s(()=>import("./expression.stories-GFVmLdWR.js"),__vite__mapDeps([273,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,36,37,28,38,39,40,4,5,238,81,18,21,82,17,69,71,83,14,16,20,54,47,49,84,62,63,64,65,45,79,53,85,56,57,86,87,42,43,44,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,239,180,233,214,234,235]),import.meta.url),"./packages/perseus/src/widgets/graded-group-set/graded-group-set.stories.tsx":async()=>s(()=>import("./graded-group-set.stories-_cdJT5Zh.js"),__vite__mapDeps([274,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/graded-group/graded-group.stories.tsx":async()=>s(()=>import("./graded-group.stories-3V8c3gWn.js"),__vite__mapDeps([275,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/grapher/grapher.stories.tsx":async()=>s(()=>import("./grapher.stories-Ib7JbWUg.js"),__vite__mapDeps([276,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/group/group.stories.tsx":async()=>s(()=>import("./group.stories-fJsj3rqR.js"),__vite__mapDeps([277,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/iframe/iframe.stories.tsx":async()=>s(()=>import("./iframe.stories-JXdNawdu.js"),__vite__mapDeps([278,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/image/image.stories.tsx":async()=>s(()=>import("./image.stories-DRy6WMKW.js"),__vite__mapDeps([279,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/input-number/input-number.stories.tsx":async()=>s(()=>import("./input-number.stories-6zGNe9uf.js"),__vite__mapDeps([280,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/interaction/interaction.stories.tsx":async()=>s(()=>import("./interaction.stories-7y3qGsmG.js"),__vite__mapDeps([281,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/interactive-graphs/interactive-graph-regression.stories.tsx":async()=>s(()=>import("./interactive-graph-regression.stories-XruPHhdn.js"),__vite__mapDeps([282,1,2,3,46,37,44,38,23,47,45,15,48,49,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,182,94,95]),import.meta.url),"./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx":async()=>s(()=>import("./interactive-graph.stories-c0X6f-XP.js"),__vite__mapDeps([283,1,2,3,89,10,17,9,11,18,12,82,69,90,21,54,49,51,53,81,71,83,14,15,16,19,20,47,84,62,63,38,64,65,45,79,85,56,57,86,87,103,68,23,42,43,37,44,36,22,24,25,8,6,7,26,27,28,39,40,46,48,50,52,55,58,59,60,61,66,67,70,72,73,74,75,76,77,78,80,88,91,92,93,94,95,96,97,98,99,100,101,102,104,105,106,213,180,214,183,182]),import.meta.url),"./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-functions.stories.tsx":async()=>s(()=>import("./locked-functions.stories-_0JmWV2e.js"),__vite__mapDeps([284,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,183,182]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/answer-choices.stories.tsx":async()=>s(()=>import("./answer-choices.stories-gESlm1QQ.js"),__vite__mapDeps([285,1,2,3,21,9,10,91,18,11,12,69,75,15,17,19,20,16,49,46,37,44,38,23,47,45,48,50,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/answer-pill.stories.tsx":async()=>s(()=>import("./answer-pill.stories-r5F6bwNs.js"),__vite__mapDeps([286,1,2,3,101,9,10,18,11,12,21,54,20,15,49,46,37,44,38,23,47,45,48,50,51,43,52,53,55,56,57,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/label-image.stories.tsx":async()=>s(()=>import("./label-image.stories-AzycrKsn.js"),__vite__mapDeps([287,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/label-image/__stories__/marker.stories.tsx":async()=>s(()=>import("./marker.stories-HQISqrJr.js"),__vite__mapDeps([288,1,2,3,10,100,9,54,49,84,57,101,18,11,12,21,20,15,46,37,44,38,23,47,45,48,50,51,43,52,53,55,56,58,59,60,61,62,63,64,65,66,67]),import.meta.url),"./packages/perseus/src/widgets/matcher/matcher.stories.tsx":async()=>s(()=>import("./matcher.stories-r1gv6FIT.js"),__vite__mapDeps([289,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/matrix/matrix.stories.tsx":async()=>s(()=>import("./matrix.stories-ZmrDcGiD.js"),__vite__mapDeps([290,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/number-line/number-line.stories.tsx":async()=>s(()=>import("./number-line.stories-azP-kcd9.js"),__vite__mapDeps([291,1,2,3,22,10,15,19,23,9,12,24,25,8,11,6,7,26,27,213,81,18,21,82,17,69,71,83,14,16,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,238,239,233,234,235,4,5]),import.meta.url),"./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx":async()=>s(()=>import("./numeric-input.stories-gapEv5H3.js"),__vite__mapDeps([292,1,2,3,4,5,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/orderer/orderer.stories.tsx":async()=>s(()=>import("./orderer.stories-UP4-eBn3.js"),__vite__mapDeps([293,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/passage-ref/passage-ref.stories.tsx":async()=>s(()=>import("./passage-ref.stories-uT2YvrsN.js"),__vite__mapDeps([294,1,2,3,9,10,213,81,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/passage/passage.stories.tsx":async()=>s(()=>import("./passage.stories-zTZGdfoM.js"),__vite__mapDeps([295,1,2,3,9,10,213,81,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/phet-simulation/phet-simulation.stories.tsx":async()=>s(()=>import("./phet-simulation.stories-bbv0Wjep.js"),__vite__mapDeps([296,89,1,2,3,10,17,9,11,18,12,82,69,90,21,54,49,51,53]),import.meta.url),"./packages/perseus/src/widgets/plotter/plotter.stories.tsx":async()=>s(()=>import("./plotter.stories-ETXuXUjV.js"),__vite__mapDeps([297,1,2,3,9,10,213,81,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/python-program/python-program.stories.tsx":async()=>s(()=>import("./python-program.stories-ZC_T9x3-.js"),__vite__mapDeps([298,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/base-radio.stories.tsx":async()=>s(()=>import("./base-radio.stories-9gsv-96B.js"),__vite__mapDeps([299,1,2,3,4,5,78,10,47,15,45,49,62,63,38,64,65,53,79,80,43,37,44,81,9,11,18,12,21,82,17,69,71,83,14,16,19,20,54,84,85,56,57,86,87,88,46,23,48,50,51,52,55,58,59,60,61,66,67]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/choice-icon.stories.tsx":async()=>s(()=>import("./choice-icon.stories-2BPZpvZi.js"),__vite__mapDeps([300,1,2,3,85,54,10,49,56,57,53,86]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/choice-none-above.stories.tsx":async()=>s(()=>import("./choice-none-above.stories-1YOImOm6.js"),__vite__mapDeps([301,1,2,3,4,5,88,49,46,37,44,38,23,47,45,15,48,50,10,9,51,43,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,81,11,18,12,21,82,17,69,71,83,14,16,19,20,84,79,85,86,87]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/choice.stories.tsx":async()=>s(()=>import("./choice.stories-4KrIkHMw.js"),__vite__mapDeps([302,1,2,3,4,5,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/focus-ring.stories.tsx":async()=>s(()=>import("./focus-ring.stories-4AFN_C87.js"),__vite__mapDeps([303,1,2,3,53,86,10]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/option-status.stories.tsx":async()=>s(()=>import("./option-status.stories-vLiZB-UF.js"),__vite__mapDeps([304,1,2,3,87,54,10,49]),import.meta.url),"./packages/perseus/src/widgets/radio/__stories__/radio.stories.tsx":async()=>s(()=>import("./radio.stories-lbTg9eud.js"),__vite__mapDeps([305,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214,166]),import.meta.url),"./packages/perseus/src/widgets/sorter/sorter.stories.tsx":async()=>s(()=>import("./sorter.stories-SqACmqll.js"),__vite__mapDeps([306,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url),"./packages/perseus/src/widgets/video/video-transcript-link.stories.tsx":async()=>s(()=>import("./video-transcript-link.stories-QBSva3hd.js"),__vite__mapDeps([307,1,2,3,103,9,10,83,12,90,11,18,69,49,51]),import.meta.url),"./packages/perseus/src/widgets/video/video.stories.tsx":async()=>s(()=>import("./video.stories-A4NxoUpg.js"),__vite__mapDeps([308,1,2,3,213,81,9,10,11,18,12,21,82,17,69,71,83,14,15,16,19,20,54,47,49,84,62,63,38,64,65,45,79,53,85,56,57,86,87,42,43,37,44,36,22,23,24,25,8,6,7,26,27,28,39,40,46,48,50,51,52,55,58,59,60,61,66,67,68,70,72,73,74,75,76,77,78,80,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,180,105,106,214]),import.meta.url)};async function y(e){return R[e]()}const{composeConfigs:T,PreviewWeb:L,ClientApi:V}=__STORYBOOK_MODULE_PREVIEW_API__,k=async(e=[])=>{const i=await Promise.all([e[0]??s(()=>import("./entry-preview-AnF0cNCV.js"),__vite__mapDeps([309,310,2,3,15]),import.meta.url),e[1]??s(()=>import("./entry-preview-docs-O2vHoAqK.js"),__vite__mapDeps([311,310,312,3,2]),import.meta.url),e[2]??s(()=>import("./preview-VRZh9grL.js"),__vite__mapDeps([313,314]),import.meta.url),e[3]??s(()=>import("./preview-l2a48bDL.js"),__vite__mapDeps([]),import.meta.url),e[4]??s(()=>import("./preview-tqQQd2o_.js"),__vite__mapDeps([315,5]),import.meta.url),e[5]??s(()=>import("./preview-wCp9WPam.js"),__vite__mapDeps([316,317]),import.meta.url),e[6]??s(()=>import("./preview-O_buDTJV.js"),__vite__mapDeps([]),import.meta.url),e[7]??s(()=>import("./preview-yMuHbJw4.js"),__vite__mapDeps([318,95]),import.meta.url),e[8]??s(()=>import("./preview-AFLxCOxy.js"),__vite__mapDeps([319,317]),import.meta.url),e[9]??s(()=>import("./preview-pF0Jw540.js"),__vite__mapDeps([]),import.meta.url),e[10]??s(()=>import("./preview-a9y_VHwG.js"),__vite__mapDeps([]),import.meta.url),e[11]??s(()=>import("./preview-D37Zx18V.js"),__vite__mapDeps([320,1,2,3,12,9,10,42,43,37,44,45,36,22,15,19,23,24,25,8,11,6,7,26,27,28,38,39,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,16,17,18,21,20,70,71,14,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,233,214,234]),import.meta.url)]);return T(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new L(y,k);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{s as _}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./keypad-button.stories-DT8Y3Yxd.js","./jsx-runtime-63Ea5SlK.js","./index-6oxdNXpR.js","./_commonjsHelpers-4gQjN7DL.js","./chunk-D5ZWXAHU-vR62DWf0.js","./v4-yQnnJER4.js","./button-assets-ozecF1qE.js","./keypad-button-BlFICMi6.js","./index-xfryX26Z.js","./index-0DbkllkJ.js","./index-awljIyHI.js","./react-router-dom-VIBHfbW6.js","./index-deFLJwr4.js","./keypad-mathquill.stories-rpEbEeQe.js","./index-zFNZn_u0.js","./index-9gkyvru-.js","./index-jxhLXBHb.js","./index-f-3iKkZU.js","./index-i1pBWAmI.js","./index-7-BESUpx.js","./Popper-Y5KDXl-P.js","./index-18qWGOW7.js","./mobile-keypad-Muuas9zV.js","./index-J2t_5nK1.js","./tabbar-WEwAggnz.js","./item-ct0mKlsr.js","./operators-page-pCrK11a-.js","./navigation-pad-29vyLJ52.js","./key-translator-hixns6dh.js","./keypad-pages.stories-EACJuu7S.js","./index-KhQhTAik.js","./navigation-pad.stories-u1r2LJel.js","./tabbar.stories-anfVmrOR.js","./tabbaritem.stories-Z91bESHz.js","./full-keypad.stories-8Xty0u74.js","./full-mobile-input.stories-YLk0dNZF.js","./prop-types-d_cUcR3L.js","./version-akiLXZts.js","./invariant-bu5zBsRS.js","./prop-types-mRar-0kQ.css","./enums-x5qaTru7.js","./article-editor.stories-jEu4WYQs.js","./article-renderer-h_m-tvVP.js","./util-AYeX86gl.js","./perseus-error-l3K_anoI.js","./jquery-yG1GhClm.js","./renderer-yXFj-6ty.js","./index-dnMhQZ-1.js","./asset-context-H6Iqp7Gi.js","./i18n-context-fsWEgybQ.js","./svg-image-FcZanvM1.js","./dependencies-CP7Uh8Kq.js","./fixed-to-responsive-for_tVF1.js","./constants-iPV6vHZm.js","./index-Dfd6auV6.js","./client-Rb4DelHy.js","./inline-icon-6fh0Wu1y.js","./icon-paths-5JCXzGsq.js","./image-loader-qoercD2n.js","./tex-MX5FPdQh.js","./zoomable-_uYFBX1Q.js","./zoomable-tex-Jjwex-Ep.js","./perseus-api-1-ethIrW.js","./index-k-0mNqHS.js","./stub-tag-editor-qMhJW4bS.js","./text-list-editor-aj1SAzcA.js","./lint-CRWxUAIQ.js","./renderer-pz-U1ZWj.css","./index-BIPwuHvF.js","./index-469F30Ub.js","./math-input-ILg8RrvB.js","./index-CyYhwSUV.js","./input-with-examples-ap__dKNy.js","./text-input-e6f7u9S5.js","./index-V5gl6frG.js","./minus-bold-ONmDo3Ve.js","./tooltip-Lp8Mlfe3.js","./simple-keypad-input-7tb5_po1.js","./base-radio-XsQBfrsT.js","./media-queries-gbofTbz-.js","./shared-4TdECMLk.js","./choice-Xr-SKHrB.js","./index-vITVWi7a.js","./index-nqMmpXbO.js","./icon-7RFbyLiL.js","./choice-icon-9x4jcq5T.js","./focus-ring-qYEF-qqz.js","./option-status-8mB213vS.js","./choice-none-above-qQVnMhkg.js","./phet-simulation-_7qOO4_B.js","./arrow-square-out-bold-090vdhrx.js","./answer-choices-o46t7GFm.js","./button-group-G5CZaedn.js","./graph-4ZDD3NK_.js","./index-smZ6iCr_.js","./tiny-invariant-bHgPayXn.js","./hud-ifw9Ofbw.js","./multi-button-group-QUVHbBcE.js","./number-input-ogh82yD8.js","./range-input-w5Z3sPK5.js","./marker-2_PYfPuj.js","./answer-pill-tXbsiPyg.js","./sortable-feDCgEkT.js","./video-transcript-link-_gpkjmR8.js","./article-renderer-Fup2g6Rr.css","./perseus-item-334dAsMX.js","./hints-renderer-Ebeftjch.js","./article-editor-f268t0Bj.js","./components-2XngBvY8.js","./device-framer-MUDr0WgQ.js","./constants-p_UgHLsb.js","./register-all-widgets-and-editors-for-testing-4tsEoT6X.js","./graph-settings-RVCdgmRM.js","./index-0C4KXdeC.js","./categorizer-editor-w3RL0Wed.js","./editor-jsonify-UVC33bjS.js","./blur-input-6j4bgLwx.js","./definition-editor-whGRFVv8.js","./editor-JBlHUPac.js","./icon-paths-EoBkHOLI.js","./section-control-button-Hi-3GzxK.js","./index-wzSCRJFK.js","./tex-error-view-oha0Bum8.js","./toggleable-caret-YFS5vs4O.js","./dropdown-editor-aJLNeS97.js","./explanation-editor-jVSk3itt.js","./expression-editor-eqp-b25r.js","./image-editor-hBd9GH_N.js","./input-number-editor-IPEdB_LR.js","./interaction-editor-o5mLkBC2.js","./interactive-graph-editor-kVA-32xF.js","./heading-1izW0-GJ.js","./interactive-graph-settings-pw3hKJzp.js","./locked-figures-section-y3ppaDa3.js","./locked-ellipse-settings-QEWwFykH.js","./locked-figure-aria-cNSSPrLz.js","./scrollless-number-text-field-d5PK69vy.js","./util-qk2aeK8X.js","./locked-label-settings-6ht0io0O.js","./color-select-aUifoW8Y.js","./util-HzFZ8oS9.js","./line-stroke-select-0OM1Wg3S.js","./locked-function-settings-kUF9h6pg.js","./line-swatch-UeqkCmCR.js","./locked-line-settings-YpDy59Fp.js","./locked-point-settings-zw7k74iG.js","./labeled-switch-JhwyK92a.js","./locked-polygon-settings-wVPxu4oj.js","./locked-vector-settings-ZrkXTg1R.js","./label-image-editor-1OjT5p1R.js","./form-wrapped-text-field-NbyiOLVb.js","./global-colors-VIVU4Od4.js","./answer-choices-muv2VOHH.js","./behavior-aLFRIY8r.js","./question-markers-1Od9vsFe.js","./marker-IyDMvraJ.js","./select-image-eeYz-2R-.js","./matcher-editor-2MSFAVmw.js","./number-line-editor-Fq_hw3be.js","./numeric-input-editor-z2JL1__O.js","./phet-simulation-editor-13ErfkdC.js","./python-program-editor-YqavN4kp.js","./editor-3qfdTkF_.js","./sorter-editor-nvFR-j1p.js","./content-preview.stories-4JfHWp4B.js","./article-renderer.testdata-spwNviYy.js","./radio.testdata-sITJ8lxE.js","./viewport-resizer-XdI1AJxV.js","./perseus-editor-0Y-TvOcR.css","./editor-page.stories-xTqlS0GI.js","./editor-page-with-storybook-preview-OQhZV8v2.js","./editor-page-IZU6eBRz.js","./item-extras-editor-59uwRwff.js","./flags-for-api-options-buw2ikR-.js","./editor.stories-jBup12x7.js","./index-wBNCUhuP.js","./structured-item-diff-DXp4z5uV.js","./text-diff-pKWm8aY9.js","./tags-diff-3VjcFXZJ.js","./multi-items-IrUZEql6.js","./side-by-side-MBJuyilC.js","./interactive-graph-editor.stories-1dESAp0m.js","./interactive-graph-question-builder-VBdpjz9Z.js","./interactive-graph.testdata--LRl7_OC.js","./item-editor.stories-S6Eke9VF.js","./tex-error-view.stories--fr65KDX.js","./blur-input.stories-MEVoLwh0.js","./color-select.stories-fHmDK8dE.js","./color-swatch.stories-R6Y4IyXa.js","./device-framer.stories--gF4_S4i.js","./graph-settings.stories-3rqjHwDe.js","./interactive-graph-settings.stories-6rlKeQoi.js","./locked-ellipse-settings.stories-OR0OUkSL.js","./locked-figures-section.stories-hk1zdI2v.js","./locked-function-settings.stories-oDurB1_f.js","./locked-label-settings.stories-UDCs8DS1.js","./locked-line-settings.stories-rnFOENAq.js","./locked-point-settings.stories-AfdxqPJK.js","./locked-polygon-settings.stories-cBTGJhJl.js","./locked-vector-settings.stories-gCF08jcf.js","./scrollless-number-text-field.stories-nVFV0ihc.js","./section-control-button.stories-cmQmF1LX.js","./toggleable-caret.stories-RjkVgUY7.js","./viewport-resizer.stories-l8Z2nO_5.js","./structured-item-diff.stories-Y9_rE0v4.js","./perseus-diff-wrapper-c32IFwe6.js","./tags-diff.stories-f3wNo1EZ.js","./text-diff.stories-jY22YyyJ.js","./categorizer-editor.stories-z4WFz_6s.js","./definition-editor.stories-lAq9_602.js","./dropdown-editor.stories-9FuT9tzH.js","./explanation-editor.stories-zxz94yYI.js","./expression-editor.stories-hbejij62.js","./renderer-with-debug-ui-g9Q2O3kw.js","./register-all-widgets-for-testing-TyijFPFL.js","./image-editor.stories-jWEMwXwF.js","./input-number-editor.stories-RhRg3g-S.js","./interaction-editor.stories-cPrWmK-s.js","./interactive-graph-editor.stories-ncOGdUyN.js","./label-image-editor.stories-klbeMUGW.js","./matcher-editor.stories-i5aptNie.js","./number-line-editor.stories--zVKYyCu.js","./numeric-input-editor.stories-wWJYMn1s.js","./phet-simulation-editor.stories-y2VtI5bc.js","./python-program-editor.stories-pFVNl6vR.js","./radio-editor.stories-gOf9aobq.js","./sorter-editor.stories-xtWFM1o0.js","./answer-choices.stories-05uNmYPE.js","./behavior.stories-vo4MkukQ.js","./marker.stories-acBNqIos.js","./question-markers.stories-knVz69Mo.js","./select-image.stories-VpmIwbPa.js","./article-renderer.stories-33H8zwUA.js","./test-dependencies-pK6aZRAV.js","./test-dependencies-vi99l57r.css","./test-keypad-context-wrapper-qNJz2rBH.js","./hints-renderer.stories-cHl0wu4V.js","./server-item-renderer.stories-fhCp9YLF.js","./server-item-renderer-with-debug-ui-1bUVpaj2.js","./ke-score-ui-AQ1XUyPU.js","./button-group.stories-SVj84HqS.js","./fixed-to-responsive.stories-TlwP860I.js","./graph.stories-MRihw5tS.js","./graphie.stories-xs_-3h1Z.js","./hud.stories-pOcT5wvD.js","./icon.stories-qKf7s47y.js","./image-loader.stories-oac2OU3c.js","./info-tip.stories-Gano9oQC.js","./inline-icon.stories-kL5VCTgv.js","./input-with-examples.stories-g_iYIN8R.js","./lint.stories-U937ancb.js","./math-input.stories-55BQXc10.js","./multi-button-group.stories-LnMy2Qwe.js","./number-input.stories-408TlbwR.js","./range-input.stories-nWKfQjxk.js","./simple-keypad-input.stories-UMFjk9DG.js","./sortable.stories-3mjltSVe.js","./stub-tag-editor.stories-6eMueEDt.js","./svg-image.stories-tU_aScnA.js","./tex.stories-dZhTYzdN.js","./text-input.stories-UpjjnRUC.js","./text-list-editor.stories-MWgp-kIj.js","./tooltip.stories-e4zH05Vl.js","./zoomable-tex.stories-Uprg1vT_.js","./zoomable.stories-uUuIBdOA.js","./visibility-observer.stories-xElGlplw.js","./multi-renderer.stories-jyyVKdgy.js","./categorizer.stories-LLLh5LQm.js","./cs-program.stories-7NXvM3Fy.js","./definition.stories-uLBvZ933.js","./deprecated-standin.stories-FzgmQKuF.js","./dropdown.stories-CFT4BSUl.js","./explanation.stories-8Y51qHzh.js","./expression.stories-6MiCK-Zk.js","./graded-group-set.stories-_cdJT5Zh.js","./graded-group.stories-3V8c3gWn.js","./grapher.stories-Ib7JbWUg.js","./group.stories-fJsj3rqR.js","./iframe.stories-JXdNawdu.js","./image.stories-DRy6WMKW.js","./input-number.stories-6zGNe9uf.js","./interaction.stories-7y3qGsmG.js","./interactive-graph-regression.stories-XruPHhdn.js","./interactive-graph.stories-c0X6f-XP.js","./locked-functions.stories-_0JmWV2e.js","./answer-choices.stories-gESlm1QQ.js","./answer-pill.stories-r5F6bwNs.js","./label-image.stories-AzycrKsn.js","./marker.stories-HQISqrJr.js","./matcher.stories-r1gv6FIT.js","./matrix.stories-ZmrDcGiD.js","./number-line.stories-U_mwJQ_-.js","./numeric-input.stories-gapEv5H3.js","./orderer.stories-UP4-eBn3.js","./passage-ref.stories-uT2YvrsN.js","./passage.stories-zTZGdfoM.js","./phet-simulation.stories-bbv0Wjep.js","./plotter.stories-ETXuXUjV.js","./python-program.stories-ZC_T9x3-.js","./base-radio.stories-9gsv-96B.js","./choice-icon.stories-2BPZpvZi.js","./choice-none-above.stories-1YOImOm6.js","./choice.stories-4KrIkHMw.js","./focus-ring.stories-4AFN_C87.js","./option-status.stories-vLiZB-UF.js","./radio.stories-lbTg9eud.js","./sorter.stories-SqACmqll.js","./video-transcript-link.stories-QBSva3hd.js","./video.stories-A4NxoUpg.js","./entry-preview-q_nhScy4.js","./chunk-XP5HYGXS-fUC2V6Et.js","./entry-preview-docs-O2vHoAqK.js","./index-mQRHDdot.js","./preview-VRZh9grL.js","./index-4FLvW62B.js","./preview-tqQQd2o_.js","./preview-wCp9WPam.js","./index-PPLHz8o0.js","./preview-yMuHbJw4.js","./preview-AFLxCOxy.js","./preview-D37Zx18V.js"] + __vite__mapDeps.viteFileDeps = ["./keypad-button.stories-DT8Y3Yxd.js","./jsx-runtime-63Ea5SlK.js","./index-6oxdNXpR.js","./_commonjsHelpers-4gQjN7DL.js","./chunk-D5ZWXAHU-vR62DWf0.js","./v4-yQnnJER4.js","./button-assets-ozecF1qE.js","./keypad-button-BlFICMi6.js","./index-xfryX26Z.js","./index-0DbkllkJ.js","./index-awljIyHI.js","./react-router-dom-VIBHfbW6.js","./index-deFLJwr4.js","./keypad-mathquill.stories-rpEbEeQe.js","./index-zFNZn_u0.js","./index-9gkyvru-.js","./index-jxhLXBHb.js","./index-f-3iKkZU.js","./index-i1pBWAmI.js","./index-7-BESUpx.js","./Popper-Y5KDXl-P.js","./index-18qWGOW7.js","./mobile-keypad-Muuas9zV.js","./index-J2t_5nK1.js","./tabbar-WEwAggnz.js","./item-ct0mKlsr.js","./operators-page-pCrK11a-.js","./navigation-pad-29vyLJ52.js","./key-translator-hixns6dh.js","./keypad-pages.stories-EACJuu7S.js","./index-KhQhTAik.js","./navigation-pad.stories-u1r2LJel.js","./tabbar.stories-anfVmrOR.js","./tabbaritem.stories-Z91bESHz.js","./full-keypad.stories-8Xty0u74.js","./full-mobile-input.stories-YLk0dNZF.js","./prop-types-d_cUcR3L.js","./version-akiLXZts.js","./invariant-bu5zBsRS.js","./prop-types-mRar-0kQ.css","./enums-x5qaTru7.js","./article-editor.stories-oSmIuSSI.js","./article-renderer-h_m-tvVP.js","./util-AYeX86gl.js","./perseus-error-l3K_anoI.js","./jquery-yG1GhClm.js","./renderer-yXFj-6ty.js","./index-dnMhQZ-1.js","./asset-context-H6Iqp7Gi.js","./i18n-context-fsWEgybQ.js","./svg-image-FcZanvM1.js","./dependencies-CP7Uh8Kq.js","./fixed-to-responsive-for_tVF1.js","./constants-iPV6vHZm.js","./index-Dfd6auV6.js","./client-Rb4DelHy.js","./inline-icon-6fh0Wu1y.js","./icon-paths-5JCXzGsq.js","./image-loader-qoercD2n.js","./tex-MX5FPdQh.js","./zoomable-_uYFBX1Q.js","./zoomable-tex-Jjwex-Ep.js","./perseus-api-1-ethIrW.js","./index-k-0mNqHS.js","./stub-tag-editor-qMhJW4bS.js","./text-list-editor-aj1SAzcA.js","./lint-CRWxUAIQ.js","./renderer-pz-U1ZWj.css","./index-BIPwuHvF.js","./index-469F30Ub.js","./math-input-ILg8RrvB.js","./index-CyYhwSUV.js","./input-with-examples-ap__dKNy.js","./text-input-e6f7u9S5.js","./index-V5gl6frG.js","./minus-bold-ONmDo3Ve.js","./tooltip-Lp8Mlfe3.js","./simple-keypad-input-7tb5_po1.js","./base-radio-XsQBfrsT.js","./media-queries-gbofTbz-.js","./shared-4TdECMLk.js","./choice-Xr-SKHrB.js","./index-vITVWi7a.js","./index-nqMmpXbO.js","./icon-7RFbyLiL.js","./choice-icon-9x4jcq5T.js","./focus-ring-qYEF-qqz.js","./option-status-8mB213vS.js","./choice-none-above-qQVnMhkg.js","./phet-simulation-_7qOO4_B.js","./arrow-square-out-bold-090vdhrx.js","./answer-choices-o46t7GFm.js","./button-group-G5CZaedn.js","./graph-4ZDD3NK_.js","./index-smZ6iCr_.js","./tiny-invariant-bHgPayXn.js","./hud-ifw9Ofbw.js","./multi-button-group-QUVHbBcE.js","./number-input-ogh82yD8.js","./range-input-w5Z3sPK5.js","./marker-2_PYfPuj.js","./answer-pill-tXbsiPyg.js","./sortable-feDCgEkT.js","./video-transcript-link-_gpkjmR8.js","./article-renderer-Fup2g6Rr.css","./perseus-item-334dAsMX.js","./hints-renderer-Ebeftjch.js","./article-editor-eS0mHgX3.js","./components-2XngBvY8.js","./device-framer-MUDr0WgQ.js","./constants-p_UgHLsb.js","./register-all-widgets-and-editors-for-testing-QKLCyv1G.js","./graph-settings-RVCdgmRM.js","./index-0C4KXdeC.js","./categorizer-editor-w3RL0Wed.js","./editor-jsonify-UVC33bjS.js","./blur-input-6j4bgLwx.js","./definition-editor-mtNl78Ws.js","./editor-JBlHUPac.js","./icon-paths-EoBkHOLI.js","./section-control-button-Hi-3GzxK.js","./index-wzSCRJFK.js","./tex-error-view-oha0Bum8.js","./toggleable-caret-YFS5vs4O.js","./dropdown-editor-zKHD15eA.js","./explanation-editor-jVSk3itt.js","./expression-editor--gvmUBTK.js","./image-editor-hBd9GH_N.js","./input-number-editor-IPEdB_LR.js","./interaction-editor-o5mLkBC2.js","./interactive-graph-editor-aOqBZtl-.js","./heading-1izW0-GJ.js","./interactive-graph-settings-pw3hKJzp.js","./locked-figures-section-TVvL2-a2.js","./locked-ellipse-settings-EZXzWz0x.js","./locked-figure-aria-cNSSPrLz.js","./scrollless-number-text-field-d5PK69vy.js","./util-qk2aeK8X.js","./locked-label-settings-6ht0io0O.js","./color-select-aUifoW8Y.js","./util-HzFZ8oS9.js","./line-stroke-select-0OM1Wg3S.js","./locked-function-settings-kUF9h6pg.js","./line-swatch-UeqkCmCR.js","./locked-line-settings-J8lMZ4RB.js","./locked-point-settings-tJQmmWj4.js","./labeled-switch-JhwyK92a.js","./locked-polygon-settings-c4WjOmfA.js","./locked-vector-settings-2YztdJIb.js","./label-image-editor-1OjT5p1R.js","./form-wrapped-text-field-NbyiOLVb.js","./global-colors-VIVU4Od4.js","./answer-choices-muv2VOHH.js","./behavior-aLFRIY8r.js","./question-markers-1Od9vsFe.js","./marker-IyDMvraJ.js","./select-image-eeYz-2R-.js","./matcher-editor-2MSFAVmw.js","./number-line-editor-Fq_hw3be.js","./numeric-input-editor-YnVVoF5-.js","./phet-simulation-editor-13ErfkdC.js","./python-program-editor-YqavN4kp.js","./editor-CEQdVGNe.js","./sorter-editor-nvFR-j1p.js","./content-preview.stories-4JfHWp4B.js","./article-renderer.testdata-spwNviYy.js","./radio.testdata-sITJ8lxE.js","./viewport-resizer-XdI1AJxV.js","./perseus-editor-0Y-TvOcR.css","./editor-page.stories-DIUtPVoA.js","./editor-page-with-storybook-preview-Kxt2zK35.js","./editor-page-lRZ_qmez.js","./item-extras-editor-59uwRwff.js","./flags-for-api-options-buw2ikR-.js","./editor.stories-JIpR7Umf.js","./index-MMN8f7sJ.js","./structured-item-diff-DXp4z5uV.js","./text-diff-pKWm8aY9.js","./tags-diff-3VjcFXZJ.js","./multi-items-IrUZEql6.js","./side-by-side-MBJuyilC.js","./interactive-graph-editor.stories-YG_3rEFr.js","./interactive-graph-question-builder-VBdpjz9Z.js","./interactive-graph.testdata--LRl7_OC.js","./item-editor.stories-S6Eke9VF.js","./tex-error-view.stories--fr65KDX.js","./blur-input.stories-MEVoLwh0.js","./color-select.stories-fHmDK8dE.js","./color-swatch.stories-R6Y4IyXa.js","./device-framer.stories--gF4_S4i.js","./graph-settings.stories-3rqjHwDe.js","./interactive-graph-settings.stories-6rlKeQoi.js","./locked-ellipse-settings.stories-oyJT5XK1.js","./locked-figures-section.stories-LKWvWkLI.js","./locked-function-settings.stories-oDurB1_f.js","./locked-label-settings.stories-UDCs8DS1.js","./locked-line-settings.stories-kBfEklAa.js","./locked-point-settings.stories-NqoZo2gx.js","./locked-polygon-settings.stories-elqLW6gq.js","./locked-vector-settings.stories-l8dg2yOI.js","./scrollless-number-text-field.stories-nVFV0ihc.js","./section-control-button.stories-cmQmF1LX.js","./toggleable-caret.stories-RjkVgUY7.js","./viewport-resizer.stories-l8Z2nO_5.js","./structured-item-diff.stories-f1IqFN6G.js","./perseus-diff-wrapper-c32IFwe6.js","./tags-diff.stories-f3wNo1EZ.js","./text-diff.stories-jY22YyyJ.js","./categorizer-editor.stories-z4WFz_6s.js","./definition-editor.stories-2MNCEHxP.js","./dropdown-editor.stories-38QA__0v.js","./explanation-editor.stories-zxz94yYI.js","./expression-editor.stories-Rc8WqxEX.js","./renderer-with-debug-ui-g9Q2O3kw.js","./register-all-widgets-for-testing-TyijFPFL.js","./image-editor.stories-jWEMwXwF.js","./input-number-editor.stories-RhRg3g-S.js","./interaction-editor.stories-cPrWmK-s.js","./interactive-graph-editor.stories-WBXWBKn2.js","./label-image-editor.stories-klbeMUGW.js","./matcher-editor.stories-i5aptNie.js","./number-line-editor.stories--zVKYyCu.js","./numeric-input-editor.stories-I6ZIR46i.js","./phet-simulation-editor.stories-y2VtI5bc.js","./python-program-editor.stories-pFVNl6vR.js","./radio-editor.stories-ynnmprYP.js","./sorter-editor.stories-xtWFM1o0.js","./answer-choices.stories-05uNmYPE.js","./behavior.stories-vo4MkukQ.js","./marker.stories-acBNqIos.js","./question-markers.stories-knVz69Mo.js","./select-image.stories-VpmIwbPa.js","./article-renderer.stories-33H8zwUA.js","./test-dependencies-pK6aZRAV.js","./test-dependencies-vi99l57r.css","./test-keypad-context-wrapper-qNJz2rBH.js","./hints-renderer.stories-cHl0wu4V.js","./server-item-renderer.stories-tuVQdP8K.js","./server-item-renderer-with-debug-ui-o9_yPBTG.js","./ke-score-ui-rxqDzQuA.js","./button-group.stories-SVj84HqS.js","./fixed-to-responsive.stories-TlwP860I.js","./graph.stories-MRihw5tS.js","./graphie.stories-w75VOCRu.js","./hud.stories-pOcT5wvD.js","./icon.stories-qKf7s47y.js","./image-loader.stories-oac2OU3c.js","./info-tip.stories-Gano9oQC.js","./inline-icon.stories-kL5VCTgv.js","./input-with-examples.stories-g_iYIN8R.js","./lint.stories-U937ancb.js","./math-input.stories-55BQXc10.js","./multi-button-group.stories-LnMy2Qwe.js","./number-input.stories-408TlbwR.js","./range-input.stories-nWKfQjxk.js","./simple-keypad-input.stories-UMFjk9DG.js","./sortable.stories-3mjltSVe.js","./stub-tag-editor.stories-6eMueEDt.js","./svg-image.stories-tU_aScnA.js","./tex.stories-dZhTYzdN.js","./text-input.stories-UpjjnRUC.js","./text-list-editor.stories-MWgp-kIj.js","./tooltip.stories-e4zH05Vl.js","./zoomable-tex.stories-Uprg1vT_.js","./zoomable.stories-o_kFkCHK.js","./visibility-observer.stories-xElGlplw.js","./multi-renderer.stories-Fl1WvLOR.js","./categorizer.stories-LLLh5LQm.js","./cs-program.stories-7NXvM3Fy.js","./definition.stories-uLBvZ933.js","./deprecated-standin.stories-FzgmQKuF.js","./dropdown.stories-CFT4BSUl.js","./explanation.stories-8Y51qHzh.js","./expression.stories-GFVmLdWR.js","./graded-group-set.stories-_cdJT5Zh.js","./graded-group.stories-3V8c3gWn.js","./grapher.stories-Ib7JbWUg.js","./group.stories-fJsj3rqR.js","./iframe.stories-JXdNawdu.js","./image.stories-DRy6WMKW.js","./input-number.stories-6zGNe9uf.js","./interaction.stories-7y3qGsmG.js","./interactive-graph-regression.stories-XruPHhdn.js","./interactive-graph.stories-c0X6f-XP.js","./locked-functions.stories-_0JmWV2e.js","./answer-choices.stories-gESlm1QQ.js","./answer-pill.stories-r5F6bwNs.js","./label-image.stories-AzycrKsn.js","./marker.stories-HQISqrJr.js","./matcher.stories-r1gv6FIT.js","./matrix.stories-ZmrDcGiD.js","./number-line.stories-azP-kcd9.js","./numeric-input.stories-gapEv5H3.js","./orderer.stories-UP4-eBn3.js","./passage-ref.stories-uT2YvrsN.js","./passage.stories-zTZGdfoM.js","./phet-simulation.stories-bbv0Wjep.js","./plotter.stories-ETXuXUjV.js","./python-program.stories-ZC_T9x3-.js","./base-radio.stories-9gsv-96B.js","./choice-icon.stories-2BPZpvZi.js","./choice-none-above.stories-1YOImOm6.js","./choice.stories-4KrIkHMw.js","./focus-ring.stories-4AFN_C87.js","./option-status.stories-vLiZB-UF.js","./radio.stories-lbTg9eud.js","./sorter.stories-SqACmqll.js","./video-transcript-link.stories-QBSva3hd.js","./video.stories-A4NxoUpg.js","./entry-preview-AnF0cNCV.js","./chunk-XP5HYGXS-fUC2V6Et.js","./entry-preview-docs-O2vHoAqK.js","./index-mQRHDdot.js","./preview-VRZh9grL.js","./index-4FLvW62B.js","./preview-tqQQd2o_.js","./preview-wCp9WPam.js","./index-PPLHz8o0.js","./preview-yMuHbJw4.js","./preview-AFLxCOxy.js","./preview-D37Zx18V.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/index-wBNCUhuP.js b/assets/index-MMN8f7sJ.js similarity index 99% rename from assets/index-wBNCUhuP.js rename to assets/index-MMN8f7sJ.js index ccf0a36ee2..bc3ff38031 100644 --- a/assets/index-wBNCUhuP.js +++ b/assets/index-MMN8f7sJ.js @@ -1,4 +1,4 @@ -import{a as M}from"./version-akiLXZts.js";import"./article-editor-f268t0Bj.js";import"./device-framer-MUDr0WgQ.js";import"./viewport-resizer-XdI1AJxV.js";import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{P as d}from"./index-0C4KXdeC.js";import{r as p}from"./index-6oxdNXpR.js";import{_}from"./jquery-yG1GhClm.js";import{R as x,W as D}from"./structured-item-diff-DXp4z5uV.js";import{H as V}from"./editor-page-IZU6eBRz.js";import{E as H}from"./editor-JBlHUPac.js";import{w as G}from"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import{c as K,r as B,a as J,d as Q}from"./renderer-yXFj-6ty.js";import{A as Y}from"./perseus-api-1-ethIrW.js";import{l as g,g as Z,e as X}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./dependencies-CP7Uh8Kq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{J as ee,A as re}from"./register-all-widgets-and-editors-for-testing-4tsEoT6X.js";import{c as te}from"./components-2XngBvY8.js";import{c as E,i as ne}from"./icon-paths-5JCXzGsq.js";import{M as ae}from"./multi-items-IrUZEql6.js";import{l as s}from"./index-awljIyHI.js";import{F as ie}from"./index-9gkyvru-.js";/* empty css */const se="@khanacademy/perseus-editor",oe="__lib_version__";M(se,oe);const q=d.shape({content:d.string,images:d.objectOf(d.any),widgets:d.objectOf(d.any)}),b=class b extends p.Component{constructor(){super(...arguments),this.state=b._stateFromProps(this.props)}UNSAFE_componentWillReceiveProps(e){this.setState(b._stateFromProps(e))}render(){const{before:e,after:t}=this.state,n=Math.max(e.length,t.length),i=_.times(n,l=>r.jsx(x,{before:l{const{before:t,after:n}=e;return{before:Array.isArray(t)?t:[t],after:Array.isArray(n)?n:[n]}};let W=b;W.__docgenInfo={description:"",methods:[{name:"_stateFromProps",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null}],displayName:"ArticleDiff",props:{after:{description:"",type:{name:"union",value:[{name:"custom",raw:"rendererProps"},{name:"arrayOf",value:{name:"custom",raw:"rendererProps"}}]},required:!0},before:{description:"",type:{name:"union",value:[{name:"custom",raw:"rendererProps"},{name:"arrayOf",value:{name:"custom",raw:"rendererProps"}}]},required:!0}}};const L=d.shape({question:d.shape({}).isRequired,answerArea:d.shape({}).isRequired,hints:d.arrayOf(d.any).isRequired}),N=class N extends p.Component{render(){const{before:e,after:t}=this.props,n=Math.max(e.hints.length,t.hints.length),i=r.jsx(x,{before:e.question,after:t.question,title:"Question",showAlignmentOptions:!1,showSeparator:!0}),l=r.jsx(D,{before:e.answerArea,after:t.answerArea,title:"Question extras"}),u=_.times(n,function(y){return r.jsx(x,{before:y{}};let v=A;const O=s.StyleSheet.create({baseButton:{top:"0",fontSize:"11px",padding:"3px 10px",backgroundRepeat:"repeat-x",borderColor:` +import{a as M}from"./version-akiLXZts.js";import"./article-editor-eS0mHgX3.js";import"./device-framer-MUDr0WgQ.js";import"./viewport-resizer-XdI1AJxV.js";import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{P as d}from"./index-0C4KXdeC.js";import{r as p}from"./index-6oxdNXpR.js";import{_}from"./jquery-yG1GhClm.js";import{R as x,W as D}from"./structured-item-diff-DXp4z5uV.js";import{H as V}from"./editor-page-lRZ_qmez.js";import{E as H}from"./editor-JBlHUPac.js";import{w as G}from"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import{c as K,r as B,a as J,d as Q}from"./renderer-yXFj-6ty.js";import{A as Y}from"./perseus-api-1-ethIrW.js";import{l as g,g as Z,e as X}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./dependencies-CP7Uh8Kq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{J as ee,A as re}from"./register-all-widgets-and-editors-for-testing-QKLCyv1G.js";import{c as te}from"./components-2XngBvY8.js";import{c as E,i as ne}from"./icon-paths-5JCXzGsq.js";import{M as ae}from"./multi-items-IrUZEql6.js";import{l as s}from"./index-awljIyHI.js";import{F as ie}from"./index-9gkyvru-.js";/* empty css */const se="@khanacademy/perseus-editor",oe="__lib_version__";M(se,oe);const q=d.shape({content:d.string,images:d.objectOf(d.any),widgets:d.objectOf(d.any)}),b=class b extends p.Component{constructor(){super(...arguments),this.state=b._stateFromProps(this.props)}UNSAFE_componentWillReceiveProps(e){this.setState(b._stateFromProps(e))}render(){const{before:e,after:t}=this.state,n=Math.max(e.length,t.length),i=_.times(n,l=>r.jsx(x,{before:l{const{before:t,after:n}=e;return{before:Array.isArray(t)?t:[t],after:Array.isArray(n)?n:[n]}};let W=b;W.__docgenInfo={description:"",methods:[{name:"_stateFromProps",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null}],displayName:"ArticleDiff",props:{after:{description:"",type:{name:"union",value:[{name:"custom",raw:"rendererProps"},{name:"arrayOf",value:{name:"custom",raw:"rendererProps"}}]},required:!0},before:{description:"",type:{name:"union",value:[{name:"custom",raw:"rendererProps"},{name:"arrayOf",value:{name:"custom",raw:"rendererProps"}}]},required:!0}}};const L=d.shape({question:d.shape({}).isRequired,answerArea:d.shape({}).isRequired,hints:d.arrayOf(d.any).isRequired}),N=class N extends p.Component{render(){const{before:e,after:t}=this.props,n=Math.max(e.hints.length,t.hints.length),i=r.jsx(x,{before:e.question,after:t.question,title:"Question",showAlignmentOptions:!1,showSeparator:!0}),l=r.jsx(D,{before:e.answerArea,after:t.answerArea,title:"Question extras"}),u=_.times(n,function(y){return r.jsx(x,{before:y{}};let v=A;const O=s.StyleSheet.create({baseButton:{top:"0",fontSize:"11px",padding:"3px 10px",backgroundRepeat:"repeat-x",borderColor:` rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25) diff --git a/assets/index-RygV29-W.js b/assets/index-aeV4xcSr.js similarity index 93% rename from assets/index-RygV29-W.js rename to assets/index-aeV4xcSr.js index c2faf7fbaa..abfb3a6106 100644 --- a/assets/index-RygV29-W.js +++ b/assets/index-aeV4xcSr.js @@ -1 +1 @@ -import{m as b,a as d,G as S,K as B,P as L,g as C,L as H,b as u,v as g,w as y,c as I,E as h,$ as k,y as P,d as W,N as A,e as F,D as x,x as D,C as R,f,S as v,R as E,I as M,h as N,i as q,A as w,F as O,j as U,k as Z,l as j,W as z,n as G,T as J,t as K,o as Q,p as V,q as X,r as Y,s as _,u as $,z as aa,B as sa,H as oa,J as ta,M as ea,V as ra,O as pa,Q as ia,U as na,X as ma,Y as la,Z as ca,_ as Ta,a0 as ba,a1 as da,a2 as Sa,a3 as Ba,a4 as La,a5 as Ca,a6 as Ha,a7 as ua,a8 as ga,a9 as ya,aa as Ia,ab as ha,ac as ka,ad as Pa}from"./DocsRenderer-CFRXHY34-0Sl8y62n.js";import"./iframe-ZJ6Y6Oqt.js";import"../sb-preview/runtime.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./jsx-runtime-63Ea5SlK.js";import"./index-9gkyvru-.js";import"./index-4FLvW62B.js";import"./index-mQRHDdot.js";import"./index-PPLHz8o0.js";import"./react-18-8FLnVqma.js";import"./client-Rb4DelHy.js";export{b as A,d as ActionBar,S as AddonPanel,B as Badge,L as Bar,C as Blockquote,H as Button,u as ClipboardCode,g as Code,y as DL,I as Div,h as DocumentWrapper,k as EmptyTabContent,P as ErrorFormatter,W as FlexBar,A as Form,F as H1,x as H2,D as H3,R as H4,f as H5,v as H6,E as HR,M as IconButton,N as IconButtonSkeleton,q as Icons,w as Img,O as LI,U as Link,Z as ListItem,j as Loader,z as Modal,G as OL,J as P,K as Placeholder,Q as Pre,V as ResetWrapper,X as ScrollArea,Y as Separator,_ as Spaced,$ as Span,aa as StorybookIcon,sa as StorybookLogo,oa as Symbols,ta as SyntaxHighlighter,ea as TT,ra as TabBar,pa as TabButton,ia as TabWrapper,na as Table,ma as Tabs,la as TabsState,ca as TooltipLinkList,Ta as TooltipMessage,ba as TooltipNote,da as UL,Sa as WithTooltip,Ba as WithTooltipPure,La as Zoom,Ca as codeCommon,Ha as components,ua as createCopyToClipboardFunction,ga as getStoryHref,ya as icons,Ia as interleaveSeparators,ha as nameSpaceClassNames,ka as resetComponents,Pa as withReset}; +import{m as b,a as d,G as S,K as B,P as L,g as C,L as H,b as u,v as g,w as y,c as I,E as h,$ as k,y as P,d as W,N as A,e as F,D as x,x as D,C as R,f,S as v,R as E,I as M,h as N,i as q,A as w,F as O,j as U,k as Z,l as j,W as z,n as G,T as J,t as K,o as Q,p as V,q as X,r as Y,s as _,u as $,z as aa,B as sa,H as oa,J as ta,M as ea,V as ra,O as pa,Q as ia,U as na,X as ma,Y as la,Z as ca,_ as Ta,a0 as ba,a1 as da,a2 as Sa,a3 as Ba,a4 as La,a5 as Ca,a6 as Ha,a7 as ua,a8 as ga,a9 as ya,aa as Ia,ab as ha,ac as ka,ad as Pa}from"./DocsRenderer-CFRXHY34-L8h3Z5pz.js";import"./iframe-DrKPbhiz.js";import"../sb-preview/runtime.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./jsx-runtime-63Ea5SlK.js";import"./index-9gkyvru-.js";import"./index-4FLvW62B.js";import"./index-mQRHDdot.js";import"./index-PPLHz8o0.js";import"./react-18-8FLnVqma.js";import"./client-Rb4DelHy.js";export{b as A,d as ActionBar,S as AddonPanel,B as Badge,L as Bar,C as Blockquote,H as Button,u as ClipboardCode,g as Code,y as DL,I as Div,h as DocumentWrapper,k as EmptyTabContent,P as ErrorFormatter,W as FlexBar,A as Form,F as H1,x as H2,D as H3,R as H4,f as H5,v as H6,E as HR,M as IconButton,N as IconButtonSkeleton,q as Icons,w as Img,O as LI,U as Link,Z as ListItem,j as Loader,z as Modal,G as OL,J as P,K as Placeholder,Q as Pre,V as ResetWrapper,X as ScrollArea,Y as Separator,_ as Spaced,$ as Span,aa as StorybookIcon,sa as StorybookLogo,oa as Symbols,ta as SyntaxHighlighter,ea as TT,ra as TabBar,pa as TabButton,ia as TabWrapper,na as Table,ma as Tabs,la as TabsState,ca as TooltipLinkList,Ta as TooltipMessage,ba as TooltipNote,da as UL,Sa as WithTooltip,Ba as WithTooltipPure,La as Zoom,Ca as codeCommon,Ha as components,ua as createCopyToClipboardFunction,ga as getStoryHref,ya as icons,Ia as interleaveSeparators,ha as nameSpaceClassNames,ka as resetComponents,Pa as withReset}; diff --git a/assets/interactive-graph-editor-kVA-32xF.js b/assets/interactive-graph-editor-aOqBZtl-.js similarity index 99% rename from assets/interactive-graph-editor-kVA-32xF.js rename to assets/interactive-graph-editor-aOqBZtl-.js index 84a999d6e0..1edeaca86c 100644 --- a/assets/interactive-graph-editor-kVA-32xF.js +++ b/assets/interactive-graph-editor-aOqBZtl-.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{U as pe}from"./util-AYeX86gl.js";import{l as ve,s as we,e as Ue}from"./svg-image-FcZanvM1.js";import{g as fe,f as ke,h as qe,i as Te,j as Ae,k as Re,n as Ce,o as xe,q as Oe,r as He,s as Ke}from"./article-renderer-h_m-tvVP.js";import{_ as C}from"./jquery-yG1GhClm.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import{m as Be,n as Xe}from"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as Qe}from"./components-2XngBvY8.js";import{i as Ye}from"./constants-iPV6vHZm.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import{w as je}from"./index-J2t_5nK1.js";import{i as y}from"./tiny-invariant-bHgPayXn.js";import"./index-smZ6iCr_.js";import{V as d}from"./index-0DbkllkJ.js";import{S as x,O as m}from"./answer-choices-o46t7GFm.js";import{T as Ze,a as Je,C as F}from"./index-V5gl6frG.js";import{s as i,c,a as H}from"./index-deFLJwr4.js";import{c as Ne,f as D,L as h,a as K,b as S}from"./index-18qWGOW7.js";import{l as f}from"./index-awljIyHI.js";import{r as P}from"./index-6oxdNXpR.js";import{H as B}from"./heading-1izW0-GJ.js";import{S as g}from"./index-nqMmpXbO.js";import{L as A,I as er}from"./interactive-graph-settings-pw3hKJzp.js";import{L as rr}from"./locked-figures-section-y3ppaDa3.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{B as nr}from"./choice-Xr-SKHrB.js";import{C as b,P as tr}from"./locked-label-settings-6ht0io0O.js";import{S as ar}from"./scrollless-number-text-field-d5PK69vy.js";const G="unlimited",Pe=n=>{const r=parseInt(n,10);return isNaN(r)||r===0?G:r},We=({numPoints:n=1,onChange:r})=>e.jsx(x,{selectedValue:`${n}`,onChange:t=>{r(Pe(t))},placeholder:"",style:ir.singleSelectShort,children:[...[...Array(7).keys()].map(t=>e.jsx(m,{value:`${t}`,label:`${t} point${t>1?"s":""}`},t)),e.jsx(m,{value:G,label:"unlimited"},"unlimited")]}),ir=f.StyleSheet.create({singleSelectShort:{height:26}});We.__docgenInfo={description:"",methods:[],displayName:"GraphPointsCountSelector",props:{numPoints:{required:!1,tsType:{name:"union",raw:"number | typeof UNLIMITED",elements:[{name:"number"},{name:"UNLIMITED"}]},description:"",defaultValue:{value:"1",computed:!1}},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(points: PointValue) => void",signature:{arguments:[{type:{name:"union",raw:"number | typeof UNLIMITED",elements:[{name:"number"},{name:"UNLIMITED"}]},name:"points"}],return:{name:"void"}}},description:""}}};const Ie=n=>e.jsxs(x,{selectedValue:n.graphType,onChange:n.onChange,placeholder:"Select an answer type",style:sr.singleSelectShort,children:[n.showNoneOption&&e.jsx(m,{value:"none",label:"None"}),e.jsx(m,{value:"linear",label:"Linear function"}),e.jsx(m,{value:"quadratic",label:"Quadratic function"}),e.jsx(m,{value:"sinusoid",label:"Sinusoid function"}),e.jsx(m,{value:"circle",label:"Circle"}),e.jsx(m,{value:"point",label:"Point(s)"}),e.jsx(m,{value:"linear-system",label:"Linear System"}),e.jsx(m,{value:"polygon",label:"Polygon"}),e.jsx(m,{value:"segment",label:"Line Segment(s)"}),e.jsx(m,{value:"ray",label:"Ray"}),e.jsx(m,{value:"angle",label:"Angle"})]}),sr=f.StyleSheet.create({singleSelectShort:{height:26}});Ie.__docgenInfo={description:"",methods:[],displayName:"GraphTypeSelector",props:{graphType:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(newGraphType: string) => void",signature:{arguments:[{type:{name:"string"},name:"newGraphType"}],return:{name:"void"}}},description:""},showNoneOption:{required:!0,tsType:{name:"boolean"},description:""}}};function Le(n){return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"Correct Answer",isOpen:!0,isCollapsible:!1}),e.jsxs(d,{children:[e.jsxs(d,{children:[e.jsx(Ne,{style:{paddingTop:i.xxSmall_6,paddingBottom:i.xxSmall_6,color:c.offBlack64},children:"Graph the correct answer in the graph below and ensure the equation or point coordinates displayed represent the correct answer."}),e.jsx(D,{style:{fontSize:12,backgroundColor:"#eee",paddingInline:i.xxSmall_6,borderColor:"#ccc",borderStyle:"solid",borderWidth:1},children:n.equationString})]}),n.children]})]})}Le.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphCorrectAnswer",props:{equationString:{required:!0,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};function Ee(n){const{ariaLabelValue:r,ariaDescriptionValue:t,onChange:a}=n,[s,u]=P.useState(!0);return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"Description",isCollapsible:!0,isOpen:s,onToggle:u}),s&&e.jsxs(d,{children:[e.jsx(Ne,{style:M.caption,children:"Use these fields to describe the graph as a whole. These are used by screen readers to describe content to users who may be visually impaired."}),e.jsxs(h,{tag:"label",children:["Title",e.jsx(Ze,{value:r,onChange:l=>a({fullGraphAriaLabel:l||void 0}),style:M.spaceAbove})]}),e.jsx(g,{size:i.small_12}),e.jsxs(h,{tag:"label",children:["Description",e.jsx(Je,{rows:8,resizeType:"vertical",value:t,onChange:l=>a({fullGraphAriaDescription:l||void 0}),style:M.spaceAbove})]})]})]})}const M=f.StyleSheet.create({caption:{color:c.offBlack64,paddingTop:i.xxSmall_6,paddingBottom:i.xxSmall_6},spaceAbove:{marginTop:i.xxxSmall_4}});Ee.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphDescription",props:{ariaLabelValue:{required:!0,tsType:{name:"string"},description:""},ariaDescriptionValue:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(graphProps: Partial) => void",signature:{arguments:[{type:{name:"Partial",elements:[{name:"signature",type:"object",raw:`{ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{U as pe}from"./util-AYeX86gl.js";import{l as ve,s as we,e as Ue}from"./svg-image-FcZanvM1.js";import{g as fe,f as ke,h as qe,i as Te,j as Ae,k as Re,n as Ce,o as xe,q as Oe,r as He,s as Ke}from"./article-renderer-h_m-tvVP.js";import{_ as C}from"./jquery-yG1GhClm.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import{m as Be,n as Xe}from"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as Qe}from"./components-2XngBvY8.js";import{i as Ye}from"./constants-iPV6vHZm.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import{w as je}from"./index-J2t_5nK1.js";import{i as y}from"./tiny-invariant-bHgPayXn.js";import"./index-smZ6iCr_.js";import{V as d}from"./index-0DbkllkJ.js";import{S as x,O as m}from"./answer-choices-o46t7GFm.js";import{T as Ze,a as Je,C as F}from"./index-V5gl6frG.js";import{s as i,c,a as H}from"./index-deFLJwr4.js";import{c as Ne,f as D,L as h,a as K,b as S}from"./index-18qWGOW7.js";import{l as f}from"./index-awljIyHI.js";import{r as P}from"./index-6oxdNXpR.js";import{H as B}from"./heading-1izW0-GJ.js";import{S as g}from"./index-nqMmpXbO.js";import{L as A,I as er}from"./interactive-graph-settings-pw3hKJzp.js";import{L as rr}from"./locked-figures-section-TVvL2-a2.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{B as nr}from"./choice-Xr-SKHrB.js";import{C as b,P as tr}from"./locked-label-settings-6ht0io0O.js";import{S as ar}from"./scrollless-number-text-field-d5PK69vy.js";const G="unlimited",Pe=n=>{const r=parseInt(n,10);return isNaN(r)||r===0?G:r},We=({numPoints:n=1,onChange:r})=>e.jsx(x,{selectedValue:`${n}`,onChange:t=>{r(Pe(t))},placeholder:"",style:ir.singleSelectShort,children:[...[...Array(7).keys()].map(t=>e.jsx(m,{value:`${t}`,label:`${t} point${t>1?"s":""}`},t)),e.jsx(m,{value:G,label:"unlimited"},"unlimited")]}),ir=f.StyleSheet.create({singleSelectShort:{height:26}});We.__docgenInfo={description:"",methods:[],displayName:"GraphPointsCountSelector",props:{numPoints:{required:!1,tsType:{name:"union",raw:"number | typeof UNLIMITED",elements:[{name:"number"},{name:"UNLIMITED"}]},description:"",defaultValue:{value:"1",computed:!1}},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(points: PointValue) => void",signature:{arguments:[{type:{name:"union",raw:"number | typeof UNLIMITED",elements:[{name:"number"},{name:"UNLIMITED"}]},name:"points"}],return:{name:"void"}}},description:""}}};const Ie=n=>e.jsxs(x,{selectedValue:n.graphType,onChange:n.onChange,placeholder:"Select an answer type",style:sr.singleSelectShort,children:[n.showNoneOption&&e.jsx(m,{value:"none",label:"None"}),e.jsx(m,{value:"linear",label:"Linear function"}),e.jsx(m,{value:"quadratic",label:"Quadratic function"}),e.jsx(m,{value:"sinusoid",label:"Sinusoid function"}),e.jsx(m,{value:"circle",label:"Circle"}),e.jsx(m,{value:"point",label:"Point(s)"}),e.jsx(m,{value:"linear-system",label:"Linear System"}),e.jsx(m,{value:"polygon",label:"Polygon"}),e.jsx(m,{value:"segment",label:"Line Segment(s)"}),e.jsx(m,{value:"ray",label:"Ray"}),e.jsx(m,{value:"angle",label:"Angle"})]}),sr=f.StyleSheet.create({singleSelectShort:{height:26}});Ie.__docgenInfo={description:"",methods:[],displayName:"GraphTypeSelector",props:{graphType:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(newGraphType: string) => void",signature:{arguments:[{type:{name:"string"},name:"newGraphType"}],return:{name:"void"}}},description:""},showNoneOption:{required:!0,tsType:{name:"boolean"},description:""}}};function Le(n){return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"Correct Answer",isOpen:!0,isCollapsible:!1}),e.jsxs(d,{children:[e.jsxs(d,{children:[e.jsx(Ne,{style:{paddingTop:i.xxSmall_6,paddingBottom:i.xxSmall_6,color:c.offBlack64},children:"Graph the correct answer in the graph below and ensure the equation or point coordinates displayed represent the correct answer."}),e.jsx(D,{style:{fontSize:12,backgroundColor:"#eee",paddingInline:i.xxSmall_6,borderColor:"#ccc",borderStyle:"solid",borderWidth:1},children:n.equationString})]}),n.children]})]})}Le.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphCorrectAnswer",props:{equationString:{required:!0,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};function Ee(n){const{ariaLabelValue:r,ariaDescriptionValue:t,onChange:a}=n,[s,u]=P.useState(!0);return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"Description",isCollapsible:!0,isOpen:s,onToggle:u}),s&&e.jsxs(d,{children:[e.jsx(Ne,{style:M.caption,children:"Use these fields to describe the graph as a whole. These are used by screen readers to describe content to users who may be visually impaired."}),e.jsxs(h,{tag:"label",children:["Title",e.jsx(Ze,{value:r,onChange:l=>a({fullGraphAriaLabel:l||void 0}),style:M.spaceAbove})]}),e.jsx(g,{size:i.small_12}),e.jsxs(h,{tag:"label",children:["Description",e.jsx(Je,{rows:8,resizeType:"vertical",value:t,onChange:l=>a({fullGraphAriaDescription:l||void 0}),style:M.spaceAbove})]})]})]})}const M=f.StyleSheet.create({caption:{color:c.offBlack64,paddingTop:i.xxSmall_6,paddingBottom:i.xxSmall_6},spaceAbove:{marginTop:i.xxxSmall_4}});Ee.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphDescription",props:{ariaLabelValue:{required:!0,tsType:{name:"string"},description:""},ariaDescriptionValue:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(graphProps: Partial) => void",signature:{arguments:[{type:{name:"Partial",elements:[{name:"signature",type:"object",raw:`{ apiOptions: APIOptionsWithDefaults; /** diff --git a/assets/interactive-graph-editor.stories-ncOGdUyN.js b/assets/interactive-graph-editor.stories-WBXWBKn2.js similarity index 96% rename from assets/interactive-graph-editor.stories-ncOGdUyN.js rename to assets/interactive-graph-editor.stories-WBXWBKn2.js index a183730526..48b198d2a2 100644 --- a/assets/interactive-graph-editor.stories-ncOGdUyN.js +++ b/assets/interactive-graph-editor.stories-WBXWBKn2.js @@ -1,4 +1,4 @@ -import{j as X}from"./jsx-runtime-63Ea5SlK.js";import{a as Y}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{r as Z}from"./index-6oxdNXpR.js";import{a as $}from"./flags-for-api-options-buw2ikR-.js";import{I as oo}from"./interactive-graph-editor-kVA-32xF.js";import{g as ro}from"./util-HzFZ8oS9.js";import"./v4-yQnnJER4.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./heading-1izW0-GJ.js";import"./index-wzSCRJFK.js";import"./toggleable-caret-YFS5vs4O.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-y3ppaDa3.js";import"./locked-ellipse-settings-QEWwFykH.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-YpDy59Fp.js";import"./locked-point-settings-zw7k74iG.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-wVPxu4oj.js";import"./locked-vector-settings-ZrkXTg1R.js";const t={apiOptions:$,graph:{type:"segment"},correct:{type:"segment"}},o=ro("point"),dt={title:"PerseusEditor/Widgets/Interactive Graph Editor",component:oo,args:{box:[3e3,3e3],gridStep:[1,1],labels:["x","y"],markings:"graph",range:[[-10,10],[-10,10]],rulerLabel:"",rulerTicks:10,showProtractor:!1,showRuler:!1,showTooltips:!1,snapStep:[1,1],step:[1,1],onChange:Y("onChange")},argTypes:{lockedFigures:{table:{readonly:!0}}}};function r(q,z){const B=(N,Q)=>({...N,...Q}),[J,K]=Z.useReducer(B,z);return X.jsx(q,{...J,onChange:K})}const a={},p={decorators:[r]},e={args:t,decorators:[r]},n={args:{...t,graph:{type:"polygon"},correct:{type:"polygon",numSides:4,showAngles:!0,showSides:!0,snapTo:"angles"}},decorators:[r]},i={args:{...t,lockedFigures:[{...o,coord:[1,1]},{...o,coord:[-1,-1]}]},decorators:[r]},s={args:{...t,lockedFigures:[{type:"line",kind:"line",points:[{...o,coord:[0,2]},{...o,coord:[2,3]}],color:"green",lineStyle:"solid",showPoint1:!1,showPoint2:!1},{type:"line",kind:"ray",points:[{...o,color:"pink",coord:[0,0]},{...o,color:"pink",coord:[4,2]}],color:"pink",lineStyle:"solid",showPoint1:!0,showPoint2:!1},{type:"line",kind:"segment",points:[{...o,color:"grayH",coord:[0,-2]},{...o,color:"grayH",coord:[4,0]}],color:"grayH",lineStyle:"solid",showPoint1:!0,showPoint2:!0}]},decorators:[r]},c={args:{...t,lockedFigures:[{type:"ellipse",center:[0,0],radius:[5,2],angle:0,color:"green",fillStyle:"translucent",strokeStyle:"solid"}]},decorators:[r]},m={args:{...t,lockedFigures:[{type:"polygon",points:[[-9,4],[-6,4],[-6,1],[-9,1]],color:"green",fillStyle:"translucent",strokeStyle:"solid",showVertices:!0}]},decorators:[r]};var l,d,u;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:"{}",...(u=(d=a.parameters)==null?void 0:d.docs)==null?void 0:u.source}}};var g,h,f;p.parameters={...p.parameters,docs:{...(g=p.parameters)==null?void 0:g.docs,source:{originalSource:`{ +import{j as X}from"./jsx-runtime-63Ea5SlK.js";import{a as Y}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{r as Z}from"./index-6oxdNXpR.js";import{a as $}from"./flags-for-api-options-buw2ikR-.js";import{I as oo}from"./interactive-graph-editor-aOqBZtl-.js";import{g as ro}from"./util-HzFZ8oS9.js";import"./v4-yQnnJER4.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./heading-1izW0-GJ.js";import"./index-wzSCRJFK.js";import"./toggleable-caret-YFS5vs4O.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-TVvL2-a2.js";import"./locked-ellipse-settings-EZXzWz0x.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-J8lMZ4RB.js";import"./locked-point-settings-tJQmmWj4.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-c4WjOmfA.js";import"./locked-vector-settings-2YztdJIb.js";const t={apiOptions:$,graph:{type:"segment"},correct:{type:"segment"}},o=ro("point"),dt={title:"PerseusEditor/Widgets/Interactive Graph Editor",component:oo,args:{box:[3e3,3e3],gridStep:[1,1],labels:["x","y"],markings:"graph",range:[[-10,10],[-10,10]],rulerLabel:"",rulerTicks:10,showProtractor:!1,showRuler:!1,showTooltips:!1,snapStep:[1,1],step:[1,1],onChange:Y("onChange")},argTypes:{lockedFigures:{table:{readonly:!0}}}};function r(q,z){const B=(N,Q)=>({...N,...Q}),[J,K]=Z.useReducer(B,z);return X.jsx(q,{...J,onChange:K})}const a={},p={decorators:[r]},e={args:t,decorators:[r]},n={args:{...t,graph:{type:"polygon"},correct:{type:"polygon",numSides:4,showAngles:!0,showSides:!0,snapTo:"angles"}},decorators:[r]},i={args:{...t,lockedFigures:[{...o,coord:[1,1]},{...o,coord:[-1,-1]}]},decorators:[r]},s={args:{...t,lockedFigures:[{type:"line",kind:"line",points:[{...o,coord:[0,2]},{...o,coord:[2,3]}],color:"green",lineStyle:"solid",showPoint1:!1,showPoint2:!1},{type:"line",kind:"ray",points:[{...o,color:"pink",coord:[0,0]},{...o,color:"pink",coord:[4,2]}],color:"pink",lineStyle:"solid",showPoint1:!0,showPoint2:!1},{type:"line",kind:"segment",points:[{...o,color:"grayH",coord:[0,-2]},{...o,color:"grayH",coord:[4,0]}],color:"grayH",lineStyle:"solid",showPoint1:!0,showPoint2:!0}]},decorators:[r]},c={args:{...t,lockedFigures:[{type:"ellipse",center:[0,0],radius:[5,2],angle:0,color:"green",fillStyle:"translucent",strokeStyle:"solid"}]},decorators:[r]},m={args:{...t,lockedFigures:[{type:"polygon",points:[[-9,4],[-6,4],[-6,1],[-9,1]],color:"green",fillStyle:"translucent",strokeStyle:"solid",showVertices:!0}]},decorators:[r]};var l,d,u;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:"{}",...(u=(d=a.parameters)==null?void 0:d.docs)==null?void 0:u.source}}};var g,h,f;p.parameters={...p.parameters,docs:{...(g=p.parameters)==null?void 0:g.docs,source:{originalSource:`{ decorators: [StatefulDecorator] }`,...(f=(h=p.parameters)==null?void 0:h.docs)==null?void 0:f.source}}};var y,k,P,S,w;e.parameters={...e.parameters,docs:{...(y=e.parameters)==null?void 0:y.docs,source:{originalSource:`{ args: mafsOptions, diff --git a/assets/interactive-graph-editor.stories-1dESAp0m.js b/assets/interactive-graph-editor.stories-YG_3rEFr.js similarity index 95% rename from assets/interactive-graph-editor.stories-1dESAp0m.js rename to assets/interactive-graph-editor.stories-YG_3rEFr.js index b347429084..d741cc7b57 100644 --- a/assets/interactive-graph-editor.stories-1dESAp0m.js +++ b/assets/interactive-graph-editor.stories-YG_3rEFr.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{V as x}from"./index-0DbkllkJ.js";import{S as lt}from"./index-nqMmpXbO.js";import{s as l,c as j}from"./index-deFLJwr4.js";import{L as ct,B as pt}from"./index-18qWGOW7.js";import{a as dt}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{l as mt}from"./index-awljIyHI.js";import{r as s}from"./index-6oxdNXpR.js";import"./index-wBNCUhuP.js";import{i as ut}from"./interactive-graph-question-builder-VBdpjz9Z.js";import{i as ft,s as gt,a as ht,l as bt,b as kt,r as vt,c as St,q as Wt,d as yt,p as Lt,e as Pt,f as Rt,g as r}from"./interactive-graph.testdata--LRl7_OC.js";import{r as It}from"./register-all-widgets-and-editors-for-testing-4tsEoT6X.js";import{E as t}from"./editor-page-with-storybook-preview-OQhZV8v2.js";import{f as a}from"./flags-for-api-options-buw2ikR-.js";import{E as wt}from"./editor-page-IZU6eBRz.js";import"./v4-yQnnJER4.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./version-akiLXZts.js";import"./article-editor-f268t0Bj.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./device-framer-MUDr0WgQ.js";import"./constants-p_UgHLsb.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";import"./viewport-resizer-XdI1AJxV.js";import"./index-0C4KXdeC.js";import"./structured-item-diff-DXp4z5uV.js";import"./text-diff-pKWm8aY9.js";import"./tags-diff-3VjcFXZJ.js";import"./multi-items-IrUZEql6.js";/* empty css */import"./graph-settings-RVCdgmRM.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-whGRFVv8.js";import"./dropdown-editor-aJLNeS97.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor-eqp-b25r.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-kVA-32xF.js";import"./heading-1izW0-GJ.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-y3ppaDa3.js";import"./locked-ellipse-settings-QEWwFykH.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-YpDy59Fp.js";import"./locked-point-settings-zw7k74iG.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-wVPxu4oj.js";import"./locked-vector-settings-ZrkXTg1R.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-z2JL1__O.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-3qfdTkF_.js";import"./sorter-editor-nvFR-j1p.js";import"./item-extras-editor-59uwRwff.js";It();const Ma={title:"PerseusEditor/Widgets/Interactive Graph"},Et=dt("onChange"),c=()=>e.jsx(t,{question:ft}),p=()=>e.jsx(t,{question:gt}),d=()=>e.jsx(t,{question:ht}),m=()=>e.jsx(t,{question:bt}),u=()=>e.jsx(t,{question:kt}),f=()=>e.jsx(t,{question:vt}),g=()=>e.jsx(t,{question:St}),h=()=>e.jsx(t,{question:Wt}),b=()=>e.jsx(t,{question:yt}),k=()=>e.jsx(t,{question:Lt}),v=()=>e.jsx(t,{question:Pt}),S=()=>e.jsx(t,{question:Rt}),W=()=>e.jsx(t,{question:ut().withNoInteractiveFigure().addLockedFunction("5*sin(x)",{color:"red"}).build()}),i=()=>e.jsx(t,{apiOptions:{isMobile:!1,flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!1,"locked-figures-aria":!1,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r});i.parameters={chromatic:{disableSnapshot:!0}};const y=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),L=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!0,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),P=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!0,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),R=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!0,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),I=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!0,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),w=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!0,"locked-function-labels":!1}}},question:r}),E=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!0}}},question:r}),q=()=>e.jsx(t,{question:r}),n=()=>{const[Ke,Xe]=s.useState("phone"),[Ze,et]=s.useState(!1),[tt,ot]=s.useState(),[M,rt]=s.useState(r),[G,at]=s.useState(),[st,it]=s.useState([]),_=s.useRef(null);return s.useEffect(()=>{if(_.current){const o=_.current.getSaveWarnings();it(o)}},[_,M,G]),e.jsxs(x,{style:F.container,children:[e.jsx(wt,{ref:_,apiOptions:{isMobile:!1,flags:a},previewDevice:Ke,onPreviewDeviceChange:o=>Xe(o),developerMode:!0,jsonMode:Ze,answerArea:tt,question:M,hints:G,frameSource:"about:blank",previewURL:"about:blank",itemId:"1",onChange:o=>{Et(o),"jsonMode"in o&&et(o.jsonMode),"answerArea"in o&&ot(o.answerArea),"question"in o&&rt(o.question),"hints"in o&&at(o.hints)}}),e.jsxs(x,{style:F.errorContainer,children:[e.jsx(ct,{children:"Save Warnings:"}),e.jsx(lt,{size:l.small_12}),st.map((o,nt)=>e.jsx(pt,{style:F.errorMessage,children:o},nt))]})]})};n.parameters={chromatic:{disableSnapshot:!0}};const F=mt.StyleSheet.create({container:{flexDirection:"row"},errorContainer:{border:`1px solid ${j.offBlack}`,padding:l.medium_16,flexGrow:1,marginRight:l.xLarge_32,height:"80vh",position:"sticky",top:l.xLarge_32,overflowY:"auto"},errorMessage:{color:j.red,marginBottom:l.small_12}});c.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphWithAriaLabel"};p.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphSegment"};d.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphSegments"};m.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphLinear"};u.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphLinearSystem"};f.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphRay"};g.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphCircle"};h.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphQuadratic"};b.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphSinusoid"};k.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphPoint"};v.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphPolygon"};S.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphAngle"};W.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphNone"};i.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedFiguresCurrent"};y.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedLabelsFlag"};L.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedPointLabelsFlag"};P.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedLineLabelsFlag"};R.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedVectorLabelsFlag"};I.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedEllipseLabelsFlag"};w.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedPolygonLabelsFlag"};E.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedFunctionLabelsFlag"};q.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedFigureLabelsAllFlags"};n.__docgenInfo={description:"",methods:[],displayName:"WithSaveWarnings"};var C,A,Q;c.parameters={...c.parameters,docs:{...(C=c.parameters)==null?void 0:C.docs,source:{originalSource:"(): React.ReactElement => ",...(Q=(A=c.parameters)==null?void 0:A.docs)==null?void 0:Q.source}}};var N,O,D;p.parameters={...p.parameters,docs:{...(N=p.parameters)==null?void 0:N.docs,source:{originalSource:`(): React.ReactElement => { +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{V as x}from"./index-0DbkllkJ.js";import{S as lt}from"./index-nqMmpXbO.js";import{s as l,c as j}from"./index-deFLJwr4.js";import{L as ct,B as pt}from"./index-18qWGOW7.js";import{a as dt}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{l as mt}from"./index-awljIyHI.js";import{r as s}from"./index-6oxdNXpR.js";import"./index-MMN8f7sJ.js";import{i as ut}from"./interactive-graph-question-builder-VBdpjz9Z.js";import{i as ft,s as gt,a as ht,l as bt,b as kt,r as vt,c as St,q as Wt,d as yt,p as Lt,e as Pt,f as Rt,g as r}from"./interactive-graph.testdata--LRl7_OC.js";import{r as It}from"./register-all-widgets-and-editors-for-testing-QKLCyv1G.js";import{E as t}from"./editor-page-with-storybook-preview-Kxt2zK35.js";import{f as a}from"./flags-for-api-options-buw2ikR-.js";import{E as wt}from"./editor-page-lRZ_qmez.js";import"./v4-yQnnJER4.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./version-akiLXZts.js";import"./article-editor-eS0mHgX3.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./device-framer-MUDr0WgQ.js";import"./constants-p_UgHLsb.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";import"./viewport-resizer-XdI1AJxV.js";import"./index-0C4KXdeC.js";import"./structured-item-diff-DXp4z5uV.js";import"./text-diff-pKWm8aY9.js";import"./tags-diff-3VjcFXZJ.js";import"./multi-items-IrUZEql6.js";/* empty css */import"./graph-settings-RVCdgmRM.js";import"./categorizer-editor-w3RL0Wed.js";import"./editor-jsonify-UVC33bjS.js";import"./blur-input-6j4bgLwx.js";import"./definition-editor-mtNl78Ws.js";import"./dropdown-editor-zKHD15eA.js";import"./explanation-editor-jVSk3itt.js";import"./expression-editor--gvmUBTK.js";import"./image-editor-hBd9GH_N.js";import"./input-number-editor-IPEdB_LR.js";import"./interaction-editor-o5mLkBC2.js";import"./interactive-graph-editor-aOqBZtl-.js";import"./heading-1izW0-GJ.js";import"./interactive-graph-settings-pw3hKJzp.js";import"./locked-figures-section-TVvL2-a2.js";import"./locked-ellipse-settings-EZXzWz0x.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./util-HzFZ8oS9.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-J8lMZ4RB.js";import"./locked-point-settings-tJQmmWj4.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-c4WjOmfA.js";import"./locked-vector-settings-2YztdJIb.js";import"./label-image-editor-1OjT5p1R.js";import"./form-wrapped-text-field-NbyiOLVb.js";import"./global-colors-VIVU4Od4.js";import"./answer-choices-muv2VOHH.js";import"./behavior-aLFRIY8r.js";import"./question-markers-1Od9vsFe.js";import"./marker-IyDMvraJ.js";import"./select-image-eeYz-2R-.js";import"./matcher-editor-2MSFAVmw.js";import"./number-line-editor-Fq_hw3be.js";import"./numeric-input-editor-YnVVoF5-.js";import"./phet-simulation-editor-13ErfkdC.js";import"./python-program-editor-YqavN4kp.js";import"./editor-CEQdVGNe.js";import"./sorter-editor-nvFR-j1p.js";import"./item-extras-editor-59uwRwff.js";It();const Ma={title:"PerseusEditor/Widgets/Interactive Graph"},Et=dt("onChange"),c=()=>e.jsx(t,{question:ft}),p=()=>e.jsx(t,{question:gt}),d=()=>e.jsx(t,{question:ht}),m=()=>e.jsx(t,{question:bt}),u=()=>e.jsx(t,{question:kt}),f=()=>e.jsx(t,{question:vt}),g=()=>e.jsx(t,{question:St}),h=()=>e.jsx(t,{question:Wt}),b=()=>e.jsx(t,{question:yt}),k=()=>e.jsx(t,{question:Lt}),v=()=>e.jsx(t,{question:Pt}),S=()=>e.jsx(t,{question:Rt}),W=()=>e.jsx(t,{question:ut().withNoInteractiveFigure().addLockedFunction("5*sin(x)",{color:"red"}).build()}),i=()=>e.jsx(t,{apiOptions:{isMobile:!1,flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!1,"locked-figures-aria":!1,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r});i.parameters={chromatic:{disableSnapshot:!0}};const y=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),L=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!0,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),P=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!0,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),R=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!0,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),I=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!0,"locked-polygon-labels":!1,"locked-function-labels":!1}}},question:r}),w=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!0,"locked-function-labels":!1}}},question:r}),E=()=>e.jsx(t,{apiOptions:{flags:{mafs:{...a.mafs,"interactive-graph-locked-features-labels":!0,"locked-point-labels":!1,"locked-line-labels":!1,"locked-vector-labels":!1,"locked-ellipse-labels":!1,"locked-polygon-labels":!1,"locked-function-labels":!0}}},question:r}),q=()=>e.jsx(t,{question:r}),n=()=>{const[Ke,Xe]=s.useState("phone"),[Ze,et]=s.useState(!1),[tt,ot]=s.useState(),[M,rt]=s.useState(r),[G,at]=s.useState(),[st,it]=s.useState([]),_=s.useRef(null);return s.useEffect(()=>{if(_.current){const o=_.current.getSaveWarnings();it(o)}},[_,M,G]),e.jsxs(x,{style:F.container,children:[e.jsx(wt,{ref:_,apiOptions:{isMobile:!1,flags:a},previewDevice:Ke,onPreviewDeviceChange:o=>Xe(o),developerMode:!0,jsonMode:Ze,answerArea:tt,question:M,hints:G,frameSource:"about:blank",previewURL:"about:blank",itemId:"1",onChange:o=>{Et(o),"jsonMode"in o&&et(o.jsonMode),"answerArea"in o&&ot(o.answerArea),"question"in o&&rt(o.question),"hints"in o&&at(o.hints)}}),e.jsxs(x,{style:F.errorContainer,children:[e.jsx(ct,{children:"Save Warnings:"}),e.jsx(lt,{size:l.small_12}),st.map((o,nt)=>e.jsx(pt,{style:F.errorMessage,children:o},nt))]})]})};n.parameters={chromatic:{disableSnapshot:!0}};const F=mt.StyleSheet.create({container:{flexDirection:"row"},errorContainer:{border:`1px solid ${j.offBlack}`,padding:l.medium_16,flexGrow:1,marginRight:l.xLarge_32,height:"80vh",position:"sticky",top:l.xLarge_32,overflowY:"auto"},errorMessage:{color:j.red,marginBottom:l.small_12}});c.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphWithAriaLabel"};p.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphSegment"};d.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphSegments"};m.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphLinear"};u.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphLinearSystem"};f.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphRay"};g.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphCircle"};h.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphQuadratic"};b.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphSinusoid"};k.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphPoint"};v.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphPolygon"};S.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphAngle"};W.__docgenInfo={description:"",methods:[],displayName:"InteractiveGraphNone"};i.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedFiguresCurrent"};y.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedLabelsFlag"};L.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedPointLabelsFlag"};P.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedLineLabelsFlag"};R.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedVectorLabelsFlag"};I.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedEllipseLabelsFlag"};w.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedPolygonLabelsFlag"};E.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedFunctionLabelsFlag"};q.__docgenInfo={description:"",methods:[],displayName:"MafsWithLockedFigureLabelsAllFlags"};n.__docgenInfo={description:"",methods:[],displayName:"WithSaveWarnings"};var C,A,Q;c.parameters={...c.parameters,docs:{...(C=c.parameters)==null?void 0:C.docs,source:{originalSource:"(): React.ReactElement => ",...(Q=(A=c.parameters)==null?void 0:A.docs)==null?void 0:Q.source}}};var N,O,D;p.parameters={...p.parameters,docs:{...(N=p.parameters)==null?void 0:N.docs,source:{originalSource:`(): React.ReactElement => { return ; }`,...(D=(O=p.parameters)==null?void 0:O.docs)==null?void 0:D.source}}};var V,B,H;d.parameters={...d.parameters,docs:{...(V=d.parameters)==null?void 0:V.docs,source:{originalSource:`(): React.ReactElement => { return ; diff --git a/assets/ke-score-ui-AQ1XUyPU.js b/assets/ke-score-ui-AQ1XUyPU.js deleted file mode 100644 index 5f40b6a891..0000000000 --- a/assets/ke-score-ui-AQ1XUyPU.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{H as t}from"./index-18qWGOW7.js";import{R as r}from"./side-by-side-MBJuyilC.js";const d=({score:s})=>s==null?null:e.jsxs(e.Fragment,{children:[e.jsxs("table",{style:{marginTop:"20px"},children:[e.jsx("thead",{children:e.jsxs("tr",{style:{fontWeight:"bold"},children:[e.jsx("td",{children:"Empty"}),e.jsx("td",{children:"Correct"}),e.jsx("td",{style:{width:"100%"},children:"Message"})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{children:s.empty.toString()}),e.jsx("td",{children:s.correct.toString()}),e.jsx("td",{children:s.message})]})})]}),e.jsx(t,{style:{marginTop:"10px"},children:"Guess"}),e.jsx(r,{quotesOnKeys:!1,enableClipboard:!1,src:s.guess}),e.jsx(t,{style:{marginTop:"10px"},children:"State"}),e.jsx(r,{quotesOnKeys:!1,enableClipboard:!1,src:s.state})]});export{d as K}; diff --git a/assets/ke-score-ui-rxqDzQuA.js b/assets/ke-score-ui-rxqDzQuA.js new file mode 100644 index 0000000000..3bdf4de1c0 --- /dev/null +++ b/assets/ke-score-ui-rxqDzQuA.js @@ -0,0 +1,8 @@ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{H as r}from"./index-18qWGOW7.js";import{R as s}from"./side-by-side-MBJuyilC.js";function t({score:n}){return n==null?null:e.jsxs(e.Fragment,{children:[e.jsxs("table",{style:{marginTop:"20px"},children:[e.jsx("thead",{children:e.jsxs("tr",{style:{fontWeight:"bold"},children:[e.jsx("td",{children:"Empty"}),e.jsx("td",{children:"Correct"}),e.jsx("td",{style:{width:"100%"},children:"Message"})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{children:n.empty.toString()}),e.jsx("td",{children:n.correct.toString()}),e.jsx("td",{children:n.message})]})})]}),e.jsx(r,{style:{marginTop:"10px"},children:"Guess"}),e.jsx(s,{quotesOnKeys:!1,enableClipboard:!1,src:n.guess}),e.jsx(r,{style:{marginTop:"10px"},children:"State"}),e.jsx(s,{quotesOnKeys:!1,enableClipboard:!1,src:n.state})]})}t.__docgenInfo={description:"",methods:[],displayName:"KEScoreUI",props:{score:{required:!0,tsType:{name:"union",raw:"KEScore | null | undefined",elements:[{name:"signature",type:"object",raw:`{ + empty: boolean; + correct: boolean; + message?: string | null | undefined; + suppressAlmostThere?: boolean | null | undefined; + guess: any; + state: any; +}`,signature:{properties:[{key:"empty",value:{name:"boolean",required:!0}},{key:"correct",value:{name:"boolean",required:!0}},{key:"message",value:{name:"union",raw:"string | null | undefined",elements:[{name:"string"},{name:"null"},{name:"undefined"}],required:!1}},{key:"suppressAlmostThere",value:{name:"union",raw:"boolean | null | undefined",elements:[{name:"boolean"},{name:"null"},{name:"undefined"}],required:!1}},{key:"guess",value:{name:"any",required:!0}},{key:"state",value:{name:"any",required:!0}}]}},{name:"null"},{name:"undefined"}]},description:""}}};export{t as K}; diff --git a/assets/locked-ellipse-settings-QEWwFykH.js b/assets/locked-ellipse-settings-EZXzWz0x.js similarity index 62% rename from assets/locked-ellipse-settings-QEWwFykH.js rename to assets/locked-ellipse-settings-EZXzWz0x.js index aae058a5f1..7194227fe1 100644 --- a/assets/locked-ellipse-settings-QEWwFykH.js +++ b/assets/locked-ellipse-settings-EZXzWz0x.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{l as j,a as F}from"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as W}from"./components-2XngBvY8.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{B as V}from"./choice-Xr-SKHrB.js";import{V as p}from"./index-0DbkllkJ.js";import{S as X,O as G}from"./answer-choices-o46t7GFm.js";import{S as d}from"./index-nqMmpXbO.js";import{s,c as h}from"./index-deFLJwr4.js";import{a as w,L as H}from"./index-18qWGOW7.js";import{L as J,p as K}from"./locked-figure-aria-cNSSPrLz.js";import{l as v}from"./index-awljIyHI.js";import{r as Q}from"./index-6oxdNXpR.js";import{S as Y}from"./scrollless-number-text-field-d5PK69vy.js";import{r as $,d as Z}from"./util-qk2aeK8X.js";import{P as ee,C as L,L as re,a as ne}from"./locked-label-settings-6ht0io0O.js";import{C as ae}from"./color-select-aUifoW8Y.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{L as te}from"./line-stroke-select-0OM1Wg3S.js";import{g as le,j as ie,a as oe}from"./util-HzFZ8oS9.js";const _=c=>{const{angle:u,onChange:t}=c,[i,y]=Q.useState($(u).toString());function b(n){y(n),!(isNaN(+n)||n==="")&&t(Z(n))}return e.jsxs(w,{tag:"label",style:q.row,children:["angle (degrees)",e.jsx(d,{size:s.xxSmall_6}),e.jsx(Y,{value:i,onChange:b,style:q.textField}),e.jsx(d,{size:s.xxSmall_6})]})},q=v.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},textField:{width:s.xxxLarge_64}});_.__docgenInfo={description:"",methods:[],displayName:"AngleInput",props:{angle:{required:!0,tsType:{name:"number"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(angle: number) => void",signature:{arguments:[{type:{name:"number"},name:"angle"}],return:{name:"void"}}},description:""}}};const z=c=>{const{color:u,fillStyle:t,strokeStyle:i}=c;return e.jsx(p,{"aria-label":`${u}, stroke ${i}, fill ${t}`,style:[T.container,{border:`4px ${i} ${j[u]}`}],children:e.jsx(p,{style:[T.innerCircle,{backgroundColor:j[u],opacity:t==="white"?0:F[t]}]})})},T=v.StyleSheet.create({container:{outline:`2px solid ${h.offWhite}`,borderRadius:"50%",width:s.xLarge_32,height:s.large_24,backgroundColor:h.white,alignItems:"center",justifyContent:"center"},innerCircle:{width:28,height:20,borderRadius:"50%"}});z.__docgenInfo={description:"",methods:[],displayName:"EllipseSwatch",props:{color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},fillStyle:{required:!0,tsType:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}]},description:""},strokeStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""}}};const{InfoTip:se}=W,P=c=>{var S,C;const{flags:u,center:t,radius:i,angle:y,color:b,labels:n,ariaLabel:A,fillStyle:f,strokeStyle:x,expanded:E,onToggle:I,onChangeProps:m,onMove:R,onRemove:N}=c;async function B(){const r=await ie(n),l=i[0]===i[1];let a="";l?a+=`Circle${r} with radius ${i[0]}`:a+=`Ellipse${r} with x radius ${i[0]} and y radius ${i[1]}`,a+=`, centered at (${t[0]}, ${t[1]})`,!l&&y!==0&&(a+=`, rotated by ${$(y)} degrees`);const g=oe(b,x,f);return a+=g,a}function O(r){const l=r[0]-t[0],a=r[1]-t[1],g={center:r};g.labels=n==null?void 0:n.map(k=>({...k,coord:[k.coord[0]+l,k.coord[1]+a]})),m(g)}function D(r){const l={color:r};l.labels=n==null?void 0:n.map(a=>({...a,color:r})),m(l)}function M(r,l){if(!n)return;const a=[...n];a[l]={...n[l],...r},m({labels:a})}function U(r){if(!n)return;const l=n.filter((a,g)=>g!==r);m({labels:l})}return e.jsxs(ee,{expanded:E,onToggle:I,header:e.jsxs(p,{style:o.row,children:[e.jsx(H,{children:`Ellipse (${t[0]}, ${t[1]}), radius ${i[0]}, ${i[1]}`}),e.jsx(d,{size:s.xSmall_8}),e.jsx(z,{color:c.color,fillStyle:f,strokeStyle:x})]}),children:[e.jsxs(p,{style:o.row,children:[e.jsx(L,{coord:t,style:o.spaceUnder,onChange:O}),e.jsx(p,{style:o.spaceUnder,children:e.jsx(se,{children:"The coordinates for the center of the ellipse."})})]}),e.jsx(L,{coord:i,labels:["x radius","y radius"],style:o.spaceUnder,onChange:r=>m({radius:r})}),e.jsx(_,{angle:y,onChange:r=>m({angle:r})}),e.jsx(d,{size:s.xSmall_8}),e.jsxs(p,{style:[o.row,o.spaceUnder],children:[e.jsx(ae,{selectedValue:b,onChange:D}),e.jsx(d,{size:s.medium_16}),e.jsxs(w,{tag:"label",style:[o.row,o.truncatedWidth],children:["fill",e.jsx(d,{size:s.xxSmall_6}),e.jsx(X,{selectedValue:f,onChange:r=>m({fillStyle:r}),placeholder:"",children:Object.keys(F).map(r=>e.jsx(G,{value:r,label:r},r))})]})]}),e.jsx(te,{selectedValue:x,onChange:r=>m({strokeStyle:r})}),((S=u==null?void 0:u.mafs)==null?void 0:S["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(d,{size:s.small_12}),e.jsx(p,{style:o.horizontalRule}),e.jsx(J,{ariaLabel:A,getPrepopulatedAriaLabel:B,onChangeProps:r=>{m(r)}})]}),((C=u==null?void 0:u.mafs)==null?void 0:C["locked-ellipse-labels"])&&e.jsxs(e.Fragment,{children:[e.jsx(d,{size:s.xxxSmall_4}),e.jsx(p,{style:o.horizontalRule}),e.jsx(d,{size:s.small_12}),e.jsx(w,{children:"Visible labels"}),n==null?void 0:n.map((r,l)=>e.jsx(re,{...r,expanded:!0,onChangeProps:a=>{M(a,l)},onRemove:()=>{U(l)},containerStyle:o.labelContainer})),e.jsx(V,{kind:"tertiary",startIcon:K,onClick:()=>{const r={...le("label"),coord:[t[0],t[1]-((n==null?void 0:n.length)??0)],color:b};m({labels:[...n??[],r]})},style:o.addButton,children:"Add visible label"})]}),e.jsx(ne,{figureType:c.type,onMove:R,onRemove:N})]})},o=v.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},spaceUnder:{marginBottom:s.xSmall_8},truncatedWidth:{minWidth:0},addButton:{alignSelf:"start"},labelContainer:{backgroundColor:h.white},horizontalRule:{height:1,backgroundColor:h.offBlack16}}),Ze=P;P.__docgenInfo={description:"",methods:[],displayName:"LockedEllipseSettings",props:{flags:{required:!1,tsType:{name:'Readonly["flags"]',raw:'APIOptions["flags"]'},description:""},showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},onMove:{required:!0,tsType:{name:"signature",type:"function",raw:"(movement: LockedFigureSettingsMovementType) => void",signature:{arguments:[{type:{name:"union",raw:`| "back" +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{r as F}from"./index-6oxdNXpR.js";import{l as j,a as $}from"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as V}from"./components-2XngBvY8.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{B as X}from"./choice-Xr-SKHrB.js";import{V as p}from"./index-0DbkllkJ.js";import{S as G,O as H}from"./answer-choices-o46t7GFm.js";import{S as d}from"./index-nqMmpXbO.js";import{s,c as h}from"./index-deFLJwr4.js";import{a as w,L as J}from"./index-18qWGOW7.js";import{L as K,p as Q}from"./locked-figure-aria-cNSSPrLz.js";import{l as v}from"./index-awljIyHI.js";import{S as Y}from"./scrollless-number-text-field-d5PK69vy.js";import{r as _,d as Z}from"./util-qk2aeK8X.js";import{P as ee,C as L,L as re,a as ne}from"./locked-label-settings-6ht0io0O.js";import{C as te}from"./color-select-aUifoW8Y.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{L as ae}from"./line-stroke-select-0OM1Wg3S.js";import{g as le,j as ie,a as oe}from"./util-HzFZ8oS9.js";const z=c=>{const{angle:u,onChange:l}=c,[i,y]=F.useState(_(u).toString());function b(n){y(n),!(isNaN(+n)||n==="")&&l(Z(n))}return e.jsxs(w,{tag:"label",style:q.row,children:["angle (degrees)",e.jsx(d,{size:s.xxSmall_6}),e.jsx(Y,{value:i,onChange:b,style:q.textField}),e.jsx(d,{size:s.xxSmall_6})]})},q=v.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},textField:{width:s.xxxLarge_64}});z.__docgenInfo={description:"",methods:[],displayName:"AngleInput",props:{angle:{required:!0,tsType:{name:"number"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(angle: number) => void",signature:{arguments:[{type:{name:"number"},name:"angle"}],return:{name:"void"}}},description:""}}};const P=c=>{const{color:u,fillStyle:l,strokeStyle:i}=c;return e.jsx(p,{"aria-label":`${u}, stroke ${i}, fill ${l}`,style:[T.container,{border:`4px ${i} ${j[u]}`}],children:e.jsx(p,{style:[T.innerCircle,{backgroundColor:j[u],opacity:l==="white"?0:$[l]}]})})},T=v.StyleSheet.create({container:{outline:`2px solid ${h.offWhite}`,borderRadius:"50%",width:s.xLarge_32,height:s.large_24,backgroundColor:h.white,alignItems:"center",justifyContent:"center"},innerCircle:{width:28,height:20,borderRadius:"50%"}});P.__docgenInfo={description:"",methods:[],displayName:"EllipseSwatch",props:{color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},fillStyle:{required:!0,tsType:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}]},description:""},strokeStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""}}};const{InfoTip:se}=V,A=c=>{var S,C;const{flags:u,center:l,radius:i,angle:y,color:b,labels:n,ariaLabel:E,fillStyle:f,strokeStyle:x,expanded:I,onToggle:R,onChangeProps:m,onMove:N,onRemove:B}=c;async function O(){const r=await ie(n),t=i[0]===i[1];let a="";t?a+=`Circle${r} with radius ${i[0]}`:a+=`Ellipse${r} with x radius ${i[0]} and y radius ${i[1]}`,a+=`, centered at (${l[0]}, ${l[1]})`,!t&&y!==0&&(a+=`, rotated by ${_(y)} degrees`);const g=oe(b,x,f);return a+=g,a}function D(r){const t=r[0]-l[0],a=r[1]-l[1],g={center:r};g.labels=n==null?void 0:n.map(k=>({...k,coord:[k.coord[0]+t,k.coord[1]+a]})),m(g)}function M(r){const t={color:r};t.labels=n==null?void 0:n.map(a=>({...a,color:r})),m(t)}function U(r,t){if(!n)return;const a=[...n];a[t]={...n[t],...r},m({labels:a})}function W(r){if(!n)return;const t=n.filter((a,g)=>g!==r);m({labels:t})}return e.jsxs(ee,{expanded:I,onToggle:R,header:e.jsxs(p,{style:o.row,children:[e.jsx(J,{children:`Ellipse (${l[0]}, ${l[1]}), radius ${i[0]}, ${i[1]}`}),e.jsx(d,{size:s.xSmall_8}),e.jsx(P,{color:c.color,fillStyle:f,strokeStyle:x})]}),children:[e.jsxs(p,{style:o.row,children:[e.jsx(L,{coord:l,style:o.spaceUnder,onChange:D}),e.jsx(p,{style:o.spaceUnder,children:e.jsx(se,{children:"The coordinates for the center of the ellipse."})})]}),e.jsx(L,{coord:i,labels:["x radius","y radius"],style:o.spaceUnder,onChange:r=>m({radius:r})}),e.jsx(z,{angle:y,onChange:r=>m({angle:r})}),e.jsx(d,{size:s.xSmall_8}),e.jsxs(p,{style:[o.row,o.spaceUnder],children:[e.jsx(te,{selectedValue:b,onChange:M}),e.jsx(d,{size:s.medium_16}),e.jsxs(w,{tag:"label",style:[o.row,o.truncatedWidth],children:["fill",e.jsx(d,{size:s.xxSmall_6}),e.jsx(G,{selectedValue:f,onChange:r=>m({fillStyle:r}),placeholder:"",children:Object.keys($).map(r=>e.jsx(H,{value:r,label:r},r))})]})]}),e.jsx(ae,{selectedValue:x,onChange:r=>m({strokeStyle:r})}),((S=u==null?void 0:u.mafs)==null?void 0:S["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(d,{size:s.small_12}),e.jsx(p,{style:o.horizontalRule}),e.jsx(K,{ariaLabel:E,getPrepopulatedAriaLabel:O,onChangeProps:r=>{m(r)}})]}),((C=u==null?void 0:u.mafs)==null?void 0:C["locked-ellipse-labels"])&&e.jsxs(e.Fragment,{children:[e.jsx(d,{size:s.xxxSmall_4}),e.jsx(p,{style:o.horizontalRule}),e.jsx(d,{size:s.small_12}),e.jsx(w,{children:"Visible labels"}),n==null?void 0:n.map((r,t)=>F.createElement(re,{...r,key:t,expanded:!0,onChangeProps:a=>{U(a,t)},onRemove:()=>{W(t)},containerStyle:o.labelContainer})),e.jsx(X,{kind:"tertiary",startIcon:Q,onClick:()=>{const r={...le("label"),coord:[l[0],l[1]-((n==null?void 0:n.length)??0)],color:b};m({labels:[...n??[],r]})},style:o.addButton,children:"Add visible label"})]}),e.jsx(ne,{figureType:c.type,onMove:N,onRemove:B})]})},o=v.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},spaceUnder:{marginBottom:s.xSmall_8},truncatedWidth:{minWidth:0},addButton:{alignSelf:"start"},labelContainer:{backgroundColor:h.white},horizontalRule:{height:1,backgroundColor:h.offBlack16}}),Ze=A;A.__docgenInfo={description:"",methods:[],displayName:"LockedEllipseSettings",props:{flags:{required:!1,tsType:{name:'Readonly["flags"]',raw:'APIOptions["flags"]'},description:""},showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},onMove:{required:!0,tsType:{name:"signature",type:"function",raw:"(movement: LockedFigureSettingsMovementType) => void",signature:{arguments:[{type:{name:"union",raw:`| "back" | "backward" | "forward" | "front"`,elements:[{name:"literal",value:'"back"'},{name:"literal",value:'"backward"'},{name:"literal",value:'"forward"'},{name:"literal",value:'"front"'}]},name:"movement"}],return:{name:"void"}}},description:"Called when a movement button (top, up, down, bottom) is pressed."},onRemove:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Called when the delete button is pressed."},expanded:{required:!1,tsType:{name:"boolean"},description:"Whether this accordion is expanded."},onToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(expanded: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"expanded"}],return:{name:"void"}}},description:"Called when the accordion is expanded or collapsed."},type:{required:!0,tsType:{name:"literal",value:'"ellipse"'},description:""},center:{required:!0,tsType:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}]},description:""},radius:{required:!0,tsType:{name:"tuple",raw:"[x: number, y: number]",elements:[{name:"unknown"},{name:"unknown"}]},description:""},angle:{required:!0,tsType:{name:"number"},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},fillStyle:{required:!0,tsType:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}]},description:""},strokeStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ diff --git a/assets/locked-ellipse-settings.stories-OR0OUkSL.js b/assets/locked-ellipse-settings.stories-oyJT5XK1.js similarity index 98% rename from assets/locked-ellipse-settings.stories-OR0OUkSL.js rename to assets/locked-ellipse-settings.stories-oyJT5XK1.js index 3ffc7ba335..c169683b30 100644 --- a/assets/locked-ellipse-settings.stories-OR0OUkSL.js +++ b/assets/locked-ellipse-settings.stories-oyJT5XK1.js @@ -1,4 +1,4 @@ -import{j as d}from"./jsx-runtime-63Ea5SlK.js";import{r as a}from"./index-6oxdNXpR.js";import{L as i}from"./locked-ellipse-settings-QEWwFykH.js";import{g as k}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";const Eo={title:"PerseusEditor/Components/Locked Ellipse Settings",component:i},r=s=>d.jsx(i,{...s}),c={...k("ellipse"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};r.args=c;const o={render:function(){const[t,m]=a.useState(c),p=n=>{m({...t,...n})};return d.jsx(i,{...t,onChangeProps:p})}};o.parameters={chromatic:{disableSnapshot:!0}};const e={render:function(){const[t,m]=a.useState(!0),[p,n]=a.useState(c),R=C=>{n({...p,...C})};return d.jsx(i,{...p,expanded:t,onToggle:m,onChangeProps:R})}};r.__docgenInfo={description:"",methods:[],displayName:"Default"};var l,u,g;r.parameters={...r.parameters,docs:{...(l=r.parameters)==null?void 0:l.docs,source:{originalSource:`(args): React.ReactElement => { +import{j as d}from"./jsx-runtime-63Ea5SlK.js";import{r as a}from"./index-6oxdNXpR.js";import{L as i}from"./locked-ellipse-settings-EZXzWz0x.js";import{g as k}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";const Eo={title:"PerseusEditor/Components/Locked Ellipse Settings",component:i},r=s=>d.jsx(i,{...s}),c={...k("ellipse"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};r.args=c;const o={render:function(){const[t,m]=a.useState(c),p=n=>{m({...t,...n})};return d.jsx(i,{...t,onChangeProps:p})}};o.parameters={chromatic:{disableSnapshot:!0}};const e={render:function(){const[t,m]=a.useState(!0),[p,n]=a.useState(c),R=C=>{n({...p,...C})};return d.jsx(i,{...p,expanded:t,onToggle:m,onChangeProps:R})}};r.__docgenInfo={description:"",methods:[],displayName:"Default"};var l,u,g;r.parameters={...r.parameters,docs:{...(l=r.parameters)==null?void 0:l.docs,source:{originalSource:`(args): React.ReactElement => { return ; }`,...(g=(u=r.parameters)==null?void 0:u.docs)==null?void 0:g.source}}};var P,f,x;o.parameters={...o.parameters,docs:{...(P=o.parameters)==null?void 0:P.docs,source:{originalSource:`{ render: function Render() { diff --git a/assets/locked-figures-section-y3ppaDa3.js b/assets/locked-figures-section-TVvL2-a2.js similarity index 99% rename from assets/locked-figures-section-y3ppaDa3.js rename to assets/locked-figures-section-TVvL2-a2.js index 97f39a411d..07c496090a 100644 --- a/assets/locked-figures-section-y3ppaDa3.js +++ b/assets/locked-figures-section-TVvL2-a2.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{B as P}from"./choice-Xr-SKHrB.js";import{V as p,u as I}from"./index-0DbkllkJ.js";import{S as E}from"./index-nqMmpXbO.js";import{s as g,c as F}from"./index-deFLJwr4.js";import{l as f}from"./index-awljIyHI.js";import{r as v}from"./index-6oxdNXpR.js";import{H as z}from"./heading-1izW0-GJ.js";import{a as S,b as _}from"./answer-choices-o46t7GFm.js";import{L as $}from"./locked-ellipse-settings-QEWwFykH.js";import{L as M}from"./locked-function-settings-kUF9h6pg.js";import{L as D}from"./locked-label-settings-6ht0io0O.js";import{L as V}from"./locked-line-settings-YpDy59Fp.js";import{L as G}from"./locked-point-settings-zw7k74iG.js";import{L as U}from"./locked-polygon-settings-wVPxu4oj.js";import{L as H}from"./locked-vector-settings-ZrkXTg1R.js";import{g as K}from"./util-HzFZ8oS9.js";const q=n=>{const{id:h,onChange:o}=n,l=["point","line","vector","ellipse","polygon","function",...n.showLabelsFlag?["label"]:[]];return r.jsx(p,{style:w.container,children:r.jsx(S,{menuText:"Add locked figure",style:w.addElementSelect,children:l.map(u=>r.jsx(_,{label:u,onClick:()=>o(u)},`${h}-${u}`))})})},w=f.StyleSheet.create({container:{marginTop:g.xSmall_8},addElementSelect:{backgroundColor:F.fadedBlue8,borderRadius:g.xxxSmall_4}});q.__docgenInfo={description:"",methods:[],displayName:"LockedFigureSelect",props:{showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},id:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: LockedFigureType) => void",signature:{arguments:[{type:{name:'union["type"]',raw:'LockedFigure["type"]'},name:"value"}],return:{name:"void"}}},description:""}}};const T=n=>{switch(n.type){case"point":return r.jsx(G,{...n});case"line":return r.jsx(V,{...n});case"vector":return r.jsx(H,{...n});case"ellipse":return r.jsx($,{...n});case"polygon":return r.jsx(U,{...n});case"function":return r.jsx(M,{...n});case"label":if(n.showLabelsFlag)return r.jsx(D,{...n});break}return null};T.__docgenInfo={description:"",methods:[],displayName:"LockedFigureSettings",props:{flags:{required:!1,tsType:{name:'Readonly["flags"]',raw:'APIOptions["flags"]'},description:""},showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},onMove:{required:!0,tsType:{name:"signature",type:"function",raw:"(movement: LockedFigureSettingsMovementType) => void",signature:{arguments:[{type:{name:"union",raw:`| "back" +import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{B as P}from"./choice-Xr-SKHrB.js";import{V as p,u as I}from"./index-0DbkllkJ.js";import{S as E}from"./index-nqMmpXbO.js";import{s as g,c as F}from"./index-deFLJwr4.js";import{l as f}from"./index-awljIyHI.js";import{r as v}from"./index-6oxdNXpR.js";import{H as z}from"./heading-1izW0-GJ.js";import{a as S,b as _}from"./answer-choices-o46t7GFm.js";import{L as $}from"./locked-ellipse-settings-EZXzWz0x.js";import{L as M}from"./locked-function-settings-kUF9h6pg.js";import{L as D}from"./locked-label-settings-6ht0io0O.js";import{L as V}from"./locked-line-settings-J8lMZ4RB.js";import{L as G}from"./locked-point-settings-tJQmmWj4.js";import{L as U}from"./locked-polygon-settings-c4WjOmfA.js";import{L as H}from"./locked-vector-settings-2YztdJIb.js";import{g as K}from"./util-HzFZ8oS9.js";const q=n=>{const{id:h,onChange:o}=n,l=["point","line","vector","ellipse","polygon","function",...n.showLabelsFlag?["label"]:[]];return r.jsx(p,{style:w.container,children:r.jsx(S,{menuText:"Add locked figure",style:w.addElementSelect,children:l.map(u=>r.jsx(_,{label:u,onClick:()=>o(u)},`${h}-${u}`))})})},w=f.StyleSheet.create({container:{marginTop:g.xSmall_8},addElementSelect:{backgroundColor:F.fadedBlue8,borderRadius:g.xxxSmall_4}});q.__docgenInfo={description:"",methods:[],displayName:"LockedFigureSelect",props:{showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},id:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: LockedFigureType) => void",signature:{arguments:[{type:{name:'union["type"]',raw:'LockedFigure["type"]'},name:"value"}],return:{name:"void"}}},description:""}}};const T=n=>{switch(n.type){case"point":return r.jsx(G,{...n});case"line":return r.jsx(V,{...n});case"vector":return r.jsx(H,{...n});case"ellipse":return r.jsx($,{...n});case"polygon":return r.jsx(U,{...n});case"function":return r.jsx(M,{...n});case"label":if(n.showLabelsFlag)return r.jsx(D,{...n});break}return null};T.__docgenInfo={description:"",methods:[],displayName:"LockedFigureSettings",props:{flags:{required:!1,tsType:{name:'Readonly["flags"]',raw:'APIOptions["flags"]'},description:""},showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},onMove:{required:!0,tsType:{name:"signature",type:"function",raw:"(movement: LockedFigureSettingsMovementType) => void",signature:{arguments:[{type:{name:"union",raw:`| "back" | "backward" | "forward" | "front"`,elements:[{name:"literal",value:'"back"'},{name:"literal",value:'"backward"'},{name:"literal",value:'"forward"'},{name:"literal",value:'"front"'}]},name:"movement"}],return:{name:"void"}}},description:"Called when a movement button (top, up, down, bottom) is pressed."},onRemove:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Called when the delete button is pressed."},expanded:{required:!1,tsType:{name:"boolean"},description:"Whether this accordion is expanded."},onToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(expanded: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"expanded"}],return:{name:"void"}}},description:"Called when the accordion is expanded or collapsed."}}};const A=n=>{const h=Array((n.figures??[]).length).fill(!1),[o,l]=v.useState(h),[u,R]=v.useState(!0),c=I().get("locked-figures-section"),{figures:a,onChange:m}=n;function O(e){const i={lockedFigures:[...a||[],K(e)]};m(i),l([...o,!0])}function C(e,t){if(e===0&&(t==="back"||t==="backward")||a&&e===a.length-1&&(t==="front"||t==="forward"))return;const s=[...a||[]],d=[...o],[y]=s.splice(e,1);switch(d.splice(e,1),t){case"back":s.unshift(y),d.unshift(!0);break;case"backward":s.splice(e-1,0,y),d.splice(e-1,0,!0);break;case"forward":s.splice(e+1,0,y),d.splice(e+1,0,!0);break;case"front":s.push(y),d.push(!0);break}m({lockedFigures:s}),l(d)}function x(e){if(window.confirm("Are you sure you want to delete this figure?")){const t=a||[];m({lockedFigures:[...t.slice(0,e),...t.slice(e+1)]});const i=[...o];i.splice(e,1),l(i)}}function L(e,t){const i=a||[],s={lockedFigures:[...i.slice(0,e),{...i[e],...t},...i.slice(e+1)]};m(s)}function j(e){l(Array(a==null?void 0:a.length).fill(e))}const b=o.every(e=>!e),N=b?"Expand all":"Collapse all",W=!!(a!=null&&a.length);return r.jsxs(r.Fragment,{children:[r.jsx(z,{title:"Locked Figures",isOpen:u,onToggle:()=>R(!u),isCollapsible:!0}),u&&r.jsxs(p,{children:[a==null?void 0:a.map((e,t)=>r.jsx(T,{flags:n.flags,showLabelsFlag:n.showLabelsFlag,expanded:o[t],onToggle:i=>{const s=[...o];s[t]=i,l(s)},...e,onChangeProps:i=>L(t,i),onMove:i=>C(t,i),onRemove:()=>x(t)},`${c}-locked-${e}-${t}`)),r.jsxs(p,{style:k.buttonContainer,children:[r.jsx(q,{showLabelsFlag:n.showLabelsFlag,id:`${c}-select`,onChange:O}),r.jsx(E,{size:g.small_12}),W&&r.jsx(P,{kind:"secondary",onClick:()=>j(b),style:k.button,children:N})]})]})]})},k=f.StyleSheet.create({buttonContainer:{flexDirection:"row",alignItems:"center"},button:{marginTop:g.xSmall_8,flexGrow:1}}),me=A;A.__docgenInfo={description:"",methods:[],displayName:"LockedFiguresSection",props:{flags:{required:!1,tsType:{name:'Readonly["flags"]',raw:'APIOptions["flags"]'},description:""},showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},figures:{required:!1,tsType:{name:"Array",elements:[{name:"union",raw:`| LockedPointType diff --git a/assets/locked-figures-section.stories-hk1zdI2v.js b/assets/locked-figures-section.stories-LKWvWkLI.js similarity index 93% rename from assets/locked-figures-section.stories-hk1zdI2v.js rename to assets/locked-figures-section.stories-LKWvWkLI.js index a042bfa364..a701c3b347 100644 --- a/assets/locked-figures-section.stories-hk1zdI2v.js +++ b/assets/locked-figures-section.stories-LKWvWkLI.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{V as R}from"./index-0DbkllkJ.js";import{s as c,c as y}from"./index-deFLJwr4.js";import{l as w}from"./index-awljIyHI.js";import{r as k}from"./index-6oxdNXpR.js";import{L as i}from"./locked-figures-section-y3ppaDa3.js";import{g as d}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./heading-1izW0-GJ.js";import"./index-wzSCRJFK.js";import"./toggleable-caret-YFS5vs4O.js";import"./answer-choices-o46t7GFm.js";import"./minus-bold-ONmDo3Ve.js";import"./renderer-yXFj-6ty.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./index-J2t_5nK1.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./util-AYeX86gl.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./locked-ellipse-settings-QEWwFykH.js";import"./article-renderer-h_m-tvVP.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-YpDy59Fp.js";import"./locked-point-settings-zw7k74iG.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-wVPxu4oj.js";import"./locked-vector-settings-ZrkXTg1R.js";const Wo={title:"PerseusEditor/Components/Locked Figures Section",component:i},r=p=>e.jsx(i,{...p});r.args={};const o={render:function(){const[m,s]=k.useState([]),n=a=>{s(a.lockedFigures)};return e.jsx(i,{figures:m,onChange:n})}},t={render:function(){const[m,s]=k.useState([d("point"),d("line")]),n=a=>{s(a.lockedFigures)};return e.jsx(R,{style:D.prodSizeContainer,children:e.jsx(i,{figures:m,onChange:n})})}},_=310,C=10,j=_+2*C,D=w.StyleSheet.create({prodSizeContainer:{width:j,padding:C,marginInlineStart:c.medium_16,border:`1px solid ${y.offBlack32}`,borderRadius:c.xxxSmall_4}});r.__docgenInfo={description:"",methods:[],displayName:"Default"};var u,g,l;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.docs,source:{originalSource:`(args): React.ReactElement => { +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{V as R}from"./index-0DbkllkJ.js";import{s as c,c as y}from"./index-deFLJwr4.js";import{l as w}from"./index-awljIyHI.js";import{r as k}from"./index-6oxdNXpR.js";import{L as i}from"./locked-figures-section-TVvL2-a2.js";import{g as d}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./heading-1izW0-GJ.js";import"./index-wzSCRJFK.js";import"./toggleable-caret-YFS5vs4O.js";import"./answer-choices-o46t7GFm.js";import"./minus-bold-ONmDo3Ve.js";import"./renderer-yXFj-6ty.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./index-J2t_5nK1.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./util-AYeX86gl.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./locked-ellipse-settings-EZXzWz0x.js";import"./article-renderer-h_m-tvVP.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-figure-aria-cNSSPrLz.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./util-qk2aeK8X.js";import"./locked-label-settings-6ht0io0O.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";import"./locked-function-settings-kUF9h6pg.js";import"./line-swatch-UeqkCmCR.js";import"./locked-line-settings-J8lMZ4RB.js";import"./locked-point-settings-tJQmmWj4.js";import"./labeled-switch-JhwyK92a.js";import"./locked-polygon-settings-c4WjOmfA.js";import"./locked-vector-settings-2YztdJIb.js";const Wo={title:"PerseusEditor/Components/Locked Figures Section",component:i},r=p=>e.jsx(i,{...p});r.args={};const o={render:function(){const[m,s]=k.useState([]),n=a=>{s(a.lockedFigures)};return e.jsx(i,{figures:m,onChange:n})}},t={render:function(){const[m,s]=k.useState([d("point"),d("line")]),n=a=>{s(a.lockedFigures)};return e.jsx(R,{style:D.prodSizeContainer,children:e.jsx(i,{figures:m,onChange:n})})}},_=310,C=10,j=_+2*C,D=w.StyleSheet.create({prodSizeContainer:{width:j,padding:C,marginInlineStart:c.medium_16,border:`1px solid ${y.offBlack32}`,borderRadius:c.xxxSmall_4}});r.__docgenInfo={description:"",methods:[],displayName:"Default"};var u,g,l;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.docs,source:{originalSource:`(args): React.ReactElement => { return ; }`,...(l=(g=r.parameters)==null?void 0:g.docs)==null?void 0:l.source}}};var f,F,S;o.parameters={...o.parameters,docs:{...(f=o.parameters)==null?void 0:f.docs,source:{originalSource:`{ render: function Render() { diff --git a/assets/locked-line-settings-YpDy59Fp.js b/assets/locked-line-settings-J8lMZ4RB.js similarity index 72% rename from assets/locked-line-settings-YpDy59Fp.js rename to assets/locked-line-settings-J8lMZ4RB.js index 1f659b0a40..4f26cf4a8b 100644 --- a/assets/locked-line-settings-YpDy59Fp.js +++ b/assets/locked-line-settings-J8lMZ4RB.js @@ -1,5 +1,5 @@ -import{j as r}from"./jsx-runtime-63Ea5SlK.js";import"./util-AYeX86gl.js";import{e as K}from"./svg-image-FcZanvM1.js";import{B as W}from"./choice-Xr-SKHrB.js";import{V as v}from"./index-0DbkllkJ.js";import{S as Z,O as h}from"./answer-choices-o46t7GFm.js";import{S as y}from"./index-nqMmpXbO.js";import{s as c,c as x}from"./index-deFLJwr4.js";import{L as G,a as C}from"./index-18qWGOW7.js";import{L as H,p as J}from"./locked-figure-aria-cNSSPrLz.js";import{l as Q}from"./index-awljIyHI.js";import{v as b}from"./index-smZ6iCr_.js";import{P as Y,L as ee,a as re}from"./locked-label-settings-6ht0io0O.js";import{C as ne}from"./color-select-aUifoW8Y.js";import{L as ae}from"./line-stroke-select-0OM1Wg3S.js";import{L as le}from"./line-swatch-UeqkCmCR.js";import{L as N}from"./locked-point-settings-zw7k74iG.js";import{g as te,j as T,a as oe}from"./util-HzFZ8oS9.js";const j="The line cannot have length 0.",$=g=>{var P,z;const{flags:d,kind:w,points:p,color:k,lineStyle:L="solid",showPoint1:R,showPoint2:V,labels:n,ariaLabel:_,onChangeProps:t,onMove:X,onRemove:I}=g,[u,s]=p,F=w.charAt(0).toUpperCase()+w.slice(1),M=`${F} (${u.coord[0]}, - ${u.coord[1]}), (${s.coord[0]}, ${s.coord[1]})`,q=K(u.coord,s.coord);async function B(){const e=await T(n),l=await T(u.labels),a=await T(s.labels);let o=`${F}${e} from point${l} at (${u.coord[0]}, ${u.coord[1]}) to point${a} at (${s.coord[0]}, ${s.coord[1]})`;const i=oe(k,L);return o+=i,o}function S(e,l){const a=[...p];a[l]={...p[l],...e};const o=b.midpoint(p[0].coord,p[1].coord),i=b.midpoint(a[0].coord,a[1].coord),A=[i[0]-o[0],i[1]-o[1]],U=n==null?void 0:n.map((f,ie)=>({...f,coord:[f.coord[0]+A[0],f.coord[1]+A[1]]}));t({points:a,labels:U})}function E(e){var a,o;const l=n==null?void 0:n.map(i=>({...i,color:e}));t({color:e,points:[{...u,color:e,labels:(a=u.labels)==null?void 0:a.map(i=>({...i,color:e}))},{...s,color:e,labels:(o=s.labels)==null?void 0:o.map(i=>({...i,color:e}))}],labels:l})}function D(e,l){if(!n)return;const a=[...n];a[l]={...n[l],...e},t({labels:a})}function O(e){if(!n)return;const l=n.filter((a,o)=>o!==e);t({labels:l})}return r.jsxs(Y,{expanded:g.expanded,onToggle:g.onToggle,header:r.jsxs(v,{style:m.row,children:[r.jsx(G,{children:M}),r.jsx(y,{size:c.xSmall_8}),r.jsx(le,{color:k,lineStyle:L})]}),children:[r.jsxs(C,{tag:"label",style:[m.row,m.spaceUnder],children:["kind",r.jsx(y,{size:c.xxxSmall_4}),r.jsxs(Z,{selectedValue:w,onChange:e=>t({kind:e}),placeholder:"",children:[r.jsx(h,{value:"line",label:"line"}),r.jsx(h,{value:"ray",label:"ray"}),r.jsx(h,{value:"segment",label:"segment"})]})]}),r.jsxs(v,{style:m.row,children:[r.jsx(ne,{selectedValue:k,onChange:E}),r.jsx(y,{size:c.small_12}),r.jsx(ae,{selectedValue:L,onChange:e=>t({lineStyle:e})})]}),q&&r.jsx(C,{style:m.errorText,children:j}),r.jsx(N,{flags:d,headerLabel:"Point 1",expanded:!0,showPoint:R,error:q?j:null,...u,onTogglePoint:e=>t({showPoint1:e}),onChangeProps:e=>S(e,0)}),r.jsx(N,{flags:d,headerLabel:"Point 2",expanded:!0,showPoint:V,error:q?j:null,...s,onTogglePoint:e=>t({showPoint2:e}),onChangeProps:e=>S(e,1)}),((P=d==null?void 0:d.mafs)==null?void 0:P["locked-figures-aria"])&&r.jsxs(r.Fragment,{children:[r.jsx(y,{size:c.small_12}),r.jsx(v,{style:m.horizontalRule}),r.jsx(H,{ariaLabel:_,getPrepopulatedAriaLabel:B,onChangeProps:e=>{t(e)}})]}),((z=d==null?void 0:d.mafs)==null?void 0:z["locked-line-labels"])&&r.jsxs(r.Fragment,{children:[r.jsx(y,{size:c.xxxSmall_4}),r.jsx(v,{style:m.horizontalRule}),r.jsx(y,{size:c.small_12}),r.jsx(C,{children:"Visible labels"}),n==null?void 0:n.map((e,l)=>r.jsx(ee,{...e,expanded:!0,onChangeProps:a=>{D(a,l)},onRemove:()=>{O(l)},containerStyle:m.labelContainer})),r.jsx(W,{kind:"tertiary",startIcon:J,onClick:()=>{const e=[0,-1],l=b.add(b.scale(e,(n==null?void 0:n.length)??0),b.midpoint(p[0].coord,p[1].coord)),a={...te("label"),coord:l,color:k};t({labels:[...n??[],a]})},style:m.addButton,children:"Add visible label"})]}),r.jsx(re,{figureType:g.type,onMove:X,onRemove:I})]})},m=Q.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},spaceUnder:{marginBottom:c.xSmall_8},errorText:{color:x.red},addButton:{alignSelf:"start"},horizontalRule:{height:1,backgroundColor:x.offBlack16},labelContainer:{backgroundColor:x.white}}),Te=$;$.__docgenInfo={description:"",methods:[],displayName:"LockedLineSettings",props:{type:{required:!0,tsType:{name:"literal",value:'"line"'},description:""},kind:{required:!0,tsType:{name:"union",raw:'"line" | "ray" | "segment"',elements:[{name:"literal",value:'"line"'},{name:"literal",value:'"ray"'},{name:"literal",value:'"segment"'}]},description:""},points:{required:!0,tsType:{name:"tuple",raw:"[point1: LockedPointType, point2: LockedPointType]",elements:[{name:"unknown"},{name:"unknown"}]},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},lineStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""},showPoint1:{required:!0,tsType:{name:"boolean"},description:""},showPoint2:{required:!0,tsType:{name:"boolean"},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{r as K}from"./index-6oxdNXpR.js";import"./util-AYeX86gl.js";import{e as W}from"./svg-image-FcZanvM1.js";import{B as Z}from"./choice-Xr-SKHrB.js";import{V as v}from"./index-0DbkllkJ.js";import{S as G,O as h}from"./answer-choices-o46t7GFm.js";import{S as y}from"./index-nqMmpXbO.js";import{s as c,c as x}from"./index-deFLJwr4.js";import{L as H,a as C}from"./index-18qWGOW7.js";import{L as J,p as Q}from"./locked-figure-aria-cNSSPrLz.js";import{l as Y}from"./index-awljIyHI.js";import{v as b}from"./index-smZ6iCr_.js";import{P as ee,L as re,a as ne}from"./locked-label-settings-6ht0io0O.js";import{C as ae}from"./color-select-aUifoW8Y.js";import{L as le}from"./line-stroke-select-0OM1Wg3S.js";import{L as te}from"./line-swatch-UeqkCmCR.js";import{L as N}from"./locked-point-settings-tJQmmWj4.js";import{g as oe,j as T,a as ie}from"./util-HzFZ8oS9.js";const j="The line cannot have length 0.",$=k=>{var P,z;const{flags:d,kind:w,points:p,color:g,lineStyle:L="solid",showPoint1:R,showPoint2:V,labels:n,ariaLabel:_,onChangeProps:t,onMove:X,onRemove:M}=k,[u,s]=p,F=w.charAt(0).toUpperCase()+w.slice(1),B=`${F} (${u.coord[0]}, + ${u.coord[1]}), (${s.coord[0]}, ${s.coord[1]})`,q=W(u.coord,s.coord);async function E(){const e=await T(n),a=await T(u.labels),l=await T(s.labels);let o=`${F}${e} from point${a} at (${u.coord[0]}, ${u.coord[1]}) to point${l} at (${s.coord[0]}, ${s.coord[1]})`;const i=ie(g,L);return o+=i,o}function S(e,a){const l=[...p];l[a]={...p[a],...e};const o=b.midpoint(p[0].coord,p[1].coord),i=b.midpoint(l[0].coord,l[1].coord),A=[i[0]-o[0],i[1]-o[1]],U=n==null?void 0:n.map((f,ue)=>({...f,coord:[f.coord[0]+A[0],f.coord[1]+A[1]]}));t({points:l,labels:U})}function I(e){var l,o;const a=n==null?void 0:n.map(i=>({...i,color:e}));t({color:e,points:[{...u,color:e,labels:(l=u.labels)==null?void 0:l.map(i=>({...i,color:e}))},{...s,color:e,labels:(o=s.labels)==null?void 0:o.map(i=>({...i,color:e}))}],labels:a})}function D(e,a){if(!n)return;const l=[...n];l[a]={...n[a],...e},t({labels:l})}function O(e){if(!n)return;const a=n.filter((l,o)=>o!==e);t({labels:a})}return r.jsxs(ee,{expanded:k.expanded,onToggle:k.onToggle,header:r.jsxs(v,{style:m.row,children:[r.jsx(H,{children:B}),r.jsx(y,{size:c.xSmall_8}),r.jsx(te,{color:g,lineStyle:L})]}),children:[r.jsxs(C,{tag:"label",style:[m.row,m.spaceUnder],children:["kind",r.jsx(y,{size:c.xxxSmall_4}),r.jsxs(G,{selectedValue:w,onChange:e=>t({kind:e}),placeholder:"",children:[r.jsx(h,{value:"line",label:"line"}),r.jsx(h,{value:"ray",label:"ray"}),r.jsx(h,{value:"segment",label:"segment"})]})]}),r.jsxs(v,{style:m.row,children:[r.jsx(ae,{selectedValue:g,onChange:I}),r.jsx(y,{size:c.small_12}),r.jsx(le,{selectedValue:L,onChange:e=>t({lineStyle:e})})]}),q&&r.jsx(C,{style:m.errorText,children:j}),r.jsx(N,{flags:d,headerLabel:"Point 1",expanded:!0,showPoint:R,error:q?j:null,...u,onTogglePoint:e=>t({showPoint1:e}),onChangeProps:e=>S(e,0)}),r.jsx(N,{flags:d,headerLabel:"Point 2",expanded:!0,showPoint:V,error:q?j:null,...s,onTogglePoint:e=>t({showPoint2:e}),onChangeProps:e=>S(e,1)}),((P=d==null?void 0:d.mafs)==null?void 0:P["locked-figures-aria"])&&r.jsxs(r.Fragment,{children:[r.jsx(y,{size:c.small_12}),r.jsx(v,{style:m.horizontalRule}),r.jsx(J,{ariaLabel:_,getPrepopulatedAriaLabel:E,onChangeProps:e=>{t(e)}})]}),((z=d==null?void 0:d.mafs)==null?void 0:z["locked-line-labels"])&&r.jsxs(r.Fragment,{children:[r.jsx(y,{size:c.xxxSmall_4}),r.jsx(v,{style:m.horizontalRule}),r.jsx(y,{size:c.small_12}),r.jsx(C,{children:"Visible labels"}),n==null?void 0:n.map((e,a)=>K.createElement(re,{...e,key:a,expanded:!0,onChangeProps:l=>{D(l,a)},onRemove:()=>{O(a)},containerStyle:m.labelContainer})),r.jsx(Z,{kind:"tertiary",startIcon:Q,onClick:()=>{const e=[0,-1],a=b.add(b.scale(e,(n==null?void 0:n.length)??0),b.midpoint(p[0].coord,p[1].coord)),l={...oe("label"),coord:a,color:g};t({labels:[...n??[],l]})},style:m.addButton,children:"Add visible label"})]}),r.jsx(ne,{figureType:k.type,onMove:X,onRemove:M})]})},m=Y.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},spaceUnder:{marginBottom:c.xSmall_8},errorText:{color:x.red},addButton:{alignSelf:"start"},horizontalRule:{height:1,backgroundColor:x.offBlack16},labelContainer:{backgroundColor:x.white}}),Fe=$;$.__docgenInfo={description:"",methods:[],displayName:"LockedLineSettings",props:{type:{required:!0,tsType:{name:"literal",value:'"line"'},description:""},kind:{required:!0,tsType:{name:"union",raw:'"line" | "ray" | "segment"',elements:[{name:"literal",value:'"line"'},{name:"literal",value:'"ray"'},{name:"literal",value:'"segment"'}]},description:""},points:{required:!0,tsType:{name:"tuple",raw:"[point1: LockedPointType, point2: LockedPointType]",elements:[{name:"unknown"},{name:"unknown"}]},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},lineStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""},showPoint1:{required:!0,tsType:{name:"boolean"},description:""},showPoint2:{required:!0,tsType:{name:"boolean"},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ type: "label"; coord: Coord; // TeX-supported string @@ -115,4 +115,4 @@ import{j as r}from"./jsx-runtime-63Ea5SlK.js";import"./util-AYeX86gl.js";import{ text: string; color: LockedFigureColor; size: "small" | "medium" | "large"; -}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}]}],raw:"Partial"},name:"newProps"}],return:{name:"void"}}},description:"Called when the props (points, color, etc.) are updated."}}};export{Te as L}; +}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}]}],raw:"Partial"},name:"newProps"}],return:{name:"void"}}},description:"Called when the props (points, color, etc.) are updated."}}};export{Fe as L}; diff --git a/assets/locked-line-settings.stories-rnFOENAq.js b/assets/locked-line-settings.stories-kBfEklAa.js similarity index 98% rename from assets/locked-line-settings.stories-rnFOENAq.js rename to assets/locked-line-settings.stories-kBfEklAa.js index 2bb1208efa..74495e2b7f 100644 --- a/assets/locked-line-settings.stories-rnFOENAq.js +++ b/assets/locked-line-settings.stories-kBfEklAa.js @@ -1,4 +1,4 @@ -import{j as d}from"./jsx-runtime-63Ea5SlK.js";import{r as n}from"./index-6oxdNXpR.js";import{L as s}from"./locked-line-settings-YpDy59Fp.js";import{g as h}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./svg-image-FcZanvM1.js";import"./index-awljIyHI.js";import"./index-0DbkllkJ.js";import"./index-dnMhQZ-1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-J2t_5nK1.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./index-9gkyvru-.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./choice-Xr-SKHrB.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./media-queries-gbofTbz-.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./answer-choices-o46t7GFm.js";import"./minus-bold-ONmDo3Ve.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./locked-figure-aria-cNSSPrLz.js";import"./article-renderer-h_m-tvVP.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-label-settings-6ht0io0O.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";import"./line-swatch-UeqkCmCR.js";import"./locked-point-settings-zw7k74iG.js";import"./labeled-switch-JhwyK92a.js";const Tt={title:"PerseusEditor/Components/Locked Line Settings",component:s},p=i=>d.jsx(s,{...i}),c={...h("line"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};p.args=c;const m={render:function(){const[e,r]=n.useState(c),t=o=>{r({...e,...o})};return d.jsx(s,{...e,onChangeProps:t})}};m.parameters={chromatic:{disableSnapshot:!0}};const a={render:function(){const[e,r]=n.useState(c),t=o=>{r({...e,...o})};return d.jsx(s,{...e,points:[h("point"),h("point")],expanded:!0,onChangeProps:t})}},u={render:function(){const[e,r]=n.useState(!0),[t,o]=n.useState(c),P=g=>{o({...t,...g})};return d.jsx(s,{...t,expanded:e,onToggle:r,onChangeProps:P})}},l={render:function(){const[e,r]=n.useState(!0),[t,o]=n.useState({...c,kind:"segment",color:"green",lineStyle:"dashed"}),P=g=>{o({...t,...g})};return d.jsx(s,{...t,expanded:e,onToggle:r,onChangeProps:P})}};p.__docgenInfo={description:"",methods:[],displayName:"Default"};var f,x,S;p.parameters={...p.parameters,docs:{...(f=p.parameters)==null?void 0:f.docs,source:{originalSource:`(args): React.ReactElement => { +import{j as d}from"./jsx-runtime-63Ea5SlK.js";import{r as n}from"./index-6oxdNXpR.js";import{L as s}from"./locked-line-settings-J8lMZ4RB.js";import{g as h}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./svg-image-FcZanvM1.js";import"./index-awljIyHI.js";import"./index-0DbkllkJ.js";import"./index-dnMhQZ-1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-J2t_5nK1.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./index-9gkyvru-.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./choice-Xr-SKHrB.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./media-queries-gbofTbz-.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./answer-choices-o46t7GFm.js";import"./minus-bold-ONmDo3Ve.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./locked-figure-aria-cNSSPrLz.js";import"./article-renderer-h_m-tvVP.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-label-settings-6ht0io0O.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./line-stroke-select-0OM1Wg3S.js";import"./line-swatch-UeqkCmCR.js";import"./locked-point-settings-tJQmmWj4.js";import"./labeled-switch-JhwyK92a.js";const Tt={title:"PerseusEditor/Components/Locked Line Settings",component:s},p=i=>d.jsx(s,{...i}),c={...h("line"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};p.args=c;const m={render:function(){const[e,r]=n.useState(c),t=o=>{r({...e,...o})};return d.jsx(s,{...e,onChangeProps:t})}};m.parameters={chromatic:{disableSnapshot:!0}};const a={render:function(){const[e,r]=n.useState(c),t=o=>{r({...e,...o})};return d.jsx(s,{...e,points:[h("point"),h("point")],expanded:!0,onChangeProps:t})}},u={render:function(){const[e,r]=n.useState(!0),[t,o]=n.useState(c),P=g=>{o({...t,...g})};return d.jsx(s,{...t,expanded:e,onToggle:r,onChangeProps:P})}},l={render:function(){const[e,r]=n.useState(!0),[t,o]=n.useState({...c,kind:"segment",color:"green",lineStyle:"dashed"}),P=g=>{o({...t,...g})};return d.jsx(s,{...t,expanded:e,onToggle:r,onChangeProps:P})}};p.__docgenInfo={description:"",methods:[],displayName:"Default"};var f,x,S;p.parameters={...p.parameters,docs:{...(f=p.parameters)==null?void 0:f.docs,source:{originalSource:`(args): React.ReactElement => { return ; }`,...(S=(x=p.parameters)==null?void 0:x.docs)==null?void 0:S.source}}};var R,L,E;m.parameters={...m.parameters,docs:{...(R=m.parameters)==null?void 0:R.docs,source:{originalSource:`{ render: function Render() { diff --git a/assets/locked-point-settings-zw7k74iG.js b/assets/locked-point-settings-tJQmmWj4.js similarity index 52% rename from assets/locked-point-settings-zw7k74iG.js rename to assets/locked-point-settings-tJQmmWj4.js index 1eda096c94..b543c2412a 100644 --- a/assets/locked-point-settings-zw7k74iG.js +++ b/assets/locked-point-settings-tJQmmWj4.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{B as D}from"./choice-Xr-SKHrB.js";import{V as f}from"./index-0DbkllkJ.js";import{S as c}from"./index-nqMmpXbO.js";import{s,c as h}from"./index-deFLJwr4.js";import{L as M,a as N}from"./index-18qWGOW7.js";import{L as V,p as U}from"./locked-figure-aria-cNSSPrLz.js";import{l as E}from"./index-awljIyHI.js";import{P as I,C as W,L as X,a as G}from"./locked-label-settings-6ht0io0O.js";import{C as H}from"./color-select-aUifoW8Y.js";import{C as J,g as K,j as Q,a as Y}from"./util-HzFZ8oS9.js";import{L as q}from"./labeled-switch-JhwyK92a.js";const T=k=>{var L,C,P;const{flags:i,headerLabel:j,coord:l,color:m,filled:v=!0,labels:n,ariaLabel:S,onChangeProps:u,onMove:w,onRemove:g,showPoint:y,error:F,expanded:_,onTogglePoint:x,onToggle:z}=k,d=!w&&!g;async function A(){let a=`Point${await Q(n)} at (${l[0]}, ${l[1]})`;const o=Y(m);return a+=o,a}function R(r){const a={color:r};n&&(a.labels=n.map(o=>({...o,color:r}))),u(a)}function B(r){const a=r[0]-l[0],o=r[1]-l[1],p={coord:r};n&&(p.labels=n.map(b=>({...b,coord:[b.coord[0]+a,b.coord[1]+o]}))),u(p)}function $(r,a){if(!n)return;const o=[...n];o[a]={...n[a],...r},u({labels:o})}function O(r){if(!n)return;const a=n.filter((o,p)=>p!==r);u({labels:a})}return e.jsxs(I,{expanded:_,onToggle:z,containerStyle:d?t.definingContainer:void 0,panelStyle:d?t.definingPanel:void 0,header:e.jsxs(f,{style:t.row,children:[e.jsx(M,{children:`${j||"Point"} (${l[0]}, ${l[1]})`}),e.jsx(c,{size:s.xSmall_8}),e.jsx(J,{color:m,filled:v})]}),children:[e.jsx(W,{coord:l,style:t.spaceUnder,onChange:B,error:!!F}),x&&e.jsx(q,{label:"show point on graph",checked:!!y,style:y&&t.spaceUnder,onChange:x}),(!d||y)&&e.jsxs(e.Fragment,{children:[e.jsx(H,{selectedValue:m,onChange:R,style:t.spaceUnder}),e.jsx(q,{label:"open point",checked:!v,onChange:r=>{u({filled:!r})}})]}),!d&&((L=i==null?void 0:i.mafs)==null?void 0:L["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(c,{size:s.small_12}),e.jsx(f,{style:t.horizontalRule}),e.jsx(V,{ariaLabel:S,getPrepopulatedAriaLabel:A,onChangeProps:r=>{u(r)}})]}),(!d&&((C=i==null?void 0:i.mafs)==null?void 0:C["locked-point-labels"])||d&&((P=i==null?void 0:i.mafs)==null?void 0:P["locked-line-labels"]))&&e.jsxs(e.Fragment,{children:[e.jsx(c,{size:s.xxxSmall_4}),e.jsx(f,{style:t.horizontalRule}),e.jsx(c,{size:s.small_12}),e.jsx(N,{children:"Visible labels"}),n==null?void 0:n.map((r,a)=>e.jsx(X,{...r,containerStyle:!d&&t.lockedPointLabelContainer,expanded:!0,onChangeProps:o=>{$(o,a)},onRemove:()=>{O(a)}})),e.jsx(D,{kind:"tertiary",startIcon:U,onClick:()=>{const r={...K("label"),coord:[l[0]+.5,l[1]-1*((n==null?void 0:n.length)??0)],color:m};u({labels:[...n??[],r]})},style:t.addButton,children:"Add visible label"})]}),g&&e.jsx(G,{figureType:k.type,onMove:w,onRemove:g})]})},t=E.StyleSheet.create({definingContainer:{marginTop:s.xSmall_8,marginBottom:0,marginLeft:-s.xxxSmall_4,marginRight:-s.xxxSmall_4,backgroundColor:h.white},definingPanel:{paddingBottom:s.xxSmall_6},lockedPointLabelContainer:{backgroundColor:h.white},row:{flexDirection:"row",alignItems:"center"},spaceUnder:{marginBottom:s.xSmall_8},addButton:{alignSelf:"start"},horizontalRule:{height:1,backgroundColor:h.offBlack16}}),me=T;T.__docgenInfo={description:"",methods:[],displayName:"LockedPointSettings",props:{type:{required:!0,tsType:{name:"literal",value:'"point"'},description:""},coord:{required:!0,tsType:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}]},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},filled:{required:!0,tsType:{name:"boolean"},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{r as D}from"./index-6oxdNXpR.js";import{B as E}from"./choice-Xr-SKHrB.js";import{V as f}from"./index-0DbkllkJ.js";import{S as c}from"./index-nqMmpXbO.js";import{s,c as h}from"./index-deFLJwr4.js";import{L as M,a as N}from"./index-18qWGOW7.js";import{L as V,p as U}from"./locked-figure-aria-cNSSPrLz.js";import{l as I}from"./index-awljIyHI.js";import{P as W,C as X,L as G,a as H}from"./locked-label-settings-6ht0io0O.js";import{C as J}from"./color-select-aUifoW8Y.js";import{C as K,g as Q,j as Y,a as Z}from"./util-HzFZ8oS9.js";import{L as q}from"./labeled-switch-JhwyK92a.js";const T=k=>{var L,C,P;const{flags:i,headerLabel:j,coord:l,color:d,filled:v=!0,labels:n,ariaLabel:S,onChangeProps:u,onMove:w,onRemove:g,showPoint:y,error:F,expanded:_,onTogglePoint:x,onToggle:z}=k,m=!w&&!g;async function A(){let a=`Point${await Y(n)} at (${l[0]}, ${l[1]})`;const o=Z(d);return a+=o,a}function R(r){const a={color:r};n&&(a.labels=n.map(o=>({...o,color:r}))),u(a)}function B(r){const a=r[0]-l[0],o=r[1]-l[1],p={coord:r};n&&(p.labels=n.map(b=>({...b,coord:[b.coord[0]+a,b.coord[1]+o]}))),u(p)}function $(r,a){if(!n)return;const o=[...n];o[a]={...n[a],...r},u({labels:o})}function O(r){if(!n)return;const a=n.filter((o,p)=>p!==r);u({labels:a})}return e.jsxs(W,{expanded:_,onToggle:z,containerStyle:m?t.definingContainer:void 0,panelStyle:m?t.definingPanel:void 0,header:e.jsxs(f,{style:t.row,children:[e.jsx(M,{children:`${j||"Point"} (${l[0]}, ${l[1]})`}),e.jsx(c,{size:s.xSmall_8}),e.jsx(K,{color:d,filled:v})]}),children:[e.jsx(X,{coord:l,style:t.spaceUnder,onChange:B,error:!!F}),x&&e.jsx(q,{label:"show point on graph",checked:!!y,style:y&&t.spaceUnder,onChange:x}),(!m||y)&&e.jsxs(e.Fragment,{children:[e.jsx(J,{selectedValue:d,onChange:R,style:t.spaceUnder}),e.jsx(q,{label:"open point",checked:!v,onChange:r=>{u({filled:!r})}})]}),!m&&((L=i==null?void 0:i.mafs)==null?void 0:L["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(c,{size:s.small_12}),e.jsx(f,{style:t.horizontalRule}),e.jsx(V,{ariaLabel:S,getPrepopulatedAriaLabel:A,onChangeProps:r=>{u(r)}})]}),(!m&&((C=i==null?void 0:i.mafs)==null?void 0:C["locked-point-labels"])||m&&((P=i==null?void 0:i.mafs)==null?void 0:P["locked-line-labels"]))&&e.jsxs(e.Fragment,{children:[e.jsx(c,{size:s.xxxSmall_4}),e.jsx(f,{style:t.horizontalRule}),e.jsx(c,{size:s.small_12}),e.jsx(N,{children:"Visible labels"}),n==null?void 0:n.map((r,a)=>D.createElement(G,{...r,key:a,containerStyle:!m&&t.lockedPointLabelContainer,expanded:!0,onChangeProps:o=>{$(o,a)},onRemove:()=>{O(a)}})),e.jsx(E,{kind:"tertiary",startIcon:U,onClick:()=>{const r={...Q("label"),coord:[l[0]+.5,l[1]-1*((n==null?void 0:n.length)??0)],color:d};u({labels:[...n??[],r]})},style:t.addButton,children:"Add visible label"})]}),g&&e.jsx(H,{figureType:k.type,onMove:w,onRemove:g})]})},t=I.StyleSheet.create({definingContainer:{marginTop:s.xSmall_8,marginBottom:0,marginLeft:-s.xxxSmall_4,marginRight:-s.xxxSmall_4,backgroundColor:h.white},definingPanel:{paddingBottom:s.xxSmall_6},lockedPointLabelContainer:{backgroundColor:h.white},row:{flexDirection:"row",alignItems:"center"},spaceUnder:{marginBottom:s.xSmall_8},addButton:{alignSelf:"start"},horizontalRule:{height:1,backgroundColor:h.offBlack16}}),ce=T;T.__docgenInfo={description:"",methods:[],displayName:"LockedPointSettings",props:{type:{required:!0,tsType:{name:"literal",value:'"point"'},description:""},coord:{required:!0,tsType:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}]},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},filled:{required:!0,tsType:{name:"boolean"},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ type: "label"; coord: Coord; // TeX-supported string @@ -23,4 +23,4 @@ Defaults to "Point".`},showPoint:{required:!1,tsType:{name:"boolean"},descriptio }`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}],raw:"LockedLabelType[]",required:!1}},{key:"ariaLabel",value:{name:"string",required:!1}}]}}],raw:"Partial"},name:"newProps"}],return:{name:"void"}}},description:"Called when the props (coords, color, etc.) are updated."},expanded:{required:!1,tsType:{name:"boolean"},description:"Whether this accordion is expanded."},onToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(expanded: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"expanded"}],return:{name:"void"}}},description:"Called when the accordion is expanded or collapsed."},onMove:{required:!1,tsType:{name:"signature",type:"function",raw:"(movement: LockedFigureSettingsMovementType) => void",signature:{arguments:[{type:{name:"union",raw:`| "back" | "backward" | "forward" -| "front"`,elements:[{name:"literal",value:'"back"'},{name:"literal",value:'"backward"'},{name:"literal",value:'"forward"'},{name:"literal",value:'"front"'}]},name:"movement"}],return:{name:"void"}}},description:"Called when the point is moved."},onRemove:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Called when the point is removed."}}};export{me as L}; +| "front"`,elements:[{name:"literal",value:'"back"'},{name:"literal",value:'"backward"'},{name:"literal",value:'"forward"'},{name:"literal",value:'"front"'}]},name:"movement"}],return:{name:"void"}}},description:"Called when the point is moved."},onRemove:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Called when the point is removed."}}};export{ce as L}; diff --git a/assets/locked-point-settings.stories-AfdxqPJK.js b/assets/locked-point-settings.stories-NqoZo2gx.js similarity index 98% rename from assets/locked-point-settings.stories-AfdxqPJK.js rename to assets/locked-point-settings.stories-NqoZo2gx.js index 3c09912f3d..7e8369dfdd 100644 --- a/assets/locked-point-settings.stories-AfdxqPJK.js +++ b/assets/locked-point-settings.stories-NqoZo2gx.js @@ -1,4 +1,4 @@ -import{j as c}from"./jsx-runtime-63Ea5SlK.js";import{r as s}from"./index-6oxdNXpR.js";import{L as i}from"./locked-point-settings-zw7k74iG.js";import{g as w}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./index-awljIyHI.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./locked-figure-aria-cNSSPrLz.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-label-settings-6ht0io0O.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./labeled-switch-JhwyK92a.js";const Rt={title:"PerseusEditor/Components/Locked Point Settings",component:i},r=m=>c.jsx(i,{...m}),u={...w("point"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};r.args=u;const n={render:function(){const[t,e]=s.useState(u),o=p=>{e({...t,...p})};return c.jsx(i,{...t,onChangeProps:o})}};n.parameters={chromatic:{disableSnapshot:!0}};const a={render:function(){const[t,e]=s.useState(!0),[o,p]=s.useState(u),P=l=>{p({...o,...l})};return c.jsx(i,{...o,expanded:t,onToggle:e,onChangeProps:P})}},d={render:function(){const[t,e]=s.useState(!0),[o,p]=s.useState(u),P=l=>{p({...o,...l})};return c.jsx(i,{...o,expanded:t,onToggle:e,onChangeProps:P})}};r.__docgenInfo={description:"",methods:[],displayName:"Default"};var g,x,f;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`(args): React.ReactElement => { +import{j as c}from"./jsx-runtime-63Ea5SlK.js";import{r as s}from"./index-6oxdNXpR.js";import{L as i}from"./locked-point-settings-tJQmmWj4.js";import{g as w}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./index-awljIyHI.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./locked-figure-aria-cNSSPrLz.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-label-settings-6ht0io0O.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./labeled-switch-JhwyK92a.js";const Rt={title:"PerseusEditor/Components/Locked Point Settings",component:i},r=m=>c.jsx(i,{...m}),u={...w("point"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};r.args=u;const n={render:function(){const[t,e]=s.useState(u),o=p=>{e({...t,...p})};return c.jsx(i,{...t,onChangeProps:o})}};n.parameters={chromatic:{disableSnapshot:!0}};const a={render:function(){const[t,e]=s.useState(!0),[o,p]=s.useState(u),P=l=>{p({...o,...l})};return c.jsx(i,{...o,expanded:t,onToggle:e,onChangeProps:P})}},d={render:function(){const[t,e]=s.useState(!0),[o,p]=s.useState(u),P=l=>{p({...o,...l})};return c.jsx(i,{...o,expanded:t,onToggle:e,onChangeProps:P})}};r.__docgenInfo={description:"",methods:[],displayName:"Default"};var g,x,f;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`(args): React.ReactElement => { return ; }`,...(f=(x=r.parameters)==null?void 0:x.docs)==null?void 0:f.source}}};var S,h,E;n.parameters={...n.parameters,docs:{...(S=n.parameters)==null?void 0:S.docs,source:{originalSource:`{ render: function Render() { diff --git a/assets/locked-polygon-settings-c4WjOmfA.js b/assets/locked-polygon-settings-c4WjOmfA.js new file mode 100644 index 0000000000..17d8a309a5 --- /dev/null +++ b/assets/locked-polygon-settings-c4WjOmfA.js @@ -0,0 +1,27 @@ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{r as W}from"./index-6oxdNXpR.js";import{l as j,a as F}from"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{B as L}from"./choice-Xr-SKHrB.js";import{V as u}from"./index-0DbkllkJ.js";import{S as O,O as X}from"./answer-choices-o46t7GFm.js";import{P as S,C as G,I as g,L as H,a as J}from"./locked-label-settings-6ht0io0O.js";import{S as y,a as K}from"./index-nqMmpXbO.js";import{c as h,s}from"./index-deFLJwr4.js";import{L as v,a as q}from"./index-18qWGOW7.js";import{p as P,L as Q}from"./locked-figure-aria-cNSSPrLz.js";import{l as A}from"./index-awljIyHI.js";import{C as Y}from"./color-select-aUifoW8Y.js";import{L as Z}from"./labeled-switch-JhwyK92a.js";import{L as ee}from"./line-stroke-select-0OM1Wg3S.js";import{g as re,j as ne,a as oe}from"./util-HzFZ8oS9.js";const te=""+new URL("arrow-fat-down-X5ut-FGw.svg",import.meta.url).href,ae=""+new URL("arrow-fat-left-LxuHjYfJ.svg",import.meta.url).href,le=""+new URL("arrow-fat-right-CxkbbISx.svg",import.meta.url).href,ie=""+new URL("arrow-fat-up-ah2eaaIR.svg",import.meta.url).href,se=""+new URL("minus-circle-9EKbQa8X.svg",import.meta.url).href,R=c=>{const{color:m,fillStyle:l,strokeStyle:p}=c;return e.jsx(u,{"aria-label":`${m}, stroke ${p}, fill ${l}`,style:[T.container,{border:`4px ${p} ${j[m]}`}],children:e.jsx(u,{style:[T.innerSquare,{backgroundColor:j[m],opacity:l==="white"?0:F[l]}]})})},T=A.StyleSheet.create({container:{outline:`2px solid ${h.offWhite}`,width:s.large_24,height:s.large_24,backgroundColor:h.white,alignItems:"center",justifyContent:"center"},innerSquare:{width:20,height:20}});R.__docgenInfo={description:"",methods:[],displayName:"PolygonSwatch",props:{color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},fillStyle:{required:!0,tsType:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}]},description:""},strokeStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""}}};const z=c=>{var x,C;const{flags:m,points:l,color:p,showVertices:_,fillStyle:f,strokeStyle:k,labels:n,ariaLabel:$,expanded:B,onToggle:I,onChangeProps:i,onMove:M,onRemove:U}=c;async function V(){let r=`Polygon${await ne(n)} with ${l.length} sides, vertices at `;r+=l.map(([d,b])=>`(${d}, ${b})`).join(", ");const a=oe(p,k,f);return r+=a,r}function N(o){const r={color:o};r.labels=n==null?void 0:n.map(a=>({...a,color:o})),i(r)}function w(o){switch(o){case"up":i({points:l.map(([r,a])=>[r,a+1]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0],r.coord[1]+1]}))});break;case"down":i({points:l.map(([r,a])=>[r,a-1]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0],r.coord[1]-1]}))});break;case"left":i({points:l.map(([r,a])=>[r-1,a]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0]-1,r.coord[1]]}))});break;case"right":i({points:l.map(([r,a])=>[r+1,a]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0]+1,r.coord[1]]}))});break}}function D(o,r){if(!n)return;const a=[...n];a[r]={...n[r],...o},i({labels:a})}function E(o){if(!n)return;const r=n.filter((a,d)=>d!==o);i({labels:r})}return e.jsxs(S,{expanded:B,onToggle:I,header:e.jsxs(u,{style:t.row,children:[e.jsx(v,{children:`Polygon, ${l.length} sides`}),e.jsx(y,{size:s.xSmall_8}),e.jsx(R,{color:p,fillStyle:f,strokeStyle:k})]}),children:[e.jsxs(u,{style:[t.row,t.spaceUnder],children:[e.jsx(Y,{selectedValue:p,onChange:N}),e.jsx(y,{size:s.medium_16}),e.jsxs(q,{tag:"label",style:[t.row,t.truncatedWidth],children:["fill",e.jsx(y,{size:s.xxSmall_6}),e.jsx(O,{selectedValue:f,onChange:o=>i({fillStyle:o}),placeholder:"",children:Object.keys(F).map(o=>e.jsx(X,{value:o,label:o},o))})]})]}),e.jsx(ee,{selectedValue:k,onChange:o=>i({strokeStyle:o})}),e.jsx(Z,{label:"show vertices",checked:_,onChange:o=>i({showVertices:o}),style:t.spaceUnder}),e.jsxs(S,{header:e.jsx(v,{children:"Points"}),expanded:!0,containerStyle:t.pointAccordionContainer,panelStyle:t.pointAccordionPanel,children:[l.map((o,r)=>{const a=String.fromCharCode(65+r);return e.jsxs(u,{style:[t.row,t.spaceUnder],children:[e.jsx(v,{children:`${a}:`}),e.jsx(y,{size:s.medium_16}),e.jsx(G,{coord:o,labels:["x","y"],onChange:d=>{const b=[...l];b[r]=d,c.onChangeProps({points:b})}}),l.length>3&&e.jsx(g,{"aria-label":`Delete polygon point ${a}`,icon:se,color:"destructive",onClick:()=>{const d=[...l];d.splice(r,1),c.onChangeProps({points:d})},style:t.icon})]},`locked-polygon-point-index-${r}`)}),e.jsxs(u,{style:[t.row,t.polygonActionsContainer],children:[e.jsx(L,{kind:"tertiary",startIcon:P,onClick:()=>{c.onChangeProps({points:[...l,[0,0]]})},children:"Add point"}),e.jsx(K,{}),e.jsxs(u,{style:t.movementButtonsContainer,children:[e.jsx(g,{"aria-label":"Move polygon up",style:t.iconButton,size:"small",icon:ie,onClick:()=>w("up")}),e.jsxs(u,{style:t.row,children:[e.jsx(g,{"aria-label":"Move polygon left",style:t.iconButton,size:"small",icon:ae,onClick:()=>w("left")}),e.jsx(g,{"aria-label":"Move polygon down",style:t.iconButton,size:"small",icon:te,onClick:()=>w("down")}),e.jsx(g,{"aria-label":"Move polygon right",style:t.iconButton,size:"small",icon:le,onClick:()=>w("right")})]})]})]})]}),((x=m==null?void 0:m.mafs)==null?void 0:x["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(y,{size:s.small_12}),e.jsx(u,{style:t.horizontalRule}),e.jsx(Q,{ariaLabel:$,getPrepopulatedAriaLabel:V,onChangeProps:o=>{i(o)}})]}),((C=m==null?void 0:m.mafs)==null?void 0:C["locked-polygon-labels"])&&e.jsxs(e.Fragment,{children:[e.jsx(y,{size:s.xxxSmall_4}),e.jsx(u,{style:t.horizontalRule}),e.jsx(y,{size:s.small_12}),e.jsx(q,{children:"Visible labels"}),n==null?void 0:n.map((o,r)=>W.createElement(H,{...o,key:r,expanded:!0,onChangeProps:a=>{D(a,r)},onRemove:()=>{E(r)},containerStyle:t.labelContainer})),e.jsx(L,{kind:"tertiary",startIcon:P,onClick:()=>{const o={...re("label"),coord:[l[0][0],l[0][1]-((n==null?void 0:n.length)??0)],color:p};i({labels:[...n??[],o]})},style:t.addButton,children:"Add visible label"})]}),e.jsx(J,{figureType:c.type,onMove:M,onRemove:U})]})},t=A.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},pointAccordionContainer:{backgroundColor:h.white},pointAccordionPanel:{alignItems:"start"},icon:{marginInlineStart:s.xxxSmall_4},polygonActionsContainer:{width:"100%"},iconButton:{margin:0},movementButtonsContainer:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:"fit-content"},spaceUnder:{marginBottom:s.xSmall_8},truncatedWidth:{minWidth:0},addButton:{alignSelf:"start"},labelContainer:{backgroundColor:h.white},horizontalRule:{height:1,backgroundColor:h.offBlack16}}),Qe=z;z.__docgenInfo={description:"",methods:[],displayName:"LockedPolygonSettings",props:{flags:{required:!1,tsType:{name:'Readonly["flags"]',raw:'APIOptions["flags"]'},description:""},showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},onMove:{required:!0,tsType:{name:"signature",type:"function",raw:"(movement: LockedFigureSettingsMovementType) => void",signature:{arguments:[{type:{name:"union",raw:`| "back" +| "backward" +| "forward" +| "front"`,elements:[{name:"literal",value:'"back"'},{name:"literal",value:'"backward"'},{name:"literal",value:'"forward"'},{name:"literal",value:'"front"'}]},name:"movement"}],return:{name:"void"}}},description:"Called when a movement button (top, up, down, bottom) is pressed."},onRemove:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Called when the delete button is pressed."},expanded:{required:!1,tsType:{name:"boolean"},description:"Whether this accordion is expanded."},onToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(expanded: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"expanded"}],return:{name:"void"}}},description:"Called when the accordion is expanded or collapsed."},type:{required:!0,tsType:{name:"literal",value:'"polygon"'},description:""},points:{required:!0,tsType:{name:"ReadonlyArray",elements:[{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}]}],raw:"ReadonlyArray"},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},showVertices:{required:!0,tsType:{name:"boolean"},description:""},fillStyle:{required:!0,tsType:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}]},description:""},strokeStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ + type: "label"; + coord: Coord; + // TeX-supported string + text: string; + color: LockedFigureColor; + size: "small" | "medium" | "large"; +}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}],raw:"LockedLabelType[]"},description:""},ariaLabel:{required:!1,tsType:{name:"string"},description:""},onChangeProps:{required:!0,tsType:{name:"signature",type:"function",raw:"(newProps: Partial) => void",signature:{arguments:[{type:{name:"Partial",elements:[{name:"signature",type:"object",raw:`{ + type: "polygon"; + points: ReadonlyArray; + color: LockedFigureColor; + showVertices: boolean; + fillStyle: LockedFigureFillType; + strokeStyle: LockedLineStyle; + labels?: LockedLabelType[]; + ariaLabel?: string; +}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"polygon"',required:!0}},{key:"points",value:{name:"ReadonlyArray",elements:[{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}],raw:"ReadonlyArray",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"showVertices",value:{name:"boolean",required:!0}},{key:"fillStyle",value:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}],required:!0}},{key:"strokeStyle",value:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}],required:!0}},{key:"labels",value:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ + type: "label"; + coord: Coord; + // TeX-supported string + text: string; + color: LockedFigureColor; + size: "small" | "medium" | "large"; +}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}],raw:"LockedLabelType[]",required:!1}},{key:"ariaLabel",value:{name:"string",required:!1}}]}}],raw:"Partial"},name:"newProps"}],return:{name:"void"}}},description:"Called when the props (coords, color, etc.) are updated."}}};export{Qe as L}; diff --git a/assets/locked-polygon-settings-wVPxu4oj.js b/assets/locked-polygon-settings-wVPxu4oj.js deleted file mode 100644 index 3ebc244c5f..0000000000 --- a/assets/locked-polygon-settings-wVPxu4oj.js +++ /dev/null @@ -1,27 +0,0 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{l as j,a as F}from"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{B as L}from"./choice-Xr-SKHrB.js";import{V as u}from"./index-0DbkllkJ.js";import{S as E,O}from"./answer-choices-o46t7GFm.js";import{P as S,C as X,I as g,L as G,a as H}from"./locked-label-settings-6ht0io0O.js";import{S as y,a as J}from"./index-nqMmpXbO.js";import{c as h,s}from"./index-deFLJwr4.js";import{L as v,a as q}from"./index-18qWGOW7.js";import{p as P,L as K}from"./locked-figure-aria-cNSSPrLz.js";import{l as A}from"./index-awljIyHI.js";import{C as Q}from"./color-select-aUifoW8Y.js";import{L as Y}from"./labeled-switch-JhwyK92a.js";import{L as Z}from"./line-stroke-select-0OM1Wg3S.js";import{g as ee,j as re,a as ne}from"./util-HzFZ8oS9.js";const oe=""+new URL("arrow-fat-down-X5ut-FGw.svg",import.meta.url).href,te=""+new URL("arrow-fat-left-LxuHjYfJ.svg",import.meta.url).href,ae=""+new URL("arrow-fat-right-CxkbbISx.svg",import.meta.url).href,le=""+new URL("arrow-fat-up-ah2eaaIR.svg",import.meta.url).href,ie=""+new URL("minus-circle-9EKbQa8X.svg",import.meta.url).href,R=c=>{const{color:m,fillStyle:l,strokeStyle:p}=c;return e.jsx(u,{"aria-label":`${m}, stroke ${p}, fill ${l}`,style:[T.container,{border:`4px ${p} ${j[m]}`}],children:e.jsx(u,{style:[T.innerSquare,{backgroundColor:j[m],opacity:l==="white"?0:F[l]}]})})},T=A.StyleSheet.create({container:{outline:`2px solid ${h.offWhite}`,width:s.large_24,height:s.large_24,backgroundColor:h.white,alignItems:"center",justifyContent:"center"},innerSquare:{width:20,height:20}});R.__docgenInfo={description:"",methods:[],displayName:"PolygonSwatch",props:{color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},fillStyle:{required:!0,tsType:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}]},description:""},strokeStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""}}};const z=c=>{var x,C;const{flags:m,points:l,color:p,showVertices:_,fillStyle:f,strokeStyle:k,labels:n,ariaLabel:$,expanded:B,onToggle:I,onChangeProps:i,onMove:M,onRemove:U}=c;async function V(){let r=`Polygon${await re(n)} with ${l.length} sides, vertices at `;r+=l.map(([d,b])=>`(${d}, ${b})`).join(", ");const a=ne(p,k,f);return r+=a,r}function N(o){const r={color:o};r.labels=n==null?void 0:n.map(a=>({...a,color:o})),i(r)}function w(o){switch(o){case"up":i({points:l.map(([r,a])=>[r,a+1]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0],r.coord[1]+1]}))});break;case"down":i({points:l.map(([r,a])=>[r,a-1]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0],r.coord[1]-1]}))});break;case"left":i({points:l.map(([r,a])=>[r-1,a]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0]-1,r.coord[1]]}))});break;case"right":i({points:l.map(([r,a])=>[r+1,a]),labels:n==null?void 0:n.map(r=>({...r,coord:[r.coord[0]+1,r.coord[1]]}))});break}}function D(o,r){if(!n)return;const a=[...n];a[r]={...n[r],...o},i({labels:a})}function W(o){if(!n)return;const r=n.filter((a,d)=>d!==o);i({labels:r})}return e.jsxs(S,{expanded:B,onToggle:I,header:e.jsxs(u,{style:t.row,children:[e.jsx(v,{children:`Polygon, ${l.length} sides`}),e.jsx(y,{size:s.xSmall_8}),e.jsx(R,{color:p,fillStyle:f,strokeStyle:k})]}),children:[e.jsxs(u,{style:[t.row,t.spaceUnder],children:[e.jsx(Q,{selectedValue:p,onChange:N}),e.jsx(y,{size:s.medium_16}),e.jsxs(q,{tag:"label",style:[t.row,t.truncatedWidth],children:["fill",e.jsx(y,{size:s.xxSmall_6}),e.jsx(E,{selectedValue:f,onChange:o=>i({fillStyle:o}),placeholder:"",children:Object.keys(F).map(o=>e.jsx(O,{value:o,label:o},o))})]})]}),e.jsx(Z,{selectedValue:k,onChange:o=>i({strokeStyle:o})}),e.jsx(Y,{label:"show vertices",checked:_,onChange:o=>i({showVertices:o}),style:t.spaceUnder}),e.jsxs(S,{header:e.jsx(v,{children:"Points"}),expanded:!0,containerStyle:t.pointAccordionContainer,panelStyle:t.pointAccordionPanel,children:[l.map((o,r)=>{const a=String.fromCharCode(65+r);return e.jsxs(u,{style:[t.row,t.spaceUnder],children:[e.jsx(v,{children:`${a}:`}),e.jsx(y,{size:s.medium_16}),e.jsx(X,{coord:o,labels:["x","y"],onChange:d=>{const b=[...l];b[r]=d,c.onChangeProps({points:b})}}),l.length>3&&e.jsx(g,{"aria-label":`Delete polygon point ${a}`,icon:ie,color:"destructive",onClick:()=>{const d=[...l];d.splice(r,1),c.onChangeProps({points:d})},style:t.icon})]},`locked-polygon-point-index-${r}`)}),e.jsxs(u,{style:[t.row,t.polygonActionsContainer],children:[e.jsx(L,{kind:"tertiary",startIcon:P,onClick:()=>{c.onChangeProps({points:[...l,[0,0]]})},children:"Add point"}),e.jsx(J,{}),e.jsxs(u,{style:t.movementButtonsContainer,children:[e.jsx(g,{"aria-label":"Move polygon up",style:t.iconButton,size:"small",icon:le,onClick:()=>w("up")}),e.jsxs(u,{style:t.row,children:[e.jsx(g,{"aria-label":"Move polygon left",style:t.iconButton,size:"small",icon:te,onClick:()=>w("left")}),e.jsx(g,{"aria-label":"Move polygon down",style:t.iconButton,size:"small",icon:oe,onClick:()=>w("down")}),e.jsx(g,{"aria-label":"Move polygon right",style:t.iconButton,size:"small",icon:ae,onClick:()=>w("right")})]})]})]})]}),((x=m==null?void 0:m.mafs)==null?void 0:x["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(y,{size:s.small_12}),e.jsx(u,{style:t.horizontalRule}),e.jsx(K,{ariaLabel:$,getPrepopulatedAriaLabel:V,onChangeProps:o=>{i(o)}})]}),((C=m==null?void 0:m.mafs)==null?void 0:C["locked-polygon-labels"])&&e.jsxs(e.Fragment,{children:[e.jsx(y,{size:s.xxxSmall_4}),e.jsx(u,{style:t.horizontalRule}),e.jsx(y,{size:s.small_12}),e.jsx(q,{children:"Visible labels"}),n==null?void 0:n.map((o,r)=>e.jsx(G,{...o,expanded:!0,onChangeProps:a=>{D(a,r)},onRemove:()=>{W(r)},containerStyle:t.labelContainer})),e.jsx(L,{kind:"tertiary",startIcon:P,onClick:()=>{const o={...ee("label"),coord:[l[0][0],l[0][1]-((n==null?void 0:n.length)??0)],color:p};i({labels:[...n??[],o]})},style:t.addButton,children:"Add visible label"})]}),e.jsx(H,{figureType:c.type,onMove:M,onRemove:U})]})},t=A.StyleSheet.create({row:{display:"flex",flexDirection:"row",alignItems:"center"},pointAccordionContainer:{backgroundColor:h.white},pointAccordionPanel:{alignItems:"start"},icon:{marginInlineStart:s.xxxSmall_4},polygonActionsContainer:{width:"100%"},iconButton:{margin:0},movementButtonsContainer:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:"fit-content"},spaceUnder:{marginBottom:s.xSmall_8},truncatedWidth:{minWidth:0},addButton:{alignSelf:"start"},labelContainer:{backgroundColor:h.white},horizontalRule:{height:1,backgroundColor:h.offBlack16}}),Je=z;z.__docgenInfo={description:"",methods:[],displayName:"LockedPolygonSettings",props:{flags:{required:!1,tsType:{name:'Readonly["flags"]',raw:'APIOptions["flags"]'},description:""},showLabelsFlag:{required:!1,tsType:{name:"boolean"},description:""},onMove:{required:!0,tsType:{name:"signature",type:"function",raw:"(movement: LockedFigureSettingsMovementType) => void",signature:{arguments:[{type:{name:"union",raw:`| "back" -| "backward" -| "forward" -| "front"`,elements:[{name:"literal",value:'"back"'},{name:"literal",value:'"backward"'},{name:"literal",value:'"forward"'},{name:"literal",value:'"front"'}]},name:"movement"}],return:{name:"void"}}},description:"Called when a movement button (top, up, down, bottom) is pressed."},onRemove:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Called when the delete button is pressed."},expanded:{required:!1,tsType:{name:"boolean"},description:"Whether this accordion is expanded."},onToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(expanded: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"expanded"}],return:{name:"void"}}},description:"Called when the accordion is expanded or collapsed."},type:{required:!0,tsType:{name:"literal",value:'"polygon"'},description:""},points:{required:!0,tsType:{name:"ReadonlyArray",elements:[{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}]}],raw:"ReadonlyArray"},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},showVertices:{required:!0,tsType:{name:"boolean"},description:""},fillStyle:{required:!0,tsType:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}]},description:""},strokeStyle:{required:!0,tsType:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}]},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ - type: "label"; - coord: Coord; - // TeX-supported string - text: string; - color: LockedFigureColor; - size: "small" | "medium" | "large"; -}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}],raw:"LockedLabelType[]"},description:""},ariaLabel:{required:!1,tsType:{name:"string"},description:""},onChangeProps:{required:!0,tsType:{name:"signature",type:"function",raw:"(newProps: Partial) => void",signature:{arguments:[{type:{name:"Partial",elements:[{name:"signature",type:"object",raw:`{ - type: "polygon"; - points: ReadonlyArray; - color: LockedFigureColor; - showVertices: boolean; - fillStyle: LockedFigureFillType; - strokeStyle: LockedLineStyle; - labels?: LockedLabelType[]; - ariaLabel?: string; -}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"polygon"',required:!0}},{key:"points",value:{name:"ReadonlyArray",elements:[{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}],raw:"ReadonlyArray",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"showVertices",value:{name:"boolean",required:!0}},{key:"fillStyle",value:{name:"union",raw:'"none" | "white" | "translucent" | "solid"',elements:[{name:"literal",value:'"none"'},{name:"literal",value:'"white"'},{name:"literal",value:'"translucent"'},{name:"literal",value:'"solid"'}],required:!0}},{key:"strokeStyle",value:{name:"union",raw:'"solid" | "dashed"',elements:[{name:"literal",value:'"solid"'},{name:"literal",value:'"dashed"'}],required:!0}},{key:"labels",value:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ - type: "label"; - coord: Coord; - // TeX-supported string - text: string; - color: LockedFigureColor; - size: "small" | "medium" | "large"; -}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}],raw:"LockedLabelType[]",required:!1}},{key:"ariaLabel",value:{name:"string",required:!1}}]}}],raw:"Partial"},name:"newProps"}],return:{name:"void"}}},description:"Called when the props (coords, color, etc.) are updated."}}};export{Je as L}; diff --git a/assets/locked-polygon-settings.stories-cBTGJhJl.js b/assets/locked-polygon-settings.stories-elqLW6gq.js similarity index 98% rename from assets/locked-polygon-settings.stories-cBTGJhJl.js rename to assets/locked-polygon-settings.stories-elqLW6gq.js index 8c5287dc85..4b6c7dfda7 100644 --- a/assets/locked-polygon-settings.stories-cBTGJhJl.js +++ b/assets/locked-polygon-settings.stories-elqLW6gq.js @@ -1,4 +1,4 @@ -import{j as d}from"./jsx-runtime-63Ea5SlK.js";import{r as a}from"./index-6oxdNXpR.js";import{L as i}from"./locked-polygon-settings-wVPxu4oj.js";import{g as C}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./locked-label-settings-6ht0io0O.js";import"./components-2XngBvY8.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./locked-figure-aria-cNSSPrLz.js";import"./labeled-switch-JhwyK92a.js";import"./line-stroke-select-0OM1Wg3S.js";const Sr={title:"PerseusEditor/Components/Locked Polygon Settings",component:i},o=m=>d.jsx(i,{...m}),c={...C("polygon"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};o.args=c;const r={render:function(){const[t,n]=a.useState(c),p=s=>{n({...t,...s})};return d.jsx(i,{...t,onChangeProps:p})}};r.parameters={chromatic:{disableSnapshot:!0}};const e={render:function(){const[t,n]=a.useState(!0),[p,s]=a.useState(c),E=y=>{s({...p,...y})};return d.jsx(i,{...p,expanded:t,onToggle:n,onChangeProps:E})}};o.__docgenInfo={description:"",methods:[],displayName:"Default"};var u,l,g;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:`(args): React.ReactElement => { +import{j as d}from"./jsx-runtime-63Ea5SlK.js";import{r as a}from"./index-6oxdNXpR.js";import{L as i}from"./locked-polygon-settings-c4WjOmfA.js";import{g as C}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./locked-label-settings-6ht0io0O.js";import"./components-2XngBvY8.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./locked-figure-aria-cNSSPrLz.js";import"./labeled-switch-JhwyK92a.js";import"./line-stroke-select-0OM1Wg3S.js";const Sr={title:"PerseusEditor/Components/Locked Polygon Settings",component:i},o=m=>d.jsx(i,{...m}),c={...C("polygon"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};o.args=c;const r={render:function(){const[t,n]=a.useState(c),p=s=>{n({...t,...s})};return d.jsx(i,{...t,onChangeProps:p})}};r.parameters={chromatic:{disableSnapshot:!0}};const e={render:function(){const[t,n]=a.useState(!0),[p,s]=a.useState(c),E=y=>{s({...p,...y})};return d.jsx(i,{...p,expanded:t,onToggle:n,onChangeProps:E})}};o.__docgenInfo={description:"",methods:[],displayName:"Default"};var u,l,g;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:`(args): React.ReactElement => { return ; }`,...(g=(l=o.parameters)==null?void 0:l.docs)==null?void 0:g.source}}};var P,f,x;r.parameters={...r.parameters,docs:{...(P=r.parameters)==null?void 0:P.docs,source:{originalSource:`{ render: function Render() { diff --git a/assets/locked-vector-settings-ZrkXTg1R.js b/assets/locked-vector-settings-2YztdJIb.js similarity index 76% rename from assets/locked-vector-settings-ZrkXTg1R.js rename to assets/locked-vector-settings-2YztdJIb.js index 8739531186..0a1794f3ab 100644 --- a/assets/locked-vector-settings-ZrkXTg1R.js +++ b/assets/locked-vector-settings-2YztdJIb.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import"./util-AYeX86gl.js";import{e as B}from"./svg-image-FcZanvM1.js";import{B as I}from"./choice-Xr-SKHrB.js";import{V as c}from"./index-0DbkllkJ.js";import{S as g}from"./index-nqMmpXbO.js";import{s as u,c as k}from"./index-deFLJwr4.js";import{L as w,a as T}from"./index-18qWGOW7.js";import{L as E,p as D}from"./locked-figure-aria-cNSSPrLz.js";import{l as O}from"./index-awljIyHI.js";import{v as m}from"./index-smZ6iCr_.js";import{P as L,C as j,L as U,a as W}from"./locked-label-settings-6ht0io0O.js";import{C as G}from"./color-select-aUifoW8Y.js";import{L as H}from"./line-swatch-UeqkCmCR.js";import{g as J,j as K,a as Q}from"./util-HzFZ8oS9.js";const Y="The vector cannot have length 0.",F=p=>{var h,x;const{flags:s,points:q,color:y,labels:n,ariaLabel:S,onChangeProps:d,onMove:P,onRemove:z}=p,[o,i]=q,A=`Vector (${o[0]}, ${o[1]}), (${i[0]}, ${i[1]})`,b=B(o,i);async function N(){let a=`Vector${await K(n)} from (${o[0]}, ${o[1]}) to (${i[0]}, ${i[1]})`;const l=Q(y);return a+=l,a}function f(r,a){if(typeof r<"u"){const l=[...q];l[a]=[...r];const v=m.midpoint(o,i),_=m.midpoint(l[0],l[1]),M=m.sub(_,v),X=n==null?void 0:n.map(C=>({...C,coord:m.add(C.coord,M)}));d({points:l,labels:X})}}function $(r){const a={color:r};a.labels=n==null?void 0:n.map(l=>({...l,color:r})),d(a)}function R(r,a){if(!n)return;const l=[...n];l[a]={...n[a],...r},d({labels:l})}function V(r){if(!n)return;const a=n.filter((l,v)=>v!==r);d({labels:a})}return e.jsxs(L,{expanded:p.expanded,onToggle:p.onToggle,header:e.jsxs(c,{style:t.row,children:[e.jsx(w,{children:A}),e.jsx(g,{size:u.xSmall_8}),e.jsx(H,{color:y,lineStyle:"solid"})]}),children:[e.jsx(c,{style:[t.row,t.spaceUnder],children:e.jsx(G,{selectedValue:y,onChange:$})}),b&&e.jsx(T,{style:t.errorText,children:Y}),e.jsx(L,{expanded:!0,containerStyle:t.container,panelStyle:t.accordionPanel,header:e.jsx(c,{style:t.row,children:e.jsx(w,{children:`Tail (${o[0]}, ${o[1]})`})}),children:e.jsx(j,{coord:o,error:b,onChange:r=>{f(r,0)}})}),e.jsx(L,{expanded:!0,containerStyle:t.container,panelStyle:t.accordionPanel,header:e.jsx(c,{style:t.row,children:e.jsx(w,{children:`Tip (${i[0]}, ${i[1]})`})}),children:e.jsx(j,{coord:i,error:b,onChange:r=>{f(r,1)}})}),((h=s==null?void 0:s.mafs)==null?void 0:h["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(g,{size:u.small_12}),e.jsx(c,{style:t.horizontalRule}),e.jsx(E,{ariaLabel:S,getPrepopulatedAriaLabel:N,onChangeProps:r=>{d(r)}})]}),((x=s==null?void 0:s.mafs)==null?void 0:x["locked-vector-labels"])&&e.jsxs(e.Fragment,{children:[e.jsx(g,{size:u.xxxSmall_4}),e.jsx(c,{style:t.horizontalRule}),e.jsx(g,{size:u.small_12}),e.jsx(T,{children:"Visible labels"}),n==null?void 0:n.map((r,a)=>e.jsx(U,{...r,expanded:!0,onChangeProps:l=>{R(l,a)},onRemove:()=>{V(a)},containerStyle:t.labelContainer})),e.jsx(I,{kind:"tertiary",startIcon:D,onClick:()=>{const r=[0,-1],a=m.add(m.scale(r,(n==null?void 0:n.length)??0),m.midpoint(o,i)),l={...J("label"),coord:a,color:y};d({labels:[...n??[],l]})},style:t.addButton,children:"Add visible label"})]}),e.jsx(W,{figureType:p.type,onMove:P,onRemove:z})]})},t=O.StyleSheet.create({accordionPanel:{paddingBottom:u.medium_16},container:{marginTop:u.xSmall_8,marginBottom:0,marginLeft:-u.xxxSmall_4,marginRight:-u.xxxSmall_4,backgroundColor:k.white},errorText:{color:k.red,marginTop:u.xSmall_8},row:{flexDirection:"row",alignItems:"center"},addButton:{alignSelf:"start"},horizontalRule:{height:1,backgroundColor:k.offBlack16},labelContainer:{backgroundColor:k.white}}),ye=F;F.__docgenInfo={description:"",methods:[],displayName:"LockedVectorSettings",props:{type:{required:!0,tsType:{name:"literal",value:'"vector"'},description:""},points:{required:!0,tsType:{name:"tuple",raw:"[tail: Coord, tip: Coord]",elements:[{name:"unknown"},{name:"unknown"}]},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{r as B}from"./index-6oxdNXpR.js";import"./util-AYeX86gl.js";import{e as E}from"./svg-image-FcZanvM1.js";import{B as I}from"./choice-Xr-SKHrB.js";import{V as c}from"./index-0DbkllkJ.js";import{S as g}from"./index-nqMmpXbO.js";import{s as u,c as k}from"./index-deFLJwr4.js";import{L as w,a as T}from"./index-18qWGOW7.js";import{L as D,p as O}from"./locked-figure-aria-cNSSPrLz.js";import{l as U}from"./index-awljIyHI.js";import{v as m}from"./index-smZ6iCr_.js";import{P as L,C as j,L as W,a as G}from"./locked-label-settings-6ht0io0O.js";import{C as H}from"./color-select-aUifoW8Y.js";import{L as J}from"./line-swatch-UeqkCmCR.js";import{g as K,j as Q,a as Y}from"./util-HzFZ8oS9.js";const Z="The vector cannot have length 0.",F=p=>{var h,x;const{flags:s,points:q,color:y,labels:a,ariaLabel:S,onChangeProps:d,onMove:P,onRemove:z}=p,[o,i]=q,A=`Vector (${o[0]}, ${o[1]}), (${i[0]}, ${i[1]})`,b=E(o,i);async function N(){let n=`Vector${await Q(a)} from (${o[0]}, ${o[1]}) to (${i[0]}, ${i[1]})`;const l=Y(y);return n+=l,n}function f(r,n){if(typeof r<"u"){const l=[...q];l[n]=[...r];const v=m.midpoint(o,i),_=m.midpoint(l[0],l[1]),M=m.sub(_,v),X=a==null?void 0:a.map(C=>({...C,coord:m.add(C.coord,M)}));d({points:l,labels:X})}}function $(r){const n={color:r};n.labels=a==null?void 0:a.map(l=>({...l,color:r})),d(n)}function R(r,n){if(!a)return;const l=[...a];l[n]={...a[n],...r},d({labels:l})}function V(r){if(!a)return;const n=a.filter((l,v)=>v!==r);d({labels:n})}return e.jsxs(L,{expanded:p.expanded,onToggle:p.onToggle,header:e.jsxs(c,{style:t.row,children:[e.jsx(w,{children:A}),e.jsx(g,{size:u.xSmall_8}),e.jsx(J,{color:y,lineStyle:"solid"})]}),children:[e.jsx(c,{style:[t.row,t.spaceUnder],children:e.jsx(H,{selectedValue:y,onChange:$})}),b&&e.jsx(T,{style:t.errorText,children:Z}),e.jsx(L,{expanded:!0,containerStyle:t.container,panelStyle:t.accordionPanel,header:e.jsx(c,{style:t.row,children:e.jsx(w,{children:`Tail (${o[0]}, ${o[1]})`})}),children:e.jsx(j,{coord:o,error:b,onChange:r=>{f(r,0)}})}),e.jsx(L,{expanded:!0,containerStyle:t.container,panelStyle:t.accordionPanel,header:e.jsx(c,{style:t.row,children:e.jsx(w,{children:`Tip (${i[0]}, ${i[1]})`})}),children:e.jsx(j,{coord:i,error:b,onChange:r=>{f(r,1)}})}),((h=s==null?void 0:s.mafs)==null?void 0:h["locked-figures-aria"])&&e.jsxs(e.Fragment,{children:[e.jsx(g,{size:u.small_12}),e.jsx(c,{style:t.horizontalRule}),e.jsx(D,{ariaLabel:S,getPrepopulatedAriaLabel:N,onChangeProps:r=>{d(r)}})]}),((x=s==null?void 0:s.mafs)==null?void 0:x["locked-vector-labels"])&&e.jsxs(e.Fragment,{children:[e.jsx(g,{size:u.xxxSmall_4}),e.jsx(c,{style:t.horizontalRule}),e.jsx(g,{size:u.small_12}),e.jsx(T,{children:"Visible labels"}),a==null?void 0:a.map((r,n)=>B.createElement(W,{...r,key:n,expanded:!0,onChangeProps:l=>{R(l,n)},onRemove:()=>{V(n)},containerStyle:t.labelContainer})),e.jsx(I,{kind:"tertiary",startIcon:O,onClick:()=>{const r=[0,-1],n=m.add(m.scale(r,(a==null?void 0:a.length)??0),m.midpoint(o,i)),l={...K("label"),coord:n,color:y};d({labels:[...a??[],l]})},style:t.addButton,children:"Add visible label"})]}),e.jsx(G,{figureType:p.type,onMove:P,onRemove:z})]})},t=U.StyleSheet.create({accordionPanel:{paddingBottom:u.medium_16},container:{marginTop:u.xSmall_8,marginBottom:0,marginLeft:-u.xxxSmall_4,marginRight:-u.xxxSmall_4,backgroundColor:k.white},errorText:{color:k.red,marginTop:u.xSmall_8},row:{flexDirection:"row",alignItems:"center"},addButton:{alignSelf:"start"},horizontalRule:{height:1,backgroundColor:k.offBlack16},labelContainer:{backgroundColor:k.white}}),ke=F;F.__docgenInfo={description:"",methods:[],displayName:"LockedVectorSettings",props:{type:{required:!0,tsType:{name:"literal",value:'"vector"'},description:""},points:{required:!0,tsType:{name:"tuple",raw:"[tail: Coord, tip: Coord]",elements:[{name:"unknown"},{name:"unknown"}]},description:""},color:{required:!0,tsType:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]"},description:""},labels:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ type: "label"; coord: Coord; // TeX-supported string @@ -114,4 +114,4 @@ import{j as e}from"./jsx-runtime-63Ea5SlK.js";import"./util-AYeX86gl.js";import{ text: string; color: LockedFigureColor; size: "small" | "medium" | "large"; -}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}]}],raw:"Partial"},name:"newProps"}],return:{name:"void"}}},description:"Called when the props (points, color, etc.) are updated."}}};export{ye as L}; +}`,signature:{properties:[{key:"type",value:{name:"literal",value:'"label"',required:!0}},{key:"coord",value:{name:"tuple",raw:"[number, number]",elements:[{name:"number"},{name:"number"}],required:!0}},{key:"text",value:{name:"string",required:!0}},{key:"color",value:{name:"unknown[number]",raw:"(typeof lockedFigureColorNames)[number]",required:!0}},{key:"size",value:{name:"union",raw:'"small" | "medium" | "large"',elements:[{name:"literal",value:'"small"'},{name:"literal",value:'"medium"'},{name:"literal",value:'"large"'}],required:!0}}]}}]}],raw:"Partial"},name:"newProps"}],return:{name:"void"}}},description:"Called when the props (points, color, etc.) are updated."}}};export{ke as L}; diff --git a/assets/locked-vector-settings.stories-gCF08jcf.js b/assets/locked-vector-settings.stories-l8dg2yOI.js similarity index 98% rename from assets/locked-vector-settings.stories-gCF08jcf.js rename to assets/locked-vector-settings.stories-l8dg2yOI.js index e3d2448f98..1a51d3e7fe 100644 --- a/assets/locked-vector-settings.stories-gCF08jcf.js +++ b/assets/locked-vector-settings.stories-l8dg2yOI.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-63Ea5SlK.js";import{r as E}from"./index-6oxdNXpR.js";import{L as e}from"./locked-vector-settings-ZrkXTg1R.js";import{g as k}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./svg-image-FcZanvM1.js";import"./index-awljIyHI.js";import"./index-0DbkllkJ.js";import"./index-dnMhQZ-1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-J2t_5nK1.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./index-9gkyvru-.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./choice-Xr-SKHrB.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./media-queries-gbofTbz-.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./locked-figure-aria-cNSSPrLz.js";import"./article-renderer-h_m-tvVP.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-label-settings-6ht0io0O.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./line-swatch-UeqkCmCR.js";const ht={title:"PerseusEditor/Components/Locked Vector Settings",component:e},r=i=>a.jsx(e,{...i}),d={...k("vector"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};r.args=d;const p={render:function(){const[t,s]=E.useState(d),m=n=>{s({...t,...n})};return a.jsx(e,{...t,expanded:!0,onChangeProps:m})}},o={render:function(){const[t,s]=E.useState(d),m=n=>{s({...t,...n})};return a.jsx(e,{...t,points:[[0,0],[0,0]],expanded:!0,onChangeProps:m})}};r.__docgenInfo={description:"",methods:[],displayName:"Default"};var c,u,l;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`(args): React.ReactElement => { +import{j as a}from"./jsx-runtime-63Ea5SlK.js";import{r as E}from"./index-6oxdNXpR.js";import{L as e}from"./locked-vector-settings-2YztdJIb.js";import{g as k}from"./util-HzFZ8oS9.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./svg-image-FcZanvM1.js";import"./index-awljIyHI.js";import"./index-0DbkllkJ.js";import"./index-dnMhQZ-1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-J2t_5nK1.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./index-9gkyvru-.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./choice-Xr-SKHrB.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./media-queries-gbofTbz-.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./locked-figure-aria-cNSSPrLz.js";import"./article-renderer-h_m-tvVP.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./locked-label-settings-6ht0io0O.js";import"./scrollless-number-text-field-d5PK69vy.js";import"./color-select-aUifoW8Y.js";import"./line-swatch-UeqkCmCR.js";const ht={title:"PerseusEditor/Components/Locked Vector Settings",component:e},r=i=>a.jsx(e,{...i}),d={...k("vector"),onChangeProps:()=>{},onMove:()=>{},onRemove:()=>{}};r.args=d;const p={render:function(){const[t,s]=E.useState(d),m=n=>{s({...t,...n})};return a.jsx(e,{...t,expanded:!0,onChangeProps:m})}},o={render:function(){const[t,s]=E.useState(d),m=n=>{s({...t,...n})};return a.jsx(e,{...t,points:[[0,0],[0,0]],expanded:!0,onChangeProps:m})}};r.__docgenInfo={description:"",methods:[],displayName:"Default"};var c,u,l;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`(args): React.ReactElement => { return ; }`,...(l=(u=r.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};var P,g,h;p.parameters={...p.parameters,docs:{...(P=p.parameters)==null?void 0:P.docs,source:{originalSource:`{ render: function Render() { diff --git a/assets/multi-renderer.stories-jyyVKdgy.js b/assets/multi-renderer.stories-Fl1WvLOR.js similarity index 99% rename from assets/multi-renderer.stories-jyyVKdgy.js rename to assets/multi-renderer.stories-Fl1WvLOR.js index df566697d0..d33c4c764b 100644 --- a/assets/multi-renderer.stories-jyyVKdgy.js +++ b/assets/multi-renderer.stories-Fl1WvLOR.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{V as t}from"./index-0DbkllkJ.js";import{H as u}from"./index-18qWGOW7.js";import{l as w}from"./index-awljIyHI.js";import{B as f}from"./choice-Xr-SKHrB.js";import{r as m}from"./index-6oxdNXpR.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import{s as o}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{M as k}from"./multi-items-IrUZEql6.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{K as q}from"./ke-score-ui-AQ1XUyPU.js";import{S as T}from"./side-by-side-MBJuyilC.js";import{s as R}from"./test-dependencies-pK6aZRAV.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./perseus-error-l3K_anoI.js";import"./index-k-0mNqHS.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./shared-4TdECMLk.js";import"./answer-choices-o46t7GFm.js";import"./minus-bold-ONmDo3Ve.js";import"./asset-context-H6Iqp7Gi.js";import"./tiny-invariant-bHgPayXn.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./fixed-to-responsive-for_tVF1.js";import"./video-transcript-link-_gpkjmR8.js";import"./arrow-square-out-bold-090vdhrx.js";import"./stub-tag-editor-qMhJW4bS.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./choice-none-above-qQVnMhkg.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./index-V5gl6frG.js";import"./register-all-widgets-for-testing-TyijFPFL.js";const A=o.shape({blurb:o.content,question:o.content,hints:o.hints}),g={_multi:{blurb:{__type:"content",content:"",images:{},widgets:{}},hints:[{__type:"hint",content:"If two triangles are congruent, then they have the same side lengths and angle measures.",images:{},replace:!1,widgets:{}},{__type:"hint",content:"A triangle congruent to triangle $ABC$ must also have side lengths of $12$, $14$ and $20$.",images:{},replace:!1,widgets:{}},{__type:"hint",content:`The following triangle is congruent to triangle $ABC$: +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{V as t}from"./index-0DbkllkJ.js";import{H as u}from"./index-18qWGOW7.js";import{l as w}from"./index-awljIyHI.js";import{B as f}from"./choice-Xr-SKHrB.js";import{r as m}from"./index-6oxdNXpR.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import{s as o}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{M as k}from"./multi-items-IrUZEql6.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{K as q}from"./ke-score-ui-rxqDzQuA.js";import{S as T}from"./side-by-side-MBJuyilC.js";import{s as R}from"./test-dependencies-pK6aZRAV.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-J2t_5nK1.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./perseus-error-l3K_anoI.js";import"./index-k-0mNqHS.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./shared-4TdECMLk.js";import"./answer-choices-o46t7GFm.js";import"./minus-bold-ONmDo3Ve.js";import"./asset-context-H6Iqp7Gi.js";import"./tiny-invariant-bHgPayXn.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./fixed-to-responsive-for_tVF1.js";import"./video-transcript-link-_gpkjmR8.js";import"./arrow-square-out-bold-090vdhrx.js";import"./stub-tag-editor-qMhJW4bS.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./choice-none-above-qQVnMhkg.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./index-V5gl6frG.js";import"./register-all-widgets-for-testing-TyijFPFL.js";const A=o.shape({blurb:o.content,question:o.content,hints:o.hints}),g={_multi:{blurb:{__type:"content",content:"",images:{},widgets:{}},hints:[{__type:"hint",content:"If two triangles are congruent, then they have the same side lengths and angle measures.",images:{},replace:!1,widgets:{}},{__type:"hint",content:"A triangle congruent to triangle $ABC$ must also have side lengths of $12$, $14$ and $20$.",images:{},replace:!1,widgets:{}},{__type:"hint",content:`The following triangle is congruent to triangle $ABC$: * A triangle with side lengths of $12$, $14$, and $20$`,images:{},replace:!1,widgets:{}}],question:{__type:"content",content:`Triangle $ABC$ has side lengths of $12$, $14$, and $20$. Which of the following triangles is congruent to triangle $ABC$ ? diff --git a/assets/number-line.stories-U_mwJQ_-.js b/assets/number-line.stories-azP-kcd9.js similarity index 98% rename from assets/number-line.stories-U_mwJQ_-.js rename to assets/number-line.stories-azP-kcd9.js index 0e31947a07..dd4e21b665 100644 --- a/assets/number-line.stories-U_mwJQ_-.js +++ b/assets/number-line.stories-azP-kcd9.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{a as q}from"./mobile-keypad-Muuas9zV.js";import{R as m}from"./renderer-with-debug-ui-g9Q2O3kw.js";import{S as x}from"./server-item-renderer-with-debug-ui-1bUVpaj2.js";import{T as C}from"./test-keypad-context-wrapper-qNJz2rBH.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./choice-Xr-SKHrB.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./prop-types-d_cUcR3L.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./side-by-side-MBJuyilC.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./ke-score-ui-AQ1XUyPU.js";import"./test-dependencies-pK6aZRAV.js";import"./chunk-D5ZWXAHU-vR62DWf0.js";import"./v4-yQnnJER4.js";const k={content:`$E=2.5$ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{a as q}from"./mobile-keypad-Muuas9zV.js";import{R as m}from"./renderer-with-debug-ui-g9Q2O3kw.js";import{S as x}from"./server-item-renderer-with-debug-ui-o9_yPBTG.js";import{T as C}from"./test-keypad-context-wrapper-qNJz2rBH.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./choice-Xr-SKHrB.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-jxhLXBHb.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./prop-types-d_cUcR3L.js";import"./key-translator-hixns6dh.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./shared-4TdECMLk.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./side-by-side-MBJuyilC.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./ke-score-ui-rxqDzQuA.js";import"./test-dependencies-pK6aZRAV.js";import"./chunk-D5ZWXAHU-vR62DWf0.js";import"./v4-yQnnJER4.js";const k={content:`$E=2.5$ **Move the dot to $-E$ on the number line.** diff --git a/assets/numeric-input-editor-z2JL1__O.js b/assets/numeric-input-editor-YnVVoF5-.js similarity index 99% rename from assets/numeric-input-editor-z2JL1__O.js rename to assets/numeric-input-editor-YnVVoF5-.js index e9118bfc56..109dc4f338 100644 --- a/assets/numeric-input-editor-z2JL1__O.js +++ b/assets/numeric-input-editor-YnVVoF5-.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{c as N}from"./article-renderer-h_m-tvVP.js";import{_ as o}from"./jquery-yG1GhClm.js";import{U as W}from"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as I}from"./components-2XngBvY8.js";import{i as P}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import{P as C}from"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{E}from"./editor-jsonify-UVC33bjS.js";import{C as b}from"./index-V5gl6frG.js";import{r as z}from"./index-6oxdNXpR.js";import{E as L}from"./editor-JBlHUPac.js";import{c as F}from"./icon-paths-EoBkHOLI.js";const{ButtonGroup:k,InfoTip:m,InlineIcon:q,MultiButtonGroup:_,NumberInput:w,TextInput:$}=I,{firstNumericalParse:A}=W,M=[{title:"Integers",value:"integer",content:"6"},{title:"Decimals",value:"decimal",content:"0.75"},{title:"Proper fractions",value:"proper",content:"⅗"},{title:"Improper fractions",value:"improper",content:"⁷⁄₄"},{title:"Mixed numbers",value:"mixed",content:"1¾"},{title:"Numbers with π",value:"pi",content:"π"}],v=T=>({value:null,status:T,message:"",simplify:"required",answerForms:[],strict:!1,maxError:null}),y=class y extends z.Component{constructor(l){super(l),this.change=(...r)=>N.apply(this,r),this.onToggleOptions=r=>{const n=this.state.showOptions.slice();n[r]=!n[r],this.setState({showOptions:n})},this.onTrashAnswer=r=>{if(r>=0&&r{r.key===" "&&(r.preventDefault(),n.apply(this,s))},this.onStatusChange=r=>{const n=["wrong","ungraded","correct"],s=this.props.answers,u=o.indexOf(n,s[r].status),d=n[(u+1)%n.length];this.updateAnswer(r,{status:d,simplify:d==="correct"?"required":"accepted"})},this.updateAnswer=(r,n)=>{if(!o.isObject(n))return o.partial((u,d,c)=>{const h={};h[d]=c,this.updateAnswer(u,h)},r,n);let s=[...this.props.answers];if(r===s.length){const u=v(this.state.lastStatus);s=s.concat(u)}s[r]=o.extend({},s[r],n),this.props.onChange({answers:s})},this.addAnswer=()=>{const r=v(this.state.lastStatus),n=this.props.answers.concat(r);this.props.onChange({answers:n})},this.getSaveWarnings=()=>{const r=[];return o.contains(o.pluck(this.props.answers,"value"),"")&&r.push("One or more answers is empty"),this.props.answers.forEach((n,s)=>{n.strict&&(!n.answerForms||n.answerForms.length===0)&&r.push(`Answer ${s+1} is set to string format matching, but no format was selected`)}),r},this.serialize=()=>E.serialize.call(this),this.state={lastStatus:"wrong",showOptions:o.map(this.props.answers,()=>!1)}}render(){const l=this.props.answers,r=t=>e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx("label",{children:"Unsimplified answers are"}),e.jsx(k,{value:l[t].simplify,allowEmpty:!1,buttons:[{value:"required",content:"ungraded"},{value:"optional",content:"accepted"},{value:"enforced",content:"wrong"}],onChange:this.updateAnswer(t,"simplify")||(()=>{})}),e.jsxs(m,{children:[e.jsx("p",{children:'Normally select "ungraded". This will give the user a message saying the answer is correct but not simplified. The user will then have to simplify it and re-enter, but will not be penalized. (5th grade and after)'}),e.jsx("p",{children:'Select "accepted" only if the user is not expected to know how to simplify fractions yet. (Anything prior to 5th grade)'}),e.jsxs("p",{children:['Select "wrong" ',e.jsx("em",{children:"only"})," if we are specifically assessing the ability to simplify."]})]})]}),n=t=>e.jsxs("div",{children:[e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx("label",{children:"Choose the suggested answer formats"}),e.jsx(_,{buttons:M,values:l[t].answerForms,onChange:this.updateAnswer(t,"answerForms")||(()=>{})}),e.jsxs(m,{children:[e.jsx("p",{children:'Formats will be autoselected for you based on the given answer; to show no suggested formats and accept all types, simply have a decimal/integer be the answer. Values with π will have format "pi", and values that are fractions will have some subset (mixed will be "mixed" and "proper"; improper/proper will both be "improper" and "proper"). If you would like to specify that it is only a proper fraction (or only a mixed/improper fraction), deselect the other format. Except for specific cases, you should not need to change the autoselected formats.'}),e.jsxs("p",{children:["To restrict the answer to ",e.jsx("em",{children:"only"}),' an improper fraction (i.e. 7/4), select the improper fraction and toggle "strict" to true. This ',e.jsx("b",{children:"will not"})," ","accept 1.75 as an answer."," "]}),e.jsx("p",{children:"Unless you are testing that specific skill, please do not restrict the answer format."})]})]}),e.jsx("div",{className:"perseus-widget-row",children:e.jsx(b,{label:"Strictly match only these formats",checked:l[t].strict,onChange:i=>{this.updateAnswer.bind(this,t)({strict:i})}})})]}),s=t=>e.jsx("div",{className:"perseus-widget-row",children:e.jsxs("label",{children:["Max error"," ",e.jsx(w,{className:"max-error",value:l[t].maxError,onChange:this.updateAnswer(t,"maxError"),placeholder:"0"})]})}),u=e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx("label",{children:"Width: "}),e.jsx(k,{value:this.props.size,allowEmpty:!1,buttons:[{value:"normal",content:"Normal (80px)"},{value:"small",content:"Small (40px)"}],onChange:this.change("size")}),e.jsx(m,{children:e.jsx("p",{children:'Use size "Normal" for all text boxes, unless there are multiple text boxes in one line and the answer area is too narrow to fit them.'})})]}),d=e.jsx("div",{className:"perseus-widget-row",children:e.jsx(b,{label:"Right alignment",checked:this.props.rightAlign,onChange:t=>{this.props.onChange({rightAlign:t})}})}),c=e.jsxs("div",{className:"perseus-widget-row",children:[e.jsxs("label",{children:["Aria label",e.jsx($,{value:this.props.labelText,onChange:this.change("labelText")})]}),e.jsx(m,{children:e.jsx("p",{children:"Text to describe this input. This will be shown to users using screenreaders."})})]}),h=e.jsx("div",{children:e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx(b,{label:"Coefficient",checked:this.props.coefficient,onChange:t=>{this.props.onChange({coefficient:t})}}),e.jsx(m,{children:e.jsx("p",{children:"A coefficient style number allows the student to use - for -1 and an empty string to mean 1."})})]})}),R=e.jsx("div",{children:e.jsx("a",{href:"#",className:"simple-button orange",onClick:t=>{t.preventDefault(),this.addAnswer()},onKeyDown:t=>this.onSpace(t,this.addAnswer),children:e.jsx("span",{children:"Add new answer"})})}),O={wrong:"(address the mistake/misconception)",ungraded:"(explain in detail to avoid confusion)",correct:"(reinforce the user's understanding)"},x=()=>l.map((t,i)=>{const j=e.jsx(L,{apiOptions:this.props.apiOptions,content:t.message||"",placeholder:"Why is this answer "+t.status+"? "+O[t.status],widgetEnabled:!1,onChange:a=>{"content"in a&&this.updateAnswer(i,{message:a.content})}});return e.jsxs("div",{className:"perseus-widget-row",children:[e.jsxs("div",{className:"input-answer-editor-value-container"+(t.maxError?" with-max-error":""),children:[e.jsx(w,{value:t.value,className:"numeric-input-value",placeholder:"answer",format:o.last(t.answerForms||[]),onFormatChange:(a,g)=>{let p;g==="pi"?p=["pi"]:g==="mixed"?p=["proper","mixed"]:(g==="proper"||g==="improper")&&(p=["proper","improper"]),this.updateAnswer(i,{value:A(a,this.context.strings),answerForms:p})},onChange:a=>{this.updateAnswer(i,{value:A(a,this.context.strings)})}}),t.strict&&e.jsx("div",{className:"is-strict-indicator",title:"strictly equivalent to",children:"≡"}),t.simplify!=="required"&&t.status==="correct"&&e.jsx("div",{className:"simplify-indicator "+t.simplify,title:"accepts unsimplified answers",children:"‰"}),t.maxError?e.jsxs("div",{className:"max-error-container",children:[e.jsx("div",{className:"max-error-plusmn",children:"±"}),e.jsx(w,{placeholder:0,value:l[i].maxError,format:o.last(t.answerForms||[]),onChange:this.updateAnswer(i,"maxError")})]}):null,e.jsx("div",{className:"value-divider"}),e.jsx("a",{href:"#",className:"answer-status "+t.status,onClick:a=>{a.preventDefault(),this.onStatusChange(i)},onKeyDown:a=>this.onSpace(a,this.onStatusChange),children:t.status}),e.jsx("a",{href:"#",className:"answer-trash","aria-label":"Delete answer",onClick:a=>{a.preventDefault(),this.onTrashAnswer(i)},onKeyDown:a=>this.onSpace(a,this.onTrashAnswer),children:e.jsx(q,{...P})}),e.jsx("a",{href:"#",className:"options-toggle","aria-label":"Toggle options",onClick:a=>{a.preventDefault(),this.onToggleOptions(i)},onKeyDown:a=>this.onSpace(a,this.onToggleOptions),children:e.jsx(q,{...F})})]}),e.jsx("div",{className:"input-answer-editor-message",children:j}),this.state.showOptions[i]&&e.jsxs("div",{className:"options-container",children:[s(i),t.status==="correct"&&r(i),n(i)]})]},i)});return e.jsxs("div",{className:"perseus-input-number-editor",children:[e.jsx("div",{className:"ui-title",children:"User input"}),e.jsx("div",{className:"msg-title",children:"Message shown to user on attempt"}),x(),R,u,d,h,c]})}};y.contextType=C,y.widgetName="numeric-input",y.displayName="NumericInputEditor",y.defaultProps={answers:[v("correct")],size:"normal",coefficient:!1,labelText:"",rightAlign:!1};let f=y;f.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"onToggleOptions",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"onTrashAnswer",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"onSpace",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null},{name:"callback",optional:!1,type:null},{name:"...args",optional:!1,type:null}],returns:null},{name:"onStatusChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"updateAnswer",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"update",optional:!1,type:null}],returns:null},{name:"addAnswer",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"NumericInputEditor",props:{answers:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"signature",type:"object",raw:`{ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{c as N}from"./article-renderer-h_m-tvVP.js";import{_ as o}from"./jquery-yG1GhClm.js";import{U as W}from"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import{c as I}from"./components-2XngBvY8.js";import{i as P}from"./icon-paths-5JCXzGsq.js";import"./index-k-0mNqHS.js";import{P as C}from"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./index-smZ6iCr_.js";import{E}from"./editor-jsonify-UVC33bjS.js";import{C as b}from"./index-V5gl6frG.js";import{r as z}from"./index-6oxdNXpR.js";import{E as L}from"./editor-JBlHUPac.js";import{c as F}from"./icon-paths-EoBkHOLI.js";const{ButtonGroup:k,InfoTip:m,InlineIcon:q,MultiButtonGroup:_,NumberInput:w,TextInput:$}=I,{firstNumericalParse:A}=W,M=[{title:"Integers",value:"integer",content:"6"},{title:"Decimals",value:"decimal",content:"0.75"},{title:"Proper fractions",value:"proper",content:"⅗"},{title:"Improper fractions",value:"improper",content:"⁷⁄₄"},{title:"Mixed numbers",value:"mixed",content:"1¾"},{title:"Numbers with π",value:"pi",content:"π"}],v=T=>({value:null,status:T,message:"",simplify:"required",answerForms:[],strict:!1,maxError:null}),y=class y extends z.Component{constructor(l){super(l),this.change=(...r)=>N.apply(this,r),this.onToggleOptions=r=>{const n=this.state.showOptions.slice();n[r]=!n[r],this.setState({showOptions:n})},this.onTrashAnswer=r=>{if(r>=0&&r{r.key===" "&&(r.preventDefault(),n.apply(this,s))},this.onStatusChange=r=>{const n=["wrong","ungraded","correct"],s=this.props.answers,u=o.indexOf(n,s[r].status),d=n[(u+1)%n.length];this.updateAnswer(r,{status:d,simplify:d==="correct"?"required":"accepted"})},this.updateAnswer=(r,n)=>{if(!o.isObject(n))return o.partial((u,d,c)=>{const h={};h[d]=c,this.updateAnswer(u,h)},r,n);let s=[...this.props.answers];if(r===s.length){const u=v(this.state.lastStatus);s=s.concat(u)}s[r]=o.extend({},s[r],n),this.props.onChange({answers:s})},this.addAnswer=()=>{const r=v(this.state.lastStatus),n=this.props.answers.concat(r);this.props.onChange({answers:n})},this.getSaveWarnings=()=>{const r=[];return o.contains(o.pluck(this.props.answers,"value"),"")&&r.push("One or more answers is empty"),this.props.answers.forEach((n,s)=>{n.strict&&(!n.answerForms||n.answerForms.length===0)&&r.push(`Answer ${s+1} is set to string format matching, but no format was selected`)}),r},this.serialize=()=>E.serialize.call(this),this.state={lastStatus:"wrong",showOptions:o.map(this.props.answers,()=>!1)}}render(){const l=this.props.answers,r=t=>e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx("label",{children:"Unsimplified answers are"}),e.jsx(k,{value:l[t].simplify,allowEmpty:!1,buttons:[{value:"required",content:"ungraded"},{value:"optional",content:"accepted"},{value:"enforced",content:"wrong"}],onChange:this.updateAnswer(t,"simplify")||(()=>{})}),e.jsxs(m,{children:[e.jsx("p",{children:'Normally select "ungraded". This will give the user a message saying the answer is correct but not simplified. The user will then have to simplify it and re-enter, but will not be penalized. (5th grade and after)'}),e.jsx("p",{children:'Select "accepted" only if the user is not expected to know how to simplify fractions yet. (Anything prior to 5th grade)'}),e.jsxs("p",{children:['Select "wrong" ',e.jsx("em",{children:"only"})," if we are specifically assessing the ability to simplify."]})]})]}),n=t=>e.jsxs("div",{children:[e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx("label",{children:"Choose the suggested answer formats"}),e.jsx(_,{buttons:M,values:l[t].answerForms,onChange:this.updateAnswer(t,"answerForms")||(()=>{})}),e.jsxs(m,{children:[e.jsx("p",{children:'Formats will be autoselected for you based on the given answer; to show no suggested formats and accept all types, simply have a decimal/integer be the answer. Values with π will have format "pi", and values that are fractions will have some subset (mixed will be "mixed" and "proper"; improper/proper will both be "improper" and "proper"). If you would like to specify that it is only a proper fraction (or only a mixed/improper fraction), deselect the other format. Except for specific cases, you should not need to change the autoselected formats.'}),e.jsxs("p",{children:["To restrict the answer to ",e.jsx("em",{children:"only"}),' an improper fraction (i.e. 7/4), select the improper fraction and toggle "strict" to true. This'," ",e.jsx("b",{children:"will not"})," accept 1.75 as an answer."," "]}),e.jsx("p",{children:"Unless you are testing that specific skill, please do not restrict the answer format."})]})]}),e.jsx("div",{className:"perseus-widget-row",children:e.jsx(b,{label:"Strictly match only these formats",checked:l[t].strict,onChange:i=>{this.updateAnswer.bind(this,t)({strict:i})}})})]}),s=t=>e.jsx("div",{className:"perseus-widget-row",children:e.jsxs("label",{children:["Max error"," ",e.jsx(w,{className:"max-error",value:l[t].maxError,onChange:this.updateAnswer(t,"maxError"),placeholder:"0"})]})}),u=e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx("label",{children:"Width: "}),e.jsx(k,{value:this.props.size,allowEmpty:!1,buttons:[{value:"normal",content:"Normal (80px)"},{value:"small",content:"Small (40px)"}],onChange:this.change("size")}),e.jsx(m,{children:e.jsx("p",{children:'Use size "Normal" for all text boxes, unless there are multiple text boxes in one line and the answer area is too narrow to fit them.'})})]}),d=e.jsx("div",{className:"perseus-widget-row",children:e.jsx(b,{label:"Right alignment",checked:this.props.rightAlign,onChange:t=>{this.props.onChange({rightAlign:t})}})}),c=e.jsxs("div",{className:"perseus-widget-row",children:[e.jsxs("label",{children:["Aria label",e.jsx($,{value:this.props.labelText,onChange:this.change("labelText")})]}),e.jsx(m,{children:e.jsx("p",{children:"Text to describe this input. This will be shown to users using screenreaders."})})]}),h=e.jsx("div",{children:e.jsxs("div",{className:"perseus-widget-row",children:[e.jsx(b,{label:"Coefficient",checked:this.props.coefficient,onChange:t=>{this.props.onChange({coefficient:t})}}),e.jsx(m,{children:e.jsx("p",{children:"A coefficient style number allows the student to use - for -1 and an empty string to mean 1."})})]})}),R=e.jsx("div",{children:e.jsx("a",{href:"#",className:"simple-button orange",onClick:t=>{t.preventDefault(),this.addAnswer()},onKeyDown:t=>this.onSpace(t,this.addAnswer),children:e.jsx("span",{children:"Add new answer"})})}),O={wrong:"(address the mistake/misconception)",ungraded:"(explain in detail to avoid confusion)",correct:"(reinforce the user's understanding)"},x=()=>l.map((t,i)=>{const j=e.jsx(L,{apiOptions:this.props.apiOptions,content:t.message||"",placeholder:"Why is this answer "+t.status+"? "+O[t.status],widgetEnabled:!1,onChange:a=>{"content"in a&&this.updateAnswer(i,{message:a.content})}});return e.jsxs("div",{className:"perseus-widget-row",children:[e.jsxs("div",{className:"input-answer-editor-value-container"+(t.maxError?" with-max-error":""),children:[e.jsx(w,{value:t.value,className:"numeric-input-value",placeholder:"answer",format:o.last(t.answerForms||[]),onFormatChange:(a,g)=>{let p;g==="pi"?p=["pi"]:g==="mixed"?p=["proper","mixed"]:(g==="proper"||g==="improper")&&(p=["proper","improper"]),this.updateAnswer(i,{value:A(a,this.context.strings),answerForms:p})},onChange:a=>{this.updateAnswer(i,{value:A(a,this.context.strings)})}}),t.strict&&e.jsx("div",{className:"is-strict-indicator",title:"strictly equivalent to",children:"≡"}),t.simplify!=="required"&&t.status==="correct"&&e.jsx("div",{className:"simplify-indicator "+t.simplify,title:"accepts unsimplified answers",children:"‰"}),t.maxError?e.jsxs("div",{className:"max-error-container",children:[e.jsx("div",{className:"max-error-plusmn",children:"±"}),e.jsx(w,{placeholder:0,value:l[i].maxError,format:o.last(t.answerForms||[]),onChange:this.updateAnswer(i,"maxError")})]}):null,e.jsx("div",{className:"value-divider"}),e.jsx("a",{href:"#",className:"answer-status "+t.status,onClick:a=>{a.preventDefault(),this.onStatusChange(i)},onKeyDown:a=>this.onSpace(a,this.onStatusChange),children:t.status}),e.jsx("a",{href:"#",className:"answer-trash","aria-label":"Delete answer",onClick:a=>{a.preventDefault(),this.onTrashAnswer(i)},onKeyDown:a=>this.onSpace(a,this.onTrashAnswer),children:e.jsx(q,{...P})}),e.jsx("a",{href:"#",className:"options-toggle","aria-label":"Toggle options",onClick:a=>{a.preventDefault(),this.onToggleOptions(i)},onKeyDown:a=>this.onSpace(a,this.onToggleOptions),children:e.jsx(q,{...F})})]}),e.jsx("div",{className:"input-answer-editor-message",children:j}),this.state.showOptions[i]&&e.jsxs("div",{className:"options-container",children:[s(i),t.status==="correct"&&r(i),n(i)]})]},i)});return e.jsxs("div",{className:"perseus-input-number-editor",children:[e.jsx("div",{className:"ui-title",children:"User input"}),e.jsx("div",{className:"msg-title",children:"Message shown to user on attempt"}),x(),R,u,d,h,c]})}};y.contextType=C,y.widgetName="numeric-input",y.displayName="NumericInputEditor",y.defaultProps={answers:[v("correct")],size:"normal",coefficient:!1,labelText:"",rightAlign:!1};let f=y;f.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"onToggleOptions",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"onTrashAnswer",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"onSpace",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null},{name:"callback",optional:!1,type:null},{name:"...args",optional:!1,type:null}],returns:null},{name:"onStatusChange",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null}],returns:null},{name:"updateAnswer",docblock:null,modifiers:[],params:[{name:"choiceIndex",optional:!1,type:null},{name:"update",optional:!1,type:null}],returns:null},{name:"addAnswer",docblock:null,modifiers:[],params:[],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"NumericInputEditor",props:{answers:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"signature",type:"object",raw:`{ message: string; value: number; status: string; diff --git a/assets/numeric-input-editor.stories-wWJYMn1s.js b/assets/numeric-input-editor.stories-I6ZIR46i.js similarity index 98% rename from assets/numeric-input-editor.stories-wWJYMn1s.js rename to assets/numeric-input-editor.stories-I6ZIR46i.js index a1aa98c0cf..6e578274db 100644 --- a/assets/numeric-input-editor.stories-wWJYMn1s.js +++ b/assets/numeric-input-editor.stories-I6ZIR46i.js @@ -1,3 +1,3 @@ -import{j as m}from"./jsx-runtime-63Ea5SlK.js";import{a as p}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{N as e}from"./numeric-input-editor-z2JL1__O.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./editor-jsonify-UVC33bjS.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";const it={title:"PerseusEditor/Widgets/NumericInput Editor"},r=a=>m.jsx(e,{onChange:p("onChange")});r.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,o,i;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { +import{j as m}from"./jsx-runtime-63Ea5SlK.js";import{a as p}from"./chunk-D5ZWXAHU-vR62DWf0.js";import{N as e}from"./numeric-input-editor-YnVVoF5-.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./v4-yQnnJER4.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./editor-jsonify-UVC33bjS.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";const it={title:"PerseusEditor/Widgets/NumericInput Editor"},r=a=>m.jsx(e,{onChange:p("onChange")});r.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,o,i;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { return ; }`,...(i=(o=r.parameters)==null?void 0:o.docs)==null?void 0:i.source}}};const mt=["Default"];export{r as Default,mt as __namedExportsOrder,it as default}; diff --git a/assets/preview-aQmuyPVZ.js b/assets/preview-a9y_VHwG.js similarity index 94% rename from assets/preview-aQmuyPVZ.js rename to assets/preview-a9y_VHwG.js index 3e137e5ac2..58a947f418 100644 --- a/assets/preview-aQmuyPVZ.js +++ b/assets/preview-a9y_VHwG.js @@ -1,4 +1,4 @@ -import{_ as S}from"./iframe-ZJ6Y6Oqt.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-5GIt4bd5.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); +import{_ as S}from"./iframe-DrKPbhiz.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-5GIt4bd5.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./axe-5GIt4bd5.js","./_commonjsHelpers-4gQjN7DL.js"] diff --git a/assets/preview-Ky7EaD7Y.js b/assets/preview-l2a48bDL.js similarity index 74% rename from assets/preview-Ky7EaD7Y.js rename to assets/preview-l2a48bDL.js index d950995a34..bd84a09b2c 100644 --- a/assets/preview-Ky7EaD7Y.js +++ b/assets/preview-l2a48bDL.js @@ -1,7 +1,7 @@ -import{_ as a}from"./iframe-ZJ6Y6Oqt.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-0Sl8y62n.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; +import{_ as a}from"./iframe-DrKPbhiz.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-L8h3Z5pz.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./DocsRenderer-CFRXHY34-0Sl8y62n.js","./iframe-ZJ6Y6Oqt.js","./index-6oxdNXpR.js","./_commonjsHelpers-4gQjN7DL.js","./jsx-runtime-63Ea5SlK.js","./index-9gkyvru-.js","./index-4FLvW62B.js","./index-mQRHDdot.js","./index-PPLHz8o0.js","./react-18-8FLnVqma.js","./client-Rb4DelHy.js"] + __vite__mapDeps.viteFileDeps = ["./DocsRenderer-CFRXHY34-L8h3Z5pz.js","./iframe-DrKPbhiz.js","./index-6oxdNXpR.js","./_commonjsHelpers-4gQjN7DL.js","./jsx-runtime-63Ea5SlK.js","./index-9gkyvru-.js","./index-4FLvW62B.js","./index-mQRHDdot.js","./index-PPLHz8o0.js","./react-18-8FLnVqma.js","./client-Rb4DelHy.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/radio-editor.stories-gOf9aobq.js b/assets/radio-editor.stories-ynnmprYP.js similarity index 98% rename from assets/radio-editor.stories-gOf9aobq.js rename to assets/radio-editor.stories-ynnmprYP.js index 9792940e7e..283176f99f 100644 --- a/assets/radio-editor.stories-gOf9aobq.js +++ b/assets/radio-editor.stories-ynnmprYP.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{l as m}from"./index-awljIyHI.js";import{r as a}from"./index-6oxdNXpR.js";import{R as n}from"./editor-3qfdTkF_.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./index-0C4KXdeC.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";const mo={title:"PerseusEditor/Widgets/Radio Editor"},l=m.StyleSheet.create({wrapper:{width:338}}),c={content:`Which of the following values of $x$ satisfies the equation $\\sqrt{64}=x$ ? +import{j as r}from"./jsx-runtime-63Ea5SlK.js";import{l as m}from"./index-awljIyHI.js";import{r as a}from"./index-6oxdNXpR.js";import{R as n}from"./editor-CEQdVGNe.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./components-2XngBvY8.js";import"./index-0C4KXdeC.js";import"./editor-JBlHUPac.js";import"./icon-paths-EoBkHOLI.js";import"./section-control-button-Hi-3GzxK.js";import"./index-wzSCRJFK.js";import"./tex-error-view-oha0Bum8.js";import"./toggleable-caret-YFS5vs4O.js";const mo={title:"PerseusEditor/Widgets/Radio Editor"},l=m.StyleSheet.create({wrapper:{width:338}}),c={content:`Which of the following values of $x$ satisfies the equation $\\sqrt{64}=x$ ? [[☃ radio 1]] diff --git a/assets/register-all-widgets-and-editors-for-testing-4tsEoT6X.js b/assets/register-all-widgets-and-editors-for-testing-QKLCyv1G.js similarity index 99% rename from assets/register-all-widgets-and-editors-for-testing-4tsEoT6X.js rename to assets/register-all-widgets-and-editors-for-testing-QKLCyv1G.js index 701a092d82..20fbf34bf9 100644 --- a/assets/register-all-widgets-and-editors-for-testing-4tsEoT6X.js +++ b/assets/register-all-widgets-and-editors-for-testing-QKLCyv1G.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-63Ea5SlK.js";import{c as _e,G as $e}from"./graph-settings-RVCdgmRM.js";import{_ as i,$ as Fe}from"./jquery-yG1GhClm.js";import{t as We,D as He,u as Be,v as Ke,x as Ge,y as Ye,c as u,p as c,G as Je,M as Xe,z as Ze,B as Qe,T as es,w as ss}from"./article-renderer-h_m-tvVP.js";import{U as he,r as ts}from"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import{L as Me}from"./svg-image-FcZanvM1.js";import{A as be}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import{m as as,n as rs,r as ns,c as is,a as ls,d as os}from"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{g as Ue}from"./dependencies-CP7Uh8Kq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{r as p}from"./index-6oxdNXpR.js";import{C as ps}from"./categorizer-editor-w3RL0Wed.js";import{E as us}from"./perseus-error-l3K_anoI.js";import{c as g}from"./components-2XngBvY8.js";import{E as m}from"./editor-jsonify-UVC33bjS.js";import{C as b}from"./index-V5gl6frG.js";import{P as r}from"./index-0C4KXdeC.js";import{B as f}from"./blur-input-6j4bgLwx.js";import{D as cs}from"./definition-editor-whGRFVv8.js";import{D as hs}from"./dropdown-editor-aJLNeS97.js";import{E as ds}from"./explanation-editor-jVSk3itt.js";import{E as ms}from"./expression-editor-eqp-b25r.js";import{i as gs}from"./icon-paths-5JCXzGsq.js";import{l as _}from"./index-awljIyHI.js";import{E as y}from"./editor-JBlHUPac.js";import{i as fs}from"./icon-paths-EoBkHOLI.js";import{I as ys}from"./image-editor-hBd9GH_N.js";import{I as xs}from"./input-number-editor-IPEdB_LR.js";import{I as bs}from"./interaction-editor-o5mLkBC2.js";import{I as vs}from"./interactive-graph-editor-kVA-32xF.js";import{L as js}from"./label-image-editor-1OjT5p1R.js";import{M as ws}from"./matcher-editor-2MSFAVmw.js";import{N as Cs}from"./number-line-editor-Fq_hw3be.js";import{N as Ts}from"./numeric-input-editor-z2JL1__O.js";import{P as qs}from"./phet-simulation-editor-13ErfkdC.js";import{F as le}from"./index-9gkyvru-.js";import{P as ks}from"./python-program-editor-YqavN4kp.js";import{R as Ss}from"./editor-3qfdTkF_.js";import{S as Ns}from"./sorter-editor-nvFR-j1p.js";const Is={allTypes:We,DEFAULT_GRAPHER_PROPS:He,chooseType:Be,defaultPlotProps:Ke,getEquationString:Ge,typeToButton:Ye},ga=_e({displayName:"JsonEditor",getInitialState:function(){return{currentValue:JSON.stringify(this.props.value,null,4),valid:!0}},UNSAFE_componentWillReceiveProps:function(l){(!this.state.valid||!i.isEqual(l.value,JSON.parse(this.state.currentValue)))&&this.setState(this.getInitialState())},handleKeyDown:function(l){if(l.key==="Tab"){const e=l.target.selectionStart,t=l.target.value,a=t.substring(0,e),n=t.substring(e,t.length);l.target.value=a+" "+n,l.target.selectionStart=a.length+4,l.target.selectionEnd=a.length+4,l.preventDefault(),this.handleChange(l)}},handleChange:function(l){const e=l.target.value;try{let t=JSON.parse(e);i.isString(t)&&(t=JSON.parse(t)),this.setState({currentValue:e,valid:!0},function(){this.props.onChange(t)})}catch{this.setState({currentValue:e,valid:!1})}},handleBlur:function(l){const e=l.target.value;try{let t=JSON.parse(e);i.isString(t)&&(t=JSON.parse(t)),this.setState({currentValue:JSON.stringify(t,null,4),valid:!0},function(){this.props.onChange(t)})}catch{this.setState({currentValue:JSON.stringify(this.props.value,null,4),valid:!0})}},render:function(){const l="perseus-json-editor "+(this.state.valid?"valid":"invalid");return s.jsx("textarea",{className:l,value:this.state.currentValue,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onBlur:this.handleBlur})}});let Te=0;const de={},me={};window.iframeDataStore={};window.addEventListener("message",l=>{if(typeof l.data=="string"){const e=de[l.data];e&&e()}else l.data.id&&(l.data.height!==void 0?me[l.data.id](l.data.height):l.data.lintWarnings&&Me.log("LINTER REPORT",{lintWarnings:JSON.stringify(l.data.lintWarnings)}))});class Ps extends p.Component{constructor(){super(...arguments),this.container=p.createRef()}componentDidMount(){this._isMounted=!0,this.iframeID=Te,Te++,this._prepareFrame(),de[this.iframeID]=()=>{this.sendNewData(this._lastData)},me[this.iframeID]=e=>{this._lastHeight=e,this._isMounted&&this.props.seamless&&this.container.current&&(this.container.current.style.height=e+"px")}}shouldComponentUpdate(e){return e.datasetValue!==this.props.datasetValue||e.seamless!==this.props.seamless}componentDidUpdate(e){this.container.current&&(this.props.seamless?this.container.current.style.height=this._lastHeight+"px":this.container.current.style.height="100%"),e.datasetValue!==this.props.datasetValue&&this._prepareFrame()}componentWillUnmount(){de[this.iframeID]=null,me[this.iframeID]=null,this._isMounted=!1}_prepareFrame(){var t,a;this._frame&&((t=this.container.current)==null||t.removeChild(this._frame));const e=document.createElement("iframe");e.style.width="100%",e.style.height="100%",e.src=this.props.url,this.props.datasetKey&&(e.dataset[this.props.datasetKey]=this.props.datasetValue),e.dataset.id=String(this.iframeID),this.props.seamless&&(e.dataset.lintGutter="true"),(a=this.container.current)==null||a.appendChild(e),this._frame=e}sendNewData(e){const t=this._frame;this._isMounted&&e&&(t!=null&&t.contentWindow)&&(this._lastData=e,window.iframeDataStore[this.iframeID]=e,t.contentWindow.postMessage(this.iframeID,"*"))}render(){return s.jsx("div",{ref:this.container,style:{width:"100%",height:"100%"}})}}Ps.__docgenInfo={description:"",methods:[{name:"_prepareFrame",docblock:null,modifiers:[],params:[],returns:null},{name:"sendNewData",docblock:null,modifiers:[],params:[{name:"data",optional:!1,type:{name:"any"}}],returns:null}],displayName:"IframeContentRenderer",props:{url:{required:!0,tsType:{name:"string"},description:""},datasetKey:{required:!0,tsType:{name:"string"},description:""},datasetValue:{required:!0,tsType:{name:"any"},description:""},seamless:{required:!0,tsType:{name:"boolean"},description:""}}};const{InfoTip:qe}=g,ke=400,Se=400;var j;let Os=(j=class extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("fieldset",{className:"pair-editor",children:[s.jsxs("label",{children:["Name:"," ",s.jsx(f,{value:this.props.name,onChange:this.change("name")})]}),s.jsxs("label",{children:[" ","Value:"," ",s.jsx(f,{value:this.props.value,onChange:this.change("value")})]})]})}},j.propTypes={...c,name:r.string,value:r.string},j.defaultProps={name:"",value:""},j);var E;let As=(E=class extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handlePairChange=(e,t)=>{const a=this.props.pairs.slice();a[e]=t;const n=a[a.length-1];n.name&&n.value&&a.push({name:"",value:""}),this.change("pairs",a)},this.serialize=()=>m.serialize.call(this)}render(){const e=i.map(this.props.pairs,(t,a)=>s.jsx(Os,{name:t.name,value:t.value,onChange:this.handlePairChange.bind(this,a)},a));return s.jsx("div",{children:e})}},E.propTypes={...c,pairs:r.arrayOf(r.shape({name:r.string,value:r.string})).isRequired},E);const Rs=/khanacademy\.org\/computer-programming\/[^\/]+\/(\d+)/;function zs(l){const e=Rs.exec(l);return e&&(l=e[1]),l}const C=class C extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this._handleSettingsChange=e=>{this.change({settings:e.pairs})},this._handleProgramIDChange=e=>{e=zs(e);const{isDevServer:t,InitialRequestUrl:a}=Ue(),o=`${t?a.origin:"https://www.khanacademy.org"}/api/internal/scratchpads/${e}`;Fe.getJSON(o).done(d=>{const h=d.userAuthoredContentType;this.change({width:d.width,height:d.height,programID:e,programType:h})}).fail((d,h,x)=>{Me.error("Error retrieving scratchpad info for program ID ",us.TransientService,{cause:x,loggedMetadata:{textStatus:h,programID:e}}),this.change({width:ke,height:Se,programID:e,programType:null})})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsxs("label",{children:["Url or Program ID:"," ",s.jsx(f,{value:this.props.programID,onChange:this._handleProgramIDChange})]}),s.jsx("br",{}),s.jsx(b,{label:"Show Editor",checked:this.props.showEditor,onChange:e=>{this.props.onChange({showEditor:e})}}),s.jsx(qe,{children:'If you show the editor, you should use the "full-width" alignment to make room for the width of the editor.'}),s.jsx("br",{}),s.jsx(b,{label:"Show Buttons",checked:this.props.showButtons,onChange:e=>{this.props.onChange({showButtons:e})}}),s.jsx("br",{}),s.jsxs("label",{children:["Settings:",s.jsx(As,{name:"settings",pairs:this.props.settings,onChange:this._handleSettingsChange}),s.jsxs(qe,{children:["Settings that you add here are available to the program as an object returned by ",s.jsx("code",{children:"Program.settings()"})]})]})]})}};C.propTypes={...c},C.widgetName="cs-program",C.defaultProps={programID:"",programType:null,settings:[{name:"",value:""}],showEditor:!1,showButtons:!1,width:ke,height:Se};let $=C;$.__docgenInfo={description:"This is the main editor for this widget, to specify all the options.",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"_handleSettingsChange",docblock:null,modifiers:[],params:[{name:"settings",optional:!1,type:null}],returns:null},{name:"_handleProgramIDChange",docblock:null,modifiers:[],params:[{name:"programID",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"CSProgramEditor",props:{programID:{defaultValue:{value:'""',computed:!1},required:!1},programType:{defaultValue:{value:"null",computed:!1},required:!1},settings:{defaultValue:{value:'[{name: "", value: ""}]',computed:!1},required:!1},showEditor:{defaultValue:{value:"false",computed:!1},required:!1},showButtons:{defaultValue:{value:"false",computed:!1},required:!1},width:{defaultValue:{value:"400",computed:!1},required:!1},height:{defaultValue:{value:"400",computed:!1},required:!1}},composes:["@khanacademy/perseus"]};const ve=class ve extends p.Component{serialize(){return m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsx("p",{children:"This widget has been deprecated and removed"}),s.jsx("p",{children:"Learners will see a message and they will not be graded on this part. Please replace this widget with a supported one."})]})}};ve.widgetName="deprecated-standin";let F=ve;F.__docgenInfo={description:"",methods:[{name:"serialize",docblock:null,modifiers:[],params:[],returns:{type:{name:"any"}}}],displayName:"DeprecatedStandinEditor",props:{onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(options: any) => void",signature:{arguments:[{type:{name:"any"},name:"options"}],return:{name:"void"}}},description:""}}};const{InlineIcon:Ne,TextInput:Vs}=g,T=class T extends p.Component{constructor(){super(...arguments),this.editor=p.createRef(),this.hintEditor=p.createRef(),this.change=(...e)=>u.apply(this,e),this.handleAddHint=()=>{const e={content:""};this.props.onChange({hint:e},()=>{var t;(t=this.hintEditor.current)==null||t.focus()})},this.handleRemoveHint=e=>{this.props.onChange({hint:null})},this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=()=>{var e,t;return{title:this.props.title,...(e=this.editor.current)==null?void 0:e.serialize(),hint:(t=this.hintEditor.current)==null?void 0:t.serialize()}}}render(){return s.jsxs("div",{className:"perseus-group-editor",children:[s.jsx("div",{className:"perseus-widget-row",children:s.jsxs("label",{className:_.css(oe.title),children:["Title:"," ",s.jsx(Vs,{value:this.props.title,className:_.css(oe.input),onChange:this.change("title")})]})}),s.jsx(y,{ref:this.editor,content:this.props.content,widgets:this.props.widgets,apiOptions:this.props.apiOptions,images:this.props.images,widgetEnabled:!0,immutableWidgets:!1,onChange:this.props.onChange,warnNoPrompt:!0,warnNoWidgets:!0}),!this.props.hint&&s.jsxs("button",{type:"button",style:{marginTop:10},className:"add-hint simple-button orange",onClick:this.handleAddHint,children:[s.jsx(Ne,{...fs})," Add a hint"]}),this.props.hint&&s.jsxs("div",{className:"perseus-hint-editor",children:[s.jsx("div",{className:_.css(oe.hintsTitle),children:"Hint"}),s.jsx(y,{ref:this.hintEditor,content:this.props.hint?this.props.hint.content:"",widgets:this.props.hint?this.props.hint.widgets:{},apiOptions:this.props.apiOptions,images:this.props.hint&&this.props.hint.images,widgetEnabled:!0,immutableWidgets:!1,onChange:e=>{this.change("hint",Object.assign({},this.props.hint,e))}}),s.jsxs("button",{type:"button",className:"remove-hint simple-button orange",onClick:this.handleRemoveHint,children:[s.jsx(Ne,{...gs})," Remove this hint"]})]})]})}};T.propTypes={...c,title:r.string,content:r.string,widgets:r.object,images:r.object,apiOptions:be.propTypes},T.widgetName="graded-group",T.defaultProps={title:"",content:"",widgets:{},images:{},hint:null};let v=T;const oe=_.StyleSheet.create({title:{fontSize:18,fontWeight:"bold"},input:{fontSize:18},hintsTitle:{marginTop:10,fontSize:"110%",fontWeight:"bold"}});v.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleAddHint",docblock:null,modifiers:[],params:[],returns:null},{name:"handleRemoveHint",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GradedGroupEditor",props:{title:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},content:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},widgets:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},images:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},hint:{defaultValue:{value:"null",computed:!1},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0}},composes:["@khanacademy/perseus"]};const q=class q extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.getSaveWarnings=()=>[].concat(...this._editors.map(e=>e?e.getSaveWarnings():[])),this.serialize=()=>({gradedGroups:this.props.gradedGroups}),this.renderGroups=()=>this.props.gradedGroups?this.props.gradedGroups.map((e,t)=>s.jsx(v,{ref:a=>this._editors[t]=a,...e,apiOptions:this.props.apiOptions,widgetEnabled:!0,immutableWidgets:!1,onChange:a=>this.change("gradedGroups",Ls(this.props.gradedGroups,t,{...this.props.gradedGroups[t],...a}))},t)):null,this.addGroup=()=>{const e=this.props.gradedGroups||[];this.change("gradedGroups",e.concat([v.defaultProps]))}}UNSAFE_componentWillMount(){this._editors=[]}render(){return s.jsxs("div",{className:"perseus-group-editor",children:[this.renderGroups(),s.jsx("button",{onClick:this.addGroup,children:"Add group"})]})}};q.propTypes={...c,apiOptions:be.propTypes,gradedGroups:r.array,onChange:r.func.isRequired},q.widgetName="graded-group-set",q.defaultProps={gradedGroups:[]};let W=q;const Ls=(l,e,t)=>[...l.slice(0,e),t,...l.slice(e+1)];W.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null},{name:"renderGroups",docblock:null,modifiers:[],params:[],returns:null},{name:"addGroup",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GradedGroupSetEditor",props:{gradedGroups:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"array"},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0},onChange:{description:"",type:{name:"func"},required:!0}},composes:["@khanacademy/perseus"]};const{InfoTip:Es,MultiButtonGroup:Ds}=g,Ms=Je.widget,{DEFAULT_GRAPHER_PROPS:pe,allTypes:Us,chooseType:_s,defaultPlotProps:$s,getEquationString:Fs,typeToButton:Ws}=Is,k=class k extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handleAvailableTypesChange=e=>{let t=this.props.correct;if(!i.contains(e,this.props.correct.type)){const a=this.props.graph,n=_s(e);t=$s(n,a)}this.props.onChange({availableTypes:e,correct:t})},this.serialize=()=>i.chain(this.props).pick("correct","availableTypes").extend({graph:i.omit(this.props.graph,"box")}).value()}render(){const e=rs.SMALL;let t,a;if(this.props.graph.valid===!0){const n={graph:this.props.graph,plot:this.props.correct,availableTypes:this.props.availableTypes,onChange:(o,d)=>{var x;let h=this.props.correct;h.type===((x=o.plot)==null?void 0:x.type)?h=i.extend({},h,o.plot):h=o.plot,this.props.onChange({correct:h},d)},trackInteraction:function(){}};a=s.jsx(Ms,{...n,apiOptions:this.props.apiOptions,containerSizeClass:e}),t=Fs(n)}else a=s.jsx("div",{className:"perseus-error",children:this.props.graph.valid});return s.jsxs("div",{children:[s.jsxs("div",{children:["Correct answer"," ",s.jsx(Es,{children:s.jsx("p",{children:"Graph the correct answer in the graph below and ensure the equation or point coordinates displayed represent the correct answer."})})," ",": ",t]}),s.jsx($e,{editableSettings:["graph","snap","image"],box:as(e),range:this.props.graph.range,labels:this.props.graph.labels,step:this.props.graph.step,gridStep:this.props.graph.gridStep,snapStep:this.props.graph.snapStep,valid:this.props.graph.valid,backgroundImage:this.props.graph.backgroundImage,markings:this.props.graph.markings,rulerLabel:this.props.graph.rulerLabel,rulerTicks:this.props.graph.rulerTicks,showTooltips:this.props.graph.showTooltips,onChange:this.change("graph")}),s.jsxs("div",{className:"perseus-widget-row",children:[s.jsx("label",{children:"Available functions: "}),s.jsx(Ds,{allowEmpty:!1,values:this.props.availableTypes,buttons:i.map(Us,Ws),onChange:this.handleAvailableTypesChange})]}),a]})}};k.propTypes={...c},k.widgetName="grapher",k.defaultProps={correct:pe.plot,graph:pe.graph,availableTypes:pe.availableTypes};let H=k;H.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleAvailableTypesChange",docblock:null,modifiers:[],params:[{name:"newAvailableTypes",optional:!1,type:{name:"Array",elements:[{name:"any"}],raw:"Array",alias:"Array"}}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GrapherEditor",props:{correct:{defaultValue:{value:"DEFAULT_GRAPHER_PROPS.plot",computed:!0},required:!1},graph:{defaultValue:{value:"DEFAULT_GRAPHER_PROPS.graph",computed:!0},required:!1},availableTypes:{defaultValue:{value:"DEFAULT_GRAPHER_PROPS.availableTypes",computed:!0},required:!1}},composes:["@khanacademy/perseus"]};const S=class S extends p.Component{constructor(){super(...arguments),this.editor=p.createRef(),this._renderMetadataEditor=()=>{const e=this.props.apiOptions.GroupMetadataEditor;return s.jsx(e,{value:this.props.metadata,onChange:this.change("metadata")})},this.change=(...e)=>u.apply(this,e),this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=()=>{var e;return i.extend({},(e=this.editor.current)==null?void 0:e.serialize(),{metadata:this.props.metadata})}}render(){return s.jsxs("div",{className:"perseus-group-editor",children:[s.jsx("div",{children:this._renderMetadataEditor()}),s.jsx(y,{ref:this.editor,content:this.props.content,widgets:this.props.widgets,apiOptions:this.props.apiOptions,images:this.props.images,widgetEnabled:!0,immutableWidgets:!1,onChange:this.props.onChange})]})}};S.propTypes={...c,content:r.string,widgets:r.object,images:r.object,metadata:r.any,apiOptions:be.propTypes},S.widgetName="group",S.defaultProps={content:"",widgets:{},images:{},metadata:void 0};let B=S;B.__docgenInfo={description:"",methods:[{name:"_renderMetadataEditor",docblock:null,modifiers:[],params:[],returns:null},{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GroupEditor",props:{content:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},widgets:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},images:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},metadata:{defaultValue:{value:"undefined",computed:!0},description:"",type:{name:"any"},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0}},composes:["@khanacademy/perseus"]};const re=class re extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("fieldset",{children:[s.jsxs("label",{children:["Name:",s.jsx(f,{value:this.props.name,onChange:this.change("name")})]}),s.jsxs("label",{children:["Value:",s.jsx(f,{value:this.props.value,onChange:this.change("value")})]})]})}};re.propTypes={...c,name:r.string,value:r.string},re.defaultProps={name:"",value:""};let ge=re;const je=class je extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handlePairChange=(e,t)=>{const a=this.props.pairs.slice();a[e]=t;const n=a[a.length-1];n.name&&n.value&&a.push({name:"",value:""}),this.change("pairs",a)},this.serialize=()=>m.serialize.call(this)}render(){const e=i.map(this.props.pairs,(t,a)=>s.jsx(ge,{name:t.name,value:t.value,onChange:this.handlePairChange.bind(this,a)},a));return s.jsx("div",{children:e})}};je.propTypes={...c,pairs:r.arrayOf(r.shape({name:r.string,value:r.string})).isRequired};let fe=je;const N=class N extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handleSettingsChange=e=>{this.change({settings:e.pairs})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsxs("div",{style:{fontWeight:"bold",textAlign:"center"},children:["This widget is deprecated! ",s.jsx("br",{}),"Try using the Video or CS Program widgets instead."]}),s.jsxs("label",{children:["Url or Program ID:",s.jsx(f,{value:this.props.url,onChange:this.change("url")})]}),s.jsx("br",{}),s.jsxs("label",{children:["Settings:",s.jsx(fe,{name:"settings",pairs:this.props.settings,onChange:this.handleSettingsChange})]}),s.jsx("br",{}),s.jsxs("label",{children:["Width:",s.jsx(f,{value:this.props.width,onChange:this.change("width")})]}),s.jsxs("label",{children:["Height:",s.jsx(f,{value:this.props.height,onChange:this.change("height")})]}),s.jsx(b,{label:"Allow full screen",checked:this.props.allowFullScreen,onChange:e=>{this.props.onChange({allowFullScreen:e})}}),s.jsx("br",{}),s.jsx(b,{label:"Allow iframe content to redirect the page",checked:this.props.allowTopNavigation,onChange:e=>{this.props.onChange({allowTopNavigation:e})}})]})}};N.propTypes={...c},N.widgetName="iframe",N.defaultProps={url:"",settings:[{name:"",value:""}],width:"400",height:"400",allowFullScreen:!1,allowTopNavigation:!1};let K=N;K.__docgenInfo={description:"This is the main editor for this widget, to specify all the options.",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleSettingsChange",docblock:null,modifiers:[],params:[{name:"settings",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"IframeEditor",props:{url:{defaultValue:{value:'""',computed:!1},required:!1},settings:{defaultValue:{value:'[{name: "", value: ""}]',computed:!1},required:!1},width:{defaultValue:{value:'"400"',computed:!1},required:!1},height:{defaultValue:{value:'"400"',computed:!1},required:!1},allowFullScreen:{defaultValue:{value:"false",computed:!1},required:!1},allowTopNavigation:{defaultValue:{value:"false",computed:!1},required:!1}},composes:["@khanacademy/perseus"]};const{RangeInput:Hs}=g,Bs=Xe.widget,Ie=6,Ks=function(l){const e=[1,1];return i(l).each((t,a)=>{let n=0;i(t).each((o,d)=>{o!=null&&o.toString().length&&(n=d+1)}),e[1]=Math.max(e[1],n),n>0&&(e[0]=Math.max(e[0],a+1))}),e},I=class I extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.onMatrixBoardSizeChange=e=>{const t=Ks(this.props.answers);if(e[0]!==null&&e[1]!==null){e=[Math.round(Math.min(Math.max(e[0],1),Ie)),Math.round(Math.min(Math.max(e[1],1),Ie))];const a=i(Math.min(e[0],t[0])).times(n=>i(Math.min(e[1],t[1])).times(o=>this.props.answers[n][o]));this.props.onChange({matrixBoardSize:e,answers:a})}},this.serialize=()=>m.serialize.call(this)}render(){const e=i.extend({numericInput:!0,onBlur:()=>{},onFocus:()=>{},trackInteraction:()=>{}},this.props);return s.jsxs("div",{className:"perseus-matrix-editor",children:[s.jsxs("div",{className:"perseus-widget-row",children:[" ","Max matrix size:"," ",s.jsx(Hs,{value:this.props.matrixBoardSize,onChange:this.onMatrixBoardSizeChange,format:this.props.labelStyle,useArrowKeys:!0})]}),s.jsx("div",{className:"perseus-widget-row",children:s.jsx(Bs,{...e})}),s.jsxs("div",{className:"perseus-widget-row",children:[" ","Matrix prefix:"," ",s.jsx(y,{ref:"prefix",apiOptions:this.props.apiOptions,content:this.props.prefix,widgetEnabled:!1,onChange:t=>{this.change({prefix:t.content})}})]}),s.jsxs("div",{className:"perseus-widget-row",children:[" ","Matrix suffix:"," ",s.jsx(y,{ref:"suffix",apiOptions:this.props.apiOptions,content:this.props.suffix,widgetEnabled:!1,onChange:t=>{this.change({suffix:t.content})}})]})]})}};I.propTypes={...c,matrixBoardSize:r.arrayOf(r.number).isRequired,answers:r.arrayOf(r.arrayOf(r.number)),prefix:r.string,suffix:r.string,cursorPosition:r.arrayOf(r.number)},I.widgetName="matrix",I.defaultProps={matrixBoardSize:[3,3],answers:[[]],prefix:"",suffix:"",cursorPosition:[0,0]};let G=I;G.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"onMatrixBoardSizeChange",docblock:null,modifiers:[],params:[{name:"range",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"MatrixEditor",props:{matrixBoardSize:{defaultValue:{value:"[3, 3]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"number"}},required:!1},answers:{defaultValue:{value:"[[]]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"arrayOf",value:{name:"number"}}},required:!1},prefix:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},suffix:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},cursorPosition:{defaultValue:{value:"[0, 0]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"number"}},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:Gs,NumberInput:D,RangeInput:Ys}=g,Js={url:null,top:0,left:0},P=class P extends p.Component{constructor(){super(...arguments),this.className="perseus-widget-measurer",this.change=(...e)=>u.apply(this,e),this._changeUrl=e=>{this._changeImage("url",e.target.value)},this._changeTop=e=>{this._changeImage("top",e)},this._changeLeft=e=>{this._changeImage("left",e)},this._changeImage=(e,t)=>{const a=i.clone(this.props.image);a[e]=t,this.change("image",a)},this.renderLabelChoices=e=>i.map(e,function(t){const[a,n]=t;return s.jsx("option",{value:n,children:a},n)}),this.serialize=()=>m.serialize.call(this)}render(){const e=i.extend({},Js,this.props.image);return s.jsxs("div",{className:"perseus-widget-measurer",children:[s.jsx("div",{children:"Image displayed under protractor and/or ruler:"}),s.jsxs("div",{children:["URL:"," ",s.jsx("input",{type:"text",className:"perseus-widget-measurer-url",ref:"image-url",defaultValue:e.url,onChange:this._changeUrl}),s.jsx(Gs,{children:s.jsx("p",{children:'Create an image in graphie, or use the "Add image" function to create a background.'})})]}),e.url&&s.jsxs("div",{className:"perseus-widget-row",children:[s.jsxs("label",{className:"perseus-widget-left-col",children:["Pixels from top:"," ",s.jsx(D,{placeholder:0,onChange:this._changeTop,value:e.top,useArrowKeys:!0})]}),s.jsxs("label",{className:"perseus-widget-right-col",children:["Pixels from left:"," ",s.jsx(D,{placeholder:0,onChange:this._changeLeft,value:e.left,useArrowKeys:!0})]})]}),s.jsxs("div",{children:["Containing area [width, height]:"," ",s.jsx(Ys,{onChange:this.change("box"),value:this.props.box,useArrowKeys:!0})]}),s.jsxs("div",{className:"perseus-widget-row",children:[s.jsx("div",{className:"perseus-widget-left-col",children:s.jsx(b,{label:"Show ruler",checked:this.props.showRuler,onChange:t=>{this.props.onChange({showRuler:t})}})}),s.jsx("div",{className:"perseus-widget-right-col",children:s.jsx(b,{label:"Show protractor",checked:this.props.showProtractor,onChange:t=>{this.props.onChange({showProtractor:t})}})})]}),this.props.showRuler&&s.jsxs("div",{children:[s.jsx("div",{children:s.jsxs("label",{children:[" ","Ruler label:"," ",s.jsxs("select",{onChange:t=>this.change("rulerLabel",t.target.value),value:this.props.rulerLabel,children:[s.jsx("option",{value:"",children:"None"}),s.jsx("optgroup",{label:"Metric",children:this.renderLabelChoices([["milimeters","mm"],["centimeters","cm"],["meters","m"],["kilometers","km"]])}),s.jsx("optgroup",{label:"Imperial",children:this.renderLabelChoices([["inches","in"],["feet","ft"],["yards","yd"],["miles","mi"]])})]})]})}),s.jsx("div",{children:s.jsxs("label",{children:[" ","Ruler ticks:"," ",s.jsx("select",{onChange:t=>this.change("rulerTicks",+t.target.value),value:this.props.rulerTicks,children:i.map([1,2,4,8,10,16],function(t){return s.jsx("option",{value:t,children:t},t)})})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Ruler pixels per unit:"," ",s.jsx(D,{placeholder:40,onChange:this.change("rulerPixels"),value:this.props.rulerPixels,useArrowKeys:!0})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Ruler length in units:"," ",s.jsx(D,{placeholder:10,onChange:this.change("rulerLength"),value:this.props.rulerLength,useArrowKeys:!0})]})})]})]})}};P.widgetName="measurer",P.propTypes={...c,box:r.arrayOf(r.number),image:r.shape({url:r.string,top:r.number,left:r.number}),showProtractor:r.bool,showRuler:r.bool,rulerLabel:r.string,rulerTicks:r.number,rulerPixels:r.number,rulerLength:r.number},P.defaultProps={box:[480,480],image:{},showProtractor:!0,showRuler:!1,rulerLabel:"",rulerTicks:10,rulerPixels:40,rulerLength:10};let Y=P;Y.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"_changeUrl",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"_changeTop",docblock:null,modifiers:[],params:[{name:"newTop",optional:!1,type:null}],returns:null},{name:"_changeLeft",docblock:null,modifiers:[],params:[{name:"newLeft",optional:!1,type:null}],returns:null},{name:"_changeImage",docblock:null,modifiers:[],params:[{name:"subProp",optional:!1,type:null},{name:"newValue",optional:!1,type:null}],returns:null},{name:"renderLabelChoices",docblock:null,modifiers:[],params:[{name:"choices",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"MeasurerEditor",props:{box:{defaultValue:{value:"[480, 480]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"number"}},required:!1},image:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{url:{name:"string",required:!1},top:{name:"number",required:!1},left:{name:"number",required:!1}}},required:!1},showProtractor:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},showRuler:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},rulerLabel:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},rulerTicks:{defaultValue:{value:"10",computed:!1},description:"",type:{name:"number"},required:!1},rulerPixels:{defaultValue:{value:"40",computed:!1},description:"",type:{name:"number"},required:!1},rulerLength:{defaultValue:{value:"10",computed:!1},description:"",type:{name:"number"},required:!1}},composes:["@khanacademy/perseus"]};const{NumberInput:Xs,TextInput:Zs}=g,ne=class ne extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.updateMolecule=e=>{this.change({smiles:e})},this.updateRotation=e=>{this.change({rotationAngle:e})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsx("div",{children:s.jsxs("label",{children:["SMILES: ",s.jsx(Zs,{onChange:this.updateMolecule,value:this.props.smiles})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Rotation (deg): ",s.jsx(Xs,{onChange:this.updateRotation,value:this.props.rotationAngle})]})})]})}};ne.propTypes={...c,rotationAngle:r.number,smiles:r.string},ne.widgetName="molecule-renderer";let J=ne;J.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"updateMolecule",docblock:null,modifiers:[],params:[{name:"newValue",optional:!1,type:null}],returns:null},{name:"updateRotation",docblock:null,modifiers:[],params:[{name:"newValue",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"MoleculeWidgetEditor",props:{rotationAngle:{description:"",type:{name:"number"},required:!1},smiles:{description:"",type:{name:"string"},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:M,TextListEditor:Pe}=g,ue="normal",Oe="auto",ce="horizontal",Ae="vertical",O=class O extends p.Component{constructor(){super(...arguments),this.onOptionsChange=(e,t,a)=>{const n={};n[e]=i.map(t,function(o){return{content:o}}),this.props.onChange(n,a)},this.onLayoutChange=e=>{this.props.onChange({layout:e.target.value})},this.onHeightChange=e=>{this.props.onChange({height:e.target.value})},this.serialize=()=>({options:i.chain(i.pluck(this.props.correctOptions,"content")).union(i.pluck(this.props.otherOptions,"content")).uniq().reject(function(t){return t===""}).sort().sortBy(function(t){return/\d/.test(t)?0:/^\$?[a-zA-Z]+\$?$/.test(t)?2:1}).map(function(t){return{content:t}}).value(),correctOptions:this.props.correctOptions,otherOptions:this.props.otherOptions,height:this.props.height,layout:this.props.layout})}render(){return s.jsxs("div",{className:"perseus-widget-orderer",children:[s.jsxs("div",{children:[" ","Correct answer:"," ",s.jsx(M,{children:s.jsx("p",{children:"Place the cards in the correct order. The same card can be used more than once in the answer but will only be displayed once at the top of a stack of identical cards."})})]}),s.jsx(Pe,{options:i.pluck(this.props.correctOptions,"content"),onChange:this.onOptionsChange.bind(this,"correctOptions"),layout:this.props.layout}),s.jsxs("div",{children:[" ","Other cards:"," ",s.jsx(M,{children:s.jsx("p",{children:"Create cards that are not part of the answer."})})]}),s.jsx(Pe,{options:i.pluck(this.props.otherOptions,"content"),onChange:this.onOptionsChange.bind(this,"otherOptions"),layout:this.props.layout}),s.jsxs("div",{children:[s.jsxs("label",{children:[" ","Layout:"," ",s.jsxs("select",{value:this.props.layout,onChange:this.onLayoutChange,children:[s.jsx("option",{value:ce,children:"Horizontal"}),s.jsx("option",{value:Ae,children:"Vertical"})]})]}),s.jsx(M,{children:s.jsx("p",{children:"Use the horizontal layout for short text and small images. The vertical layout is best for longer text (e.g. proofs)."})})]}),s.jsxs("div",{children:[s.jsxs("label",{children:[" ","Height:"," ",s.jsxs("select",{value:this.props.height,onChange:this.onHeightChange,children:[s.jsx("option",{value:ue,children:"Normal"}),s.jsx("option",{value:Oe,children:"Automatic"})]})]}),s.jsx(M,{children:s.jsx("p",{children:'Use "Normal" for text, "Automatic" for images.'})})]})]})}};O.propTypes={correctOptions:r.array,otherOptions:r.array,height:r.oneOf([ue,Oe]),layout:r.oneOf([ce,Ae]),onChange:r.func.isRequired},O.widgetName="orderer",O.defaultProps={correctOptions:[{content:"$x$"}],otherOptions:[{content:"$y$"}],height:ue,layout:ce};let X=O;X.__docgenInfo={description:"",methods:[{name:"onOptionsChange",docblock:null,modifiers:[],params:[{name:"whichOptions",optional:!1,type:null},{name:"options",optional:!1,type:null},{name:"cb",optional:!1,type:null}],returns:null},{name:"onLayoutChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"onHeightChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"OrdererEditor",props:{correctOptions:{defaultValue:{value:'[{content: "$x$"}]',computed:!1},description:"",type:{name:"array"},required:!1},otherOptions:{defaultValue:{value:'[{content: "$y$"}]',computed:!1},description:"",type:{name:"array"},required:!1},height:{defaultValue:{value:'"normal"',computed:!1},description:"",type:{name:"enum",value:[{value:'"normal"',computed:!1},{value:'"auto"',computed:!1}]},required:!1},layout:{defaultValue:{value:'"horizontal"',computed:!1},description:"",type:{name:"enum",value:[{value:'"horizontal"',computed:!1},{value:'"vertical"',computed:!1}]},required:!1},onChange:{description:"",type:{name:"func"},required:!0}}};const{InfoTip:Re}=g,A=class A extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){const e=s.jsx(y,{ref:"passage-editor",apiOptions:this.props.apiOptions,content:this.props.passageText,widgetEnabled:!1,placeholder:"Type passage here...",onChange:a=>{this.change({passageText:a.content})},showWordCount:!0}),t=s.jsx(y,{ref:"passage-footnotes-editor",apiOptions:this.props.apiOptions,content:this.props.footnotes,widgetEnabled:!1,placeholder:"Type footnotes here...",onChange:a=>{this.change({footnotes:a.content})}});return s.jsxs("div",{className:"perseus-widget-passage-editor",children:[s.jsx("div",{className:"perseus-widget-row",children:s.jsx(b,{label:"Show line numbers",checked:this.props.showLineNumbers,onChange:a=>{this.props.onChange({showLineNumbers:a})}})}),s.jsxs("div",{children:["Passage title:",s.jsx(Re,{children:s.jsx("p",{children:"An optional title that will appear directly above the passage in the same font style. (E.g. Passage 1)"})}),s.jsx("div",{children:s.jsx("input",{type:"text",defaultValue:this.props.passageTitle,onChange:a=>{this.change({passageTitle:a.target.value})}})})]}),s.jsxs("div",{children:["Passage Text:",e]}),s.jsxs("div",{children:["Footnotes:",s.jsx(Re,{children:s.jsx("p",{children:"To add footnotes, add ^ characters where they belong in the passage. Then, add ^ in the footnotes area to reference the footnotes in the passage."})}),t]})]})}};A.propTypes={...c,passageTitle:r.string,passageText:r.string,footnotes:r.string,showLineNumbers:r.bool},A.widgetName="passage",A.defaultProps={passageTitle:"",passageText:"",footnotes:"",showLineNumbers:!0};let Z=A;Z.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PassageEditor",props:{passageTitle:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},passageText:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},footnotes:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},showLineNumbers:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:Qs,NumberInput:ze,TextInput:et}=g,R=class R extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsx("div",{children:s.jsxs("label",{children:["Passage Number: ",s.jsx(ze,{value:this.props.passageNumber,onChange:this.change("passageNumber")})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Reference Number: ",s.jsx(ze,{value:this.props.referenceNumber,onChange:this.change("referenceNumber")})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Summary Text: ",s.jsx(et,{value:this.props.summaryText,onChange:this.change("summaryText")}),s.jsxs(Qs,{children:[s.jsx("p",{children:"Short summary of the referenced section. This will be included in parentheses and quotes automatically."}),s.jsx("p",{children:"Ex: The start ... the end"})]})]})})]})}};R.propTypes={...c,passageNumber:r.number,referenceNumber:r.number,summaryText:r.string},R.widgetName="passage-ref",R.defaultProps={passageNumber:1,referenceNumber:1,summaryText:""};let Q=R;Q.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PassageRefEditor",props:{passageNumber:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},referenceNumber:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},summaryText:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1}},composes:["@khanacademy/perseus"]};const z=class z extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handleContentChange=e=>{this.change({content:e.target.value})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:["Content:",s.jsx("input",{type:"text",value:this.props.content,onChange:this.handleContentChange})]})}};z.propTypes={...c,content:r.string},z.widgetName="passage-ref-target",z.defaultProps={content:""};let ee=z;ee.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleContentChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PassageRefTargetEditor",props:{content:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:w,NumberInput:Ve,RangeInput:st,TextListEditor:tt}=g,at=Ze.widget,ye="starting",xe="correct",rt=[ye,xe];function Le(l,e,t){const a=i.clone(l);a.length=e;for(let n=l.length;n"$"+ts(l,2)+"$",ie=class ie extends p.Component{constructor(){super(...arguments),this.state={editing:this.props.static?ye:xe,pic:null,loadedUrl:null,minX:null,maxX:null,tickStep:null},this.fetchPic=e=>{if(this.state.loadedUrl!==e){const t=new Image;t.src=e,t.onload=()=>{this.setState({pic:t,loadedUrl:e})}}},this.handleChangeTickStep=e=>{this.setState({tickStep:e})},this.handleChangeRange=e=>{this.setState({minX:e[0],maxX:e[1]})},this.changeLabelInterval=e=>{this.props.onChange({labelInterval:e})},this.handlePlotterChange=e=>{const t={};t[this.state.editing]=e.values,this.props.onChange(t)},this.changeType=e=>{let t;if(e==="histogram"?(t=[Ee(0)].concat(this.props.categories),this.props.onChange({type:e,categories:t})):this.props.type==="histogram"?(t=this.props.categories.slice(1),this.props.onChange({type:e,categories:t})):this.props.onChange({type:e}),t){const a=le.findDOMNode(this.refs.categories);a.value=t.join(", ")}},this.changeLabel=(e,t)=>{const a=i.clone(this.props.labels);a[e]=t.target.value,this.props.onChange({labels:a})},this.changePicUrl=e=>{const t=he.getRealImageUrl(e);this.props.onChange({picUrl:t})},this.changeCategories=e=>{let t=e.length;this.props.type==="histogram"&&t--;const a=this.props.scaleY;this.props.onChange({categories:e,correct:Le(this.props.correct,t,a),starting:Le(this.props.starting,t,a)})},this.changeScale=e=>{const t=this.props.scaleY,a=+e.target.value||U.scaleY,n=function(d){return d*a/t},o=n(this.props.maxY);this.props.onChange({scaleY:a,maxY:o,correct:i.map(this.props.correct,n),starting:i.map(this.props.starting,n)}),le.findDOMNode(this.refs.maxY).value=o},this.changeMax=e=>{this.props.onChange({maxY:+e.target.value||U.maxY})},this.changeSnaps=e=>{this.props.onChange({snapsPerLine:+e.target.value||U.snapsPerLine})},this.changeEditing=e=>{this.setState({editing:e})},this.setCategoriesFromScale=()=>{const e=this.state.tickStep||1,t=this.state.minX||0,a=this.state.maxX||0,n=Math.floor((a-t)/e)*e;let o;this.props.type==="histogram"||this.props.type==="dotplot"?o=i.range(0,n+e,e):o=i.range(e,n+e,e),o=i.map(o,h=>h+t),o=i.map(o,Ee),this.changeCategories(o);const d=le.findDOMNode(this.refs.categories);d.value=o.join(", ")},this.serialize=()=>{const e=i.pick(this.props,"correct","starting","type","labels","categories","scaleY","maxY","snapsPerLine","labelInterval");return this.props.type==="pic"&&(e.picUrl=this.props.picUrl),e}}UNSAFE_componentWillMount(){this.fetchPic(this.props.picUrl)}UNSAFE_componentWillReceiveProps(e){this.fetchPic(e.picUrl),e.static&&this.setState({editing:"starting"})}render(){const e=i.contains(["line","histogram","dotplot"],this.props.type),t=!i.contains(["pic","dotplot"],this.props.type),a={trackInteraction:()=>{},...this.props};return s.jsxs("div",{className:"perseus-widget-plotter-editor",children:[s.jsxs("div",{children:["Chart type:"," ",Qe.map(n=>s.jsxs("label",{children:[s.jsx("input",{type:"radio",name:"chart-type",checked:this.props.type===n,onChange:i.partial(this.changeType,n)}),n]},n),this)]}),s.jsxs("div",{children:["Labels:"," ",["x","y"].map((n,o)=>s.jsxs("label",{children:[n+":",s.jsx("input",{type:"text",onChange:i.partial(this.changeLabel,o),defaultValue:this.props.labels[o]})]},n),this)]}),e&&s.jsxs("div",{className:"set-from-scale-box",children:[s.jsx("span",{className:"categories-title",children:"Set Categories From Scale"}),s.jsxs("div",{children:[s.jsxs("label",{children:["Tick Step:"," ",s.jsx(Ve,{placeholder:1,useArrowKeys:!0,value:this.state.tickStep,onChange:this.handleChangeTickStep})]}),s.jsx(w,{children:s.jsx("p",{children:"The difference between adjacent ticks."})})]}),s.jsx("div",{children:s.jsxs("label",{children:["Range:"," ",s.jsx(st,{placeholder:[0,10],useArrowKeys:!0,value:[this.state.minX,this.state.maxX],onChange:this.handleChangeRange})]})}),s.jsx("div",{children:s.jsxs("button",{onClick:this.setCategoriesFromScale,children:["Set Categories"," "]})})]}),s.jsxs("div",{children:[s.jsxs("label",{children:["Label Interval:"," ",s.jsx(Ve,{useArrowKeys:!0,value:this.props.labelInterval,onChange:this.changeLabelInterval})]}),s.jsx(w,{children:s.jsx("p",{children:'Which ticks to display the labels for. For instance, setting this to "4" will only show every 4th label (plus the last one)'})})]}),this.props.type==="pic"&&s.jsxs("div",{children:[s.jsxs("label",{children:["Picture:"," ",s.jsx(f,{className:"pic-url",value:this.props.picUrl,onChange:this.changePicUrl}),s.jsx(w,{children:s.jsx("p",{children:'Use the default picture of Earth, or insert the URL for a different picture using the "Add image" function.'})})]}),this.state.pic&&this.state.pic.width!==this.state.pic.height&&s.jsxs("p",{className:"warning",children:[s.jsx("b",{children:"Warning"}),": You are using a picture which is not square. This means the image will get distorted. You should probably crop it to be square."]})]}),s.jsx("div",{children:s.jsxs("label",{children:["Categories:"," ",s.jsx(tt,{ref:"categories",layout:"horizontal",options:this.props.categories,onChange:this.changeCategories})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Scale (y):"," ",s.jsx("input",{type:"text",onChange:this.changeScale,defaultValue:this.props.scaleY})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Max y:"," ",s.jsx("input",{type:"text",ref:"maxY",onChange:this.changeMax,defaultValue:this.props.maxY})]})}),t&&s.jsxs("div",{children:[s.jsxs("label",{children:["Snaps per line:"," ",s.jsx("input",{type:"text",onChange:this.changeSnaps,defaultValue:this.props.snapsPerLine})]}),s.jsx(w,{children:s.jsx("p",{children:"Creates the specified number of divisions between the horizontal lines. Fewer snaps between lines makes the graph easier for the student to create correctly."})})]}),s.jsxs("div",{children:["Editing values:"," ",rt.map(n=>s.jsxs("label",{children:[s.jsx("input",{type:"radio",disabled:n===xe&&this.props.static,checked:this.props.static?n===ye:this.state.editing===n,onChange:o=>this.changeEditing(n)}),n]},n)),s.jsxs(w,{children:[s.jsx("p",{children:"Use this toggle to switch between editing the correct answer (what the student will be graded on) and the starting values (what the student will see plotted when they start the problem). Note: These cannot be the same."}),s.jsx("p",{children:"In static mode, the starting values are rendered out to the displayed widget."})]})]}),s.jsx(at,{...a,starting:this.props[this.state.editing],onChange:this.handlePlotterChange})]})}};ie.widgetName="plotter",ie.defaultProps={...U,correct:[1],starting:[1],type:"bar",labels:["",""],categories:[""],picSize:30,picBoxHeight:36,plotDimensions:[275,200],labelInterval:1,get picUrl(){const e=Ue().staticUrl;return e?e("/images/badges/earth-small.png"):null}};let se=ie;se.__docgenInfo={description:"",methods:[{name:"fetchPic",docblock:null,modifiers:[],params:[{name:"url",optional:!1,type:null}],returns:null},{name:"handleChangeTickStep",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"handleChangeRange",docblock:null,modifiers:[],params:[{name:"newValue",optional:!1,type:null}],returns:null},{name:"changeLabelInterval",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"handlePlotterChange",docblock:null,modifiers:[],params:[{name:"newProps",optional:!1,type:null}],returns:null},{name:"changeType",docblock:null,modifiers:[],params:[{name:"type",optional:!1,type:null}],returns:null},{name:"changeLabel",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"changePicUrl",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"changeCategories",docblock:null,modifiers:[],params:[{name:"categories",optional:!1,type:null}],returns:null},{name:"changeScale",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"changeMax",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"changeSnaps",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"changeEditing",docblock:null,modifiers:[],params:[{name:"editing",optional:!1,type:null}],returns:null},{name:"setCategoriesFromScale",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PlotterEditor",props:{type:{required:!1,tsType:{name:"unknown[number]",raw:'PerseusPlotterWidgetOptions["type"]'},description:"",defaultValue:{value:'"bar"',computed:!1}},labels:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:"",defaultValue:{value:'["", ""]',computed:!1}},categories:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]}],raw:"ReadonlyArray"},description:"",defaultValue:{value:'[""]',computed:!1}},scaleY:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"1",computed:!1}},maxY:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"10",computed:!1}},snapsPerLine:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"2",computed:!1}},picSize:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"30",computed:!1}},picBoxHeight:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"36",computed:!1}},picUrl:{required:!0,tsType:{name:"string"},description:""},plotDimensions:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"number"}],raw:"ReadonlyArray"},description:"",defaultValue:{value:"[275, 200]",computed:!1}},labelInterval:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"1",computed:!1}},starting:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"number"}],raw:"ReadonlyArray"},description:"",defaultValue:{value:"[1]",computed:!1}},correct:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"number"}],raw:"ReadonlyArray"},description:"",defaultValue:{value:"[1]",computed:!1}},static:{required:!0,tsType:{name:"boolean"},description:""},onChange:{required:!0,tsType:{name:"any"},description:""}}};const{InfoTip:nt,NumberInput:De}=g,it=es.widget,V=class V extends p.Component{constructor(){super(...arguments),this.numberOfColumns=p.createRef(),this.focus=()=>{var e;(e=this.numberOfColumns.current)==null||e.focus()},this.onSizeInput=(e,t)=>{let a=+e||0,n=+t||0;a=Math.min(Math.max(1,a),30),n=Math.min(Math.max(1,n),6);const o=this.props.columns,d=this.props.rows,h=this.props.answers;a<=d?h.length=a:i(a-d).times(function(){h.push(he.stringArrayOfSize(o))});function x(Ce){n<=o?Ce.length=n:i(n-o).times(function(){Ce.push("")})}const we=this.props.headers;x(we),i.each(h,x),this.props.onChange({rows:a,columns:n,answers:h,headers:we})},this.serialize=()=>{const e=i.pick(this.props,"headers","rows","columns");return i.extend({},e,{answers:i.map(this.props.answers,i.clone)})}}render(){return s.jsxs("div",{children:[s.jsx("div",{className:"perseus-widget-row",children:s.jsxs("label",{children:["Number of columns:"," ",s.jsx(De,{ref:this.numberOfColumns,value:this.props.columns,onChange:e=>{e&&this.onSizeInput(this.props.rows,e)},useArrowKeys:!0})]})}),s.jsx("div",{className:"perseus-widget-row",children:s.jsxs("label",{children:["Number of rows:"," ",s.jsx(De,{ref:"numberOfRows",value:this.props.rows,onChange:e=>{e&&this.onSizeInput(e,this.props.columns)},useArrowKeys:!0})]})}),s.jsxs("div",{children:[" ","Table of answers:"," ",s.jsx(nt,{children:s.jsx("p",{children:"The student has to fill out all cells in the table. For partially filled tables create a table using the template, and insert text input boxes as desired."})})]}),s.jsx("div",{children:s.jsx(it,{headers:this.props.headers,answers:this.props.answers,onChange:this.props.onChange,apiOptions:this.props.apiOptions,editableHeaders:!0,onFocus:()=>{},onBlur:()=>{},trackInteraction:()=>{},Editor:y})})]})}};V.propTypes={rows:r.number,columns:r.number,headers:r.arrayOf(r.string),answers:r.arrayOf(r.arrayOf(r.string))},V.widgetName="table",V.defaultProps=function(){const a=i(4).times(function(){return he.stringArrayOfSize(1)});return{headers:[""],rows:4,columns:1,answers:a}}();let te=V;te.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"onSizeInput",docblock:null,modifiers:[],params:[{name:"numRawRows",optional:!1,type:null},{name:"numRawColumns",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"TableEditor",props:{rows:{description:"",type:{name:"number"},required:!1},columns:{description:"",type:{name:"number"},required:!1},headers:{description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},answers:{description:"",type:{name:"arrayOf",value:{name:"arrayOf",value:{name:"string"}}},required:!1}}};const{InfoTip:lt}=g,ot=/khanacademy\.org\/.*\/v\/(.*)$/;function pt(l){const e=ot.exec(l);return e?e[1]:l}const L=class L extends p.Component{constructor(){super(...arguments),this._handleUrlChange=e=>{this.props.onChange({location:pt(e)})},this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsx("div",{children:s.jsxs("label",{children:["KA Video Slug:"," ",s.jsx(f,{value:this.props.location,style:{width:290},onChange:this._handleUrlChange}),s.jsx(lt,{children:"KA video URLs will be converted to just the slug."})]})})}};L.propTypes={...c,location:r.string,onChange:r.func},L.widgetName="video",L.defaultProps={location:""};let ae=L;ae.__docgenInfo={description:"This is the main editor for this widget, to specify all the options.",methods:[{name:"_handleUrlChange",docblock:null,modifiers:[],params:[{name:"url",optional:!1,type:null}],returns:null},{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"VideoEditor",props:{location:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},onChange:{description:"",type:{name:"func"},required:!1}},composes:["@khanacademy/perseus"]};const ut=[ps,$,cs,hs,ds,ms,v,W,H,B,K,ys,xs,bs,vs,js,ws,G,Y,J,Cs,Ts,X,Z,Q,ee,qs,se,ks,Ns,te,ae,Ss,F],fa=()=>{ns(ss),is(ut),ls(),os()};export{ut as A,Ps as I,ga as J,fa as r}; +import{j as s}from"./jsx-runtime-63Ea5SlK.js";import{c as _e,G as $e}from"./graph-settings-RVCdgmRM.js";import{_ as i,$ as Fe}from"./jquery-yG1GhClm.js";import{t as We,D as He,u as Be,v as Ke,x as Ge,y as Ye,c as u,p as c,G as Je,M as Xe,z as Ze,B as Qe,T as es,w as ss}from"./article-renderer-h_m-tvVP.js";import{U as he,r as ts}from"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import{L as Me}from"./svg-image-FcZanvM1.js";import{A as be}from"./perseus-api-1-ethIrW.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import{m as as,n as rs,r as ns,c as is,a as ls,d as os}from"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import{g as Ue}from"./dependencies-CP7Uh8Kq.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{r as p}from"./index-6oxdNXpR.js";import{C as ps}from"./categorizer-editor-w3RL0Wed.js";import{E as us}from"./perseus-error-l3K_anoI.js";import{c as g}from"./components-2XngBvY8.js";import{E as m}from"./editor-jsonify-UVC33bjS.js";import{C as b}from"./index-V5gl6frG.js";import{P as r}from"./index-0C4KXdeC.js";import{B as f}from"./blur-input-6j4bgLwx.js";import{D as cs}from"./definition-editor-mtNl78Ws.js";import{D as hs}from"./dropdown-editor-zKHD15eA.js";import{E as ds}from"./explanation-editor-jVSk3itt.js";import{E as ms}from"./expression-editor--gvmUBTK.js";import{i as gs}from"./icon-paths-5JCXzGsq.js";import{l as _}from"./index-awljIyHI.js";import{E as y}from"./editor-JBlHUPac.js";import{i as fs}from"./icon-paths-EoBkHOLI.js";import{I as ys}from"./image-editor-hBd9GH_N.js";import{I as xs}from"./input-number-editor-IPEdB_LR.js";import{I as bs}from"./interaction-editor-o5mLkBC2.js";import{I as vs}from"./interactive-graph-editor-aOqBZtl-.js";import{L as js}from"./label-image-editor-1OjT5p1R.js";import{M as ws}from"./matcher-editor-2MSFAVmw.js";import{N as Cs}from"./number-line-editor-Fq_hw3be.js";import{N as Ts}from"./numeric-input-editor-YnVVoF5-.js";import{P as qs}from"./phet-simulation-editor-13ErfkdC.js";import{F as le}from"./index-9gkyvru-.js";import{P as ks}from"./python-program-editor-YqavN4kp.js";import{R as Ss}from"./editor-CEQdVGNe.js";import{S as Ns}from"./sorter-editor-nvFR-j1p.js";const Is={allTypes:We,DEFAULT_GRAPHER_PROPS:He,chooseType:Be,defaultPlotProps:Ke,getEquationString:Ge,typeToButton:Ye},ga=_e({displayName:"JsonEditor",getInitialState:function(){return{currentValue:JSON.stringify(this.props.value,null,4),valid:!0}},UNSAFE_componentWillReceiveProps:function(l){(!this.state.valid||!i.isEqual(l.value,JSON.parse(this.state.currentValue)))&&this.setState(this.getInitialState())},handleKeyDown:function(l){if(l.key==="Tab"){const e=l.target.selectionStart,t=l.target.value,a=t.substring(0,e),n=t.substring(e,t.length);l.target.value=a+" "+n,l.target.selectionStart=a.length+4,l.target.selectionEnd=a.length+4,l.preventDefault(),this.handleChange(l)}},handleChange:function(l){const e=l.target.value;try{let t=JSON.parse(e);i.isString(t)&&(t=JSON.parse(t)),this.setState({currentValue:e,valid:!0},function(){this.props.onChange(t)})}catch{this.setState({currentValue:e,valid:!1})}},handleBlur:function(l){const e=l.target.value;try{let t=JSON.parse(e);i.isString(t)&&(t=JSON.parse(t)),this.setState({currentValue:JSON.stringify(t,null,4),valid:!0},function(){this.props.onChange(t)})}catch{this.setState({currentValue:JSON.stringify(this.props.value,null,4),valid:!0})}},render:function(){const l="perseus-json-editor "+(this.state.valid?"valid":"invalid");return s.jsx("textarea",{className:l,value:this.state.currentValue,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onBlur:this.handleBlur})}});let Te=0;const de={},me={};window.iframeDataStore={};window.addEventListener("message",l=>{if(typeof l.data=="string"){const e=de[l.data];e&&e()}else l.data.id&&(l.data.height!==void 0?me[l.data.id](l.data.height):l.data.lintWarnings&&Me.log("LINTER REPORT",{lintWarnings:JSON.stringify(l.data.lintWarnings)}))});class Ps extends p.Component{constructor(){super(...arguments),this.container=p.createRef()}componentDidMount(){this._isMounted=!0,this.iframeID=Te,Te++,this._prepareFrame(),de[this.iframeID]=()=>{this.sendNewData(this._lastData)},me[this.iframeID]=e=>{this._lastHeight=e,this._isMounted&&this.props.seamless&&this.container.current&&(this.container.current.style.height=e+"px")}}shouldComponentUpdate(e){return e.datasetValue!==this.props.datasetValue||e.seamless!==this.props.seamless}componentDidUpdate(e){this.container.current&&(this.props.seamless?this.container.current.style.height=this._lastHeight+"px":this.container.current.style.height="100%"),e.datasetValue!==this.props.datasetValue&&this._prepareFrame()}componentWillUnmount(){de[this.iframeID]=null,me[this.iframeID]=null,this._isMounted=!1}_prepareFrame(){var t,a;this._frame&&((t=this.container.current)==null||t.removeChild(this._frame));const e=document.createElement("iframe");e.style.width="100%",e.style.height="100%",e.src=this.props.url,this.props.datasetKey&&(e.dataset[this.props.datasetKey]=this.props.datasetValue),e.dataset.id=String(this.iframeID),this.props.seamless&&(e.dataset.lintGutter="true"),(a=this.container.current)==null||a.appendChild(e),this._frame=e}sendNewData(e){const t=this._frame;this._isMounted&&e&&(t!=null&&t.contentWindow)&&(this._lastData=e,window.iframeDataStore[this.iframeID]=e,t.contentWindow.postMessage(this.iframeID,"*"))}render(){return s.jsx("div",{ref:this.container,style:{width:"100%",height:"100%"}})}}Ps.__docgenInfo={description:"",methods:[{name:"_prepareFrame",docblock:null,modifiers:[],params:[],returns:null},{name:"sendNewData",docblock:null,modifiers:[],params:[{name:"data",optional:!1,type:{name:"any"}}],returns:null}],displayName:"IframeContentRenderer",props:{url:{required:!0,tsType:{name:"string"},description:""},datasetKey:{required:!0,tsType:{name:"string"},description:""},datasetValue:{required:!0,tsType:{name:"any"},description:""},seamless:{required:!0,tsType:{name:"boolean"},description:""}}};const{InfoTip:qe}=g,ke=400,Se=400;var j;let Os=(j=class extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("fieldset",{className:"pair-editor",children:[s.jsxs("label",{children:["Name:"," ",s.jsx(f,{value:this.props.name,onChange:this.change("name")})]}),s.jsxs("label",{children:[" ","Value:"," ",s.jsx(f,{value:this.props.value,onChange:this.change("value")})]})]})}},j.propTypes={...c,name:r.string,value:r.string},j.defaultProps={name:"",value:""},j);var E;let As=(E=class extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handlePairChange=(e,t)=>{const a=this.props.pairs.slice();a[e]=t;const n=a[a.length-1];n.name&&n.value&&a.push({name:"",value:""}),this.change("pairs",a)},this.serialize=()=>m.serialize.call(this)}render(){const e=i.map(this.props.pairs,(t,a)=>s.jsx(Os,{name:t.name,value:t.value,onChange:this.handlePairChange.bind(this,a)},a));return s.jsx("div",{children:e})}},E.propTypes={...c,pairs:r.arrayOf(r.shape({name:r.string,value:r.string})).isRequired},E);const Rs=/khanacademy\.org\/computer-programming\/[^\/]+\/(\d+)/;function zs(l){const e=Rs.exec(l);return e&&(l=e[1]),l}const C=class C extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this._handleSettingsChange=e=>{this.change({settings:e.pairs})},this._handleProgramIDChange=e=>{e=zs(e);const{isDevServer:t,InitialRequestUrl:a}=Ue(),o=`${t?a.origin:"https://www.khanacademy.org"}/api/internal/scratchpads/${e}`;Fe.getJSON(o).done(d=>{const h=d.userAuthoredContentType;this.change({width:d.width,height:d.height,programID:e,programType:h})}).fail((d,h,x)=>{Me.error("Error retrieving scratchpad info for program ID ",us.TransientService,{cause:x,loggedMetadata:{textStatus:h,programID:e}}),this.change({width:ke,height:Se,programID:e,programType:null})})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsxs("label",{children:["Url or Program ID:"," ",s.jsx(f,{value:this.props.programID,onChange:this._handleProgramIDChange})]}),s.jsx("br",{}),s.jsx(b,{label:"Show Editor",checked:this.props.showEditor,onChange:e=>{this.props.onChange({showEditor:e})}}),s.jsx(qe,{children:'If you show the editor, you should use the "full-width" alignment to make room for the width of the editor.'}),s.jsx("br",{}),s.jsx(b,{label:"Show Buttons",checked:this.props.showButtons,onChange:e=>{this.props.onChange({showButtons:e})}}),s.jsx("br",{}),s.jsxs("label",{children:["Settings:",s.jsx(As,{name:"settings",pairs:this.props.settings,onChange:this._handleSettingsChange}),s.jsxs(qe,{children:["Settings that you add here are available to the program as an object returned by ",s.jsx("code",{children:"Program.settings()"})]})]})]})}};C.propTypes={...c},C.widgetName="cs-program",C.defaultProps={programID:"",programType:null,settings:[{name:"",value:""}],showEditor:!1,showButtons:!1,width:ke,height:Se};let $=C;$.__docgenInfo={description:"This is the main editor for this widget, to specify all the options.",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"_handleSettingsChange",docblock:null,modifiers:[],params:[{name:"settings",optional:!1,type:null}],returns:null},{name:"_handleProgramIDChange",docblock:null,modifiers:[],params:[{name:"programID",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"CSProgramEditor",props:{programID:{defaultValue:{value:'""',computed:!1},required:!1},programType:{defaultValue:{value:"null",computed:!1},required:!1},settings:{defaultValue:{value:'[{name: "", value: ""}]',computed:!1},required:!1},showEditor:{defaultValue:{value:"false",computed:!1},required:!1},showButtons:{defaultValue:{value:"false",computed:!1},required:!1},width:{defaultValue:{value:"400",computed:!1},required:!1},height:{defaultValue:{value:"400",computed:!1},required:!1}},composes:["@khanacademy/perseus"]};const ve=class ve extends p.Component{serialize(){return m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsx("p",{children:"This widget has been deprecated and removed"}),s.jsx("p",{children:"Learners will see a message and they will not be graded on this part. Please replace this widget with a supported one."})]})}};ve.widgetName="deprecated-standin";let F=ve;F.__docgenInfo={description:"",methods:[{name:"serialize",docblock:null,modifiers:[],params:[],returns:{type:{name:"any"}}}],displayName:"DeprecatedStandinEditor",props:{onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(options: any) => void",signature:{arguments:[{type:{name:"any"},name:"options"}],return:{name:"void"}}},description:""}}};const{InlineIcon:Ne,TextInput:Vs}=g,T=class T extends p.Component{constructor(){super(...arguments),this.editor=p.createRef(),this.hintEditor=p.createRef(),this.change=(...e)=>u.apply(this,e),this.handleAddHint=()=>{const e={content:""};this.props.onChange({hint:e},()=>{var t;(t=this.hintEditor.current)==null||t.focus()})},this.handleRemoveHint=e=>{this.props.onChange({hint:null})},this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=()=>{var e,t;return{title:this.props.title,...(e=this.editor.current)==null?void 0:e.serialize(),hint:(t=this.hintEditor.current)==null?void 0:t.serialize()}}}render(){return s.jsxs("div",{className:"perseus-group-editor",children:[s.jsx("div",{className:"perseus-widget-row",children:s.jsxs("label",{className:_.css(oe.title),children:["Title:"," ",s.jsx(Vs,{value:this.props.title,className:_.css(oe.input),onChange:this.change("title")})]})}),s.jsx(y,{ref:this.editor,content:this.props.content,widgets:this.props.widgets,apiOptions:this.props.apiOptions,images:this.props.images,widgetEnabled:!0,immutableWidgets:!1,onChange:this.props.onChange,warnNoPrompt:!0,warnNoWidgets:!0}),!this.props.hint&&s.jsxs("button",{type:"button",style:{marginTop:10},className:"add-hint simple-button orange",onClick:this.handleAddHint,children:[s.jsx(Ne,{...fs})," Add a hint"]}),this.props.hint&&s.jsxs("div",{className:"perseus-hint-editor",children:[s.jsx("div",{className:_.css(oe.hintsTitle),children:"Hint"}),s.jsx(y,{ref:this.hintEditor,content:this.props.hint?this.props.hint.content:"",widgets:this.props.hint?this.props.hint.widgets:{},apiOptions:this.props.apiOptions,images:this.props.hint&&this.props.hint.images,widgetEnabled:!0,immutableWidgets:!1,onChange:e=>{this.change("hint",Object.assign({},this.props.hint,e))}}),s.jsxs("button",{type:"button",className:"remove-hint simple-button orange",onClick:this.handleRemoveHint,children:[s.jsx(Ne,{...gs})," Remove this hint"]})]})]})}};T.propTypes={...c,title:r.string,content:r.string,widgets:r.object,images:r.object,apiOptions:be.propTypes},T.widgetName="graded-group",T.defaultProps={title:"",content:"",widgets:{},images:{},hint:null};let v=T;const oe=_.StyleSheet.create({title:{fontSize:18,fontWeight:"bold"},input:{fontSize:18},hintsTitle:{marginTop:10,fontSize:"110%",fontWeight:"bold"}});v.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleAddHint",docblock:null,modifiers:[],params:[],returns:null},{name:"handleRemoveHint",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GradedGroupEditor",props:{title:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},content:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},widgets:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},images:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},hint:{defaultValue:{value:"null",computed:!1},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0}},composes:["@khanacademy/perseus"]};const q=class q extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.getSaveWarnings=()=>[].concat(...this._editors.map(e=>e?e.getSaveWarnings():[])),this.serialize=()=>({gradedGroups:this.props.gradedGroups}),this.renderGroups=()=>this.props.gradedGroups?this.props.gradedGroups.map((e,t)=>s.jsx(v,{ref:a=>this._editors[t]=a,...e,apiOptions:this.props.apiOptions,widgetEnabled:!0,immutableWidgets:!1,onChange:a=>this.change("gradedGroups",Ls(this.props.gradedGroups,t,{...this.props.gradedGroups[t],...a}))},t)):null,this.addGroup=()=>{const e=this.props.gradedGroups||[];this.change("gradedGroups",e.concat([v.defaultProps]))}}UNSAFE_componentWillMount(){this._editors=[]}render(){return s.jsxs("div",{className:"perseus-group-editor",children:[this.renderGroups(),s.jsx("button",{onClick:this.addGroup,children:"Add group"})]})}};q.propTypes={...c,apiOptions:be.propTypes,gradedGroups:r.array,onChange:r.func.isRequired},q.widgetName="graded-group-set",q.defaultProps={gradedGroups:[]};let W=q;const Ls=(l,e,t)=>[...l.slice(0,e),t,...l.slice(e+1)];W.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null},{name:"renderGroups",docblock:null,modifiers:[],params:[],returns:null},{name:"addGroup",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GradedGroupSetEditor",props:{gradedGroups:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"array"},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0},onChange:{description:"",type:{name:"func"},required:!0}},composes:["@khanacademy/perseus"]};const{InfoTip:Es,MultiButtonGroup:Ds}=g,Ms=Je.widget,{DEFAULT_GRAPHER_PROPS:pe,allTypes:Us,chooseType:_s,defaultPlotProps:$s,getEquationString:Fs,typeToButton:Ws}=Is,k=class k extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handleAvailableTypesChange=e=>{let t=this.props.correct;if(!i.contains(e,this.props.correct.type)){const a=this.props.graph,n=_s(e);t=$s(n,a)}this.props.onChange({availableTypes:e,correct:t})},this.serialize=()=>i.chain(this.props).pick("correct","availableTypes").extend({graph:i.omit(this.props.graph,"box")}).value()}render(){const e=rs.SMALL;let t,a;if(this.props.graph.valid===!0){const n={graph:this.props.graph,plot:this.props.correct,availableTypes:this.props.availableTypes,onChange:(o,d)=>{var x;let h=this.props.correct;h.type===((x=o.plot)==null?void 0:x.type)?h=i.extend({},h,o.plot):h=o.plot,this.props.onChange({correct:h},d)},trackInteraction:function(){}};a=s.jsx(Ms,{...n,apiOptions:this.props.apiOptions,containerSizeClass:e}),t=Fs(n)}else a=s.jsx("div",{className:"perseus-error",children:this.props.graph.valid});return s.jsxs("div",{children:[s.jsxs("div",{children:["Correct answer"," ",s.jsx(Es,{children:s.jsx("p",{children:"Graph the correct answer in the graph below and ensure the equation or point coordinates displayed represent the correct answer."})})," ",": ",t]}),s.jsx($e,{editableSettings:["graph","snap","image"],box:as(e),range:this.props.graph.range,labels:this.props.graph.labels,step:this.props.graph.step,gridStep:this.props.graph.gridStep,snapStep:this.props.graph.snapStep,valid:this.props.graph.valid,backgroundImage:this.props.graph.backgroundImage,markings:this.props.graph.markings,rulerLabel:this.props.graph.rulerLabel,rulerTicks:this.props.graph.rulerTicks,showTooltips:this.props.graph.showTooltips,onChange:this.change("graph")}),s.jsxs("div",{className:"perseus-widget-row",children:[s.jsx("label",{children:"Available functions: "}),s.jsx(Ds,{allowEmpty:!1,values:this.props.availableTypes,buttons:i.map(Us,Ws),onChange:this.handleAvailableTypesChange})]}),a]})}};k.propTypes={...c},k.widgetName="grapher",k.defaultProps={correct:pe.plot,graph:pe.graph,availableTypes:pe.availableTypes};let H=k;H.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleAvailableTypesChange",docblock:null,modifiers:[],params:[{name:"newAvailableTypes",optional:!1,type:{name:"Array",elements:[{name:"any"}],raw:"Array",alias:"Array"}}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GrapherEditor",props:{correct:{defaultValue:{value:"DEFAULT_GRAPHER_PROPS.plot",computed:!0},required:!1},graph:{defaultValue:{value:"DEFAULT_GRAPHER_PROPS.graph",computed:!0},required:!1},availableTypes:{defaultValue:{value:"DEFAULT_GRAPHER_PROPS.availableTypes",computed:!0},required:!1}},composes:["@khanacademy/perseus"]};const S=class S extends p.Component{constructor(){super(...arguments),this.editor=p.createRef(),this._renderMetadataEditor=()=>{const e=this.props.apiOptions.GroupMetadataEditor;return s.jsx(e,{value:this.props.metadata,onChange:this.change("metadata")})},this.change=(...e)=>u.apply(this,e),this.getSaveWarnings=()=>{var e;return(e=this.editor.current)==null?void 0:e.getSaveWarnings()},this.serialize=()=>{var e;return i.extend({},(e=this.editor.current)==null?void 0:e.serialize(),{metadata:this.props.metadata})}}render(){return s.jsxs("div",{className:"perseus-group-editor",children:[s.jsx("div",{children:this._renderMetadataEditor()}),s.jsx(y,{ref:this.editor,content:this.props.content,widgets:this.props.widgets,apiOptions:this.props.apiOptions,images:this.props.images,widgetEnabled:!0,immutableWidgets:!1,onChange:this.props.onChange})]})}};S.propTypes={...c,content:r.string,widgets:r.object,images:r.object,metadata:r.any,apiOptions:be.propTypes},S.widgetName="group",S.defaultProps={content:"",widgets:{},images:{},metadata:void 0};let B=S;B.__docgenInfo={description:"",methods:[{name:"_renderMetadataEditor",docblock:null,modifiers:[],params:[],returns:null},{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"getSaveWarnings",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"GroupEditor",props:{content:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},widgets:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},images:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},metadata:{defaultValue:{value:"undefined",computed:!0},description:"",type:{name:"any"},required:!1},apiOptions:{description:"",type:{name:"shape",value:{isArticle:{name:"bool",required:!0},onFocusChange:{name:"func",required:!0},GroupMetadataEditor:{name:"func",required:!0},showAlignmentOptions:{name:"bool",required:!0},readOnly:{name:"bool",required:!0},answerableCallback:{name:"func",required:!1},getAnotherHint:{name:"func",required:!1},interactionCallback:{name:"func",required:!1},groupAnnotator:{name:"func",required:!0},imagePlaceholder:{name:"node",required:!1},widgetPlaceholder:{name:"node",required:!1},baseElements:{name:"shape",value:{Link:{name:"func",required:!1}},required:!1},imagePreloader:{name:"func",required:!1},trackInteraction:{name:"func",required:!1},customKeypad:{name:"bool",required:!1},nativeKeypadProxy:{name:"func",required:!1},isMobile:{name:"bool",required:!1},setDrawingAreaAvailable:{name:"func",required:!1},hintProgressColor:{name:"string",required:!1},canScrollPage:{name:"bool",required:!1},crossOutEnabled:{name:"bool",required:!1},editorChangeDelay:{name:"number",required:!1}}},required:!0}},composes:["@khanacademy/perseus"]};const re=class re extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("fieldset",{children:[s.jsxs("label",{children:["Name:",s.jsx(f,{value:this.props.name,onChange:this.change("name")})]}),s.jsxs("label",{children:["Value:",s.jsx(f,{value:this.props.value,onChange:this.change("value")})]})]})}};re.propTypes={...c,name:r.string,value:r.string},re.defaultProps={name:"",value:""};let ge=re;const je=class je extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handlePairChange=(e,t)=>{const a=this.props.pairs.slice();a[e]=t;const n=a[a.length-1];n.name&&n.value&&a.push({name:"",value:""}),this.change("pairs",a)},this.serialize=()=>m.serialize.call(this)}render(){const e=i.map(this.props.pairs,(t,a)=>s.jsx(ge,{name:t.name,value:t.value,onChange:this.handlePairChange.bind(this,a)},a));return s.jsx("div",{children:e})}};je.propTypes={...c,pairs:r.arrayOf(r.shape({name:r.string,value:r.string})).isRequired};let fe=je;const N=class N extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handleSettingsChange=e=>{this.change({settings:e.pairs})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsxs("div",{style:{fontWeight:"bold",textAlign:"center"},children:["This widget is deprecated! ",s.jsx("br",{}),"Try using the Video or CS Program widgets instead."]}),s.jsxs("label",{children:["Url or Program ID:",s.jsx(f,{value:this.props.url,onChange:this.change("url")})]}),s.jsx("br",{}),s.jsxs("label",{children:["Settings:",s.jsx(fe,{name:"settings",pairs:this.props.settings,onChange:this.handleSettingsChange})]}),s.jsx("br",{}),s.jsxs("label",{children:["Width:",s.jsx(f,{value:this.props.width,onChange:this.change("width")})]}),s.jsxs("label",{children:["Height:",s.jsx(f,{value:this.props.height,onChange:this.change("height")})]}),s.jsx(b,{label:"Allow full screen",checked:this.props.allowFullScreen,onChange:e=>{this.props.onChange({allowFullScreen:e})}}),s.jsx("br",{}),s.jsx(b,{label:"Allow iframe content to redirect the page",checked:this.props.allowTopNavigation,onChange:e=>{this.props.onChange({allowTopNavigation:e})}})]})}};N.propTypes={...c},N.widgetName="iframe",N.defaultProps={url:"",settings:[{name:"",value:""}],width:"400",height:"400",allowFullScreen:!1,allowTopNavigation:!1};let K=N;K.__docgenInfo={description:"This is the main editor for this widget, to specify all the options.",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleSettingsChange",docblock:null,modifiers:[],params:[{name:"settings",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"IframeEditor",props:{url:{defaultValue:{value:'""',computed:!1},required:!1},settings:{defaultValue:{value:'[{name: "", value: ""}]',computed:!1},required:!1},width:{defaultValue:{value:'"400"',computed:!1},required:!1},height:{defaultValue:{value:'"400"',computed:!1},required:!1},allowFullScreen:{defaultValue:{value:"false",computed:!1},required:!1},allowTopNavigation:{defaultValue:{value:"false",computed:!1},required:!1}},composes:["@khanacademy/perseus"]};const{RangeInput:Hs}=g,Bs=Xe.widget,Ie=6,Ks=function(l){const e=[1,1];return i(l).each((t,a)=>{let n=0;i(t).each((o,d)=>{o!=null&&o.toString().length&&(n=d+1)}),e[1]=Math.max(e[1],n),n>0&&(e[0]=Math.max(e[0],a+1))}),e},I=class I extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.onMatrixBoardSizeChange=e=>{const t=Ks(this.props.answers);if(e[0]!==null&&e[1]!==null){e=[Math.round(Math.min(Math.max(e[0],1),Ie)),Math.round(Math.min(Math.max(e[1],1),Ie))];const a=i(Math.min(e[0],t[0])).times(n=>i(Math.min(e[1],t[1])).times(o=>this.props.answers[n][o]));this.props.onChange({matrixBoardSize:e,answers:a})}},this.serialize=()=>m.serialize.call(this)}render(){const e=i.extend({numericInput:!0,onBlur:()=>{},onFocus:()=>{},trackInteraction:()=>{}},this.props);return s.jsxs("div",{className:"perseus-matrix-editor",children:[s.jsxs("div",{className:"perseus-widget-row",children:[" ","Max matrix size:"," ",s.jsx(Hs,{value:this.props.matrixBoardSize,onChange:this.onMatrixBoardSizeChange,format:this.props.labelStyle,useArrowKeys:!0})]}),s.jsx("div",{className:"perseus-widget-row",children:s.jsx(Bs,{...e})}),s.jsxs("div",{className:"perseus-widget-row",children:[" ","Matrix prefix:"," ",s.jsx(y,{ref:"prefix",apiOptions:this.props.apiOptions,content:this.props.prefix,widgetEnabled:!1,onChange:t=>{this.change({prefix:t.content})}})]}),s.jsxs("div",{className:"perseus-widget-row",children:[" ","Matrix suffix:"," ",s.jsx(y,{ref:"suffix",apiOptions:this.props.apiOptions,content:this.props.suffix,widgetEnabled:!1,onChange:t=>{this.change({suffix:t.content})}})]})]})}};I.propTypes={...c,matrixBoardSize:r.arrayOf(r.number).isRequired,answers:r.arrayOf(r.arrayOf(r.number)),prefix:r.string,suffix:r.string,cursorPosition:r.arrayOf(r.number)},I.widgetName="matrix",I.defaultProps={matrixBoardSize:[3,3],answers:[[]],prefix:"",suffix:"",cursorPosition:[0,0]};let G=I;G.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"onMatrixBoardSizeChange",docblock:null,modifiers:[],params:[{name:"range",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"MatrixEditor",props:{matrixBoardSize:{defaultValue:{value:"[3, 3]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"number"}},required:!1},answers:{defaultValue:{value:"[[]]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"arrayOf",value:{name:"number"}}},required:!1},prefix:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},suffix:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},cursorPosition:{defaultValue:{value:"[0, 0]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"number"}},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:Gs,NumberInput:D,RangeInput:Ys}=g,Js={url:null,top:0,left:0},P=class P extends p.Component{constructor(){super(...arguments),this.className="perseus-widget-measurer",this.change=(...e)=>u.apply(this,e),this._changeUrl=e=>{this._changeImage("url",e.target.value)},this._changeTop=e=>{this._changeImage("top",e)},this._changeLeft=e=>{this._changeImage("left",e)},this._changeImage=(e,t)=>{const a=i.clone(this.props.image);a[e]=t,this.change("image",a)},this.renderLabelChoices=e=>i.map(e,function(t){const[a,n]=t;return s.jsx("option",{value:n,children:a},n)}),this.serialize=()=>m.serialize.call(this)}render(){const e=i.extend({},Js,this.props.image);return s.jsxs("div",{className:"perseus-widget-measurer",children:[s.jsx("div",{children:"Image displayed under protractor and/or ruler:"}),s.jsxs("div",{children:["URL:"," ",s.jsx("input",{type:"text",className:"perseus-widget-measurer-url",ref:"image-url",defaultValue:e.url,onChange:this._changeUrl}),s.jsx(Gs,{children:s.jsx("p",{children:'Create an image in graphie, or use the "Add image" function to create a background.'})})]}),e.url&&s.jsxs("div",{className:"perseus-widget-row",children:[s.jsxs("label",{className:"perseus-widget-left-col",children:["Pixels from top:"," ",s.jsx(D,{placeholder:0,onChange:this._changeTop,value:e.top,useArrowKeys:!0})]}),s.jsxs("label",{className:"perseus-widget-right-col",children:["Pixels from left:"," ",s.jsx(D,{placeholder:0,onChange:this._changeLeft,value:e.left,useArrowKeys:!0})]})]}),s.jsxs("div",{children:["Containing area [width, height]:"," ",s.jsx(Ys,{onChange:this.change("box"),value:this.props.box,useArrowKeys:!0})]}),s.jsxs("div",{className:"perseus-widget-row",children:[s.jsx("div",{className:"perseus-widget-left-col",children:s.jsx(b,{label:"Show ruler",checked:this.props.showRuler,onChange:t=>{this.props.onChange({showRuler:t})}})}),s.jsx("div",{className:"perseus-widget-right-col",children:s.jsx(b,{label:"Show protractor",checked:this.props.showProtractor,onChange:t=>{this.props.onChange({showProtractor:t})}})})]}),this.props.showRuler&&s.jsxs("div",{children:[s.jsx("div",{children:s.jsxs("label",{children:[" ","Ruler label:"," ",s.jsxs("select",{onChange:t=>this.change("rulerLabel",t.target.value),value:this.props.rulerLabel,children:[s.jsx("option",{value:"",children:"None"}),s.jsx("optgroup",{label:"Metric",children:this.renderLabelChoices([["milimeters","mm"],["centimeters","cm"],["meters","m"],["kilometers","km"]])}),s.jsx("optgroup",{label:"Imperial",children:this.renderLabelChoices([["inches","in"],["feet","ft"],["yards","yd"],["miles","mi"]])})]})]})}),s.jsx("div",{children:s.jsxs("label",{children:[" ","Ruler ticks:"," ",s.jsx("select",{onChange:t=>this.change("rulerTicks",+t.target.value),value:this.props.rulerTicks,children:i.map([1,2,4,8,10,16],function(t){return s.jsx("option",{value:t,children:t},t)})})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Ruler pixels per unit:"," ",s.jsx(D,{placeholder:40,onChange:this.change("rulerPixels"),value:this.props.rulerPixels,useArrowKeys:!0})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Ruler length in units:"," ",s.jsx(D,{placeholder:10,onChange:this.change("rulerLength"),value:this.props.rulerLength,useArrowKeys:!0})]})})]})]})}};P.widgetName="measurer",P.propTypes={...c,box:r.arrayOf(r.number),image:r.shape({url:r.string,top:r.number,left:r.number}),showProtractor:r.bool,showRuler:r.bool,rulerLabel:r.string,rulerTicks:r.number,rulerPixels:r.number,rulerLength:r.number},P.defaultProps={box:[480,480],image:{},showProtractor:!0,showRuler:!1,rulerLabel:"",rulerTicks:10,rulerPixels:40,rulerLength:10};let Y=P;Y.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"_changeUrl",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"_changeTop",docblock:null,modifiers:[],params:[{name:"newTop",optional:!1,type:null}],returns:null},{name:"_changeLeft",docblock:null,modifiers:[],params:[{name:"newLeft",optional:!1,type:null}],returns:null},{name:"_changeImage",docblock:null,modifiers:[],params:[{name:"subProp",optional:!1,type:null},{name:"newValue",optional:!1,type:null}],returns:null},{name:"renderLabelChoices",docblock:null,modifiers:[],params:[{name:"choices",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"MeasurerEditor",props:{box:{defaultValue:{value:"[480, 480]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"number"}},required:!1},image:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{url:{name:"string",required:!1},top:{name:"number",required:!1},left:{name:"number",required:!1}}},required:!1},showProtractor:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},showRuler:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},rulerLabel:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},rulerTicks:{defaultValue:{value:"10",computed:!1},description:"",type:{name:"number"},required:!1},rulerPixels:{defaultValue:{value:"40",computed:!1},description:"",type:{name:"number"},required:!1},rulerLength:{defaultValue:{value:"10",computed:!1},description:"",type:{name:"number"},required:!1}},composes:["@khanacademy/perseus"]};const{NumberInput:Xs,TextInput:Zs}=g,ne=class ne extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.updateMolecule=e=>{this.change({smiles:e})},this.updateRotation=e=>{this.change({rotationAngle:e})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsx("div",{children:s.jsxs("label",{children:["SMILES: ",s.jsx(Zs,{onChange:this.updateMolecule,value:this.props.smiles})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Rotation (deg): ",s.jsx(Xs,{onChange:this.updateRotation,value:this.props.rotationAngle})]})})]})}};ne.propTypes={...c,rotationAngle:r.number,smiles:r.string},ne.widgetName="molecule-renderer";let J=ne;J.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"updateMolecule",docblock:null,modifiers:[],params:[{name:"newValue",optional:!1,type:null}],returns:null},{name:"updateRotation",docblock:null,modifiers:[],params:[{name:"newValue",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"MoleculeWidgetEditor",props:{rotationAngle:{description:"",type:{name:"number"},required:!1},smiles:{description:"",type:{name:"string"},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:M,TextListEditor:Pe}=g,ue="normal",Oe="auto",ce="horizontal",Ae="vertical",O=class O extends p.Component{constructor(){super(...arguments),this.onOptionsChange=(e,t,a)=>{const n={};n[e]=i.map(t,function(o){return{content:o}}),this.props.onChange(n,a)},this.onLayoutChange=e=>{this.props.onChange({layout:e.target.value})},this.onHeightChange=e=>{this.props.onChange({height:e.target.value})},this.serialize=()=>({options:i.chain(i.pluck(this.props.correctOptions,"content")).union(i.pluck(this.props.otherOptions,"content")).uniq().reject(function(t){return t===""}).sort().sortBy(function(t){return/\d/.test(t)?0:/^\$?[a-zA-Z]+\$?$/.test(t)?2:1}).map(function(t){return{content:t}}).value(),correctOptions:this.props.correctOptions,otherOptions:this.props.otherOptions,height:this.props.height,layout:this.props.layout})}render(){return s.jsxs("div",{className:"perseus-widget-orderer",children:[s.jsxs("div",{children:[" ","Correct answer:"," ",s.jsx(M,{children:s.jsx("p",{children:"Place the cards in the correct order. The same card can be used more than once in the answer but will only be displayed once at the top of a stack of identical cards."})})]}),s.jsx(Pe,{options:i.pluck(this.props.correctOptions,"content"),onChange:this.onOptionsChange.bind(this,"correctOptions"),layout:this.props.layout}),s.jsxs("div",{children:[" ","Other cards:"," ",s.jsx(M,{children:s.jsx("p",{children:"Create cards that are not part of the answer."})})]}),s.jsx(Pe,{options:i.pluck(this.props.otherOptions,"content"),onChange:this.onOptionsChange.bind(this,"otherOptions"),layout:this.props.layout}),s.jsxs("div",{children:[s.jsxs("label",{children:[" ","Layout:"," ",s.jsxs("select",{value:this.props.layout,onChange:this.onLayoutChange,children:[s.jsx("option",{value:ce,children:"Horizontal"}),s.jsx("option",{value:Ae,children:"Vertical"})]})]}),s.jsx(M,{children:s.jsx("p",{children:"Use the horizontal layout for short text and small images. The vertical layout is best for longer text (e.g. proofs)."})})]}),s.jsxs("div",{children:[s.jsxs("label",{children:[" ","Height:"," ",s.jsxs("select",{value:this.props.height,onChange:this.onHeightChange,children:[s.jsx("option",{value:ue,children:"Normal"}),s.jsx("option",{value:Oe,children:"Automatic"})]})]}),s.jsx(M,{children:s.jsx("p",{children:'Use "Normal" for text, "Automatic" for images.'})})]})]})}};O.propTypes={correctOptions:r.array,otherOptions:r.array,height:r.oneOf([ue,Oe]),layout:r.oneOf([ce,Ae]),onChange:r.func.isRequired},O.widgetName="orderer",O.defaultProps={correctOptions:[{content:"$x$"}],otherOptions:[{content:"$y$"}],height:ue,layout:ce};let X=O;X.__docgenInfo={description:"",methods:[{name:"onOptionsChange",docblock:null,modifiers:[],params:[{name:"whichOptions",optional:!1,type:null},{name:"options",optional:!1,type:null},{name:"cb",optional:!1,type:null}],returns:null},{name:"onLayoutChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"onHeightChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"OrdererEditor",props:{correctOptions:{defaultValue:{value:'[{content: "$x$"}]',computed:!1},description:"",type:{name:"array"},required:!1},otherOptions:{defaultValue:{value:'[{content: "$y$"}]',computed:!1},description:"",type:{name:"array"},required:!1},height:{defaultValue:{value:'"normal"',computed:!1},description:"",type:{name:"enum",value:[{value:'"normal"',computed:!1},{value:'"auto"',computed:!1}]},required:!1},layout:{defaultValue:{value:'"horizontal"',computed:!1},description:"",type:{name:"enum",value:[{value:'"horizontal"',computed:!1},{value:'"vertical"',computed:!1}]},required:!1},onChange:{description:"",type:{name:"func"},required:!0}}};const{InfoTip:Re}=g,A=class A extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){const e=s.jsx(y,{ref:"passage-editor",apiOptions:this.props.apiOptions,content:this.props.passageText,widgetEnabled:!1,placeholder:"Type passage here...",onChange:a=>{this.change({passageText:a.content})},showWordCount:!0}),t=s.jsx(y,{ref:"passage-footnotes-editor",apiOptions:this.props.apiOptions,content:this.props.footnotes,widgetEnabled:!1,placeholder:"Type footnotes here...",onChange:a=>{this.change({footnotes:a.content})}});return s.jsxs("div",{className:"perseus-widget-passage-editor",children:[s.jsx("div",{className:"perseus-widget-row",children:s.jsx(b,{label:"Show line numbers",checked:this.props.showLineNumbers,onChange:a=>{this.props.onChange({showLineNumbers:a})}})}),s.jsxs("div",{children:["Passage title:",s.jsx(Re,{children:s.jsx("p",{children:"An optional title that will appear directly above the passage in the same font style. (E.g. Passage 1)"})}),s.jsx("div",{children:s.jsx("input",{type:"text",defaultValue:this.props.passageTitle,onChange:a=>{this.change({passageTitle:a.target.value})}})})]}),s.jsxs("div",{children:["Passage Text:",e]}),s.jsxs("div",{children:["Footnotes:",s.jsx(Re,{children:s.jsx("p",{children:"To add footnotes, add ^ characters where they belong in the passage. Then, add ^ in the footnotes area to reference the footnotes in the passage."})}),t]})]})}};A.propTypes={...c,passageTitle:r.string,passageText:r.string,footnotes:r.string,showLineNumbers:r.bool},A.widgetName="passage",A.defaultProps={passageTitle:"",passageText:"",footnotes:"",showLineNumbers:!0};let Z=A;Z.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PassageEditor",props:{passageTitle:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},passageText:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},footnotes:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},showLineNumbers:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:Qs,NumberInput:ze,TextInput:et}=g,R=class R extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:[s.jsx("div",{children:s.jsxs("label",{children:["Passage Number: ",s.jsx(ze,{value:this.props.passageNumber,onChange:this.change("passageNumber")})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Reference Number: ",s.jsx(ze,{value:this.props.referenceNumber,onChange:this.change("referenceNumber")})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Summary Text: ",s.jsx(et,{value:this.props.summaryText,onChange:this.change("summaryText")}),s.jsxs(Qs,{children:[s.jsx("p",{children:"Short summary of the referenced section. This will be included in parentheses and quotes automatically."}),s.jsx("p",{children:"Ex: The start ... the end"})]})]})})]})}};R.propTypes={...c,passageNumber:r.number,referenceNumber:r.number,summaryText:r.string},R.widgetName="passage-ref",R.defaultProps={passageNumber:1,referenceNumber:1,summaryText:""};let Q=R;Q.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PassageRefEditor",props:{passageNumber:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},referenceNumber:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},summaryText:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1}},composes:["@khanacademy/perseus"]};const z=class z extends p.Component{constructor(){super(...arguments),this.change=(...e)=>u.apply(this,e),this.handleContentChange=e=>{this.change({content:e.target.value})},this.serialize=()=>m.serialize.call(this)}render(){return s.jsxs("div",{children:["Content:",s.jsx("input",{type:"text",value:this.props.content,onChange:this.handleContentChange})]})}};z.propTypes={...c,content:r.string},z.widgetName="passage-ref-target",z.defaultProps={content:""};let ee=z;ee.__docgenInfo={description:"",methods:[{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"handleContentChange",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PassageRefTargetEditor",props:{content:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1}},composes:["@khanacademy/perseus"]};const{InfoTip:w,NumberInput:Ve,RangeInput:st,TextListEditor:tt}=g,at=Ze.widget,ye="starting",xe="correct",rt=[ye,xe];function Le(l,e,t){const a=i.clone(l);a.length=e;for(let n=l.length;n"$"+ts(l,2)+"$",ie=class ie extends p.Component{constructor(){super(...arguments),this.state={editing:this.props.static?ye:xe,pic:null,loadedUrl:null,minX:null,maxX:null,tickStep:null},this.fetchPic=e=>{if(this.state.loadedUrl!==e){const t=new Image;t.src=e,t.onload=()=>{this.setState({pic:t,loadedUrl:e})}}},this.handleChangeTickStep=e=>{this.setState({tickStep:e})},this.handleChangeRange=e=>{this.setState({minX:e[0],maxX:e[1]})},this.changeLabelInterval=e=>{this.props.onChange({labelInterval:e})},this.handlePlotterChange=e=>{const t={};t[this.state.editing]=e.values,this.props.onChange(t)},this.changeType=e=>{let t;if(e==="histogram"?(t=[Ee(0)].concat(this.props.categories),this.props.onChange({type:e,categories:t})):this.props.type==="histogram"?(t=this.props.categories.slice(1),this.props.onChange({type:e,categories:t})):this.props.onChange({type:e}),t){const a=le.findDOMNode(this.refs.categories);a.value=t.join(", ")}},this.changeLabel=(e,t)=>{const a=i.clone(this.props.labels);a[e]=t.target.value,this.props.onChange({labels:a})},this.changePicUrl=e=>{const t=he.getRealImageUrl(e);this.props.onChange({picUrl:t})},this.changeCategories=e=>{let t=e.length;this.props.type==="histogram"&&t--;const a=this.props.scaleY;this.props.onChange({categories:e,correct:Le(this.props.correct,t,a),starting:Le(this.props.starting,t,a)})},this.changeScale=e=>{const t=this.props.scaleY,a=+e.target.value||U.scaleY,n=function(d){return d*a/t},o=n(this.props.maxY);this.props.onChange({scaleY:a,maxY:o,correct:i.map(this.props.correct,n),starting:i.map(this.props.starting,n)}),le.findDOMNode(this.refs.maxY).value=o},this.changeMax=e=>{this.props.onChange({maxY:+e.target.value||U.maxY})},this.changeSnaps=e=>{this.props.onChange({snapsPerLine:+e.target.value||U.snapsPerLine})},this.changeEditing=e=>{this.setState({editing:e})},this.setCategoriesFromScale=()=>{const e=this.state.tickStep||1,t=this.state.minX||0,a=this.state.maxX||0,n=Math.floor((a-t)/e)*e;let o;this.props.type==="histogram"||this.props.type==="dotplot"?o=i.range(0,n+e,e):o=i.range(e,n+e,e),o=i.map(o,h=>h+t),o=i.map(o,Ee),this.changeCategories(o);const d=le.findDOMNode(this.refs.categories);d.value=o.join(", ")},this.serialize=()=>{const e=i.pick(this.props,"correct","starting","type","labels","categories","scaleY","maxY","snapsPerLine","labelInterval");return this.props.type==="pic"&&(e.picUrl=this.props.picUrl),e}}UNSAFE_componentWillMount(){this.fetchPic(this.props.picUrl)}UNSAFE_componentWillReceiveProps(e){this.fetchPic(e.picUrl),e.static&&this.setState({editing:"starting"})}render(){const e=i.contains(["line","histogram","dotplot"],this.props.type),t=!i.contains(["pic","dotplot"],this.props.type),a={trackInteraction:()=>{},...this.props};return s.jsxs("div",{className:"perseus-widget-plotter-editor",children:[s.jsxs("div",{children:["Chart type:"," ",Qe.map(n=>s.jsxs("label",{children:[s.jsx("input",{type:"radio",name:"chart-type",checked:this.props.type===n,onChange:i.partial(this.changeType,n)}),n]},n),this)]}),s.jsxs("div",{children:["Labels:"," ",["x","y"].map((n,o)=>s.jsxs("label",{children:[n+":",s.jsx("input",{type:"text",onChange:i.partial(this.changeLabel,o),defaultValue:this.props.labels[o]})]},n),this)]}),e&&s.jsxs("div",{className:"set-from-scale-box",children:[s.jsx("span",{className:"categories-title",children:"Set Categories From Scale"}),s.jsxs("div",{children:[s.jsxs("label",{children:["Tick Step:"," ",s.jsx(Ve,{placeholder:1,useArrowKeys:!0,value:this.state.tickStep,onChange:this.handleChangeTickStep})]}),s.jsx(w,{children:s.jsx("p",{children:"The difference between adjacent ticks."})})]}),s.jsx("div",{children:s.jsxs("label",{children:["Range:"," ",s.jsx(st,{placeholder:[0,10],useArrowKeys:!0,value:[this.state.minX,this.state.maxX],onChange:this.handleChangeRange})]})}),s.jsx("div",{children:s.jsxs("button",{onClick:this.setCategoriesFromScale,children:["Set Categories"," "]})})]}),s.jsxs("div",{children:[s.jsxs("label",{children:["Label Interval:"," ",s.jsx(Ve,{useArrowKeys:!0,value:this.props.labelInterval,onChange:this.changeLabelInterval})]}),s.jsx(w,{children:s.jsx("p",{children:'Which ticks to display the labels for. For instance, setting this to "4" will only show every 4th label (plus the last one)'})})]}),this.props.type==="pic"&&s.jsxs("div",{children:[s.jsxs("label",{children:["Picture:"," ",s.jsx(f,{className:"pic-url",value:this.props.picUrl,onChange:this.changePicUrl}),s.jsx(w,{children:s.jsx("p",{children:'Use the default picture of Earth, or insert the URL for a different picture using the "Add image" function.'})})]}),this.state.pic&&this.state.pic.width!==this.state.pic.height&&s.jsxs("p",{className:"warning",children:[s.jsx("b",{children:"Warning"}),": You are using a picture which is not square. This means the image will get distorted. You should probably crop it to be square."]})]}),s.jsx("div",{children:s.jsxs("label",{children:["Categories:"," ",s.jsx(tt,{ref:"categories",layout:"horizontal",options:this.props.categories,onChange:this.changeCategories})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Scale (y):"," ",s.jsx("input",{type:"text",onChange:this.changeScale,defaultValue:this.props.scaleY})]})}),s.jsx("div",{children:s.jsxs("label",{children:["Max y:"," ",s.jsx("input",{type:"text",ref:"maxY",onChange:this.changeMax,defaultValue:this.props.maxY})]})}),t&&s.jsxs("div",{children:[s.jsxs("label",{children:["Snaps per line:"," ",s.jsx("input",{type:"text",onChange:this.changeSnaps,defaultValue:this.props.snapsPerLine})]}),s.jsx(w,{children:s.jsx("p",{children:"Creates the specified number of divisions between the horizontal lines. Fewer snaps between lines makes the graph easier for the student to create correctly."})})]}),s.jsxs("div",{children:["Editing values:"," ",rt.map(n=>s.jsxs("label",{children:[s.jsx("input",{type:"radio",disabled:n===xe&&this.props.static,checked:this.props.static?n===ye:this.state.editing===n,onChange:o=>this.changeEditing(n)}),n]},n)),s.jsxs(w,{children:[s.jsx("p",{children:"Use this toggle to switch between editing the correct answer (what the student will be graded on) and the starting values (what the student will see plotted when they start the problem). Note: These cannot be the same."}),s.jsx("p",{children:"In static mode, the starting values are rendered out to the displayed widget."})]})]}),s.jsx(at,{...a,starting:this.props[this.state.editing],onChange:this.handlePlotterChange})]})}};ie.widgetName="plotter",ie.defaultProps={...U,correct:[1],starting:[1],type:"bar",labels:["",""],categories:[""],picSize:30,picBoxHeight:36,plotDimensions:[275,200],labelInterval:1,get picUrl(){const e=Ue().staticUrl;return e?e("/images/badges/earth-small.png"):null}};let se=ie;se.__docgenInfo={description:"",methods:[{name:"fetchPic",docblock:null,modifiers:[],params:[{name:"url",optional:!1,type:null}],returns:null},{name:"handleChangeTickStep",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"handleChangeRange",docblock:null,modifiers:[],params:[{name:"newValue",optional:!1,type:null}],returns:null},{name:"changeLabelInterval",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"handlePlotterChange",docblock:null,modifiers:[],params:[{name:"newProps",optional:!1,type:null}],returns:null},{name:"changeType",docblock:null,modifiers:[],params:[{name:"type",optional:!1,type:null}],returns:null},{name:"changeLabel",docblock:null,modifiers:[],params:[{name:"i",optional:!1,type:null},{name:"e",optional:!1,type:null}],returns:null},{name:"changePicUrl",docblock:null,modifiers:[],params:[{name:"value",optional:!1,type:null}],returns:null},{name:"changeCategories",docblock:null,modifiers:[],params:[{name:"categories",optional:!1,type:null}],returns:null},{name:"changeScale",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"changeMax",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"changeSnaps",docblock:null,modifiers:[],params:[{name:"e",optional:!1,type:null}],returns:null},{name:"changeEditing",docblock:null,modifiers:[],params:[{name:"editing",optional:!1,type:null}],returns:null},{name:"setCategoriesFromScale",docblock:null,modifiers:[],params:[],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"PlotterEditor",props:{type:{required:!1,tsType:{name:"unknown[number]",raw:'PerseusPlotterWidgetOptions["type"]'},description:"",defaultValue:{value:'"bar"',computed:!1}},labels:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:"",defaultValue:{value:'["", ""]',computed:!1}},categories:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]}],raw:"ReadonlyArray"},description:"",defaultValue:{value:'[""]',computed:!1}},scaleY:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"1",computed:!1}},maxY:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"10",computed:!1}},snapsPerLine:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"2",computed:!1}},picSize:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"30",computed:!1}},picBoxHeight:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"36",computed:!1}},picUrl:{required:!0,tsType:{name:"string"},description:""},plotDimensions:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"number"}],raw:"ReadonlyArray"},description:"",defaultValue:{value:"[275, 200]",computed:!1}},labelInterval:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"1",computed:!1}},starting:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"number"}],raw:"ReadonlyArray"},description:"",defaultValue:{value:"[1]",computed:!1}},correct:{required:!1,tsType:{name:"ReadonlyArray",elements:[{name:"number"}],raw:"ReadonlyArray"},description:"",defaultValue:{value:"[1]",computed:!1}},static:{required:!0,tsType:{name:"boolean"},description:""},onChange:{required:!0,tsType:{name:"any"},description:""}}};const{InfoTip:nt,NumberInput:De}=g,it=es.widget,V=class V extends p.Component{constructor(){super(...arguments),this.numberOfColumns=p.createRef(),this.focus=()=>{var e;(e=this.numberOfColumns.current)==null||e.focus()},this.onSizeInput=(e,t)=>{let a=+e||0,n=+t||0;a=Math.min(Math.max(1,a),30),n=Math.min(Math.max(1,n),6);const o=this.props.columns,d=this.props.rows,h=this.props.answers;a<=d?h.length=a:i(a-d).times(function(){h.push(he.stringArrayOfSize(o))});function x(Ce){n<=o?Ce.length=n:i(n-o).times(function(){Ce.push("")})}const we=this.props.headers;x(we),i.each(h,x),this.props.onChange({rows:a,columns:n,answers:h,headers:we})},this.serialize=()=>{const e=i.pick(this.props,"headers","rows","columns");return i.extend({},e,{answers:i.map(this.props.answers,i.clone)})}}render(){return s.jsxs("div",{children:[s.jsx("div",{className:"perseus-widget-row",children:s.jsxs("label",{children:["Number of columns:"," ",s.jsx(De,{ref:this.numberOfColumns,value:this.props.columns,onChange:e=>{e&&this.onSizeInput(this.props.rows,e)},useArrowKeys:!0})]})}),s.jsx("div",{className:"perseus-widget-row",children:s.jsxs("label",{children:["Number of rows:"," ",s.jsx(De,{ref:"numberOfRows",value:this.props.rows,onChange:e=>{e&&this.onSizeInput(e,this.props.columns)},useArrowKeys:!0})]})}),s.jsxs("div",{children:[" ","Table of answers:"," ",s.jsx(nt,{children:s.jsx("p",{children:"The student has to fill out all cells in the table. For partially filled tables create a table using the template, and insert text input boxes as desired."})})]}),s.jsx("div",{children:s.jsx(it,{headers:this.props.headers,answers:this.props.answers,onChange:this.props.onChange,apiOptions:this.props.apiOptions,editableHeaders:!0,onFocus:()=>{},onBlur:()=>{},trackInteraction:()=>{},Editor:y})})]})}};V.propTypes={rows:r.number,columns:r.number,headers:r.arrayOf(r.string),answers:r.arrayOf(r.arrayOf(r.string))},V.widgetName="table",V.defaultProps=function(){const a=i(4).times(function(){return he.stringArrayOfSize(1)});return{headers:[""],rows:4,columns:1,answers:a}}();let te=V;te.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"onSizeInput",docblock:null,modifiers:[],params:[{name:"numRawRows",optional:!1,type:null},{name:"numRawColumns",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"TableEditor",props:{rows:{description:"",type:{name:"number"},required:!1},columns:{description:"",type:{name:"number"},required:!1},headers:{description:"",type:{name:"arrayOf",value:{name:"string"}},required:!1},answers:{description:"",type:{name:"arrayOf",value:{name:"arrayOf",value:{name:"string"}}},required:!1}}};const{InfoTip:lt}=g,ot=/khanacademy\.org\/.*\/v\/(.*)$/;function pt(l){const e=ot.exec(l);return e?e[1]:l}const L=class L extends p.Component{constructor(){super(...arguments),this._handleUrlChange=e=>{this.props.onChange({location:pt(e)})},this.change=(...e)=>u.apply(this,e),this.serialize=()=>m.serialize.call(this)}render(){return s.jsx("div",{children:s.jsxs("label",{children:["KA Video Slug:"," ",s.jsx(f,{value:this.props.location,style:{width:290},onChange:this._handleUrlChange}),s.jsx(lt,{children:"KA video URLs will be converted to just the slug."})]})})}};L.propTypes={...c,location:r.string,onChange:r.func},L.widgetName="video",L.defaultProps={location:""};let ae=L;ae.__docgenInfo={description:"This is the main editor for this widget, to specify all the options.",methods:[{name:"_handleUrlChange",docblock:null,modifiers:[],params:[{name:"url",optional:!1,type:null}],returns:null},{name:"change",docblock:null,modifiers:[],params:[{name:"...args",optional:!1,type:null}],returns:null},{name:"serialize",docblock:null,modifiers:[],params:[],returns:null}],displayName:"VideoEditor",props:{location:{defaultValue:{value:'""',computed:!1},description:"",type:{name:"string"},required:!1},onChange:{description:"",type:{name:"func"},required:!1}},composes:["@khanacademy/perseus"]};const ut=[ps,$,cs,hs,ds,ms,v,W,H,B,K,ys,xs,bs,vs,js,ws,G,Y,J,Cs,Ts,X,Z,Q,ee,qs,se,ks,Ns,te,ae,Ss,F],fa=()=>{ns(ss),is(ut),ls(),os()};export{ut as A,Ps as I,ga as J,fa as r}; diff --git a/assets/server-item-renderer-with-debug-ui-1bUVpaj2.js b/assets/server-item-renderer-with-debug-ui-o9_yPBTG.js similarity index 99% rename from assets/server-item-renderer-with-debug-ui-1bUVpaj2.js rename to assets/server-item-renderer-with-debug-ui-o9_yPBTG.js index 613ebefe2a..71458e5d1d 100644 --- a/assets/server-item-renderer-with-debug-ui-1bUVpaj2.js +++ b/assets/server-item-renderer-with-debug-ui-o9_yPBTG.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{B as a}from"./choice-Xr-SKHrB.js";import{V as y}from"./index-0DbkllkJ.js";import{S as m}from"./index-nqMmpXbO.js";import{r as i}from"./index-6oxdNXpR.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import{r as g}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{K as h}from"./ke-score-ui-AQ1XUyPU.js";import{S as p}from"./side-by-side-MBJuyilC.js";import{s as c}from"./test-dependencies-pK6aZRAV.js";const b=({item:t,apiOptions:s,keypadElement:o})=>{const r=i.useRef(null),[l,u]=i.useState(null),d=s||Object.freeze({});return e.jsx(p,{leftTitle:"Renderer",left:e.jsxs(e.Fragment,{children:[e.jsx(g,{ref:r,problemNum:0,apiOptions:d,item:t,dependencies:c,keypadElement:o}),e.jsxs(y,{style:{flexDirection:"row",alignItems:"center"},children:[e.jsx(a,{onClick:()=>{r.current&&u(r.current.scoreInput())},children:"Check"}),e.jsx(m,{size:8}),e.jsx(a,{onClick:()=>{var n;(n=r.current)==null||n.showRationalesForCurrentlySelectedChoices()},children:"Show Rationales"})]}),e.jsx(h,{score:l})]}),jsonObject:t})};b.__docgenInfo={description:"",methods:[],displayName:"ServerItemRendererWithDebugUI",props:{item:{required:!0,tsType:{name:"signature",type:"object",raw:`{ +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{B as a}from"./choice-Xr-SKHrB.js";import{V as y}from"./index-0DbkllkJ.js";import{S as m}from"./index-nqMmpXbO.js";import{r as i}from"./index-6oxdNXpR.js";import"./article-renderer-h_m-tvVP.js";import"./jquery-yG1GhClm.js";import"./util-AYeX86gl.js";import"./phet-simulation-_7qOO4_B.js";import"./version-akiLXZts.js";import"./dependencies-CP7Uh8Kq.js";import"./perseus-api-1-ethIrW.js";import{r as g}from"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./base-radio-XsQBfrsT.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./svg-image-FcZanvM1.js";import"./hud-ifw9Ofbw.js";import"./icon-7RFbyLiL.js";import"./index-BIPwuHvF.js";import"./inline-icon-6fh0Wu1y.js";import"./math-input-ILg8RrvB.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./text-list-editor-aj1SAzcA.js";import"./index-k-0mNqHS.js";import"./i18n-context-fsWEgybQ.js";import"./index-smZ6iCr_.js";import{K as h}from"./ke-score-ui-rxqDzQuA.js";import{S as p}from"./side-by-side-MBJuyilC.js";import{s as c}from"./test-dependencies-pK6aZRAV.js";const b=({item:t,apiOptions:s,keypadElement:o})=>{const r=i.useRef(null),[l,u]=i.useState(null),d=s||Object.freeze({});return e.jsx(p,{leftTitle:"Renderer",left:e.jsxs(e.Fragment,{children:[e.jsx(g,{ref:r,problemNum:0,apiOptions:d,item:t,dependencies:c,keypadElement:o}),e.jsxs(y,{style:{flexDirection:"row",alignItems:"center"},children:[e.jsx(a,{onClick:()=>{r.current&&u(r.current.scoreInput())},children:"Check"}),e.jsx(m,{size:8}),e.jsx(a,{onClick:()=>{var n;(n=r.current)==null||n.showRationalesForCurrentlySelectedChoices()},children:"Show Rationales"})]}),e.jsx(h,{score:l})]}),jsonObject:t})};b.__docgenInfo={description:"",methods:[],displayName:"ServerItemRendererWithDebugUI",props:{item:{required:!0,tsType:{name:"signature",type:"object",raw:`{ // The details of the question being asked to the user. question: PerseusRenderer; // A collection of hints to be offered to the user that support answering the question. diff --git a/assets/server-item-renderer.stories-fhCp9YLF.js b/assets/server-item-renderer.stories-tuVQdP8K.js similarity index 99% rename from assets/server-item-renderer.stories-fhCp9YLF.js rename to assets/server-item-renderer.stories-tuVQdP8K.js index 390df32771..7f251a0228 100644 --- a/assets/server-item-renderer.stories-fhCp9YLF.js +++ b/assets/server-item-renderer.stories-tuVQdP8K.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{r as C}from"./index-6oxdNXpR.js";import{S as i}from"./server-item-renderer-with-debug-ui-1bUVpaj2.js";import{s as B}from"./test-dependencies-pK6aZRAV.js";import{I as F}from"./article-renderer-h_m-tvVP.js";import{S as G}from"./perseus-item-334dAsMX.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./index-awljIyHI.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./dependencies-CP7Uh8Kq.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./index-J2t_5nK1.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./shared-4TdECMLk.js";import"./base-radio-XsQBfrsT.js";import"./choice-none-above-qQVnMhkg.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./ke-score-ui-AQ1XUyPU.js";import"./side-by-side-MBJuyilC.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./enums-x5qaTru7.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./answer-choices-o46t7GFm.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";const K={question:{content:"Enter the number $$-42$$ in the box: [[☃ input-number 1]]",images:{},widgets:{"input-number 1":{type:"input-number",graded:!0,options:{answerType:"number",value:"-42",simplify:"required",size:"normal",inexact:!1,maxError:.1}}}},hints:[{content:"Hint #1",images:{},widgets:{}},{content:"Hint #2",images:{},widgets:{}},{content:"Hint #3",images:{},widgets:{}}],answerArea:null,itemDataVersion:{major:0,minor:0},answer:null},Q={question:{content:`Enter the number $$1$$ in box one: [[☃ input-number 1]] +import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{r as C}from"./index-6oxdNXpR.js";import{S as i}from"./server-item-renderer-with-debug-ui-o9_yPBTG.js";import{s as B}from"./test-dependencies-pK6aZRAV.js";import{I as F}from"./article-renderer-h_m-tvVP.js";import{S as G}from"./perseus-item-334dAsMX.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./choice-Xr-SKHrB.js";import"./index-0DbkllkJ.js";import"./index-awljIyHI.js";import"./react-router-dom-VIBHfbW6.js";import"./index-i1pBWAmI.js";import"./index-deFLJwr4.js";import"./index-18qWGOW7.js";import"./index-vITVWi7a.js";import"./index-f-3iKkZU.js";import"./index-469F30Ub.js";import"./index-CyYhwSUV.js";import"./index-nqMmpXbO.js";import"./index-zFNZn_u0.js";import"./index-9gkyvru-.js";import"./index-jxhLXBHb.js";import"./index-7-BESUpx.js";import"./Popper-Y5KDXl-P.js";import"./index-Dfd6auV6.js";import"./index-dnMhQZ-1.js";import"./i18n-context-fsWEgybQ.js";import"./icon-7RFbyLiL.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./invariant-bu5zBsRS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./jquery-yG1GhClm.js";import"./media-queries-gbofTbz-.js";import"./constants-iPV6vHZm.js";import"./choice-icon-9x4jcq5T.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./dependencies-CP7Uh8Kq.js";import"./hints-renderer-Ebeftjch.js";import"./renderer-yXFj-6ty.js";import"./index-J2t_5nK1.js";import"./asset-context-H6Iqp7Gi.js";import"./svg-image-FcZanvM1.js";import"./fixed-to-responsive-for_tVF1.js";import"./client-Rb4DelHy.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./lint-CRWxUAIQ.js";import"./shared-4TdECMLk.js";import"./base-radio-XsQBfrsT.js";import"./choice-none-above-qQVnMhkg.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./hud-ifw9Ofbw.js";import"./index-BIPwuHvF.js";import"./math-input-ILg8RrvB.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./ke-score-ui-rxqDzQuA.js";import"./side-by-side-MBJuyilC.js";import"./register-all-widgets-for-testing-TyijFPFL.js";import"./enums-x5qaTru7.js";import"./input-with-examples-ap__dKNy.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./answer-choices-o46t7GFm.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";const K={question:{content:"Enter the number $$-42$$ in the box: [[☃ input-number 1]]",images:{},widgets:{"input-number 1":{type:"input-number",graded:!0,options:{answerType:"number",value:"-42",simplify:"required",size:"normal",inexact:!1,maxError:.1}}}},hints:[{content:"Hint #1",images:{},widgets:{}},{content:"Hint #2",images:{},widgets:{}},{content:"Hint #3",images:{},widgets:{}}],answerArea:null,itemDataVersion:{major:0,minor:0},answer:null},Q={question:{content:`Enter the number $$1$$ in box one: [[☃ input-number 1]] Enter the number $$2$$ in box two: [[☃ input-number 2]]`,images:{},widgets:{"input-number 1":{type:"input-number",graded:!0,options:{answerType:"number",value:"1",simplify:"required",size:"normal",inexact:!1,maxError:.1}},"input-number 2":{type:"input-number",graded:!0,options:{answerType:"number",value:"2",simplify:"required",size:"normal",inexact:!1,maxError:.1}}}},hints:[{content:"Hint #1",images:{},widgets:{}},{content:"Hint #2",images:{},widgets:{}},{content:"Hint #3",images:{},widgets:{}}],answerArea:null,itemDataVersion:{major:0,minor:0},answer:null},X={question:{content:`Here's a radio widget: [[☃ radio 1]] diff --git a/assets/structured-item-diff.stories-Y9_rE0v4.js b/assets/structured-item-diff.stories-f1IqFN6G.js similarity index 99% rename from assets/structured-item-diff.stories-Y9_rE0v4.js rename to assets/structured-item-diff.stories-f1IqFN6G.js index 65c850e4ab..5eefa051cd 100644 --- a/assets/structured-item-diff.stories-Y9_rE0v4.js +++ b/assets/structured-item-diff.stories-f1IqFN6G.js @@ -1,4 +1,4 @@ -import{_ as I}from"./iframe-ZJ6Y6Oqt.js";import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{S as c}from"./structured-item-diff-DXp4z5uV.js";import{W as b}from"./perseus-diff-wrapper-c32IFwe6.js";import"../sb-preview/runtime.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./text-diff-pKWm8aY9.js";import"./components-2XngBvY8.js";import"./index-0C4KXdeC.js";import"./tags-diff-3VjcFXZJ.js";I(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url);const ut={title:"PerseusEditor/Diffs/Structured Item Diff",decorators:[i=>e.jsx(b,{children:e.jsx(i,{})})]},g={a:"a tag",b:"b tag",c:"c tag"},s=i=>{const t={before:{_multi:{directions:{__type:"content",content:"",images:{},widgets:{}},passage:{type:"content",content:"",images:{},widgets:{}},overview:{type:"content",content:"",images:{},widgets:{}},hints:[],questions:[]}},after:{_multi:{directions:{type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})},o=i=>{const t={before:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},after:{_multi:{directions:{type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}}],questions:[{hints:[],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})},p=i=>{const t={before:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}},{type:"hint",content:"hint 3",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}},{type:"hint",content:"question hint 2",images:{},widgets:{}},{type:"hint",content:"question hint 3",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},after:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1 edited",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})},a=i=>{const t={before:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1 edited",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},after:{_multi:{directions:{__type:"content",content:"",images:{},widgets:{}},passage:{type:"content",content:"",images:{},widgets:{}},overview:{type:"content",content:"",images:{},widgets:{}},hints:[],questions:[]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})};s.__docgenInfo={description:"",methods:[],displayName:"ContentAdded"};o.__docgenInfo={description:"",methods:[],displayName:"ContentAddedRemovedAndChanged"};p.__docgenInfo={description:"",methods:[],displayName:"MiscContentChanges"};a.__docgenInfo={description:"",methods:[],displayName:"ContentRemoved"};var r,m,d;s.parameters={...s.parameters,docs:{...(r=s.parameters)==null?void 0:r.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { +import{_ as I}from"./iframe-DrKPbhiz.js";import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{S as c}from"./structured-item-diff-DXp4z5uV.js";import{W as b}from"./perseus-diff-wrapper-c32IFwe6.js";import"../sb-preview/runtime.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./article-renderer-h_m-tvVP.js";import"./util-AYeX86gl.js";import"./version-akiLXZts.js";import"./perseus-error-l3K_anoI.js";import"./jquery-yG1GhClm.js";import"./prop-types-d_cUcR3L.js";import"./mobile-keypad-Muuas9zV.js";import"./index-awljIyHI.js";import"./index-9gkyvru-.js";import"./index-7-BESUpx.js";import"./index-J2t_5nK1.js";import"./index-0DbkllkJ.js";import"./index-deFLJwr4.js";import"./tabbar-WEwAggnz.js";import"./item-ct0mKlsr.js";import"./index-xfryX26Z.js";import"./react-router-dom-VIBHfbW6.js";import"./button-assets-ozecF1qE.js";import"./keypad-button-BlFICMi6.js";import"./operators-page-pCrK11a-.js";import"./navigation-pad-29vyLJ52.js";import"./key-translator-hixns6dh.js";import"./invariant-bu5zBsRS.js";import"./enums-x5qaTru7.js";import"./renderer-yXFj-6ty.js";import"./index-dnMhQZ-1.js";import"./asset-context-H6Iqp7Gi.js";import"./i18n-context-fsWEgybQ.js";import"./svg-image-FcZanvM1.js";import"./dependencies-CP7Uh8Kq.js";import"./fixed-to-responsive-for_tVF1.js";import"./constants-iPV6vHZm.js";import"./index-Dfd6auV6.js";import"./client-Rb4DelHy.js";import"./inline-icon-6fh0Wu1y.js";import"./icon-paths-5JCXzGsq.js";import"./image-loader-qoercD2n.js";import"./tex-MX5FPdQh.js";import"./zoomable-_uYFBX1Q.js";import"./zoomable-tex-Jjwex-Ep.js";import"./perseus-api-1-ethIrW.js";import"./index-k-0mNqHS.js";import"./stub-tag-editor-qMhJW4bS.js";import"./text-list-editor-aj1SAzcA.js";import"./lint-CRWxUAIQ.js";import"./index-BIPwuHvF.js";import"./index-469F30Ub.js";import"./index-jxhLXBHb.js";import"./index-f-3iKkZU.js";import"./index-i1pBWAmI.js";import"./index-18qWGOW7.js";import"./Popper-Y5KDXl-P.js";import"./math-input-ILg8RrvB.js";import"./index-CyYhwSUV.js";import"./index-zFNZn_u0.js";import"./input-with-examples-ap__dKNy.js";import"./text-input-e6f7u9S5.js";import"./index-V5gl6frG.js";import"./minus-bold-ONmDo3Ve.js";import"./tooltip-Lp8Mlfe3.js";import"./simple-keypad-input-7tb5_po1.js";import"./base-radio-XsQBfrsT.js";import"./media-queries-gbofTbz-.js";import"./shared-4TdECMLk.js";import"./choice-Xr-SKHrB.js";import"./index-vITVWi7a.js";import"./index-nqMmpXbO.js";import"./icon-7RFbyLiL.js";import"./choice-icon-9x4jcq5T.js";import"./focus-ring-qYEF-qqz.js";import"./option-status-8mB213vS.js";import"./choice-none-above-qQVnMhkg.js";import"./phet-simulation-_7qOO4_B.js";import"./arrow-square-out-bold-090vdhrx.js";import"./answer-choices-o46t7GFm.js";import"./button-group-G5CZaedn.js";import"./graph-4ZDD3NK_.js";import"./index-smZ6iCr_.js";import"./tiny-invariant-bHgPayXn.js";import"./hud-ifw9Ofbw.js";import"./multi-button-group-QUVHbBcE.js";import"./number-input-ogh82yD8.js";import"./range-input-w5Z3sPK5.js";import"./marker-2_PYfPuj.js";import"./answer-pill-tXbsiPyg.js";import"./sortable-feDCgEkT.js";import"./video-transcript-link-_gpkjmR8.js";import"./perseus-item-334dAsMX.js";import"./hints-renderer-Ebeftjch.js";import"./text-diff-pKWm8aY9.js";import"./components-2XngBvY8.js";import"./index-0C4KXdeC.js";import"./tags-diff-3VjcFXZJ.js";I(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url);const ut={title:"PerseusEditor/Diffs/Structured Item Diff",decorators:[i=>e.jsx(b,{children:e.jsx(i,{})})]},g={a:"a tag",b:"b tag",c:"c tag"},s=i=>{const t={before:{_multi:{directions:{__type:"content",content:"",images:{},widgets:{}},passage:{type:"content",content:"",images:{},widgets:{}},overview:{type:"content",content:"",images:{},widgets:{}},hints:[],questions:[]}},after:{_multi:{directions:{type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})},o=i=>{const t={before:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},after:{_multi:{directions:{type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}}],questions:[{hints:[],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})},p=i=>{const t={before:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}},{type:"hint",content:"hint 3",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}},{type:"hint",content:"question hint 2",images:{},widgets:{}},{type:"hint",content:"question hint 3",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},after:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1 edited",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})},a=i=>{const t={before:{_multi:{directions:{__type:"content",content:"directions",images:{},widgets:{}},passage:{type:"content",content:"passage",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},hints:[{type:"hint",content:"hint 1",images:{},widgets:{}},{type:"hint",content:"hint 2",images:{},widgets:{}}],questions:[{hints:[{type:"hint",content:"question hint 1 edited",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question edited",images:{},widgets:{}},tags:["a","c"]},{hints:[{type:"hint",content:"question hint 1",images:{},widgets:{}}],keepInMind:{type:"content",content:"keep in mind",images:{},widgets:{}},overview:{type:"content",content:"overview",images:{},widgets:{}},question:{type:"content",content:"question",images:{},widgets:{}},tags:["a","b"]}]}},after:{_multi:{directions:{__type:"content",content:"",images:{},widgets:{}},passage:{type:"content",content:"",images:{},widgets:{}},overview:{type:"content",content:"",images:{},widgets:{}},hints:[],questions:[]}},shape:{type:"object",shape:{directions:{type:"content"},overview:{type:"content"},passage:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}},questions:{type:"array",elementShape:{type:"object",shape:{tags:{type:"tags"},question:{type:"content"},overview:{type:"content"},keepInMind:{type:"content"},hints:{type:"array",elementShape:{type:"hint"}}}}}}},tags:{idToName:n=>g[n],nameToId:n=>n[0],names:["a tag","b tag","c tag"]}};return e.jsx(c,{...t})};s.__docgenInfo={description:"",methods:[],displayName:"ContentAdded"};o.__docgenInfo={description:"",methods:[],displayName:"ContentAddedRemovedAndChanged"};p.__docgenInfo={description:"",methods:[],displayName:"MiscContentChanges"};a.__docgenInfo={description:"",methods:[],displayName:"ContentRemoved"};var r,m,d;s.parameters={...s.parameters,docs:{...(r=s.parameters)==null?void 0:r.docs,source:{originalSource:`(args: StoryArgs): React.ReactElement => { const props = { before: { _multi: { diff --git a/assets/zoomable.stories-uUuIBdOA.js b/assets/zoomable.stories-o_kFkCHK.js similarity index 94% rename from assets/zoomable.stories-uUuIBdOA.js rename to assets/zoomable.stories-o_kFkCHK.js index 7e73cf2ca4..20b50a0d92 100644 --- a/assets/zoomable.stories-uUuIBdOA.js +++ b/assets/zoomable.stories-o_kFkCHK.js @@ -1,7 +1,7 @@ import{j as e}from"./jsx-runtime-63Ea5SlK.js";import{Z as s}from"./zoomable-_uYFBX1Q.js";import"./index-6oxdNXpR.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-9gkyvru-.js";const a=(m,p)=>({width:1e3,height:500}),h={title:"Perseus/Components/Zoomable",component:s,args:{computeChildBounds:a},parameters:{chromatic:{disableSnapshot:!0}}},o={args:{children:e.jsxs("span",{children:["Here's some zoomed-out content.",e.jsx("br",{}),e.jsx("br",{}),"Click on the content to zoom/unzoom."]})}};var t,r,n;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { children: - Here's some zoomed-out content. + Here's some zoomed-out content.

Click on the content to zoom/unzoom. diff --git a/iframe.html b/iframe.html index 604019b3c4..7022724dea 100644 --- a/iframe.html +++ b/iframe.html @@ -575,7 +575,7 @@ } - + diff --git a/preview-stats.json b/preview-stats.json index 88d46458a7..a297792d4b 100644 --- a/preview-stats.json +++ b/preview-stats.json @@ -1276,77 +1276,62 @@ ] }, { - "id": "./packages/perseus/src/components/math-input.tsx", - "name": "./packages/perseus/src/components/math-input.tsx", + "id": "./packages/perseus/src/icon-paths.ts", + "name": "./packages/perseus/src/icon-paths.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/math-input.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/icon.stories.tsx" }, { - "moduleName": "./packages/perseus/src/components.ts" + "moduleName": "./packages/perseus/src/index.ts" }, { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/components/stub-tag-editor.tsx", - "name": "./packages/perseus/src/components/stub-tag-editor.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" + }, { - "moduleName": "./packages/perseus/src/components/__stories__/stub-tag-editor.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/label-image/marker.tsx" }, { - "moduleName": "./packages/perseus/src/perseus-api.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/components/hud.tsx", - "name": "./packages/perseus/src/components/hud.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" + }, { - "moduleName": "./packages/perseus/src/components/__stories__/hud.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" }, { - "moduleName": "./packages/perseus/src/components.ts" + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" } ] }, { - "id": "./packages/perseus/src/components/graph.tsx", - "name": "./packages/perseus/src/components/graph.tsx", + "id": "./packages/perseus/src/components/icon.tsx", + "name": "./packages/perseus/src/components/icon.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/graph.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/icon.stories.tsx" }, { "moduleName": "./packages/perseus/src/components.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + "moduleName": "./packages/perseus/src/widgets/label-image/marker.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" } ] }, { - "id": "./packages/perseus/src/components/number-input.tsx", - "name": "./packages/perseus/src/components/number-input.tsx", + "id": "./packages/perseus/src/components/hud.tsx", + "name": "./packages/perseus/src/components/hud.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/number-input.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/hud.stories.tsx" }, { "moduleName": "./packages/perseus/src/components.ts" - }, - { - "moduleName": "./packages/perseus/src/components/range-input.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/matrix/matrix.tsx" } ] }, @@ -1363,9 +1348,6 @@ { "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" - }, { "moduleName": "./packages/perseus/src/components/lint.tsx" }, @@ -1377,6 +1359,9 @@ }, { "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" } ] }, @@ -1396,107 +1381,92 @@ ] }, { - "id": "./packages/perseus/src/components/sortable.tsx", - "name": "./packages/perseus/src/components/sortable.tsx", + "id": "./packages/perseus/src/components/math-input.tsx", + "name": "./packages/perseus/src/components/math-input.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/sortable.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/math-input.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" + "moduleName": "./packages/perseus/src/components.ts" }, { - "moduleName": "./packages/perseus/src/widgets/matcher/matcher.tsx" + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" } ] }, { - "id": "./packages/perseus/src/components/range-input.tsx", - "name": "./packages/perseus/src/components/range-input.tsx", + "id": "./packages/perseus/src/components/graph.tsx", + "name": "./packages/perseus/src/components/graph.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/range-input.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/graph.stories.tsx" }, { "moduleName": "./packages/perseus/src/components.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" } ] }, { - "id": "./packages/perseus/src/components/svg-image.tsx", - "name": "./packages/perseus/src/components/svg-image.tsx", + "id": "./packages/perseus/src/components/number-input.tsx", + "name": "./packages/perseus/src/components/number-input.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/svg-image.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/number-input.stories.tsx" }, { "moduleName": "./packages/perseus/src/components.ts" }, { - "moduleName": "./packages/perseus/src/components/graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/image/image.tsx" - }, - { - "moduleName": "./packages/perseus/src/renderer.tsx" + "moduleName": "./packages/perseus/src/components/range-input.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/measurer/measurer.tsx" + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/label-image/label-image.tsx" + "moduleName": "./packages/perseus/src/widgets/matrix/matrix.tsx" } ] }, { - "id": "./packages/perseus/src/icon-paths.ts", - "name": "./packages/perseus/src/icon-paths.ts", + "id": "./packages/perseus/src/components/sortable.tsx", + "name": "./packages/perseus/src/components/sortable.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/icon.stories.tsx" - }, - { - "moduleName": "./packages/perseus/src/index.ts" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/label-image/marker.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/sortable.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" + "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" + "moduleName": "./packages/perseus/src/widgets/matcher/matcher.tsx" } ] }, { - "id": "./packages/perseus/src/components/icon.tsx", - "name": "./packages/perseus/src/components/icon.tsx", + "id": "./packages/perseus/src/components/range-input.tsx", + "name": "./packages/perseus/src/components/range-input.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/icon.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/range-input.stories.tsx" }, { "moduleName": "./packages/perseus/src/components.ts" - }, + } + ] + }, + { + "id": "./packages/perseus/src/components/stub-tag-editor.tsx", + "name": "./packages/perseus/src/components/stub-tag-editor.tsx", + "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/label-image/marker.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/stub-tag-editor.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" + "moduleName": "./packages/perseus/src/perseus-api.tsx" } ] }, @@ -1524,6 +1494,36 @@ } ] }, + { + "id": "./packages/perseus/src/components/svg-image.tsx", + "name": "./packages/perseus/src/components/svg-image.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/__stories__/svg-image.stories.tsx" + }, + { + "moduleName": "./packages/perseus/src/components.ts" + }, + { + "moduleName": "./packages/perseus/src/components/graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/image/image.tsx" + }, + { + "moduleName": "./packages/perseus/src/renderer.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/measurer/measurer.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/label-image/label-image.tsx" + } + ] + }, { "id": "./packages/perseus/src/components/tex.tsx", "name": "./packages/perseus/src/components/tex.tsx", @@ -1570,309 +1570,90 @@ ] }, { - "id": "./packages/math-input/less/main.less", - "name": "./packages/math-input/less/main.less", + "id": "./packages/math-input/src/components/keypad/keypad.tsx", + "name": "./packages/math-input/src/components/keypad/keypad.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/index.ts" + "moduleName": "./packages/math-input/src/components/keypad/index.tsx" + }, + { + "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" } ] }, { - "id": "./packages/math-input/src/version.ts", - "name": "./packages/math-input/src/version.ts", + "id": "./packages/math-input/src/components/keypad/mobile-keypad.tsx", + "name": "./packages/math-input/src/components/keypad/mobile-keypad.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/index.ts" + "moduleName": "./packages/math-input/src/components/keypad/index.tsx" } ] }, { - "id": "./packages/math-input/src/components/input/math-input.tsx", - "name": "./packages/math-input/src/components/input/math-input.tsx", + "id": "./packages/perseus/src/init.ts", + "name": "./packages/perseus/src/init.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/index.ts" + "moduleName": "./packages/perseus/src/index.ts" } ] }, { - "id": "./packages/math-input/src/components/input/mathquill-instance.ts", - "name": "./packages/math-input/src/components/input/mathquill-instance.ts", + "id": "./packages/perseus/src/perseus-api.tsx", + "name": "./packages/perseus/src/perseus-api.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/index.ts" + "moduleName": "./packages/perseus/src/index.ts" }, { - "moduleName": "./packages/math-input/src/components/input/mathquill-helpers.ts" + "moduleName": "./packages/perseus/src/components/input-with-examples.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" + "moduleName": "./packages/perseus/src/article-renderer.tsx" }, { - "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/group/group.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-arrow.ts" + "moduleName": "./packages/perseus/src/renderer.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-exponent.ts" + "moduleName": "./packages/perseus/src/widgets/table/table.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" + "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" }, { - "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" + "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-backspace.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/input/cursor-contexts.ts", - "name": "./packages/math-input/src/components/input/cursor-contexts.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" }, { - "moduleName": "./packages/math-input/src/components/input/mathquill-helpers.ts" + "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" }, { - "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" + "moduleName": "./packages/perseus/src/hints-renderer.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" + "moduleName": "./packages/perseus/src/components/sortable.tsx" }, { - "moduleName": "./packages/math-input/src/components/keypad/utils.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/input/mathquill-helpers.ts", - "name": "./packages/math-input/src/components/input/mathquill-helpers.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/server-item-renderer.tsx" + }, { - "moduleName": "./packages/math-input/src/index.ts" + "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx" }, { - "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-arrow.ts" - }, - { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" - }, - { - "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" - }, - { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-backspace.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/i18n-context.tsx", - "name": "./packages/math-input/src/components/i18n-context.tsx", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/geometry-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/numbers-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/operators-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/button-assets.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/input/math-input.tsx" - } - ] - }, - { - "id": "./packages/math-input/src/components/prop-types.ts", - "name": "./packages/math-input/src/components/prop-types.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" - } - ] - }, - { - "id": "./packages/math-input/src/utils.ts", - "name": "./packages/math-input/src/utils.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" - }, - { - "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/button-assets.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/input/mathquill-instance.ts" - } - ] - }, - { - "id": "./packages/math-input/src/data/keys.ts", - "name": "./packages/math-input/src/data/keys.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" - } - ] - }, - { - "id": "./packages/math-input/src/data/key-configs.ts", - "name": "./packages/math-input/src/data/key-configs.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-button.stories.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/geometry-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/numbers-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/operators-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/utils.ts" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.tsx" - } - ] - }, - { - "id": "./packages/math-input/src/enums.ts", - "name": "./packages/math-input/src/enums.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/key-handlers/key-translator.ts", - "name": "./packages/math-input/src/components/key-handlers/key-translator.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/index.ts" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" - } - ] - }, - { - "id": "./packages/perseus/src/init.ts", - "name": "./packages/perseus/src/init.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/index.ts" - } - ] - }, - { - "id": "./packages/perseus/src/perseus-api.tsx", - "name": "./packages/perseus/src/perseus-api.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/index.ts" - }, - { - "moduleName": "./packages/perseus/src/components/input-with-examples.tsx" - }, - { - "moduleName": "./packages/perseus/src/article-renderer.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/group/group.tsx" - }, - { - "moduleName": "./packages/perseus/src/renderer.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/table/table.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" - }, - { - "moduleName": "./packages/perseus/src/hints-renderer.tsx" - }, - { - "moduleName": "./packages/perseus/src/server-item-renderer.tsx" - }, - { - "moduleName": "./packages/perseus/src/components/sortable.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" }, { "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" - }, { "moduleName": "./packages/perseus/src/widgets/input-number/input-number.tsx" }, @@ -1988,10 +1769,10 @@ "moduleName": "./packages/perseus/src/components/input-with-examples.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/label-image/answer-choices.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-none-above.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/choice-none-above.tsx" + "moduleName": "./packages/perseus/src/widgets/label-image/answer-choices.tsx" }, { "moduleName": "./packages/perseus/src/article-renderer.tsx" @@ -1999,15 +1780,15 @@ { "moduleName": "./packages/perseus/src/widgets/radio/radio-component.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" - }, { "moduleName": "./packages/perseus/src/widgets/group/group.tsx" }, { "moduleName": "./packages/perseus/src/widgets/image/image.tsx" }, + { + "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" + }, { "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" }, @@ -2018,10 +1799,10 @@ "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" }, { - "moduleName": "./packages/perseus/src/server-item-renderer.tsx" + "moduleName": "./packages/perseus/src/components/sortable.tsx" }, { - "moduleName": "./packages/perseus/src/components/sortable.tsx" + "moduleName": "./packages/perseus/src/server-item-renderer.tsx" }, { "moduleName": "./packages/perseus/src/widgets/label-image/answer-pill.tsx" @@ -2039,16 +1820,16 @@ "moduleName": "./packages/perseus/src/multi-items/multi-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" }, { "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" + "moduleName": "./packages/perseus/src/widgets/label-image/label-image.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/label-image/label-image.tsx" + "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" }, { "moduleName": "./packages/perseus/src/widgets/matcher/matcher.tsx" @@ -2084,10 +1865,10 @@ "moduleName": "./packages/perseus/src/index.ts" }, { - "moduleName": "./packages/perseus/src/init.ts" + "moduleName": "./packages/perseus/src/item-version.ts" }, { - "moduleName": "./packages/perseus/src/item-version.ts" + "moduleName": "./packages/perseus/src/init.ts" }, { "moduleName": "./packages/perseus/src/renderer-util.ts" @@ -2095,26 +1876,26 @@ { "moduleName": "./packages/perseus/src/renderability.ts" }, - { - "moduleName": "./packages/perseus/src/util/register-all-widgets-for-testing.ts" - }, { "moduleName": "./packages/perseus/src/traversal.ts" }, { "moduleName": "./packages/perseus/src/a11y.ts" }, + { + "moduleName": "./packages/perseus/src/util/register-all-widgets-for-testing.ts" + }, { "moduleName": "./packages/perseus/src/util/extract-perseus-data.ts" }, { - "moduleName": "./packages/perseus/src/renderer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" }, { - "moduleName": "./packages/perseus/src/widget-container.tsx" + "moduleName": "./packages/perseus/src/renderer.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widget-container.tsx" } ] }, @@ -2336,10 +2117,10 @@ "moduleName": "./packages/perseus/src/logging/log.ts" }, { - "moduleName": "./packages/perseus/src/widgets/grapher/util.tsx" + "moduleName": "./packages/perseus/src/perseus-markdown.tsx" }, { - "moduleName": "./packages/perseus/src/perseus-markdown.tsx" + "moduleName": "./packages/perseus/src/widgets/grapher/util.tsx" }, { "moduleName": "./packages/perseus/src/article-renderer.tsx" @@ -2354,10 +2135,10 @@ "moduleName": "./packages/perseus/src/util/tex.ts" }, { - "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" }, { "moduleName": "./packages/perseus/src/renderer.tsx" @@ -2369,10 +2150,10 @@ "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" }, { - "moduleName": "./packages/perseus/src/server-item-renderer.tsx" + "moduleName": "./packages/perseus/src/components/sortable.tsx" }, { - "moduleName": "./packages/perseus/src/components/sortable.tsx" + "moduleName": "./packages/perseus/src/server-item-renderer.tsx" }, { "moduleName": "./packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx" @@ -2387,13 +2168,13 @@ "moduleName": "./packages/perseus/src/multi-items/multi-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" }, { "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" }, { "moduleName": "./packages/perseus/src/widgets/label-image/label-image.tsx" @@ -2474,13 +2255,13 @@ "moduleName": "./packages/perseus/src/util/graphie.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" + "moduleName": "./packages/perseus/src/util/answer-types.ts" }, { "moduleName": "./packages/perseus/src/util/geometry.ts" }, { - "moduleName": "./packages/perseus/src/util/answer-types.ts" + "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" }, { "moduleName": "./packages/perseus/src/util/tex.ts" @@ -2531,10 +2312,10 @@ "moduleName": "./packages/perseus/src/hint-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" }, { "moduleName": "./packages/perseus/src/styles/shared.ts" @@ -2597,13 +2378,13 @@ "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-function.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-line.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-point.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-polygon.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-line.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-point.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-polygon.tsx" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-vector.tsx" @@ -2674,17 +2455,14 @@ { "moduleName": "./packages/perseus/src/widget-container.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" - }, { "moduleName": "./packages/perseus/src/hints-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/components/hud.tsx" + "moduleName": "./packages/perseus/src/components/lint.tsx" }, { - "moduleName": "./packages/perseus/src/components/lint.tsx" + "moduleName": "./packages/perseus/src/components/hud.tsx" }, { "moduleName": "./packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx" @@ -2696,23 +2474,26 @@ "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/focus-ring.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/focus-ring.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" }, { "moduleName": "./packages/perseus/src/styles/shared.ts" }, { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" }, { "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" }, + { + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" + }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/legacy-grid.tsx" } @@ -2738,10 +2519,10 @@ "moduleName": "./packages/perseus/src/components/input-with-examples.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/label-image/answer-choices.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-none-above.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/choice-none-above.tsx" + "moduleName": "./packages/perseus/src/widgets/label-image/answer-choices.tsx" }, { "moduleName": "./packages/perseus/src/article-renderer.tsx" @@ -2756,10 +2537,7 @@ "moduleName": "./packages/perseus/src/components/number-input.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx" + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" }, { "moduleName": "./packages/perseus/src/widgets/group/group.tsx" @@ -2767,17 +2545,20 @@ { "moduleName": "./packages/perseus/src/widgets/image/image.tsx" }, + { + "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" + }, { "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" + "moduleName": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" + "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" }, { "moduleName": "./packages/perseus/src/renderer.tsx" @@ -2788,9 +2569,6 @@ { "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" - }, { "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.tsx" }, @@ -2798,13 +2576,13 @@ "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage/passage-markdown.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage-markdown.tsx" }, { "moduleName": "./packages/perseus/src/hints-renderer.tsx" @@ -2812,11 +2590,14 @@ { "moduleName": "./packages/perseus/src/components/math-input.tsx" }, + { + "moduleName": "./packages/perseus/src/components/sortable.tsx" + }, { "moduleName": "./packages/perseus/src/server-item-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/components/sortable.tsx" + "moduleName": "./packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx" }, { "moduleName": "./packages/perseus/src/widgets/label-image/marker.tsx" @@ -2825,23 +2606,20 @@ "moduleName": "./packages/perseus/src/widgets/label-image/answer-pill.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx" + "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx" + "moduleName": "./packages/perseus/src/hint-renderer.tsx" }, { "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" }, { - "moduleName": "./packages/perseus/src/hint-renderer.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" }, { "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" - }, { "moduleName": "./packages/perseus/src/widgets/video/video-transcript-link.tsx" }, @@ -2849,7 +2627,7 @@ "moduleName": "./packages/perseus/src/widgets/radio/option-status.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" }, { "moduleName": "./packages/perseus/src/widgets/input-number/input-number.tsx" @@ -2864,7 +2642,7 @@ "moduleName": "./packages/perseus/src/multi-items/multi-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" }, { "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" @@ -2873,10 +2651,10 @@ "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" + "moduleName": "./packages/perseus/src/widgets/label-image/label-image.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/label-image/label-image.tsx" + "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" }, { "moduleName": "./packages/perseus/src/widgets/matcher/matcher.tsx" @@ -2884,6 +2662,9 @@ { "moduleName": "./packages/perseus/src/widgets/label-image/hide-answers-toggle.tsx" }, + { + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group-answer-bar.tsx" + }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx" }, @@ -2936,19 +2717,19 @@ "moduleName": "./packages/perseus/src/widgets/radio/radio.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + "moduleName": "./packages/perseus/src/util/is-real-json-parse.ts" }, { - "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" }, { "moduleName": "./packages/perseus/src/util/geometry.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts" + "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" }, { - "moduleName": "./packages/perseus/src/util/is-real-json-parse.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts" }, { "moduleName": "./packages/perseus/src/widgets/radio/radio-component.tsx" @@ -2959,15 +2740,15 @@ { "moduleName": "./packages/perseus/src/components/number-input.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" - }, { "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" }, { "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" }, + { + "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" + }, { "moduleName": "./packages/perseus/src/renderer.tsx" }, @@ -2990,10 +2771,10 @@ "moduleName": "./packages/perseus/src/hints-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/server-item-renderer.tsx" + "moduleName": "./packages/perseus/src/components/sortable.tsx" }, { - "moduleName": "./packages/perseus/src/components/sortable.tsx" + "moduleName": "./packages/perseus/src/server-item-renderer.tsx" }, { "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" @@ -3122,10 +2903,10 @@ "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx" @@ -3238,11 +3019,14 @@ { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/grid.tsx" }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx" + }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/legacy-grid.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" @@ -3250,14 +3034,11 @@ { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" - }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/arrowhead.tsx" @@ -3272,10 +3053,10 @@ "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-polygon.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/svg-line.tsx" @@ -3317,25 +3098,25 @@ "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/group/group.tsx" + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/image/image.tsx" + "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" + "moduleName": "./packages/perseus/src/widgets/group/group.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" + "moduleName": "./packages/perseus/src/widgets/image/image.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" + "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" + "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" }, { "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" @@ -3347,16 +3128,16 @@ "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" + "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" } ] }, @@ -3448,346 +3229,616 @@ ] }, { - "id": "./packages/math-input/src/components/keypad/keypad.tsx", - "name": "./packages/math-input/src/components/keypad/keypad.tsx", + "id": "./packages/math-input/less/main.less", + "name": "./packages/math-input/less/main.less", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/index.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" + "moduleName": "./packages/math-input/src/index.ts" } ] }, { - "id": "./packages/math-input/src/components/keypad/mobile-keypad.tsx", - "name": "./packages/math-input/src/components/keypad/mobile-keypad.tsx", + "id": "./packages/math-input/src/version.ts", + "name": "./packages/math-input/src/version.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/index.tsx" + "moduleName": "./packages/math-input/src/index.ts" } ] }, { - "id": "./packages/keypad-context/src/keypad-context.tsx", - "name": "./packages/keypad-context/src/keypad-context.tsx", + "id": "./packages/math-input/src/components/input/math-input.tsx", + "name": "./packages/math-input/src/components/input/math-input.tsx", "reasons": [ { - "moduleName": "./packages/keypad-context/src/index.ts" + "moduleName": "./packages/math-input/src/index.ts" } ] }, { - "id": "./packages/perseus/src/index.ts", - "name": "./packages/perseus/src/index.ts", + "id": "./packages/math-input/src/components/input/mathquill-instance.ts", + "name": "./packages/math-input/src/components/input/mathquill-instance.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/util/register-all-widgets-and-editors-for-testing.ts" - }, - { - "moduleName": "./packages/perseus-editor/src/__stories__/flags-for-api-options.ts" + "moduleName": "./packages/math-input/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/index.ts" + "moduleName": "./packages/math-input/src/components/input/mathquill-helpers.ts" }, { - "moduleName": "./.storybook/preview.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" }, { - "moduleName": "./packages/perseus-editor/src/__stories__/article-editor.stories.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-arrow.ts" }, { - "moduleName": "./packages/perseus-editor/src/components/__stories__/section-control-button.stories.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-exponent.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/categorizer-editor.stories.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" }, { - "moduleName": "./packages/perseus-editor/src/components/viewport-resizer.tsx" + "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" }, { - "moduleName": "./packages/perseus-editor/src/diffs/structured-item-diff.tsx" - }, + "moduleName": "./packages/math-input/src/components/key-handlers/handle-backspace.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/input/cursor-contexts.ts", + "name": "./packages/math-input/src/components/input/cursor-contexts.ts", + "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/python-program-editor.tsx" + "moduleName": "./packages/math-input/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/phet-simulation-editor.tsx" + "moduleName": "./packages/math-input/src/components/input/mathquill-helpers.ts" }, { - "moduleName": "./packages/perseus-editor/src/article-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/input-number-editor.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/image-editor.tsx" - }, + "moduleName": "./packages/math-input/src/components/keypad/utils.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/input/mathquill-helpers.ts", + "name": "./packages/math-input/src/components/input/mathquill-helpers.ts", + "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/numeric-input-editor.tsx" + "moduleName": "./packages/math-input/src/index.ts" }, { - "moduleName": "./testing/server-item-renderer-with-debug-ui.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" }, { - "moduleName": "./testing/multi-item-renderer-with-debug-ui.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-arrow.ts" }, { - "moduleName": "./packages/perseus-editor/src/iframe-content-renderer.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" }, { - "moduleName": "./packages/perseus-editor/src/i18n.ts" + "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" }, { - "moduleName": "./testing/renderer-with-debug-ui.tsx" - }, + "moduleName": "./packages/math-input/src/components/key-handlers/handle-backspace.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/i18n-context.tsx", + "name": "./packages/math-input/src/components/i18n-context.tsx", + "reasons": [ { - "moduleName": "./packages/perseus-editor/src/diffs/renderer-diff.tsx" + "moduleName": "./packages/math-input/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/interaction-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/geometry-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/util.ts" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/numbers-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-settings.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/operators-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/editor-page.tsx" + "moduleName": "./packages/math-input/src/components/keypad/button-assets.tsx" }, { - "moduleName": "./dev/flipbook.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/deprecated-standin-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/grapher-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" }, { - "moduleName": "./packages/perseus-editor/src/editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/widget-select.tsx" + "moduleName": "./packages/math-input/src/components/input/math-input.tsx" + } + ] + }, + { + "id": "./packages/math-input/src/components/prop-types.ts", + "name": "./packages/math-input/src/components/prop-types.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/index.ts" + } + ] + }, + { + "id": "./packages/math-input/src/utils.ts", + "name": "./packages/math-input/src/utils.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/point-editor.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-point-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/button-assets.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/function-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/label-editor.tsx" + "moduleName": "./packages/math-input/src/components/input/mathquill-instance.ts" + } + ] + }, + { + "id": "./packages/math-input/src/data/keys.ts", + "name": "./packages/math-input/src/data/keys.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/index.ts" + } + ] + }, + { + "id": "./packages/math-input/src/data/key-configs.ts", + "name": "./packages/math-input/src/data/key-configs.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-button.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/geometry-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-line-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/numbers-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/rectangle-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/operators-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/element-container.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/widget-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/item-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/utils.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/definition-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" }, { - "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" + "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.tsx" + } + ] + }, + { + "id": "./packages/math-input/src/enums.ts", + "name": "./packages/math-input/src/enums.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/index.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/key-handlers/key-translator.ts", + "name": "./packages/math-input/src/components/key-handlers/key-translator.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/explanation-editor.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/categorizer-editor.tsx" + "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" + } + ] + }, + { + "id": "./packages/keypad-context/src/keypad-context.tsx", + "name": "./packages/keypad-context/src/keypad-context.tsx", + "reasons": [ + { + "moduleName": "./packages/keypad-context/src/index.ts" + } + ] + }, + { + "id": "./packages/math-input/src/types.ts", + "name": "./packages/math-input/src/types.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/input/mathquill-helpers.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/matcher-editor.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/number-line-editor.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-arrow.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/sorter-editor.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-exponent.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/radio/editor.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/cs-program-editor.tsx" + "moduleName": "./packages/math-input/src/components/key-handlers/handle-backspace.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/key-handlers/handle-arrow.ts", + "name": "./packages/math-input/src/components/key-handlers/handle-arrow.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/key-handlers/handle-exponent.ts", + "name": "./packages/math-input/src/components/key-handlers/handle-exponent.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts", + "name": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" + } + ] + }, + { + "id": "./packages/perseus/src/index.ts", + "name": "./packages/perseus/src/index.ts", + "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/util/register-all-widgets-and-editors-for-testing.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/graded-group-set-editor.tsx" + "moduleName": "./packages/perseus-editor/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/group-editor.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/flags-for-api-options.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/iframe-editor.tsx" + "moduleName": "./.storybook/preview.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/matrix-editor.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/molecule-editor.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/article-editor.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/measurer-editor.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/section-control-button.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/orderer-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/categorizer-editor.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/passage-editor.tsx" + "moduleName": "./packages/perseus-editor/src/components/viewport-resizer.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/passage-ref-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/python-program-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/passage-ref-target-editor.tsx" + "moduleName": "./packages/perseus-editor/src/diffs/structured-item-diff.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/video-editor.tsx" + "moduleName": "./packages/perseus-editor/src/article-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/table-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/input-number-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/diffs/widget-diff.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/image-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/hint-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/phet-simulation-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/color-picker.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/numeric-input-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/constraint-editor.tsx" + "moduleName": "./testing/server-item-renderer-with-debug-ui.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/dash-picker.tsx" + "moduleName": "./testing/multi-item-renderer-with-debug-ui.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/arrow-picker.tsx" + "moduleName": "./packages/perseus-editor/src/iframe-content-renderer.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/graph-settings.tsx" + "moduleName": "./packages/perseus-editor/src/i18n.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx" + "moduleName": "./testing/renderer-with-debug-ui.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/plotter-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/interaction-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/image-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/diffs/renderer-diff.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-swatch.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/util.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-settings.tsx" }, { - "moduleName": "./packages/perseus-editor/src/item-extras-editor.tsx" + "moduleName": "./packages/perseus-editor/src/editor-page.tsx" }, { - "moduleName": "./packages/perseus-editor/src/content-preview.tsx" + "moduleName": "./dev/flipbook.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/deprecated-standin-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/grapher-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/section-control-button.tsx" + "moduleName": "./packages/perseus-editor/src/editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-point-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + "moduleName": "./packages/perseus-editor/src/components/widget-select.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/expression-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-line-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/label-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/behavior.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/point-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/element-container.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/function-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/rectangle-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-aria.tsx" + "moduleName": "./packages/perseus-editor/src/components/widget-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/ellipse-swatch.tsx" + "moduleName": "./packages/perseus-editor/src/item-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/line-swatch.tsx" + "moduleName": "./packages/perseus-editor/src/hint-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/polygon-swatch.tsx" + "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/dropdown-option.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/categorizer-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/multirenderer-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/definition-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/graded-group-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/explanation-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/util.ts" - } - ] - }, - { - "id": "./packages/perseus-editor/src/all-editors.ts", - "name": "./packages/perseus-editor/src/all-editors.ts", - "reasons": [ + "moduleName": "./packages/perseus-editor/src/widgets/matcher-editor.tsx" + }, { - "moduleName": "./packages/perseus-editor/src/util/register-all-widgets-and-editors-for-testing.ts" + "moduleName": "./packages/perseus-editor/src/widgets/sorter-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/index.ts" - } - ] + "moduleName": "./packages/perseus-editor/src/widgets/number-line-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/radio/editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/cs-program-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/graded-group-set-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/group-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/iframe-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/matrix-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/molecule-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/measurer-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/orderer-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/passage-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/passage-ref-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/passage-ref-target-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/video-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/table-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/diffs/widget-diff.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/constraint-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/arrow-picker.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/color-picker.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/dash-picker.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/graph-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/plotter-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/image-editor.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/content-preview.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/item-extras-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-swatch.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/section-control-button.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/expression-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/label-image-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/label-image/behavior.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-aria.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/ellipse-swatch.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/line-swatch.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/polygon-swatch.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/dropdown-option.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/multirenderer-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/graded-group-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/util.ts" + } + ] + }, + { + "id": "./packages/perseus-editor/src/all-editors.ts", + "name": "./packages/perseus-editor/src/all-editors.ts", + "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/util/register-all-widgets-and-editors-for-testing.ts" + }, + { + "moduleName": "./packages/perseus-editor/src/index.ts" + } + ] }, { "id": "./packages/perseus-editor/src/version.ts", @@ -3818,10 +3869,10 @@ "moduleName": "./packages/perseus-editor/src/index.ts" }, { - "moduleName": "./packages/perseus-editor/src/components/__stories__/device-framer.stories.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/device-framer.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/article-editor.tsx" @@ -3913,6 +3964,9 @@ { "moduleName": "./packages/perseus-editor/src/item-editor.tsx" }, + { + "moduleName": "./packages/perseus-editor/src/hint-editor.tsx" + }, { "moduleName": "./packages/perseus-editor/src/widgets/definition-editor.tsx" }, @@ -3934,9 +3988,6 @@ { "moduleName": "./packages/perseus-editor/src/widgets/table-editor.tsx" }, - { - "moduleName": "./packages/perseus-editor/src/hint-editor.tsx" - }, { "moduleName": "./packages/perseus-editor/src/multirenderer-editor.tsx" }, @@ -3988,38 +4039,14 @@ { "moduleName": "./packages/perseus-editor/src/index.ts" }, - { - "moduleName": "./packages/perseus-editor/src/__stories__/item-editor.stories.tsx" - }, { "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/diffs/__stories__/structured-item-diff.stories.tsx" - } - ] - }, - { - "id": "./packages/math-input/src/types.ts", - "name": "./packages/math-input/src/types.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/input/mathquill-helpers.ts" - }, - { - "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" - }, - { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-arrow.ts" - }, - { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-exponent.ts" - }, - { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts" + "moduleName": "./packages/perseus-editor/src/__stories__/item-editor.stories.tsx" }, { - "moduleName": "./packages/math-input/src/components/key-handlers/handle-backspace.ts" + "moduleName": "./packages/perseus-editor/src/diffs/__stories__/structured-item-diff.stories.tsx" } ] }, @@ -4041,33 +4068,6 @@ } ] }, - { - "id": "./packages/math-input/src/components/key-handlers/handle-arrow.ts", - "name": "./packages/math-input/src/components/key-handlers/handle-arrow.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/key-handlers/handle-exponent.ts", - "name": "./packages/math-input/src/components/key-handlers/handle-exponent.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts", - "name": "./packages/math-input/src/components/key-handlers/handle-jump-out.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/key-handlers/key-translator.ts" - } - ] - }, { "id": "./packages/perseus-editor/src/widgets/interaction-editor/interaction-editor.tsx", "name": "./packages/perseus-editor/src/widgets/interaction-editor/interaction-editor.tsx", @@ -4161,18 +4161,6 @@ } ] }, - { - "id": "./packages/math-input/src/components/keypad/navigation-pad.tsx", - "name": "./packages/math-input/src/components/keypad/navigation-pad.tsx", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.stories.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" - } - ] - }, { "id": "./packages/math-input/src/components/keypad/keypad-pages/geometry-page.tsx", "name": "./packages/math-input/src/components/keypad/keypad-pages/geometry-page.tsx", @@ -4210,143 +4198,59 @@ ] }, { - "id": "./packages/math-input/src/components/tabbar/tabbar.tsx", - "name": "./packages/math-input/src/components/tabbar/tabbar.tsx", + "id": "./packages/perseus/src/__testdata__/article-renderer.testdata.ts", + "name": "./packages/perseus/src/__testdata__/article-renderer.testdata.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/tabbar/tabbar.stories.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" }, { - "moduleName": "./packages/math-input/src/components/tabbar/index.ts" + "moduleName": "./packages/perseus/src/__stories__/article-renderer.stories.tsx" } ] }, { - "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-swatch.tsx", - "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-swatch.tsx", + "id": "./packages/perseus/src/strings.ts", + "name": "./packages/perseus/src/strings.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/components/__stories__/color-swatch.stories.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph-regression.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" - } - ] - }, - { - "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/util.ts", - "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/util.ts", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/color-swatch.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/color-select.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-ellipse-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-function-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-label-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-line-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-point-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-polygon-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-vector-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-figures-section.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" + "moduleName": "./packages/perseus/src/components/i18n-context.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" + "moduleName": "./testing/renderer-with-debug-ui.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + "moduleName": "./dev/flipbook.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx" } ] }, { - "id": "./packages/perseus-editor/src/components/graph-settings.tsx", - "name": "./packages/perseus-editor/src/components/graph-settings.tsx", + "id": "./packages/perseus/src/widgets/radio/__tests__/radio.testdata.ts", + "name": "./packages/perseus/src/widgets/radio/__tests__/radio.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/components/__stories__/graph-settings.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/interaction-editor.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/grapher-editor.tsx" - } - ] - }, - { - "id": "./packages/perseus-editor/src/components/__stories__/graph-settings.argtypes.ts", - "name": "./packages/perseus-editor/src/components/__stories__/graph-settings.argtypes.ts", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/graph-settings.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/__stories__/radio.stories.tsx" } ] }, { - "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx", - "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx", + "id": "./packages/perseus-editor/src/content-preview.tsx", + "name": "./packages/perseus-editor/src/content-preview.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/components/__stories__/color-select.stories.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" } ] }, @@ -4392,6 +4296,18 @@ } ] }, + { + "id": "./packages/math-input/src/components/keypad/navigation-pad.tsx", + "name": "./packages/math-input/src/components/keypad/navigation-pad.tsx", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.stories.tsx" + }, + { + "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" + } + ] + }, { "id": "./packages/perseus-editor/src/util/register-all-widgets-and-editors-for-testing.ts", "name": "./packages/perseus-editor/src/util/register-all-widgets-and-editors-for-testing.ts", @@ -4410,6 +4326,30 @@ } ] }, + { + "id": "./packages/math-input/src/components/tabbar/tabbar.tsx", + "name": "./packages/math-input/src/components/tabbar/tabbar.tsx", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/tabbar/tabbar.stories.tsx" + }, + { + "moduleName": "./packages/math-input/src/components/tabbar/index.ts" + } + ] + }, + { + "id": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx", + "name": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/__stories__/editor-page.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/__stories__/interactive-graph-editor.stories.tsx" + } + ] + }, { "id": "./packages/perseus-editor/src/components/blur-input.tsx", "name": "./packages/perseus-editor/src/components/blur-input.tsx", @@ -4450,71 +4390,131 @@ ] }, { - "id": "./packages/perseus/src/__testdata__/article-renderer.testdata.ts", - "name": "./packages/perseus/src/__testdata__/article-renderer.testdata.ts", + "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-swatch.tsx", + "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-swatch.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/color-swatch.stories.tsx" }, { - "moduleName": "./packages/perseus/src/__stories__/article-renderer.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" } ] }, { - "id": "./packages/perseus/src/strings.ts", - "name": "./packages/perseus/src/strings.ts", + "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/util.ts", + "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/util.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/color-swatch.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph-regression.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/color-select.stories.tsx" }, { - "moduleName": "./packages/perseus/src/components/i18n-context.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-ellipse-settings.stories.tsx" }, { - "moduleName": "./testing/renderer-with-debug-ui.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-function-settings.stories.tsx" }, { - "moduleName": "./dev/flipbook.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-line-settings.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-label-settings.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-point-settings.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-polygon-settings.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-vector-settings.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-figures-section.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/radio/__tests__/radio.testdata.ts", - "name": "./packages/perseus/src/widgets/radio/__tests__/radio.testdata.ts", + "id": "./packages/perseus-editor/src/components/graph-settings.tsx", + "name": "./packages/perseus-editor/src/components/graph-settings.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/graph-settings.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/__stories__/radio.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/interaction-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/grapher-editor.tsx" } ] }, { - "id": "./packages/perseus-editor/src/content-preview.tsx", - "name": "./packages/perseus-editor/src/content-preview.tsx", + "id": "./packages/perseus-editor/src/components/__stories__/graph-settings.argtypes.ts", + "name": "./packages/perseus-editor/src/components/__stories__/graph-settings.argtypes.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/__stories__/content-preview.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/graph-settings.stories.tsx" } ] }, { - "id": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx", - "name": "./packages/perseus-editor/src/__stories__/editor-page-with-storybook-preview.tsx", + "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx", + "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/color-select.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/__stories__/editor-page.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/color-select.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/__stories__/interactive-graph-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" } ] }, @@ -4620,6 +4620,18 @@ } ] }, + { + "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx", + "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-line-settings.stories.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-settings.tsx" + } + ] + }, { "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx", "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx", @@ -4636,9 +4648,6 @@ { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" - }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" }, @@ -4647,18 +4656,9 @@ }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" - } - ] - }, - { - "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx", - "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/components/__stories__/locked-line-settings.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" } ] }, @@ -4709,10 +4709,10 @@ "moduleName": "./packages/perseus-editor/src/components/__stories__/scrollless-number-text-field.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/coordinate-pair-input.tsx" + "moduleName": "./packages/perseus-editor/src/components/angle-input.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/angle-input.tsx" + "moduleName": "./packages/perseus-editor/src/components/coordinate-pair-input.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-circle.tsx" @@ -4720,32 +4720,32 @@ ] }, { - "id": "./packages/perseus-editor/src/components/section-control-button.tsx", - "name": "./packages/perseus-editor/src/components/section-control-button.tsx", + "id": "./packages/perseus-editor/src/components/toggleable-caret.tsx", + "name": "./packages/perseus-editor/src/components/toggleable-caret.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/components/__stories__/section-control-button.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/toggleable-caret.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/article-editor.tsx" + "moduleName": "./packages/perseus-editor/src/tex-error-view.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/widget-editor.tsx" + "moduleName": "./packages/perseus-editor/src/components/heading.tsx" } ] }, { - "id": "./packages/perseus-editor/src/components/toggleable-caret.tsx", - "name": "./packages/perseus-editor/src/components/toggleable-caret.tsx", + "id": "./packages/perseus-editor/src/components/section-control-button.tsx", + "name": "./packages/perseus-editor/src/components/section-control-button.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/components/__stories__/toggleable-caret.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/__stories__/section-control-button.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/tex-error-view.tsx" + "moduleName": "./packages/perseus-editor/src/article-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/components/heading.tsx" + "moduleName": "./packages/perseus-editor/src/components/widget-editor.tsx" } ] }, @@ -4792,11 +4792,11 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/definition-editor.tsx", - "name": "./packages/perseus-editor/src/widgets/definition-editor.tsx", + "id": "./packages/perseus-editor/src/widgets/categorizer-editor.tsx", + "name": "./packages/perseus-editor/src/widgets/categorizer-editor.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/definition-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/categorizer-editor.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/all-editors.ts" @@ -4804,11 +4804,11 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/explanation-editor.tsx", - "name": "./packages/perseus-editor/src/widgets/explanation-editor.tsx", + "id": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx", + "name": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/explanation-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/dropdown-editor.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/all-editors.ts" @@ -4816,11 +4816,11 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/categorizer-editor.tsx", - "name": "./packages/perseus-editor/src/widgets/categorizer-editor.tsx", + "id": "./packages/perseus-editor/src/widgets/definition-editor.tsx", + "name": "./packages/perseus-editor/src/widgets/definition-editor.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/categorizer-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/definition-editor.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/all-editors.ts" @@ -4828,11 +4828,11 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx", - "name": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx", + "id": "./packages/perseus-editor/src/widgets/explanation-editor.tsx", + "name": "./packages/perseus-editor/src/widgets/explanation-editor.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/dropdown-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/explanation-editor.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/all-editors.ts" @@ -4876,11 +4876,11 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/number-line-editor.tsx", - "name": "./packages/perseus-editor/src/widgets/number-line-editor.tsx", + "id": "./packages/perseus-editor/src/widgets/matcher-editor.tsx", + "name": "./packages/perseus-editor/src/widgets/matcher-editor.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/number-line-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/matcher-editor.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/all-editors.ts" @@ -4888,11 +4888,11 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/matcher-editor.tsx", - "name": "./packages/perseus-editor/src/widgets/matcher-editor.tsx", + "id": "./packages/perseus-editor/src/widgets/number-line-editor.tsx", + "name": "./packages/perseus-editor/src/widgets/number-line-editor.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/__stories__/matcher-editor.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/__stories__/number-line-editor.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/all-editors.ts" @@ -4989,6 +4989,33 @@ } ] }, + { + "id": "./packages/perseus/src/components/fixed-to-responsive.tsx", + "name": "./packages/perseus/src/components/fixed-to-responsive.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/__stories__/fixed-to-responsive.stories.tsx" + }, + { + "moduleName": "./packages/perseus/src/components/svg-image.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/components/image-loader.tsx", + "name": "./packages/perseus/src/components/image-loader.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/__stories__/image-loader.stories.tsx" + }, + { + "moduleName": "./packages/perseus/src/components/svg-image.tsx" + } + ] + }, { "id": "./packages/perseus/src/__testdata__/graphie.testdata.ts", "name": "./packages/perseus/src/__testdata__/graphie.testdata.ts", @@ -5040,21 +5067,6 @@ } ] }, - { - "id": "./packages/perseus/src/components/fixed-to-responsive.tsx", - "name": "./packages/perseus/src/components/fixed-to-responsive.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/components/__stories__/fixed-to-responsive.stories.tsx" - }, - { - "moduleName": "./packages/perseus/src/components/svg-image.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" - } - ] - }, { "id": "./packages/perseus/src/components/lint.tsx", "name": "./packages/perseus/src/components/lint.tsx", @@ -5067,18 +5079,6 @@ } ] }, - { - "id": "./packages/perseus/src/components/multi-button-group.tsx", - "name": "./packages/perseus/src/components/multi-button-group.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/components/__stories__/multi-button-group.stories.tsx" - }, - { - "moduleName": "./packages/perseus/src/components.ts" - } - ] - }, { "id": "./packages/perseus/src/components/info-tip/index.tsx", "name": "./packages/perseus/src/components/info-tip/index.tsx", @@ -5092,14 +5092,14 @@ ] }, { - "id": "./packages/perseus/src/components/image-loader.tsx", - "name": "./packages/perseus/src/components/image-loader.tsx", + "id": "./packages/perseus/src/components/multi-button-group.tsx", + "name": "./packages/perseus/src/components/multi-button-group.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/components/__stories__/image-loader.stories.tsx" + "moduleName": "./packages/perseus/src/components/__stories__/multi-button-group.stories.tsx" }, { - "moduleName": "./packages/perseus/src/components/svg-image.tsx" + "moduleName": "./packages/perseus/src/components.ts" } ] }, @@ -5171,34 +5171,34 @@ "name": "./testing/renderer-with-debug-ui.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/group/group.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/definition/definition.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/deprecated-standin/__stories__/deprecated-standin.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/deprecated-standin/__stories__/deprecated-standin.stories.tsx" }, { "moduleName": "./packages/perseus/src/widgets/explanation/explanation.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/definition/definition.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/group/group.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/iframe/iframe.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/iframe/iframe.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.stories.tsx" }, { "moduleName": "./packages/perseus/src/widgets/grapher/grapher.stories.tsx" @@ -5210,31 +5210,31 @@ "moduleName": "./packages/perseus/src/widgets/interaction/interaction.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/input-number/input-number.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/matcher/matcher.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/input-number/input-number.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/matcher/matcher.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-functions.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-functions.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/matrix/matrix.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/matrix/matrix.stories.tsx" }, { "moduleName": "./packages/perseus/src/widgets/orderer/orderer.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.stories.tsx" }, { "moduleName": "./packages/perseus/src/widgets/passage/passage.stories.tsx" @@ -5249,28 +5249,19 @@ "moduleName": "./packages/perseus/src/widgets/python-program/python-program.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/sorter/sorter.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/__stories__/radio.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/video/video.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/sorter/sorter.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/__stories__/radio.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/video/video.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/__stories__/expression-editor.stories.tsx" } ] }, - { - "id": "./packages/perseus/src/widgets/cs-program/cs-program.testdata.ts", - "name": "./packages/perseus/src/widgets/cs-program/cs-program.testdata.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.stories.tsx" - } - ] - }, { "id": "./packages/perseus/src/widgets/categorizer/categorizer.testdata.ts", "name": "./packages/perseus/src/widgets/categorizer/categorizer.testdata.ts", @@ -5281,29 +5272,29 @@ ] }, { - "id": "./packages/perseus/src/widgets/dropdown/dropdown.testdata.ts", - "name": "./packages/perseus/src/widgets/dropdown/dropdown.testdata.ts", + "id": "./packages/perseus/src/widgets/cs-program/cs-program.testdata.ts", + "name": "./packages/perseus/src/widgets/cs-program/cs-program.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.stories.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/graded-group/graded-group.testdata.ts", - "name": "./packages/perseus/src/widgets/graded-group/graded-group.testdata.ts", + "id": "./packages/perseus/src/widgets/group/group.testdata.ts", + "name": "./packages/perseus/src/widgets/group/group.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/group/group.stories.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/explanation/explanation.testdata.ts", - "name": "./packages/perseus/src/widgets/explanation/explanation.testdata.ts", + "id": "./packages/perseus/src/widgets/graded-group/graded-group.testdata.ts", + "name": "./packages/perseus/src/widgets/graded-group/graded-group.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/explanation/explanation.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.stories.tsx" } ] }, @@ -5317,20 +5308,11 @@ ] }, { - "id": "./packages/perseus/src/widgets/group/group.testdata.ts", - "name": "./packages/perseus/src/widgets/group/group.testdata.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/group/group.stories.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/iframe/iframe.testdata.ts", - "name": "./packages/perseus/src/widgets/iframe/iframe.testdata.ts", + "id": "./packages/perseus/src/widgets/explanation/explanation.testdata.ts", + "name": "./packages/perseus/src/widgets/explanation/explanation.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/iframe/iframe.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/explanation/explanation.stories.tsx" } ] }, @@ -5355,6 +5337,24 @@ } ] }, + { + "id": "./packages/perseus/src/widgets/iframe/iframe.testdata.ts", + "name": "./packages/perseus/src/widgets/iframe/iframe.testdata.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/iframe/iframe.stories.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/dropdown/dropdown.testdata.ts", + "name": "./packages/perseus/src/widgets/dropdown/dropdown.testdata.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.stories.tsx" + } + ] + }, { "id": "./packages/perseus/src/widgets/grapher/grapher.testdata.ts", "name": "./packages/perseus/src/widgets/grapher/grapher.testdata.ts", @@ -5383,20 +5383,20 @@ ] }, { - "id": "./packages/perseus/src/widgets/input-number/input-number.testdata.ts", - "name": "./packages/perseus/src/widgets/input-number/input-number.testdata.ts", + "id": "./packages/perseus/src/widgets/matcher/matcher.testdata.ts", + "name": "./packages/perseus/src/widgets/matcher/matcher.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/input-number/input-number.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/matcher/matcher.stories.tsx" } ] }, { - "id": "./dev/flipbook.tsx", - "name": "./dev/flipbook.tsx", + "id": "./packages/perseus/src/widgets/input-number/input-number.testdata.ts", + "name": "./packages/perseus/src/widgets/input-number/input-number.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/input-number/input-number.stories.tsx" } ] }, @@ -5405,10 +5405,10 @@ "name": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-functions.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-functions.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/__stories__/interactive-graph-editor.stories.tsx" @@ -5416,50 +5416,50 @@ ] }, { - "id": "./packages/perseus/src/widgets/matcher/matcher.testdata.ts", - "name": "./packages/perseus/src/widgets/matcher/matcher.testdata.ts", + "id": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx", + "name": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/matcher/matcher.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/numeric-input/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/matrix/matrix.testdata.ts", - "name": "./packages/perseus/src/widgets/matrix/matrix.testdata.ts", + "id": "./packages/perseus/src/widgets/numeric-input/numeric-input.testdata.ts", + "name": "./packages/perseus/src/widgets/numeric-input/numeric-input.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/matrix/matrix.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/number-line/number-line.testdata.ts", - "name": "./packages/perseus/src/widgets/number-line/number-line.testdata.ts", + "id": "./dev/flipbook.tsx", + "name": "./dev/flipbook.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/interactive-graph.stories.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx", - "name": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx", + "id": "./packages/perseus/src/widgets/passage-ref/passage-ref.testdata.ts", + "name": "./packages/perseus/src/widgets/passage-ref/passage-ref.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/numeric-input/index.ts" + "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.stories.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/numeric-input/numeric-input.testdata.ts", - "name": "./packages/perseus/src/widgets/numeric-input/numeric-input.testdata.ts", + "id": "./packages/perseus/src/widgets/matrix/matrix.testdata.ts", + "name": "./packages/perseus/src/widgets/matrix/matrix.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/matrix/matrix.stories.tsx" } ] }, @@ -5473,11 +5473,11 @@ ] }, { - "id": "./packages/perseus/src/widgets/passage-ref/passage-ref.testdata.ts", - "name": "./packages/perseus/src/widgets/passage-ref/passage-ref.testdata.ts", + "id": "./packages/perseus/src/widgets/number-line/number-line.testdata.ts", + "name": "./packages/perseus/src/widgets/number-line/number-line.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.stories.tsx" } ] }, @@ -5499,6 +5499,18 @@ } ] }, + { + "id": "./packages/perseus/src/widgets/label-image/answer-pill.tsx", + "name": "./packages/perseus/src/widgets/label-image/answer-pill.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/label-image/__stories__/answer-pill.stories.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/label-image/marker.tsx" + } + ] + }, { "id": "./packages/perseus/src/widgets/label-image/answer-choices.tsx", "name": "./packages/perseus/src/widgets/label-image/answer-choices.tsx", @@ -5520,18 +5532,6 @@ } ] }, - { - "id": "./packages/perseus/src/widgets/label-image/answer-pill.tsx", - "name": "./packages/perseus/src/widgets/label-image/answer-pill.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/label-image/__stories__/answer-pill.stories.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/label-image/marker.tsx" - } - ] - }, { "id": "./packages/perseus/src/widgets/python-program/python-program.testdata.ts", "name": "./packages/perseus/src/widgets/python-program/python-program.testdata.ts", @@ -5557,11 +5557,35 @@ ] }, { - "id": "./packages/perseus/src/widgets/sorter/sorter.testdata.ts", - "name": "./packages/perseus/src/widgets/sorter/sorter.testdata.ts", + "id": "./packages/perseus-editor/src/styles/icon-paths.ts", + "name": "./packages/perseus-editor/src/styles/icon-paths.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/sorter/sorter.stories.tsx" + "moduleName": "./packages/perseus-editor/src/components/viewport-resizer.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/article-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/numeric-input-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/element-container.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/components/widget-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/hint-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/radio/editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/graded-group-editor.tsx" } ] }, @@ -5575,14 +5599,26 @@ ] }, { - "id": "./packages/perseus/src/widgets/video/video-transcript-link.tsx", - "name": "./packages/perseus/src/widgets/video/video-transcript-link.tsx", + "id": "./packages/perseus/src/widgets/sorter/sorter.testdata.ts", + "name": "./packages/perseus/src/widgets/sorter/sorter.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/video/video-transcript-link.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/sorter/sorter.stories.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/radio/choice.tsx", + "name": "./packages/perseus/src/widgets/radio/choice.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/radio/__stories__/choice.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-none-above.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" } ] }, @@ -5596,23 +5632,26 @@ ] }, { - "id": "./packages/perseus/src/widgets/radio/choice-none-above.tsx", - "name": "./packages/perseus/src/widgets/radio/choice-none-above.tsx", + "id": "./packages/perseus/src/widgets/radio/focus-ring.tsx", + "name": "./packages/perseus/src/widgets/radio/focus-ring.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/__stories__/choice-none-above.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/__stories__/focus-ring.stories.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/radio/__tests__/base-radio.testdata.ts", - "name": "./packages/perseus/src/widgets/radio/__tests__/base-radio.testdata.ts", + "id": "./packages/perseus/src/widgets/video/video-transcript-link.tsx", + "name": "./packages/perseus/src/widgets/video/video-transcript-link.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/__stories__/base-radio.stories.tsx" + "moduleName": "./packages/perseus/src/widgets/video/video-transcript-link.stories.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" } ] }, @@ -5629,26 +5668,20 @@ ] }, { - "id": "./packages/perseus/src/widgets/radio/focus-ring.tsx", - "name": "./packages/perseus/src/widgets/radio/focus-ring.tsx", + "id": "./packages/perseus/src/widgets/radio/__tests__/base-radio.testdata.ts", + "name": "./packages/perseus/src/widgets/radio/__tests__/base-radio.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/__stories__/focus-ring.stories.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/__stories__/base-radio.stories.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/radio/choice.tsx", - "name": "./packages/perseus/src/widgets/radio/choice.tsx", + "id": "./packages/perseus/src/widgets/radio/choice-none-above.tsx", + "name": "./packages/perseus/src/widgets/radio/choice-none-above.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/__stories__/choice.stories.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/radio/choice-none-above.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/__stories__/choice-none-above.stories.tsx" }, { "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" @@ -5667,39 +5700,6 @@ } ] }, - { - "id": "./packages/perseus-editor/src/styles/icon-paths.ts", - "name": "./packages/perseus-editor/src/styles/icon-paths.ts", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/components/viewport-resizer.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/article-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/numeric-input-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/element-container.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/components/widget-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/radio/editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/hint-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/dropdown-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/graded-group-editor.tsx" - } - ] - }, { "id": "./packages/perseus-editor/src/diffs/renderer-diff.tsx", "name": "./packages/perseus-editor/src/diffs/renderer-diff.tsx", @@ -5738,10 +5738,10 @@ "moduleName": "./packages/perseus/src/widgets/image/image.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" + "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" + "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" }, { "moduleName": "./packages/perseus/src/renderer.tsx" @@ -5759,19 +5759,19 @@ "moduleName": "./packages/perseus/src/hints-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/server-item-renderer.tsx" + "moduleName": "./packages/perseus/src/components/sortable.tsx" }, { - "moduleName": "./packages/perseus/src/components/sortable.tsx" + "moduleName": "./packages/perseus/src/server-item-renderer.tsx" }, { "moduleName": "./packages/perseus/src/widgets/numeric-input/numeric-input.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + "moduleName": "./packages/perseus/src/hint-renderer.tsx" }, { - "moduleName": "./packages/perseus/src/hint-renderer.tsx" + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" }, { "moduleName": "./packages/perseus/src/widgets/input-number/input-number.tsx" @@ -5783,7 +5783,7 @@ "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" }, { "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" @@ -5792,7 +5792,7 @@ "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" + "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" }, { "moduleName": "./packages/perseus/src/widgets/matcher/matcher.tsx" @@ -5836,21 +5836,51 @@ ] }, { - "id": "./packages/perseus-core/src/index.ts", - "name": "./packages/perseus-core/src/index.ts", + "id": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx", + "name": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/version.ts" + "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/basic-widgets.ts", + "name": "./packages/perseus/src/basic-widgets.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/init.ts" }, { - "moduleName": "./packages/perseus/src/version.ts" + "moduleName": "./packages/perseus/src/all-widgets.ts" + } + ] + }, + { + "id": "./packages/perseus/src/extra-widgets.ts", + "name": "./packages/perseus/src/extra-widgets.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/init.ts" }, { - "moduleName": "./packages/perseus/src/components/text-input.tsx" + "moduleName": "./packages/perseus/src/all-widgets.ts" + } + ] + }, + { + "id": "./packages/perseus-core/src/index.ts", + "name": "./packages/perseus-core/src/index.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/version.ts" }, { "moduleName": "./packages/perseus/src/renderability.ts" }, + { + "moduleName": "./packages/math-input/src/version.ts" + }, { "moduleName": "./packages/perseus/src/multi-items/items.ts" }, @@ -5866,6 +5896,9 @@ { "moduleName": "./packages/perseus/src/util.ts" }, + { + "moduleName": "./packages/perseus/src/components/text-input.tsx" + }, { "moduleName": "./packages/perseus-editor/src/version.ts" }, @@ -5879,19 +5912,19 @@ "moduleName": "./packages/perseus/src/components/graphie-classes.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/interactive-util.ts" + "moduleName": "./packages/perseus/src/util/graphie.ts" }, { - "moduleName": "./packages/perseus/src/util/graphie.ts" + "moduleName": "./packages/perseus/src/interactive2/interactive-util.ts" }, { - "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" + "moduleName": "./packages/perseus/src/util/answer-types.ts" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" }, { - "moduleName": "./packages/perseus/src/util/answer-types.ts" + "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" }, { "moduleName": "./packages/kmath/src/version.ts" @@ -5899,9 +5932,6 @@ { "moduleName": "./packages/perseus-editor/src/editor.tsx" }, - { - "moduleName": "./packages/perseus/src/error-boundary.tsx" - }, { "moduleName": "./packages/kas/src/version.ts" }, @@ -5915,28 +5945,31 @@ "moduleName": "./packages/perseus-linter/src/tree-transformer.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-helper-methods.ts" + "moduleName": "./packages/perseus/src/error-boundary.tsx" }, { "moduleName": "./packages/perseus/src/util/interactive.ts" }, { - "moduleName": "./packages/perseus/src/widgets/grapher/score-grapher.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-helper-methods.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/cs-program-editor.tsx" + "moduleName": "./packages/simple-markdown/src/version.ts" + }, + { + "moduleName": "./packages/pure-markdown/src/version.ts" }, { "moduleName": "./packages/perseus/src/interactive2/movable.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" + "moduleName": "./packages/perseus/src/widgets/grapher/score-grapher.ts" }, { - "moduleName": "./packages/pure-markdown/src/version.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" }, { - "moduleName": "./packages/simple-markdown/src/version.ts" + "moduleName": "./packages/perseus-editor/src/widgets/cs-program-editor.tsx" }, { "moduleName": "./packages/perseus/src/components/number-input.tsx" @@ -5968,26 +6001,11 @@ ] }, { - "id": "./packages/perseus/src/basic-widgets.ts", - "name": "./packages/perseus/src/basic-widgets.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/init.ts" - }, - { - "moduleName": "./packages/perseus/src/all-widgets.ts" - } - ] - }, - { - "id": "./packages/perseus/src/extra-widgets.ts", - "name": "./packages/perseus/src/extra-widgets.ts", + "id": "./packages/perseus/src/widgets/input-number/input-number.tsx", + "name": "./packages/perseus/src/widgets/input-number/input-number.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/init.ts" - }, - { - "moduleName": "./packages/perseus/src/all-widgets.ts" + "moduleName": "./packages/perseus/src/widgets/input-number/index.ts" } ] }, @@ -6001,11 +6019,11 @@ ] }, { - "id": "./packages/perseus/src/widgets/input-number/input-number.tsx", - "name": "./packages/perseus/src/widgets/input-number/input-number.tsx", + "id": "./packages/perseus/src/widgets/categorizer/categorizer.tsx", + "name": "./packages/perseus/src/widgets/categorizer/categorizer.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/input-number/index.ts" + "moduleName": "./packages/perseus/src/widgets/categorizer/index.ts" } ] }, @@ -6033,54 +6051,6 @@ } ] }, - { - "id": "./packages/perseus/src/widgets/categorizer/categorizer.tsx", - "name": "./packages/perseus/src/widgets/categorizer/categorizer.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/categorizer/index.ts" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/grapher/grapher.tsx", - "name": "./packages/perseus/src/widgets/grapher/grapher.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/grapher/index.ts" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/plotter/plotter.tsx", - "name": "./packages/perseus/src/widgets/plotter/plotter.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/plotter/index.ts" - } - ] - }, - { - "id": "./packages/simple-markdown/src/index.ts", - "name": "./packages/simple-markdown/src/index.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/jipt-paragraphs.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/utils.ts" - }, - { - "moduleName": "./packages/perseus/src/perseus-markdown.tsx" - }, - { - "moduleName": "./packages/pure-markdown/src/index.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/passage/passage-markdown.tsx" - } - ] - }, { "id": "./packages/perseus/src/widgets/matrix/matrix.tsx", "name": "./packages/perseus/src/widgets/matrix/matrix.tsx", @@ -6109,11 +6079,23 @@ ] }, { - "id": "./packages/perseus/src/widgets/table/table.tsx", - "name": "./packages/perseus/src/widgets/table/table.tsx", + "id": "./packages/simple-markdown/src/index.ts", + "name": "./packages/simple-markdown/src/index.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/table/index.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/utils.ts" + }, + { + "moduleName": "./packages/perseus/src/jipt-paragraphs.ts" + }, + { + "moduleName": "./packages/perseus/src/perseus-markdown.tsx" + }, + { + "moduleName": "./packages/pure-markdown/src/index.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/passage/passage-markdown.tsx" } ] }, @@ -6267,6 +6249,66 @@ } ] }, + { + "id": "./packages/perseus/src/util/answer-types.ts", + "name": "./packages/perseus/src/util/answer-types.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/numeric-input/score-numeric-input.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/input-number/score-input-number.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/matrix/score-matrix.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/table/score-table.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util.graphie.ts", + "name": "./packages/perseus/src/util.graphie.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util.ts" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/plotter/plotter.tsx", + "name": "./packages/perseus/src/widgets/plotter/plotter.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/plotter/index.ts" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/grapher/grapher.tsx", + "name": "./packages/perseus/src/widgets/grapher/grapher.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/grapher/index.ts" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/table/table.tsx", + "name": "./packages/perseus/src/widgets/table/table.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/table/index.ts" + } + ] + }, { "id": "./packages/kmath/src/index.ts", "name": "./packages/kmath/src/index.ts", @@ -6275,16 +6317,16 @@ "moduleName": "./packages/perseus/src/widgets/grapher/util.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/util.ts" + "moduleName": "./packages/perseus/src/components/graph.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-settings.tsx" + "moduleName": "./packages/perseus/src/util/math.ts" }, { - "moduleName": "./packages/perseus/src/components/graph.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/util.ts" }, { - "moduleName": "./packages/perseus/src/util/math.ts" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-settings.tsx" }, { "moduleName": "./packages/perseus/src/util/graphie.ts" @@ -6293,31 +6335,31 @@ "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" + "moduleName": "./packages/perseus/src/util/geometry.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" + "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" }, { - "moduleName": "./packages/perseus/src/util/geometry.ts" + "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-helper-methods.ts" + "moduleName": "./packages/perseus/src/util/interactive.ts" }, { - "moduleName": "./packages/perseus/src/util/interactive.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-helper-methods.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/number-line-editor.tsx" + "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" }, { "moduleName": "./packages/perseus/src/interactive2/movable.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" + "moduleName": "./packages/perseus/src/interactive2/wrapped-drawing.ts" }, { "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" @@ -6326,14 +6368,11 @@ "moduleName": "./packages/perseus/src/interactive2/movable-polygon.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/wrapped-drawing.ts" + "moduleName": "./packages/perseus-editor/src/widgets/number-line-editor.tsx" }, { "moduleName": "./packages/perseus/src/components/number-input.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" - }, { "moduleName": "./packages/perseus/src/interactive2/arrowhead.ts" }, @@ -6341,70 +6380,64 @@ "moduleName": "./packages/perseus/src/interactive2/wrapped-ellipse.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/plotter-editor.tsx" + "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" + "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" }, { "moduleName": "./packages/perseus/src/interactive2/movable-point-options.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-polygon-options.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-polygon-options.ts" + "moduleName": "./packages/perseus-editor/src/widgets/plotter-editor.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts" + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/number-line/score-number-line.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts" }, { "moduleName": "./packages/perseus/src/interactive2/get-clip-point.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/number-line/score-number-line.ts" } ] }, { - "id": "./packages/perseus/src/util/answer-types.ts", - "name": "./packages/perseus/src/util/answer-types.ts", + "id": "./testing/ke-score-ui.tsx", + "name": "./testing/ke-score-ui.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/numeric-input/score-numeric-input.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/input-number/score-input-number.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/matrix/score-matrix.ts" + "moduleName": "./testing/server-item-renderer-with-debug-ui.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/table/score-table.ts" + "moduleName": "./testing/multi-item-renderer-with-debug-ui.tsx" } ] }, { - "id": "./packages/perseus/src/util.graphie.ts", - "name": "./packages/perseus/src/util.graphie.ts", + "id": "./packages/perseus/src/multi-items/__testdata__/multi-renderer.testdata.ts", + "name": "./packages/perseus/src/multi-items/__testdata__/multi-renderer.testdata.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util.ts" + "moduleName": "./testing/multi-item-renderer-with-debug-ui.tsx" + }, + { + "moduleName": "./packages/perseus/src/multi-items/__stories__/multi-renderer.stories.tsx" } ] }, @@ -6419,10 +6452,10 @@ "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/math/angles.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/math/angles.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts" }, { "moduleName": "./packages/perseus/src/util/interactive.ts" @@ -6439,35 +6472,41 @@ ] }, { - "id": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx", - "name": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx", + "id": "./packages/perseus-core/src/utils/add-library-version-to-perseus-debug.ts", + "name": "./packages/perseus-core/src/utils/add-library-version-to-perseus-debug.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad.tsx" + "moduleName": "./packages/perseus-core/src/index.ts" + }, + { + "moduleName": "./packages/perseus-core/src/version.ts" } ] }, { - "id": "./testing/ke-score-ui.tsx", - "name": "./testing/ke-score-ui.tsx", + "id": "./packages/perseus-core/src/version.ts", + "name": "./packages/perseus-core/src/version.ts", "reasons": [ { - "moduleName": "./testing/server-item-renderer-with-debug-ui.tsx" - }, - { - "moduleName": "./testing/multi-item-renderer-with-debug-ui.tsx" + "moduleName": "./packages/perseus-core/src/index.ts" } ] }, { - "id": "./packages/perseus/src/multi-items/__testdata__/multi-renderer.testdata.ts", - "name": "./packages/perseus/src/multi-items/__testdata__/multi-renderer.testdata.ts", + "id": "./packages/perseus-core/src/error/errors.ts", + "name": "./packages/perseus-core/src/error/errors.ts", "reasons": [ { - "moduleName": "./testing/multi-item-renderer-with-debug-ui.tsx" - }, + "moduleName": "./packages/perseus-core/src/index.ts" + } + ] + }, + { + "id": "./packages/perseus-core/src/error/perseus-error.ts", + "name": "./packages/perseus-core/src/error/perseus-error.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/multi-items/__stories__/multi-renderer.stories.tsx" + "moduleName": "./packages/perseus-core/src/index.ts" } ] }, @@ -6675,57 +6714,6 @@ } ] }, - { - "id": "./packages/perseus-core/src/utils/add-library-version-to-perseus-debug.ts", - "name": "./packages/perseus-core/src/utils/add-library-version-to-perseus-debug.ts", - "reasons": [ - { - "moduleName": "./packages/perseus-core/src/index.ts" - }, - { - "moduleName": "./packages/perseus-core/src/version.ts" - } - ] - }, - { - "id": "./packages/perseus-core/src/version.ts", - "name": "./packages/perseus-core/src/version.ts", - "reasons": [ - { - "moduleName": "./packages/perseus-core/src/index.ts" - } - ] - }, - { - "id": "./packages/perseus-core/src/error/errors.ts", - "name": "./packages/perseus-core/src/error/errors.ts", - "reasons": [ - { - "moduleName": "./packages/perseus-core/src/index.ts" - } - ] - }, - { - "id": "./packages/perseus-core/src/error/perseus-error.ts", - "name": "./packages/perseus-core/src/error/perseus-error.ts", - "reasons": [ - { - "moduleName": "./packages/perseus-core/src/index.ts" - } - ] - }, - { - "id": "./vendor/jsdiff/jsdiff.js", - "name": "./vendor/jsdiff/jsdiff.js", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/diffs/string-array-diff.ts" - }, - { - "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" - } - ] - }, { "id": "./packages/kmath/src/version.ts", "name": "./packages/kmath/src/version.ts", @@ -6757,14 +6745,14 @@ { "moduleName": "./packages/kmath/src/index.ts" }, - { - "moduleName": "./packages/kmath/src/line.ts" - }, { "moduleName": "./packages/kmath/src/point.ts" }, { "moduleName": "./packages/kmath/src/ray.ts" + }, + { + "moduleName": "./packages/kmath/src/line.ts" } ] }, @@ -6776,10 +6764,10 @@ "moduleName": "./packages/kmath/src/index.ts" }, { - "moduleName": "./packages/kmath/src/line.ts" + "moduleName": "./packages/kmath/src/ray.ts" }, { - "moduleName": "./packages/kmath/src/ray.ts" + "moduleName": "./packages/kmath/src/line.ts" } ] }, @@ -6802,14 +6790,14 @@ ] }, { - "id": "./packages/perseus-editor/src/diffs/widget-diff.tsx", - "name": "./packages/perseus-editor/src/diffs/widget-diff.tsx", + "id": "./vendor/jsdiff/jsdiff.js", + "name": "./vendor/jsdiff/jsdiff.js", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/diffs/renderer-diff.tsx" + "moduleName": "./packages/perseus-editor/src/diffs/string-array-diff.ts" }, { - "moduleName": "./packages/perseus-editor/src/diffs/item-diff.tsx" + "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" } ] }, @@ -6894,6 +6882,18 @@ } ] }, + { + "id": "./packages/perseus-editor/src/diffs/widget-diff.tsx", + "name": "./packages/perseus-editor/src/diffs/widget-diff.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/diffs/renderer-diff.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/diffs/item-diff.tsx" + } + ] + }, { "id": "./packages/kas/src/version.ts", "name": "./packages/kas/src/version.ts", @@ -6942,6 +6942,117 @@ } ] }, + { + "id": "./packages/perseus/src/interactive2/interactive-util.ts", + "name": "./packages/perseus/src/interactive2/interactive-util.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/graphie.tsx" + }, + { + "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/wrapped-drawing.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-polygon.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/wrapped-ellipse.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/table/table.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/matrix/matrix.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/util/graph-utils.ts", + "name": "./packages/perseus/src/util/graph-utils.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/graphie.tsx" + }, + { + "moduleName": "./packages/perseus/src/components/graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-polygon.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/measurer/measurer.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/util/graphie.ts", + "name": "./packages/perseus/src/util/graphie.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/graphie.tsx" + }, + { + "moduleName": "./packages/perseus/src/util/graph-utils.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/util/interactive.ts" + } + ] + }, + { + "id": "./packages/perseus/src/components/graphie-classes.ts", + "name": "./packages/perseus/src/components/graphie-classes.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/graphie.tsx" + }, + { + "moduleName": "./packages/perseus/src/components/graphie-movables.ts" + } + ] + }, + { + "id": "./packages/perseus/src/components/graphie-movables.ts", + "name": "./packages/perseus/src/components/graphie-movables.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/graphie.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/zoom.ts", + "name": "./packages/perseus/src/zoom.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/components/svg-image.tsx" + } + ] + }, { "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-angle.tsx", "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-angle.tsx", @@ -7034,14 +7145,11 @@ "moduleName": "./packages/perseus-linter/src/index.ts" }, { - "moduleName": "./packages/perseus-linter/src/rules/blockquoted-math.ts" + "moduleName": "./packages/perseus-linter/src/rules/absolute-url.ts" }, { "moduleName": "./packages/perseus-linter/src/rules/blockquoted-widget.ts" }, - { - "moduleName": "./packages/perseus-linter/src/rules/absolute-url.ts" - }, { "moduleName": "./packages/perseus-linter/src/rules/double-spacing-after-terminal.ts" }, @@ -7049,10 +7157,10 @@ "moduleName": "./packages/perseus-linter/src/rules/expression-widget.ts" }, { - "moduleName": "./packages/perseus-linter/src/rules/heading-level-1.ts" + "moduleName": "./packages/perseus-linter/src/rules/extra-content-spacing.ts" }, { - "moduleName": "./packages/perseus-linter/src/rules/extra-content-spacing.ts" + "moduleName": "./packages/perseus-linter/src/rules/heading-level-1.ts" }, { "moduleName": "./packages/perseus-linter/src/rules/heading-level-skip.ts" @@ -7063,6 +7171,9 @@ { "moduleName": "./packages/perseus-linter/src/rules/heading-title-case.ts" }, + { + "moduleName": "./packages/perseus-linter/src/rules/blockquoted-math.ts" + }, { "moduleName": "./packages/perseus-linter/src/rules/image-in-table.ts" }, @@ -7091,10 +7202,10 @@ "moduleName": "./packages/perseus-linter/src/rules/math-empty.ts" }, { - "moduleName": "./packages/perseus-linter/src/rules/math-font-size.ts" + "moduleName": "./packages/perseus-linter/src/rules/math-frac.ts" }, { - "moduleName": "./packages/perseus-linter/src/rules/math-frac.ts" + "moduleName": "./packages/perseus-linter/src/rules/math-font-size.ts" }, { "moduleName": "./packages/perseus-linter/src/rules/math-align-linebreaks.ts" @@ -7117,17 +7228,17 @@ { "moduleName": "./packages/perseus-linter/src/rules/static-widget-in-question-stem.ts" }, - { - "moduleName": "./packages/perseus-linter/src/rules/table-missing-cells.ts" - }, { "moduleName": "./packages/perseus-linter/src/rules/unbalanced-code-delimiters.ts" }, { - "moduleName": "./packages/perseus-linter/src/rules/widget-in-table.ts" + "moduleName": "./packages/perseus-linter/src/rules/table-missing-cells.ts" }, { "moduleName": "./packages/perseus-linter/src/rules/unescaped-dollar.ts" + }, + { + "moduleName": "./packages/perseus-linter/src/rules/widget-in-table.ts" } ] }, @@ -7168,113 +7279,77 @@ ] }, { - "id": "./packages/perseus/src/interactive2/interactive-util.ts", - "name": "./packages/perseus/src/interactive2/interactive-util.ts", + "id": "./packages/perseus/src/util/interactive.ts", + "name": "./packages/perseus/src/util/interactive.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/graphie.tsx" - }, + "moduleName": "./packages/perseus/src/util/graph-utils.ts" + } + ] + }, + { + "id": "./packages/perseus/src/interactive2.ts", + "name": "./packages/perseus/src/interactive2.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" + "moduleName": "./packages/perseus/src/components/graphie-movables.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" + "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-polygon.ts" - }, - { - "moduleName": "./packages/perseus/src/interactive2/wrapped-drawing.ts" - }, - { - "moduleName": "./packages/perseus/src/interactive2/wrapped-ellipse.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/table/table.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/matrix/matrix.tsx" + "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" } ] }, { - "id": "./packages/perseus/src/util/graph-utils.ts", - "name": "./packages/perseus/src/util/graph-utils.ts", + "id": "./vendor/raphael/raphael.js", + "name": "./vendor/raphael/raphael.js", "reasons": [ { - "moduleName": "./packages/perseus/src/components/graphie.tsx" - }, - { - "moduleName": "./packages/perseus/src/components/graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-polygon.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/measurer/measurer.tsx" + "moduleName": "./packages/perseus/src/util/graphie.ts" } ] }, { - "id": "./packages/perseus/src/util/graphie.ts", - "name": "./packages/perseus/src/util/graphie.ts", + "id": "./packages/perseus/src/util/drawing-transform.ts", + "name": "./packages/perseus/src/util/drawing-transform.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/graphie.tsx" - }, - { - "moduleName": "./packages/perseus/src/util/graph-utils.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/util/interactive.ts" + "moduleName": "./packages/perseus/src/util/graphie.ts" } ] }, { - "id": "./packages/perseus/src/components/graphie-classes.ts", - "name": "./packages/perseus/src/components/graphie-classes.ts", + "id": "./packages/perseus/src/util/graph-bounds.ts", + "name": "./packages/perseus/src/util/graph-bounds.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/graphie.tsx" - }, - { - "moduleName": "./packages/perseus/src/components/graphie-movables.ts" + "moduleName": "./packages/perseus/src/util/graphie.ts" } ] }, { - "id": "./packages/perseus/src/components/graphie-movables.ts", - "name": "./packages/perseus/src/components/graphie-movables.ts", + "id": "./packages/perseus/src/util/tex.ts", + "name": "./packages/perseus/src/util/tex.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/graphie.tsx" + "moduleName": "./packages/perseus/src/util/graphie.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" } ] }, { - "id": "./packages/perseus/src/zoom.ts", - "name": "./packages/perseus/src/zoom.ts", + "id": "./packages/perseus/src/interactive2/movable-helper-methods.ts", + "name": "./packages/perseus/src/interactive2/movable-helper-methods.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/svg-image.tsx" + "moduleName": "./packages/perseus/src/interactive2/interactive-util.ts" } ] }, @@ -7300,86 +7375,29 @@ ] }, { - "id": "./packages/perseus/src/util/interactive.ts", - "name": "./packages/perseus/src/util/interactive.ts", + "id": "./dev/cache.ts", + "name": "./dev/cache.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/graph-utils.ts" + "moduleName": "./dev/flipbook-model.ts" } ] }, { - "id": "./packages/perseus/src/interactive2.ts", - "name": "./packages/perseus/src/interactive2.ts", + "id": "./packages/math-input/src/components/keypad/utils.ts", + "name": "./packages/math-input/src/components/keypad/utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/graphie-movables.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" + "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/interactive2/movable-helper-methods.ts", - "name": "./packages/perseus/src/interactive2/movable-helper-methods.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/interactive2/interactive-util.ts" - } - ] - }, - { - "id": "./vendor/raphael/raphael.js", - "name": "./vendor/raphael/raphael.js", - "reasons": [ - { - "moduleName": "./packages/perseus/src/util/graphie.ts" - } - ] - }, - { - "id": "./packages/perseus/src/util/drawing-transform.ts", - "name": "./packages/perseus/src/util/drawing-transform.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/util/graphie.ts" - } - ] - }, - { - "id": "./packages/perseus/src/util/graph-bounds.ts", - "name": "./packages/perseus/src/util/graph-bounds.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/util/graphie.ts" - } - ] - }, - { - "id": "./packages/perseus/src/util/tex.ts", - "name": "./packages/perseus/src/util/tex.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/util/graphie.ts" + "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" - } - ] - }, - { - "id": "./dev/cache.ts", - "name": "./dev/cache.ts", - "reasons": [ - { - "moduleName": "./dev/flipbook-model.ts" + "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" } ] }, @@ -7431,36 +7449,6 @@ } ] }, - { - "id": "./packages/math-input/src/components/input/cursor-styles.ts", - "name": "./packages/math-input/src/components/input/cursor-styles.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/input/cursor-handle.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/input/math-input.tsx" - } - ] - }, - { - "id": "./packages/math-input/src/fake-react-native-web/view.tsx", - "name": "./packages/math-input/src/fake-react-native-web/view.tsx", - "reasons": [ - { - "moduleName": "./packages/math-input/src/fake-react-native-web/index.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/key-handlers/handle-backspace.ts", - "name": "./packages/math-input/src/components/key-handlers/handle-backspace.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" - } - ] - }, { "id": "./packages/perseus/src/widget-ai-utils/unsupported-widget.ts", "name": "./packages/perseus/src/widget-ai-utils/unsupported-widget.ts", @@ -7472,10 +7460,10 @@ "moduleName": "./packages/perseus/src/widget-ai-utils/plotter/plotter-ai-utils.ts" }, { - "moduleName": "./packages/perseus/src/widget-ai-utils/cs-program/cs-program-ai-utils.ts" + "moduleName": "./packages/perseus/src/widget-ai-utils/video/video-ai-utils.ts" }, { - "moduleName": "./packages/perseus/src/widget-ai-utils/interaction/interaction-ai-utils.ts" + "moduleName": "./packages/perseus/src/widget-ai-utils/iframe/iframe-ai-utils.ts" }, { "moduleName": "./packages/perseus/src/widget-ai-utils/python-program/python-ai-utils.ts" @@ -7484,10 +7472,10 @@ "moduleName": "./packages/perseus/src/widget-ai-utils/measurer/measurer-ai-utils.ts" }, { - "moduleName": "./packages/perseus/src/widget-ai-utils/iframe/iframe-ai-utils.ts" + "moduleName": "./packages/perseus/src/widget-ai-utils/cs-program/cs-program-ai-utils.ts" }, { - "moduleName": "./packages/perseus/src/widget-ai-utils/video/video-ai-utils.ts" + "moduleName": "./packages/perseus/src/widget-ai-utils/interaction/interaction-ai-utils.ts" } ] }, @@ -7720,260 +7708,131 @@ ] }, { - "id": "./packages/perseus/src/tex-wrangler.ts", - "name": "./packages/perseus/src/tex-wrangler.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/numeric-input/score-numeric-input.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-item.ts" }, { - "moduleName": "./packages/perseus/src/widgets/input-number/score-input-number.ts" - } - ] - }, - { - "id": "./packages/kas/src/index.ts", - "name": "./packages/kas/src/index.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts" }, { - "moduleName": "./packages/perseus/src/util/answer-types.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/images-map.ts" }, { - "moduleName": "./packages/perseus-editor/src/widgets/expression-editor.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" }, { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-function.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/expression/get-decimal-separator.ts", - "name": "./packages/perseus/src/widgets/expression/get-decimal-separator.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/expression/validate-expression.ts", - "name": "./packages/perseus/src/widgets/expression/validate-expression.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" - } - ] - }, - { - "id": "./packages/perseus/src/interactive2/wrapped-line.ts", - "name": "./packages/perseus/src/interactive2/wrapped-line.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/interactive.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" - } - ] - }, - { - "id": "./packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/index.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/index.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widget-ai-utils/grapher/grapher-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/grapher/grapher-ai-utils.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/grapher/score-grapher.ts", - "name": "./packages/perseus/src/widgets/grapher/score-grapher.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/interactive2/movable.ts", - "name": "./packages/perseus/src/interactive2/movable.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts" + }, { - "moduleName": "./packages/perseus/src/interactive2.ts" - } - ] - }, - { - "id": "./packages/perseus/src/interactive2/movable-line.ts", - "name": "./packages/perseus/src/interactive2/movable-line.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts" + }, { - "moduleName": "./packages/perseus/src/interactive2.ts" - } - ] - }, - { - "id": "./packages/perseus/src/interactive2/movable-point.tsx", - "name": "./packages/perseus/src/interactive2/movable-point.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts" + }, { - "moduleName": "./packages/perseus/src/interactive2.ts" - } - ] - }, - { - "id": "./packages/perseus/src/interactive2/movable-polygon.ts", - "name": "./packages/perseus/src/interactive2/movable-polygon.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts" + }, { - "moduleName": "./packages/perseus/src/interactive2.ts" - } - ] - }, - { - "id": "./packages/perseus/src/interactive2/wrapped-drawing.ts", - "name": "./packages/perseus/src/interactive2/wrapped-drawing.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts" + }, { - "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/wrapped-ellipse.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts" }, { - "moduleName": "./packages/perseus/src/interactive2/wrapped-path.ts" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/index.ts" - } - ] - }, - { - "id": "./packages/perseus/src/util/parse-perseus-json/error-tracking-parse-context.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/error-tracking-parse-context.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts" + }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse.ts" - } - ] - }, - { - "id": "./packages/perseus/src/util/parse-perseus-json/parse-failure-detail.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/parse-failure-detail.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts" + }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse.ts" - } - ] - }, - { - "id": "./packages/perseus/src/util/parse-perseus-json/result.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/result.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts" + }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/error-tracking-parse-context.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/defaulted.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/array.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pair.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pipe-parsers.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/trio.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/union.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" - } - ] - }, - { - "id": "./packages/pure-markdown/src/version.ts", - "name": "./packages/pure-markdown/src/version.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widget.ts" + }, { - "moduleName": "./packages/pure-markdown/src/index.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/defaulted.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/defaulted.ts", "reasons": [ { "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-item.ts" @@ -7988,220 +7847,361 @@ "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/images-map.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-item.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-item.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" + } + ] + }, + { + "id": "./packages/perseus/src/tex-wrangler.ts", + "name": "./packages/perseus/src/tex-wrangler.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/numeric-input/score-numeric-input.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts" - }, + "moduleName": "./packages/perseus/src/widgets/input-number/score-input-number.ts" + } + ] + }, + { + "id": "./packages/simple-markdown/src/version.ts", + "name": "./packages/simple-markdown/src/version.ts", + "reasons": [ + { + "moduleName": "./packages/simple-markdown/src/index.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/error-tracking-parse-context.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/error-tracking-parse-context.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/parse-failure-detail.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/parse-failure-detail.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/result.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/result.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/error-tracking-parse-context.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/defaulted.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/array.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pair.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pipe-parsers.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/trio.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts" - }, + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/union.ts" + } + ] + }, + { + "id": "./packages/pure-markdown/src/version.ts", + "name": "./packages/pure-markdown/src/version.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts" - }, + "moduleName": "./packages/pure-markdown/src/index.ts" + } + ] + }, + { + "id": "./packages/kas/src/index.ts", + "name": "./packages/kas/src/index.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts" + "moduleName": "./packages/perseus/src/util/answer-types.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts" + "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" + "moduleName": "./packages/perseus-editor/src/widgets/expression-editor.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widget.ts" + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-function.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/defaulted.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/defaulted.ts", + "id": "./packages/perseus/src/interactive2/wrapped-line.ts", + "name": "./packages/perseus/src/interactive2/wrapped-line.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-item.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts" + "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/images-map.ts" + "moduleName": "./packages/perseus/src/util/interactive.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts" - }, + "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" - }, + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/index.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/index.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts" - }, + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/score-interactive-graph.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts" - }, + "moduleName": "./packages/perseus/src/widgets/interactive-graph.tsx" + } + ] + }, + { + "id": "./packages/math-input/src/components/input/cursor-styles.ts", + "name": "./packages/math-input/src/components/input/cursor-styles.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts" + "moduleName": "./packages/math-input/src/components/input/cursor-handle.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" - }, + "moduleName": "./packages/math-input/src/components/input/math-input.tsx" + } + ] + }, + { + "id": "./packages/math-input/src/fake-react-native-web/view.tsx", + "name": "./packages/math-input/src/fake-react-native-web/view.tsx", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" - }, + "moduleName": "./packages/math-input/src/fake-react-native-web/index.ts" + } + ] + }, + { + "id": "./packages/math-input/src/components/key-handlers/handle-backspace.ts", + "name": "./packages/math-input/src/components/key-handlers/handle-backspace.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts" - }, + "moduleName": "./packages/math-input/src/components/input/math-wrapper.ts" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/expression/get-decimal-separator.ts", + "name": "./packages/perseus/src/widgets/expression/get-decimal-separator.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts" + "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts" - }, + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/expression/validate-expression.ts", + "name": "./packages/perseus/src/widgets/expression/validate-expression.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" + "moduleName": "./packages/perseus/src/widgets/expression/score-expression.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts", + "id": "./packages/perseus/src/widget-ai-utils/grapher/grapher-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/grapher/grapher-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-item.ts" + "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts", + "id": "./packages/perseus/src/widgets/grapher/score-grapher.ts", + "name": "./packages/perseus/src/widgets/grapher/score-grapher.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-item.ts" - }, + "moduleName": "./packages/perseus/src/widgets/grapher/grapher.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/interactive2/movable.ts", + "name": "./packages/perseus/src/interactive2/movable.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" - }, + "moduleName": "./packages/perseus/src/interactive2.ts" + } + ] + }, + { + "id": "./packages/perseus/src/interactive2/movable-line.ts", + "name": "./packages/perseus/src/interactive2/movable-line.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts" - }, + "moduleName": "./packages/perseus/src/interactive2.ts" + } + ] + }, + { + "id": "./packages/perseus/src/interactive2/movable-point.tsx", + "name": "./packages/perseus/src/interactive2/movable-point.tsx", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" + "moduleName": "./packages/perseus/src/interactive2.ts" } ] }, { - "id": "./packages/simple-markdown/src/version.ts", - "name": "./packages/simple-markdown/src/version.ts", + "id": "./packages/perseus/src/interactive2/movable-polygon.ts", + "name": "./packages/perseus/src/interactive2/movable-polygon.ts", "reasons": [ { - "moduleName": "./packages/simple-markdown/src/index.ts" + "moduleName": "./packages/perseus/src/interactive2.ts" } ] }, { - "id": "./packages/math-input/src/components/keypad/utils.ts", - "name": "./packages/math-input/src/components/keypad/utils.ts", + "id": "./packages/perseus/src/interactive2/wrapped-drawing.ts", + "name": "./packages/perseus/src/interactive2/wrapped-drawing.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx" + "moduleName": "./packages/perseus/src/interactive2/wrapped-line.ts" }, { - "moduleName": "./packages/math-input/src/components/keypad/shared-keys.tsx" + "moduleName": "./packages/perseus/src/interactive2/wrapped-ellipse.ts" }, { - "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" - }, + "moduleName": "./packages/perseus/src/interactive2/wrapped-path.ts" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx", + "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/index.ts" } ] }, @@ -8248,29 +8248,17 @@ { "moduleName": "./packages/perseus-editor/src/katex-mhchem/index.js" } - ] - }, - { - "id": "./packages/perseus-editor/src/widgets/interaction-editor/color-picker.tsx", - "name": "./packages/perseus-editor/src/widgets/interaction-editor/color-picker.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/point-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/function-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/label-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" - }, + ] + }, + { + "id": "./packages/perseus-editor/src/widgets/interaction-editor/constraint-editor.tsx", + "name": "./packages/perseus-editor/src/widgets/interaction-editor/constraint-editor.tsx", + "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-point-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/rectangle-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-line-editor.tsx" } ] }, @@ -8279,28 +8267,28 @@ "name": "./packages/perseus-editor/src/widgets/interaction-editor/mathquill-input.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/point-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-point-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-point-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/function-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-line-editor.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/label-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/point-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/function-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-line-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/rectangle-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/rectangle-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/constraint-editor.tsx" @@ -8308,38 +8296,50 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/interaction-editor/constraint-editor.tsx", - "name": "./packages/perseus-editor/src/widgets/interaction-editor/constraint-editor.tsx", + "id": "./packages/perseus-editor/src/widgets/interaction-editor/arrow-picker.tsx", + "name": "./packages/perseus-editor/src/widgets/interaction-editor/arrow-picker.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-point-editor.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/movable-line-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" } ] }, { - "id": "./packages/perseus-editor/src/widgets/interaction-editor/dash-picker.tsx", - "name": "./packages/perseus-editor/src/widgets/interaction-editor/dash-picker.tsx", + "id": "./packages/perseus-editor/src/widgets/interaction-editor/color-picker.tsx", + "name": "./packages/perseus-editor/src/widgets/interaction-editor/color-picker.tsx", "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/label-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/point-editor.tsx" + }, { "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/function-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/rectangle-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" } ] }, { - "id": "./packages/perseus-editor/src/widgets/interaction-editor/arrow-picker.tsx", - "name": "./packages/perseus-editor/src/widgets/interaction-editor/arrow-picker.tsx", + "id": "./packages/perseus-editor/src/widgets/interaction-editor/dash-picker.tsx", + "name": "./packages/perseus-editor/src/widgets/interaction-editor/dash-picker.tsx", "reasons": [ { "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/line-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/function-editor.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interaction-editor/parametric-editor.tsx" } ] }, @@ -8641,266 +8641,266 @@ ] }, { - "id": "./packages/perseus/src/widgets/cs-program/cs-program.tsx", - "name": "./packages/perseus/src/widgets/cs-program/cs-program.tsx", + "id": "./packages/perseus/src/util/react-render.tsx", + "name": "./packages/perseus/src/util/react-render.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/cs-program/index.ts" + "moduleName": "./packages/perseus/src/util/tex.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/explanation/explanation.tsx", - "name": "./packages/perseus/src/widgets/explanation/explanation.tsx", + "id": "./packages/perseus/src/jquery.mobile.vmouse.js", + "name": "./packages/perseus/src/jquery.mobile.vmouse.js", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/explanation/index.ts" + "moduleName": "./packages/perseus/src/util/interactive.ts" } ] }, { - "id": "./packages/perseus/src/widgets/definition/definition.tsx", - "name": "./packages/perseus/src/widgets/definition/definition.tsx", + "id": "./packages/perseus/src/interactive2/arrowhead.ts", + "name": "./packages/perseus/src/interactive2/arrowhead.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/definition/index.ts" + "moduleName": "./packages/perseus/src/util/interactive.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" } ] }, { - "id": "./packages/perseus/src/widgets/group/group.tsx", - "name": "./packages/perseus/src/widgets/group/group.tsx", + "id": "./packages/perseus/src/interactive2/wrapped-ellipse.ts", + "name": "./packages/perseus/src/interactive2/wrapped-ellipse.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/group/index.ts" + "moduleName": "./packages/perseus/src/util/interactive.ts" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" + }, + { + "moduleName": "./packages/perseus/src/interactive2/movable-point-options.ts" } ] }, { - "id": "./packages/perseus/src/widgets/graded-group/graded-group.tsx", - "name": "./packages/perseus/src/widgets/graded-group/graded-group.tsx", + "id": "./packages/perseus/src/widgets/matcher/matcher.tsx", + "name": "./packages/perseus/src/widgets/matcher/matcher.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/graded-group/index.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" + "moduleName": "./packages/perseus/src/widgets/matcher/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx", - "name": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx", + "id": "./packages/perseus/src/widgets/passage/passage.tsx", + "name": "./packages/perseus/src/widgets/passage/passage.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/graded-group-set/index.ts" + "moduleName": "./packages/perseus/src/widgets/passage/index.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/passage/utils.ts" } ] }, { - "id": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx", - "name": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx", + "id": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx", + "name": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/deprecated-standin/index.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group-set/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interaction/interaction.tsx", - "name": "./packages/perseus/src/widgets/interaction/interaction.tsx", + "id": "./packages/perseus/src/widgets/video/video.tsx", + "name": "./packages/perseus/src/widgets/video/video.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interaction/index.ts" + "moduleName": "./packages/perseus/src/widgets/video/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/image/image.tsx", - "name": "./packages/perseus/src/widgets/image/image.tsx", + "id": "./packages/perseus/src/widgets/group/group.tsx", + "name": "./packages/perseus/src/widgets/group/group.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/image/index.ts" + "moduleName": "./packages/perseus/src/widgets/group/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx", - "name": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx", + "id": "./packages/perseus/src/widgets/iframe/iframe.tsx", + "name": "./packages/perseus/src/widgets/iframe/iframe.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/passage-ref/index.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/radio/radio-component.tsx" + "moduleName": "./packages/perseus/src/widgets/iframe/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/passage/passage.tsx", - "name": "./packages/perseus/src/widgets/passage/passage.tsx", + "id": "./packages/perseus/src/widgets/image/image.tsx", + "name": "./packages/perseus/src/widgets/image/image.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/passage/index.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/passage/utils.ts" + "moduleName": "./packages/perseus/src/widgets/image/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/orderer/orderer.tsx", - "name": "./packages/perseus/src/widgets/orderer/orderer.tsx", + "id": "./packages/perseus/src/widgets/python-program/python-program.tsx", + "name": "./packages/perseus/src/widgets/python-program/python-program.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/orderer/index.ts" + "moduleName": "./packages/perseus/src/widgets/python-program/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/label-image/label-image.tsx", - "name": "./packages/perseus/src/widgets/label-image/label-image.tsx", + "id": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx", + "name": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/label-image/index.ts" + "moduleName": "./packages/perseus/src/widgets/passage-ref/index.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/radio/radio-component.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/molecule/molecule.tsx", - "name": "./packages/perseus/src/widgets/molecule/molecule.tsx", + "id": "./packages/perseus/src/widgets/definition/definition.tsx", + "name": "./packages/perseus/src/widgets/definition/definition.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/molecule/index.ts" + "moduleName": "./packages/perseus/src/widgets/definition/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/python-program/python-program.tsx", - "name": "./packages/perseus/src/widgets/python-program/python-program.tsx", + "id": "./packages/perseus/src/widgets/measurer/measurer.tsx", + "name": "./packages/perseus/src/widgets/measurer/measurer.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/python-program/index.ts" + "moduleName": "./packages/perseus/src/widgets/measurer/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/matcher/matcher.tsx", - "name": "./packages/perseus/src/widgets/matcher/matcher.tsx", + "id": "./packages/perseus/src/widgets/cs-program/cs-program.tsx", + "name": "./packages/perseus/src/widgets/cs-program/cs-program.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/matcher/index.ts" + "moduleName": "./packages/perseus/src/widgets/cs-program/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/number-line/number-line.tsx", - "name": "./packages/perseus/src/widgets/number-line/number-line.tsx", + "id": "./packages/perseus/src/widgets/sorter/sorter.tsx", + "name": "./packages/perseus/src/widgets/sorter/sorter.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/number-line/index.ts" + "moduleName": "./packages/perseus/src/widgets/sorter/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/dropdown/dropdown.tsx", - "name": "./packages/perseus/src/widgets/dropdown/dropdown.tsx", + "id": "./packages/perseus/src/widgets/graded-group/graded-group.tsx", + "name": "./packages/perseus/src/widgets/graded-group/graded-group.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/dropdown/index.ts" + "moduleName": "./packages/perseus/src/widgets/graded-group/index.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx", - "name": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx", + "id": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx", + "name": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/passage-ref-target/index.ts" + "moduleName": "./packages/perseus/src/widgets/deprecated-standin/index.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/measurer/measurer.tsx", - "name": "./packages/perseus/src/widgets/measurer/measurer.tsx", + "id": "./packages/perseus/src/widgets/label-image/label-image.tsx", + "name": "./packages/perseus/src/widgets/label-image/label-image.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/measurer/index.ts" + "moduleName": "./packages/perseus/src/widgets/label-image/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/iframe/iframe.tsx", - "name": "./packages/perseus/src/widgets/iframe/iframe.tsx", + "id": "./packages/perseus/src/widgets/number-line/number-line.tsx", + "name": "./packages/perseus/src/widgets/number-line/number-line.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/iframe/index.ts" + "moduleName": "./packages/perseus/src/widgets/number-line/index.ts" } ] }, { - "id": "./packages/perseus/src/util/react-render.tsx", - "name": "./packages/perseus/src/util/react-render.tsx", + "id": "./packages/perseus/src/widgets/molecule/molecule.tsx", + "name": "./packages/perseus/src/widgets/molecule/molecule.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/tex.ts" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" + "moduleName": "./packages/perseus/src/widgets/molecule/index.ts" } ] }, { - "id": "./packages/perseus/src/jquery.mobile.vmouse.js", - "name": "./packages/perseus/src/jquery.mobile.vmouse.js", + "id": "./packages/perseus/src/widgets/dropdown/dropdown.tsx", + "name": "./packages/perseus/src/widgets/dropdown/dropdown.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/interactive.ts" + "moduleName": "./packages/perseus/src/widgets/dropdown/index.ts" } ] }, { - "id": "./packages/perseus/src/interactive2/arrowhead.ts", - "name": "./packages/perseus/src/interactive2/arrowhead.ts", + "id": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx", + "name": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/interactive.ts" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" + "moduleName": "./packages/perseus/src/widgets/passage-ref-target/index.ts" } ] }, { - "id": "./packages/perseus/src/interactive2/wrapped-ellipse.ts", - "name": "./packages/perseus/src/interactive2/wrapped-ellipse.ts", + "id": "./packages/perseus/src/widgets/orderer/orderer.tsx", + "name": "./packages/perseus/src/widgets/orderer/orderer.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/interactive.ts" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-point-options.ts" + "moduleName": "./packages/perseus/src/widgets/orderer/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/video/video.tsx", - "name": "./packages/perseus/src/widgets/video/video.tsx", + "id": "./packages/perseus/src/widgets/explanation/explanation.tsx", + "name": "./packages/perseus/src/widgets/explanation/explanation.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/video/index.ts" + "moduleName": "./packages/perseus/src/widgets/explanation/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/sorter/sorter.tsx", - "name": "./packages/perseus/src/widgets/sorter/sorter.tsx", + "id": "./packages/perseus/src/widgets/interaction/interaction.tsx", + "name": "./packages/perseus/src/widgets/interaction/interaction.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/sorter/index.ts" + "moduleName": "./packages/perseus/src/widgets/interaction/index.ts" } ] }, @@ -8914,206 +8914,182 @@ ] }, { - "id": "./packages/perseus/src/widgets/matrix/validate-matrix.ts", - "name": "./packages/perseus/src/widgets/matrix/validate-matrix.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/images-map.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/images-map.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/matrix/score-matrix.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts" } ] }, { - "id": "./packages/perseus-editor/src/diffs/split-diff.ts", - "name": "./packages/perseus-editor/src/diffs/split-diff.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" } ] }, { - "id": "./packages/perseus-editor/src/diffs/string-array-diff.ts", - "name": "./packages/perseus-editor/src/diffs/string-array-diff.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/any.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/any.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus-editor/src/diffs/widget-diff-performer.ts", - "name": "./packages/perseus-editor/src/diffs/widget-diff-performer.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/array.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/array.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/diffs/widget-diff.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/radio/radio-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/radio/radio-ai-utils.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/boolean.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/boolean.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/radio-component.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/interactive2/movable-line-options.ts", - "name": "./packages/perseus/src/interactive2/movable-line-options.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/constant.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/constant.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/interactive2/movable-point-options.ts", - "name": "./packages/perseus/src/interactive2/movable-point-options.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/enumeration.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/enumeration.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/interactive2/movable-polygon-options.ts", - "name": "./packages/perseus/src/interactive2/movable-polygon-options.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/is-object.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/is-object.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/interactive2/movable-polygon.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts" } ] }, { - "id": "./packages/perseus/src/widgets/table/utils.ts", - "name": "./packages/perseus/src/widgets/table/utils.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/nullable.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/nullable.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/table/score-table.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/table/validate-table.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/table/validate-table.ts", - "name": "./packages/perseus/src/widgets/table/validate-table.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/number.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/number.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/table/score-table.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/object-path.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/object-path.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse-failure-detail.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/optional.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/optional.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/mafs-state-to-interactive-graph.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/mafs-state-to-interactive-graph.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pair.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pair.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-action.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-action.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pipe-parsers.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pipe-parsers.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-state.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-state.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-state-to-interactive-graph.ts" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/widgets/categorizer/validate-categorizer.ts", - "name": "./packages/perseus/src/widgets/categorizer/validate-categorizer.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/trio.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/trio.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/categorizer/score-categorizer.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/any.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/any.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/union.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/union.ts", "reasons": [ { "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" @@ -9121,8 +9097,8 @@ ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/array.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/array.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/unknown.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/unknown.ts", "reasons": [ { "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" @@ -9130,176 +9106,200 @@ ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/boolean.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/boolean.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/object-path.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/object-path.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/parse-failure-detail.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/constant.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/constant.ts", + "id": "./packages/perseus/src/widget-ai-utils/radio/radio-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/radio/radio-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/radio/radio-component.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/enumeration.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/enumeration.ts", + "id": "./packages/perseus/src/widgets/matrix/validate-matrix.ts", + "name": "./packages/perseus/src/widgets/matrix/validate-matrix.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/matrix/score-matrix.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/is-object.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/is-object.ts", + "id": "./packages/perseus/src/interactive2/movable-line-options.ts", + "name": "./packages/perseus/src/interactive2/movable-line-options.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-line.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/nullable.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/nullable.ts", + "id": "./packages/perseus/src/interactive2/movable-point-options.ts", + "name": "./packages/perseus/src/interactive2/movable-point-options.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-point.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/number.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/number.ts", + "id": "./packages/perseus/src/interactive2/movable-polygon-options.ts", + "name": "./packages/perseus/src/interactive2/movable-polygon-options.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/interactive2/movable-polygon.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/object.ts", + "id": "./packages/perseus/src/widgets/categorizer/validate-categorizer.ts", + "name": "./packages/perseus/src/widgets/categorizer/validate-categorizer.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/categorizer/score-categorizer.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/optional.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/optional.ts", + "id": "./packages/perseus/src/widgets/table/utils.ts", + "name": "./packages/perseus/src/widgets/table/utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/table/score-table.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/table/validate-table.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pair.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pair.ts", + "id": "./packages/perseus/src/widgets/table/validate-table.ts", + "name": "./packages/perseus/src/widgets/table/validate-table.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/table/score-table.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pipe-parsers.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/pipe-parsers.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" } ] }, - { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/record.ts", + { + "id": "./packages/perseus/src/widgets/interactive-graphs/mafs-state-to-interactive-graph.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/mafs-state-to-interactive-graph.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-action.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-action.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/trio.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/trio.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/union.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/union.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-state.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-state.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/stateful-mafs-graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-state-to-interactive-graph.ts" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/unknown.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/unknown.ts", + "id": "./packages/perseus-editor/src/diffs/split-diff.ts", + "name": "./packages/perseus-editor/src/diffs/split-diff.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/index.ts" + "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/images-map.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/images-map.ts", + "id": "./packages/perseus-editor/src/diffs/string-array-diff.ts", + "name": "./packages/perseus-editor/src/diffs/string-array-diff.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts" + "moduleName": "./packages/perseus-editor/src/diffs/text-diff.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts", + "id": "./packages/perseus-editor/src/diffs/widget-diff-performer.ts", + "name": "./packages/perseus-editor/src/diffs/widget-diff-performer.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/hint.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-renderer.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" + "moduleName": "./packages/perseus-editor/src/diffs/widget-diff.tsx" } ] }, @@ -9340,23 +9340,53 @@ ] }, { - "id": "./packages/perseus/src/definition-context.tsx", - "name": "./packages/perseus/src/definition-context.tsx", + "id": "./packages/perseus/src/interactive2/get-clip-point.ts", + "name": "./packages/perseus/src/interactive2/get-clip-point.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" + "moduleName": "./packages/perseus/src/interactive2/arrowhead.ts" }, { - "moduleName": "./packages/perseus/src/renderer.tsx" + "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/definition/definition-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/definition/definition-ai-utils.ts", + "id": "./packages/perseus/src/interactive2/wrapped-path.ts", + "name": "./packages/perseus/src/interactive2/wrapped-path.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" + "moduleName": "./packages/perseus/src/interactive2/arrowhead.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/a11y.ts", + "name": "./packages/perseus/src/util/a11y.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + }, + { + "moduleName": "./packages/perseus/src/components/math-input.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widget-ai-utils/video/video-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/video/video-ai-utils.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" } ] }, @@ -9365,19 +9395,19 @@ "name": "./packages/perseus/src/widgets/__shared__/score-noop.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" + "moduleName": "./packages/perseus/src/widgets/video/video.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx" + "moduleName": "./packages/perseus/src/widgets/image/image.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/image/image.tsx" + "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" }, { "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" + "moduleName": "./packages/perseus/src/widgets/deprecated-standin/deprecated-standin.tsx" }, { "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" @@ -9386,1006 +9416,958 @@ "moduleName": "./packages/perseus/src/widgets/passage-ref-target/passage-ref-target.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" }, { "moduleName": "./packages/perseus/src/widgets/measurer/measurer.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" + "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/group/group-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/group/group-ai-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/iframe/iframe-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/iframe/iframe-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/group/group.tsx" + "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/image/image-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/image/image-ai-utils.ts", + "id": "./packages/perseus/src/widgets/iframe/score-iframe.ts", + "name": "./packages/perseus/src/widgets/iframe/score-iframe.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/image/image.tsx" + "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/passage-ref/passage-ref-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/passage-ref/passage-ref-ai-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/group/group-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/group/group-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" + "moduleName": "./packages/perseus/src/widgets/group/group.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/passage/utils.ts", - "name": "./packages/perseus/src/widgets/passage/utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/image/image-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/image/image-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" + "moduleName": "./packages/perseus/src/widgets/image/image.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/interaction/interaction-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/interaction/interaction-ai-utils.ts", + "id": "./packages/perseus/src/definition-context.tsx", + "name": "./packages/perseus/src/definition-context.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" + "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" + }, + { + "moduleName": "./packages/perseus/src/renderer.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/molecule/molecule-drawing.ts", - "name": "./packages/perseus/src/widgets/molecule/molecule-drawing.ts", + "id": "./packages/perseus/src/widget-ai-utils/definition/definition-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/definition/definition-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" + "moduleName": "./packages/perseus/src/widgets/definition/definition.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/molecule/molecule-layout.ts", - "name": "./packages/perseus/src/widgets/molecule/molecule-layout.ts", + "id": "./packages/perseus/src/widget-ai-utils/passage-ref/passage-ref-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/passage-ref/passage-ref-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" + "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/molecule/smiles-parser.ts", - "name": "./packages/perseus/src/widgets/molecule/smiles-parser.ts", + "id": "./packages/perseus/src/widgets/passage/utils.ts", + "name": "./packages/perseus/src/widgets/passage/utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" + "moduleName": "./packages/perseus/src/widgets/passage-ref/passage-ref.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/iframe/iframe-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/iframe/iframe-ai-utils.ts", + "id": "./packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx", + "name": "./packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" + "moduleName": "./packages/math-input/src/components/aphrodite-css-transition-group/index.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/iframe/score-iframe.ts", - "name": "./packages/perseus/src/widgets/iframe/score-iframe.ts", + "id": "./packages/perseus/src/widget-ai-utils/sorter/sorter-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/sorter/sorter-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/iframe/iframe.tsx" + "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" } ] }, { - "id": "./packages/perseus/src/interactive2/get-clip-point.ts", - "name": "./packages/perseus/src/interactive2/get-clip-point.ts", + "id": "./packages/perseus/src/widgets/sorter/score-sorter.ts", + "name": "./packages/perseus/src/widgets/sorter/score-sorter.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/interactive2/arrowhead.ts" - }, - { - "moduleName": "./packages/perseus/src/interactive2/movable-line-options.ts" + "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" } ] }, { - "id": "./packages/perseus/src/interactive2/wrapped-path.ts", - "name": "./packages/perseus/src/interactive2/wrapped-path.ts", + "id": "./packages/perseus/src/widgets/molecule/molecule-drawing.ts", + "name": "./packages/perseus/src/widgets/molecule/molecule-drawing.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/interactive2/arrowhead.ts" + "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" } ] }, { - "id": "./packages/perseus/src/util/a11y.ts", - "name": "./packages/perseus/src/util/a11y.ts", + "id": "./packages/perseus/src/widgets/molecule/molecule-layout.ts", + "name": "./packages/perseus/src/widgets/molecule/molecule-layout.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" - }, - { - "moduleName": "./packages/perseus/src/components/math-input.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/graded-group/graded-group.tsx" + "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/video/video-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/video/video-ai-utils.ts", + "id": "./packages/perseus/src/widgets/molecule/smiles-parser.ts", + "name": "./packages/perseus/src/widgets/molecule/smiles-parser.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/video/video.tsx" + "moduleName": "./packages/perseus/src/widgets/molecule/molecule.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/sorter/sorter-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/sorter/sorter-ai-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/interaction/interaction-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/interaction/interaction-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" + "moduleName": "./packages/perseus/src/widgets/interaction/interaction.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/sorter/score-sorter.ts", - "name": "./packages/perseus/src/widgets/sorter/score-sorter.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/sorter/sorter.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/components/visibility-observer/create-visibility-observer.ts", - "name": "./packages/perseus/src/components/visibility-observer/create-visibility-observer.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/visibility-observer/visibility-observer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/components/visibility-observer/get-scroll-parent.ts", - "name": "./packages/perseus/src/components/visibility-observer/get-scroll-parent.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/components/visibility-observer/visibility-observer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/error-boundary.tsx", - "name": "./packages/perseus/src/error-boundary.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/renderer.tsx" - }, - { - "moduleName": "./packages/perseus/src/widget-container.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/interaction-tracker.ts", - "name": "./packages/perseus/src/interaction-tracker.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/renderer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/question-paragraph.tsx", - "name": "./packages/perseus/src/question-paragraph.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/renderer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/translation-linter.ts", - "name": "./packages/perseus/src/translation-linter.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/renderer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widget-container.tsx", - "name": "./packages/perseus/src/widget-container.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/renderer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts" } ] }, { - "id": "./packages/perseus/src/widgets/table/score-table.ts", - "name": "./packages/perseus/src/widgets/table/score-table.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/table/table.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/plotter/plotter-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/plotter/plotter-ai-utils.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/plotter/score-plotter.ts", - "name": "./packages/perseus/src/widgets/plotter/score-plotter.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/orderer/orderer-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/orderer/orderer-ai-utils.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/orderer/score-orderer.ts", - "name": "./packages/perseus/src/widgets/orderer/score-orderer.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/dropdown/dropdown-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/dropdown/dropdown-ai-utils.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/dropdown/score-dropdown.ts", - "name": "./packages/perseus/src/widgets/dropdown/score-dropdown.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/measurer/measurer-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/measurer/measurer-ai-utils.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/measurer/measurer.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/number-line/number-line-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/number-line/number-line-ai-utils.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/number-line/score-number-line.ts", - "name": "./packages/perseus/src/widgets/number-line/score-number-line.ts", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-arrows.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-arrows.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/grid.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/grid.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/legacy-grid.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/legacy-grid.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-labels-layer.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-labels-layer.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-layer.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-layer.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/text-label.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/text-label.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" - }, + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/angle-indicators.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx", + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widget.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widget.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/use-graph-config.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/use-graph-config.ts", - "reasons": [ + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts" + }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-arrows.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-transform.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/use-control-point.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point-view.tsx" + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/mafs-styles.css", - "name": "./packages/perseus/src/widgets/interactive-graphs/mafs-styles.css", + "id": "./packages/perseus/src/components/visibility-observer/create-visibility-observer.ts", + "name": "./packages/perseus/src/components/visibility-observer/create-visibility-observer.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + "moduleName": "./packages/perseus/src/components/visibility-observer/visibility-observer.tsx" } ] }, { - "id": "./packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx", - "name": "./packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx", + "id": "./packages/perseus/src/components/visibility-observer/get-scroll-parent.ts", + "name": "./packages/perseus/src/components/visibility-observer/get-scroll-parent.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/aphrodite-css-transition-group/index.tsx" + "moduleName": "./packages/perseus/src/components/visibility-observer/visibility-observer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts", + "id": "./packages/perseus/src/error-boundary.tsx", + "name": "./packages/perseus/src/error-boundary.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/renderer.tsx" + }, + { + "moduleName": "./packages/perseus/src/widget-container.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts", + "id": "./packages/perseus/src/interaction-tracker.ts", + "name": "./packages/perseus/src/interaction-tracker.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/renderer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts", + "id": "./packages/perseus/src/question-paragraph.tsx", + "name": "./packages/perseus/src/question-paragraph.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/renderer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts", + "id": "./packages/perseus/src/translation-linter.ts", + "name": "./packages/perseus/src/translation-linter.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/renderer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts", + "id": "./packages/perseus/src/widget-container.tsx", + "name": "./packages/perseus/src/widget-container.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/renderer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts", + "id": "./packages/perseus/src/widgets/table/score-table.ts", + "name": "./packages/perseus/src/widgets/table/score-table.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/table/table.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts", + "id": "./packages/perseus/src/widget-ai-utils/plotter/plotter-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/plotter/plotter-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts", + "id": "./packages/perseus/src/widgets/plotter/score-plotter.ts", + "name": "./packages/perseus/src/widgets/plotter/score-plotter.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" - }, + "moduleName": "./packages/perseus/src/widgets/plotter/plotter.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widget-ai-utils/measurer/measurer-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/measurer/measurer-ai-utils.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts" + "moduleName": "./packages/perseus/src/widgets/measurer/measurer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts", + "id": "./packages/perseus/src/widget-ai-utils/dropdown/dropdown-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/dropdown/dropdown-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts", + "id": "./packages/perseus/src/widgets/dropdown/score-dropdown.ts", + "name": "./packages/perseus/src/widgets/dropdown/score-dropdown.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/dropdown/dropdown.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts", + "id": "./packages/perseus/src/widget-ai-utils/number-line/number-line-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/number-line/number-line-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts", + "id": "./packages/perseus/src/widgets/number-line/score-number-line.ts", + "name": "./packages/perseus/src/widgets/number-line/score-number-line.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/number-line/number-line.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts", + "id": "./packages/math-input/src/components/aphrodite-css-transition-group/util.ts", + "name": "./packages/math-input/src/components/aphrodite-css-transition-group/util.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts", + "id": "./packages/perseus/src/widget-ai-utils/orderer/orderer-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/orderer/orderer-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts", + "id": "./packages/perseus/src/widgets/orderer/score-orderer.ts", + "name": "./packages/perseus/src/widgets/orderer/score-orderer.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/orderer/orderer.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-arrows.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-arrows.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/grid.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/grid.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/legacy-grid.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/legacy-grid.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-labels-layer.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-labels-layer.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-layer.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-layer.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/text-label.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/text-label.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/angle-indicators.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widget.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widget.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/reducer/use-graph-config.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/reducer/use-graph-config.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/widgets-map.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/categorizer-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/cs-program-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/definition-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/dropdown-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/explanation-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-set-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/graded-group-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/expression-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/group-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/iframe-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/grapher-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/input-number-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/label-image-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matcher-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/matrix-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/molecule-renderer-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-arrows.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/number-line-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-ref-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/orderer-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/phet-simulation-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/passage-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/python-program-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-transform.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/plotter-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/sorter-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/table-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/video-widget.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/use-control-point.tsx" }, { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/radio-widget.ts" - } - ] - }, - { - "id": "./packages/math-input/src/components/aphrodite-css-transition-group/util.ts", - "name": "./packages/math-input/src/components/aphrodite-css-transition-group/util.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/aphrodite-css-transition-group/transition-child.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/orderer/validate-orderer.ts", - "name": "./packages/perseus/src/widgets/orderer/validate-orderer.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/orderer/score-orderer.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point-view.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/dropdown/validate-dropdown.ts", - "name": "./packages/perseus/src/widgets/dropdown/validate-dropdown.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/mafs-styles.css", + "name": "./packages/perseus/src/widgets/interactive-graphs/mafs-styles.css", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/dropdown/score-dropdown.ts" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx" } ] }, @@ -10411,23 +10393,23 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx", - "name": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx", + "id": "./packages/perseus-editor/src/widgets/label-image/marker.tsx", + "name": "./packages/perseus-editor/src/widgets/label-image/marker.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/question-markers.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/marker.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx" } ] }, { - "id": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx", - "name": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx", + "id": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx", + "name": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/select-image.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/answer-choices.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/label-image-editor.tsx" @@ -10435,11 +10417,11 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx", - "name": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx", + "id": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx", + "name": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/answer-choices.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/question-markers.stories.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/label-image-editor.tsx" @@ -10447,14 +10429,14 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/label-image/marker.tsx", - "name": "./packages/perseus-editor/src/widgets/label-image/marker.tsx", + "id": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx", + "name": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/marker.stories.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/__stories__/select-image.stories.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image-editor.tsx" } ] }, @@ -10479,15 +10461,6 @@ } ] }, - { - "id": "./packages/math-input/src/components/keypad/navigation-button.tsx", - "name": "./packages/math-input/src/components/keypad/navigation-button.tsx", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.tsx" - } - ] - }, { "id": "./packages/math-input/src/components/tabbar/icons.tsx", "name": "./packages/math-input/src/components/tabbar/icons.tsx", @@ -10509,6 +10482,15 @@ } ] }, + { + "id": "./packages/math-input/src/components/keypad/navigation-button.tsx", + "name": "./packages/math-input/src/components/keypad/navigation-button.tsx", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/keypad/navigation-pad.tsx" + } + ] + }, { "id": "./packages/perseus-editor/src/components/angle-input.tsx", "name": "./packages/perseus-editor/src/components/angle-input.tsx", @@ -10528,15 +10510,15 @@ { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx" }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" - }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-angle.tsx" }, @@ -10567,14 +10549,11 @@ { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" - }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" @@ -10585,6 +10564,9 @@ { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/start-coords/start-coords-multiline.tsx" } @@ -10640,10 +10622,7 @@ "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" - }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" @@ -10653,6 +10632,9 @@ }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" } ] }, @@ -10663,14 +10645,11 @@ { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx" }, - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" - }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-label-settings.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-point-settings.tsx" @@ -10680,6 +10659,9 @@ }, { "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-polygon-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" } ] }, @@ -10691,10 +10673,10 @@ "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-function-settings.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx" } ] }, @@ -10719,6 +10701,18 @@ } ] }, + { + "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/labeled-row.tsx", + "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/labeled-row.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx" + } + ] + }, { "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/polygon-swatch.tsx", "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/polygon-swatch.tsx", @@ -10729,14 +10723,20 @@ ] }, { - "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/labeled-row.tsx", - "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/labeled-row.tsx", + "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-select.tsx", + "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-select.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx" - }, + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx" + } + ] + }, + { + "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-settings.tsx", + "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-settings.tsx", + "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx" } ] }, @@ -10764,24 +10764,6 @@ } ] }, - { - "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-select.tsx", - "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-select.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx" - } - ] - }, - { - "id": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-settings.tsx", - "name": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figure-settings.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-figures-section.tsx" - } - ] - }, { "id": "./packages/perseus-editor/src/components/form-wrapped-text-field.tsx", "name": "./packages/perseus-editor/src/components/form-wrapped-text-field.tsx", @@ -10790,22 +10772,13 @@ "moduleName": "./packages/perseus-editor/src/widgets/label-image-editor.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/marker.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" - } - ] - }, - { - "id": "./packages/perseus-editor/src/components/checkbox.tsx", - "name": "./packages/perseus-editor/src/components/checkbox.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/behavior.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/marker.tsx" } ] }, @@ -10813,20 +10786,20 @@ "id": "./packages/perseus-editor/src/styles/global-colors.ts", "name": "./packages/perseus-editor/src/styles/global-colors.ts", "reasons": [ - { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/behavior.tsx" - }, { "moduleName": "./packages/perseus-editor/src/widgets/label-image/question-markers.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/marker.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" }, { "moduleName": "./packages/perseus-editor/src/widgets/label-image/select-image.tsx" }, { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/behavior.tsx" + }, + { + "moduleName": "./packages/perseus-editor/src/widgets/label-image/marker.tsx" }, { "moduleName": "./packages/perseus-editor/src/components/form-wrapped-text-field.tsx" @@ -10840,20 +10813,29 @@ ] }, { - "id": "./packages/perseus-editor/src/components/dropdown-option.tsx", - "name": "./packages/perseus-editor/src/components/dropdown-option.tsx", + "id": "./packages/perseus-editor/src/components/link.ts", + "name": "./packages/perseus-editor/src/components/link.ts", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/marker.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" } ] }, { - "id": "./packages/perseus-editor/src/components/link.ts", - "name": "./packages/perseus-editor/src/components/link.ts", + "id": "./packages/perseus-editor/src/components/checkbox.tsx", + "name": "./packages/perseus-editor/src/components/checkbox.tsx", "reasons": [ { - "moduleName": "./packages/perseus-editor/src/widgets/label-image/answer-choices.tsx" + "moduleName": "./packages/perseus-editor/src/widgets/label-image/behavior.tsx" + } + ] + }, + { + "id": "./packages/perseus-editor/src/components/dropdown-option.tsx", + "name": "./packages/perseus-editor/src/components/dropdown-option.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus-editor/src/widgets/label-image/marker.tsx" } ] }, @@ -10957,50 +10939,38 @@ ] }, { - "id": "./packages/math-input/src/fake-react-native-web/index.ts", - "name": "./packages/math-input/src/fake-react-native-web/index.ts", - "reasons": [ - { - "moduleName": "./packages/math-input/src/components/input/math-input.tsx" - }, - { - "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" - } - ] - }, - { - "id": "./packages/math-input/src/components/input/cursor-handle.tsx", - "name": "./packages/math-input/src/components/input/cursor-handle.tsx", + "id": "./packages/math-input/src/components/tabbar/index.ts", + "name": "./packages/math-input/src/components/tabbar/index.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/input/math-input.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" } ] }, { - "id": "./packages/math-input/src/components/input/drag-listener.ts", - "name": "./packages/math-input/src/components/input/drag-listener.ts", + "id": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx", + "name": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/components/input/math-input.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" } ] }, { - "id": "./packages/math-input/src/components/input/math-wrapper.ts", - "name": "./packages/math-input/src/components/input/math-wrapper.ts", + "id": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx", + "name": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/components/input/math-input.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" } ] }, { - "id": "./packages/math-input/src/components/input/scroll-into-view.ts", - "name": "./packages/math-input/src/components/input/scroll-into-view.ts", + "id": "./packages/math-input/src/components/keypad/shared-keys.tsx", + "name": "./packages/math-input/src/components/keypad/shared-keys.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/components/input/math-input.tsx" + "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" } ] }, @@ -11023,107 +10993,119 @@ ] }, { - "id": "./packages/perseus/src/widget-ai-utils/expression/expression-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/expression/expression-ai-utils.ts", + "id": "./packages/math-input/src/fake-react-native-web/index.ts", + "name": "./packages/math-input/src/fake-react-native-web/index.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + "moduleName": "./packages/math-input/src/components/input/math-input.tsx" + }, + { + "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/expression/score-expression.ts", - "name": "./packages/perseus/src/widgets/expression/score-expression.ts", + "id": "./packages/math-input/src/components/input/cursor-handle.tsx", + "name": "./packages/math-input/src/components/input/cursor-handle.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + "moduleName": "./packages/math-input/src/components/input/math-input.tsx" } ] }, { - "id": "./packages/perseus/src/util/scroll-utils.ts", - "name": "./packages/perseus/src/util/scroll-utils.ts", + "id": "./packages/math-input/src/components/input/drag-listener.ts", + "name": "./packages/math-input/src/components/input/drag-listener.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" + "moduleName": "./packages/math-input/src/components/input/math-input.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/radio/util.ts", - "name": "./packages/perseus/src/widgets/radio/util.ts", + "id": "./packages/math-input/src/components/input/math-wrapper.ts", + "name": "./packages/math-input/src/components/input/math-wrapper.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" + "moduleName": "./packages/math-input/src/components/input/math-input.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/radio/choice-icon/cross-out-line.tsx", - "name": "./packages/perseus/src/widgets/radio/choice-icon/cross-out-line.tsx", + "id": "./packages/math-input/src/components/input/scroll-into-view.ts", + "name": "./packages/math-input/src/components/input/scroll-into-view.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" + "moduleName": "./packages/math-input/src/components/input/math-input.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/radio/choice-icon/shared-styles.ts", - "name": "./packages/perseus/src/widgets/radio/choice-icon/shared-styles.ts", + "id": "./packages/perseus/src/widget-ai-utils/expression/expression-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/expression/expression-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" - }, + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/expression/score-expression.ts", + "name": "./packages/perseus/src/widgets/expression/score-expression.ts", + "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/cross-out-line.tsx" + "moduleName": "./packages/perseus/src/widgets/expression/expression.tsx" } ] }, { - "id": "./packages/math-input/src/components/tabbar/index.ts", - "name": "./packages/math-input/src/components/tabbar/index.ts", + "id": "./packages/perseus/src/widgets/radio/choice-a11y-text.ts", + "name": "./packages/perseus/src/widgets/radio/choice-a11y-text.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" } ] }, { - "id": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx", - "name": "./packages/math-input/src/components/keypad/keypad-pages/extras-page.tsx", + "id": "./packages/perseus/src/widgets/radio/util.ts", + "name": "./packages/perseus/src/widgets/radio/util.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" } ] }, { - "id": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx", - "name": "./packages/math-input/src/components/keypad/keypad-pages/fractions-page.tsx", + "id": "./packages/perseus/src/util/scroll-utils.ts", + "name": "./packages/perseus/src/util/scroll-utils.ts", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/base-radio.tsx" } ] }, { - "id": "./packages/math-input/src/components/keypad/shared-keys.tsx", - "name": "./packages/math-input/src/components/keypad/shared-keys.tsx", + "id": "./packages/perseus/src/widgets/radio/choice-icon/cross-out-line.tsx", + "name": "./packages/perseus/src/widgets/radio/choice-icon/cross-out-line.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/keypad.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/radio/choice-a11y-text.ts", - "name": "./packages/perseus/src/widgets/radio/choice-a11y-text.ts", + "id": "./packages/perseus/src/widgets/radio/choice-icon/shared-styles.ts", + "name": "./packages/perseus/src/widgets/radio/choice-icon/shared-styles.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/radio/choice.tsx" + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/choice-icon.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/radio/choice-icon/cross-out-line.tsx" } ] }, @@ -11145,6 +11127,15 @@ } ] }, + { + "id": "./packages/math-input/src/components/aphrodite-css-transition-group/index.tsx", + "name": "./packages/math-input/src/components/aphrodite-css-transition-group/index.tsx", + "reasons": [ + { + "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" + } + ] + }, { "id": "./packages/perseus/src/widget-ai-utils/input-number/input-number-ai-utils.ts", "name": "./packages/perseus/src/widget-ai-utils/input-number/input-number-ai-utils.ts", @@ -11182,38 +11173,56 @@ ] }, { - "id": "./packages/perseus/src/widget-ai-utils/categorizer/categorizer-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/categorizer/categorizer-ai-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/categorizer/categorizer-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/categorizer/categorizer-ai-utils.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/categorizer/score-categorizer.ts", + "name": "./packages/perseus/src/widgets/categorizer/score-categorizer.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/components/highlighting/highlightable-content.tsx", + "name": "./packages/perseus/src/components/highlighting/highlightable-content.tsx", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/categorizer/score-categorizer.ts", - "name": "./packages/perseus/src/widgets/categorizer/score-categorizer.ts", + "id": "./packages/perseus/src/widget-ai-utils/passage/passage-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/passage/passage-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/categorizer/categorizer.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" } ] }, { - "id": "./packages/math-input/src/components/aphrodite-css-transition-group/index.tsx", - "name": "./packages/math-input/src/components/aphrodite-css-transition-group/index.tsx", + "id": "./packages/perseus/src/widgets/passage/passage-markdown.tsx", + "name": "./packages/perseus/src/widgets/passage/passage-markdown.tsx", "reasons": [ { - "moduleName": "./packages/math-input/src/components/keypad/mobile-keypad-internals.tsx" + "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" } ] }, { - "id": "./packages/perseus/src/util/mobile-native-utils.ts", - "name": "./packages/perseus/src/util/mobile-native-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/graded-group-set/graded-group-set-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/graded-group-set/graded-group-set-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" + "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" } ] }, @@ -11222,25 +11231,25 @@ "name": "./packages/perseus/src/util/url-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" + "moduleName": "./packages/perseus/src/widgets/python-program/python-program.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/python-program/python-program.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/cs-program/cs-program-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/cs-program/cs-program-ai-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/python-program/python-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/python-program/python-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" + "moduleName": "./packages/perseus/src/widgets/python-program/python-program.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/cs-program/score-cs-program.ts", - "name": "./packages/perseus/src/widgets/cs-program/score-cs-program.ts", + "id": "./packages/perseus/src/util/mobile-native-utils.ts", + "name": "./packages/perseus/src/util/mobile-native-utils.ts", "reasons": [ { "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" @@ -11248,20 +11257,20 @@ ] }, { - "id": "./packages/perseus/src/widget-ai-utils/explanation/explanation-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/explanation/explanation-ai-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/cs-program/cs-program-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/cs-program/cs-program-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" } ] }, { - "id": "./packages/perseus/src/widget-ai-utils/graded-group-set/graded-group-set-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/graded-group-set/graded-group-set-ai-utils.ts", + "id": "./packages/perseus/src/widgets/cs-program/score-cs-program.ts", + "name": "./packages/perseus/src/widgets/cs-program/score-cs-program.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/graded-group-set/graded-group-set.tsx" + "moduleName": "./packages/perseus/src/widgets/cs-program/cs-program.tsx" } ] }, @@ -11283,33 +11292,6 @@ } ] }, - { - "id": "./packages/perseus/src/components/highlighting/highlightable-content.tsx", - "name": "./packages/perseus/src/components/highlighting/highlightable-content.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widget-ai-utils/passage/passage-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/passage/passage-ai-utils.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/passage/passage-markdown.tsx", - "name": "./packages/perseus/src/widgets/passage/passage-markdown.tsx", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/passage/passage.tsx" - } - ] - }, { "id": "./packages/perseus/src/widget-ai-utils/label-image/label-image-ai-utils.ts", "name": "./packages/perseus/src/widget-ai-utils/label-image/label-image-ai-utils.ts", @@ -11338,11 +11320,11 @@ ] }, { - "id": "./packages/perseus/src/widget-ai-utils/python-program/python-ai-utils.ts", - "name": "./packages/perseus/src/widget-ai-utils/python-program/python-ai-utils.ts", + "id": "./packages/perseus/src/widget-ai-utils/explanation/explanation-ai-utils.ts", + "name": "./packages/perseus/src/widget-ai-utils/explanation/explanation-ai-utils.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/python-program/python-program.tsx" + "moduleName": "./packages/perseus/src/widgets/explanation/explanation.tsx" } ] }, @@ -11392,11 +11374,38 @@ ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx", + "id": "./packages/perseus/src/widgets/dropdown/validate-dropdown.ts", + "name": "./packages/perseus/src/widgets/dropdown/validate-dropdown.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-labels-layer.tsx" + "moduleName": "./packages/perseus/src/widgets/dropdown/score-dropdown.ts" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/orderer/validate-orderer.ts", + "name": "./packages/perseus/src/widgets/orderer/validate-orderer.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/orderer/score-orderer.ts" + } + ] + }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts" + }, + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" } ] }, @@ -11425,6 +11434,9 @@ { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx" }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" + }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" }, @@ -11438,14 +11450,11 @@ "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/arrowhead.tsx" }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx" }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/arrowhead.tsx" - }, { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-line.tsx" }, @@ -11460,6 +11469,15 @@ } ] }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-label.tsx", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graph-locked-labels-layer.tsx" + } + ] + }, { "id": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-ellipse.tsx", "name": "./packages/perseus/src/widgets/interactive-graphs/locked-figures/locked-ellipse.tsx", @@ -11515,68 +11533,89 @@ ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx", + "id": "./packages/perseus/src/util/svg.ts", + "name": "./packages/perseus/src/util/svg.ts", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/arrowhead.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/use-control-point.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point.tsx", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point.tsx", + "id": "./packages/perseus/src/widgets/interactive-graphs/protractor.css", + "name": "./packages/perseus/src/widgets/interactive-graphs/protractor.css", "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" - }, + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" + } + ] + }, + { + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx", + "reasons": [ { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/ray.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/segment.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.tsx" } ] }, { - "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts", - "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/use-draggable.ts", + "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point.tsx", + "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point.tsx", "reasons": [ { "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/circle.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/point.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-line.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/quadratic.tsx" }, { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/use-control-point.tsx" + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/sinusoid.tsx" + }, + { + "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/polygon.tsx" } ] }, @@ -11655,45 +11694,6 @@ } ] }, - { - "id": "./packages/perseus/src/util/svg.ts", - "name": "./packages/perseus/src/util/svg.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" - }, - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/arrowhead.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/widgets/interactive-graphs/protractor.css", - "name": "./packages/perseus/src/widgets/interactive-graphs/protractor.css", - "reasons": [ - { - "moduleName": "./packages/perseus/src/widgets/interactive-graphs/protractor.tsx" - } - ] - }, - { - "id": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/image-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interaction-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/measurer-widget.ts" - }, - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/interactive-graph-widget.ts" - } - ] - }, { "id": "./packages/perseus/src/components/highlighting/ranges.ts", "name": "./packages/perseus/src/components/highlighting/ranges.ts", @@ -11739,6 +11739,15 @@ } ] }, + { + "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string-to-number.ts", + "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string-to-number.ts", + "reasons": [ + { + "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts" + } + ] + }, { "id": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/use-control-point.tsx", "name": "./packages/perseus/src/widgets/interactive-graphs/graphs/components/use-control-point.tsx", @@ -11760,15 +11769,6 @@ } ] }, - { - "id": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string-to-number.ts", - "name": "./packages/perseus/src/util/parse-perseus-json/general-purpose-parsers/string-to-number.ts", - "reasons": [ - { - "moduleName": "./packages/perseus/src/util/parse-perseus-json/perseus-parsers/perseus-image-background.ts" - } - ] - }, { "id": "./packages/perseus/src/components/highlighting/ui/highlight-renderer.tsx", "name": "./packages/perseus/src/components/highlighting/ui/highlight-renderer.tsx", diff --git a/project.json b/project.json index a02f5e8c37..9c9c6a9afa 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1733263976246,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@cypress/code-coverage":"3.12.24","@cypress/react":"8.0.0","@jest/globals":"29.7.0","@testing-library/dom":"10.3.1","@testing-library/jest-dom":"6.4.6","@testing-library/react":"16.0.0","@testing-library/user-event":null,"@types/jest":"29.5.0","babel-jest":"29.7.0","cypress":"13.6.5","cypress-jest-adapter":"0.1.1","cypress-real-events":"1.12.0","cypress-wait-until":"3.0.1","eslint-plugin-cypress":"2.15.1","eslint-plugin-jest":"27.9.0","eslint-plugin-testing-library":"6.2.2","jest":"29.7.0","jest-environment-jsdom":"29.7.0","jest-serializer-html":"7.1.0","jest-specific-snapshot":"5.0.0"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.4.6","storybookVersionSpecifier":"^8.4.5","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"8.4.6"},"@storybook/addon-controls":{"version":"8.4.6"},"@storybook/addon-viewport":{"version":"8.4.6"},"@storybook/react":{"version":"8.4.6"},"@storybook/react-vite":{"version":"8.4.6"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.4.6"}},"addons":{"@storybook/addon-links":{"version":"8.4.6"},"@storybook/addon-essentials":{"version":"8.4.6"},"@storybook/addon-a11y":{"version":"8.4.6"}}} \ No newline at end of file +{"generatedAt":1733268525457,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@cypress/code-coverage":"3.12.24","@cypress/react":"8.0.0","@jest/globals":"29.7.0","@testing-library/dom":"10.3.1","@testing-library/jest-dom":"6.4.6","@testing-library/react":"16.0.0","@testing-library/user-event":null,"@types/jest":"29.5.0","babel-jest":"29.7.0","cypress":"13.6.5","cypress-jest-adapter":"0.1.1","cypress-real-events":"1.12.0","cypress-wait-until":"3.0.1","eslint-plugin-cypress":"2.15.1","eslint-plugin-jest":"27.9.0","eslint-plugin-testing-library":"6.2.2","jest":"29.7.0","jest-environment-jsdom":"29.7.0","jest-serializer-html":"7.1.0","jest-specific-snapshot":"5.0.0"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.4.6","storybookVersionSpecifier":"^8.4.5","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"8.4.6"},"@storybook/addon-controls":{"version":"8.4.6"},"@storybook/addon-viewport":{"version":"8.4.6"},"@storybook/react":{"version":"8.4.6"},"@storybook/react-vite":{"version":"8.4.6"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.4.6"}},"addons":{"@storybook/addon-links":{"version":"8.4.6"},"@storybook/addon-essentials":{"version":"8.4.6"},"@storybook/addon-a11y":{"version":"8.4.6"}}} \ No newline at end of file