1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8526],{1076:(t,e,a)=>{"use strict";a.r(e),a.d(e,{__N_SSP:()=>D,default:()=>I});var o=a(37876),r=a(14232),i=a(12e3),n=a(5067),c=a(9129),s=a(41434),l=a(56701),d=a(7598),h=a(40670),p=a(44501),u=a(69241),m=a(4697),g=a(97613),v=a(825),A=a(57683),b=a(75855),w=a(43714),y=a(47951),x=a(45879);function k(t){return(0,x.Ay)("MuiSwitch",t)}let f=(0,y.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),S=["className","color","edge","size","sx"],j=(0,b.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:a}=t;return[e.root,a.edge&&e["edge".concat((0,v.A)(a.edge))],e["size".concat((0,v.A)(a.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(f.thumb)]:{width:16,height:16},["& .".concat(f.switchBase)]:{padding:4,["&.".concat(f.checked)]:{transform:"translateX(16px)"}}}}]}),C=(0,b.Ay)(A.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{let{ownerState:a}=t;return[e.switchBase,{["& .".concat(f.input)]:e.input},"default"!==a.color&&e["color".concat((0,v.A)(a.color))]]}})(t=>{let{theme:e}=t;return{position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:"".concat("light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]),transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),["&.".concat(f.checked)]:{transform:"translateX(20px)"},["&.".concat(f.disabled)]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:"".concat("light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600])},["&.".concat(f.checked," + .").concat(f.track)]:{opacity:.5},["&.".concat(f.disabled," + .").concat(f.track)]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:"".concat("light"===e.palette.mode?.12:.2)},["& .".concat(f.input)]:{left:"-100%",width:"300%"}}},t=>{let{theme:e}=t;return{"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.action.activeChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,g.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(t=>{let[,e]=t;return e.main&&e.light}).map(t=>{let[a]=t;return{props:{color:a},style:{["&.".concat(f.checked)]:{color:(e.vars||e).palette[a].main,"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a].mainChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,g.X4)(e.palette[a].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(f.disabled)]:{color:e.vars?e.vars.palette.Switch["".concat(a,"DisabledColor")]:"".concat("light"===e.palette.mode?(0,g.a)(e.palette[a].main,.62):(0,g.e$)(e.palette[a].main,.55))}},["&.".concat(f.checked," + .").concat(f.track)]:{backgroundColor:(e.vars||e).palette[a].main}}}})]}}),_=(0,b.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(t=>{let{theme:e}=t;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:"".concat("light"===e.palette.mode?e.palette.common.black:e.palette.common.white),opacity:e.vars?e.vars.opacity.switchTrack:"".concat("light"===e.palette.mode?.38:.3)}}),z=(0,b.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(t=>{let{theme:e}=t;return{boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}),B=r.forwardRef(function(t,e){let a=(0,w.b)({props:t,name:"MuiSwitch"}),{className:r,color:i="primary",edge:n=!1,size:c="medium",sx:s}=a,l=(0,h.A)(a,S),d=(0,p.A)({},a,{color:i,edge:n,size:c}),g=(t=>{let{classes:e,edge:a,size:o,color:r,checked:i,disabled:n}=t,c={root:["root",a&&"edge".concat((0,v.A)(a)),"size".concat((0,v.A)(o))],switchBase:["switchBase","color".concat((0,v.A)(r)),i&&"checked",n&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=(0,m.A)(c,k,e);return(0,p.A)({},e,s)})(d),A=(0,o.jsx)(z,{className:g.thumb,ownerState:d});return(0,o.jsxs)(j,{className:(0,u.A)(g.root,r),sx:s,ownerState:d,children:[(0,o.jsx)(C,(0,p.A)({type:"checkbox",icon:A,checkedIcon:A,ref:e,ownerState:d},l,{classes:(0,p.A)({},g,{root:g.switchBase})})),(0,o.jsx)(_,{className:g.track,ownerState:d})]})});var E=a(47704),N=a(81553);let M=async(t,e)=>(await N.Ay.get("/me/ab-testing/change/",{params:{test:t,group:e}})).data;var P=a(1045),R=a(20798),O=a(59864),T=a(88013),D=!0;let I=()=>{let{abTestingGroups:t={}}=(0,d.A)(),{mutate:e,isLoading:a}=(()=>{let t=(0,P.A)(),e=async(e,a)=>{let o=await M(e,a);
1t((0,R.a)(o))},{mutate:a,isLoading:o}=(0,E.A)(e);return{mutate:a,isLoading:o}})(),r=t=>{e(t.target.value,t.target.checked?O.L.B:O.L.A)};return(0,o.jsxs)(i.A,{children:[(0,o.jsx)(s.A,{title:"IMPERSONATE",img:"/images/pages/impersonate/mountains.jpg",titleVerticalAlign:"top"}),(0,o.jsx)(l.A,{children:(0,o.jsxs)(c.Ay,{container:!0,spacing:2,children:[(0,o.jsx)(c.Ay,{item:!0,xs:12,md:6,children:(0,o.jsxs)(i.A,{spacing:.5,children:[(0,o.jsx)(n.A,{color:"secondary",fontWeight:"900",fontSize:17,children:"ADMIN PAGE: A/B test groups"}),(0,o.jsx)(n.A,{variant:"body2",children:"You can switch your own testing groups by changing the choices to the right"})]})}),(0,o.jsx)(c.Ay,{item:!0,xs:12,md:6,children:(0,o.jsx)(i.A,{children:(0,o.jsx)(c.Ay,{container:!0,spacing:2,children:Object.keys(t).map(e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.Ay,{item:!0,xs:6,children:e}),(0,o.jsx)(c.Ay,{item:!0,xs:6,children:(0,o.jsx)(B,{value:e,..."B"===t[e]?{defaultChecked:!0}:{},onChange:r,disabled:a,"data-testid":"abTestSwitch".concat((0,T.A)(e))})})]}))})})})]})})]})}},41434:(t,e,a)=>{"use strict";a.d(e,{A:()=>d});var o=a(37876);a(14232);var r=a(5067),i=a(84733),n=a(75855),c=a(74299);let s=(0,n.Ay)("div",{shouldForwardProp:t=>"titleAlign"!==t&&"titleVerticalAlign"!==t})(t=>{let{theme:e,titleVerticalAlign:a="bottom"}=t;return{position:"absolute",bottom:"bottom"===a?60:"unset",top:"top"===a?20:"unset",left:20,"& .MuiTypography-root":{color:c.Q.White,fontWeight:800,fontSize:35},[e.breakpoints.up("md")]:{left:50,bottom:"bottom"===a?40:"unset"}}}),l=(0,n.Ay)("div")(t=>{let{theme:e}=t;return{position:"relative",height:"65vw",maxHeight:"40vh",overflow:"hidden",[e.breakpoints.up("md")]:{height:"15vw"}}}),d=t=>{let{title:e,img:a,titleVerticalAlign:n}=t;return(0,o.jsx)(i.A,{sx:{background:"url(".concat(a,") center center / cover no-repeat")},children:(0,o.jsx)(l,{children:(0,o.jsx)(s,{titleVerticalAlign:n,children:(0,o.jsx)(r.A,{variant:"poster1",component:"h1",children:e})})})})}},56701:(t,e,a)=>{"use strict";a.d(e,{A:()=>r});var o=a(84733);let r=(0,a(75855).Ay)(o.A)(t=>{let{theme:e}=t;return{maxWidth:1026,width:"100%",margin:"0 auto",padding:e.spacing(6,5)}})},57928:(t,e,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ab-test",function(){return a(1076)}])},59864:(t,e,a)=>{"use strict";a.d(e,{L:()=>o,w:()=>r});var o=function(t){return t.A="A",t.B="B",t.C="C",t.D="D",t.E="E",t}({}),r=function(t){return t.Gifts="gifts",t.ElasticSearch="es",t.Venmo="venmo",t.GooglePay="googlepay",t.PayPal="paypal",t}({})}},t=>{t.O(0,[636,6593,8792],()=>t(t.s=57928)),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.