PageSourceSearch

https://www.gaprecision.net/_next/static/chunks/pages/login-as-customer-e3ebab7d31ec0bc1.js

js gaprecision.net collected 2026-10-02 19:24:47 UTC 7,244 bytes, 28 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6416,4780],{87357:function(e,r,t){"use strict";t.d(r,{Z:function(){return x}});var n=t(87462),a=t(63366),i=t(67294),s=t(86010),o=t(49731),l=t(86523),c=t(39707),u=t(96682),d=t(85893);let f=["className","component"];var h=t(37078),v=t(68239);let m=(0,v.Z)(),g=function(e={}){let{defaultTheme:r,defaultClassName:t="MuiBox-root",generateClassName:h,styleFunctionSx:v=l.Z}=e,m=(0,o.ZP)("div")(v),g=i.forwardRef(function(e,i){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:v,component:g="div"}=l,x=(0,a.Z)(l,f);return(0,d.jsx)(m,(0,n.Z)({as:g,ref:i,className:(0,s.Z)(v,h?h(t):t),theme:o},x))});return g}({defaultTheme:m,defaultClassName:"MuiBox-root",generateClassName:h.Z.generate});var x=g},98456:function(e,r,t){"use strict";t.d(r,{Z:function(){return b}});var n=t(63366),a=t(87462),i=t(67294),s=t(86010),o=t(94780),l=t(70917),c=t(98216),u=t(71657),d=t(90948),f=t(34867);function h(e){return(0,f.Z)("MuiCircularProgress",e)}(0,t(1588).Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v=t(85893);let m=["className","color","disableShrink","size","style","thickness","value","variant"],g=e=>e,x,p,Z,y,k=(0,l.F4)(x||(x=g`
2  0% {
3    transform: rotate(0deg);
4  }
5
6  100% {
7    transform: rotate(360deg);
8  }
9`)),C=(0,l.F4)(p||(p=g`
10  0% {
11    stroke-dasharray: 1px, 200px;
12    stroke-dashoffset: 0;
13  }
14
15  50% {
16    stroke-dasharray: 100px, 200px;
17    stroke-dashoffset: -15px;
18  }
19
20  100% {
21    stroke-dasharray: 100px, 200px;
22    stroke-dashoffset: -125px;
23  }
24`)),P=e=>{let{classes:r,variant:t,color:n,disableShrink:a}=e,i={root:["root",t,`color${(0,c.Z)(n)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(t)}`,a&&"circleDisableShrink"]};return(0,o.Z)(i,h,r)},j=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r[t.variant],r[`color${(0,c.Z)(t.color)}`]]}})(({ownerState:e,theme:r})=>(0,a.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:r.transitions.create("transform")},"inherit"!==e.color&&{color:(r.vars||r).palette[e.color].main}),({ownerState:e})=>"indeterminate"===e.variant&&(0,l.iv)(Z||(Z=g`
25      animation: ${0} 1.4s linear infinite;
26    `),k)),S=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),_=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.circle,r[`circle${(0,c.Z)(t.variant)}`],t.disableShrink&&r.circleDisableShrink]}})(({ownerState:e,theme:r})=>(0,a.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,l.iv)(y||(y=g`
27      animation: ${0} 1.4s ease-in-out infinite;
28    `),C)),N=i.forwardRef(function(e,r){let t=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:l=!1,size:c=40,style:d,thickness:f=3.6,value:h=0,variant:g="indeterminate"}=t,x=(0,n.Z)(t,m),p=(0,a.Z)({},t,{color:o,disableShrink:l,size:c,thickness:f,value:h,variant:g}),Z=P(p),y={},k={},C={};if("determinate"===g){let e=2*Math.PI*((44-f)/2);y.strokeDasharray=e.toFixed(3),C["aria-valuenow"]=Math.round(h),y.strokeDashoffset=`${((100-h)/100*e).toFixed(3)}px`,k.transform="rotate(-90deg)"}return(0,v.jsx)(j,(0,a.Z)({className:(0,s.Z)(Z.root,i),style:(0,a.Z)({width:c,height:c},k,d),ownerState:p,ref:r,role:"progressbar"},C,x,{children:(0,v.jsx)(S,{className:Z.svg,ownerState:p,viewBox:"22 22 44 44",children:(0,v.jsx)(_,{className:Z.circle,style:y,ownerState:p,cx:44,cy:44,r:(44-f)/2,fill:"none",strokeWidth:f})})}))});var b=N},39707:function(e,r,t){"use strict";t.d(r,{Z:function(){return c}});var n=t(87462),a=t(63366),i=t(59766),s=t(85578);let o=["sx"],l=e=>{let r={systemProps:{},otherProps:{}};return Object.keys(e).forEach(t=>{s.Gc[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function c(e){let r;let{sx:t}=e,s=(0,a.Z)(e,o),{systemProps:c,otherProps:u}=l(s);return r=Array.isArray(t)?[c,...t]:"function"==typeof t?(...e)=>{let r=t(...e);return(0,i.P)(r)?(0,n.Z)({},c,r):c}:(0,n.Z)({},c,t),(0,n.Z)({},u,{sx:r})}},15151:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login-as-customer",function(){return t(87437)}])},87437:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSG:function(){return f},default:function(){return h}});
28var n=t(85893),a=t(67294),i=t(54780),s=t(11163),o=t(45496),l=t(43324),c=t(68780),u=t(62295),d=t(34998),f=!0;function h(e){var r;let t=l.fm,f=l.pt,h=(0,s.useRouter)(),{enqueueSnackbar:v}=(0,c.Ds)(),m=(0,u.T)(),{setLoginAsCustomerToken:g}=d.Lx.actions,[x,{data:p,loading:Z,error:y}]=(0,o.jXV)(),k=(null==h?void 0:null===(r=h.query)||void 0===r?void 0:r.secret)?decodeURIComponent(h.query.secret.toString()):void 0,{customerData:C}=(0,u.C)(e=>e.customerReducer),P=C.customer.loginAsCustomerState;return(0,a.useEffect)(()=>{m({type:"CLEAR_APP_STORAGE"})},[m]),(0,a.useEffect)(()=>{k&&x({variables:{secret:k}}).then(e=>{var r,n;(null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(n=r.generateCustomerTokenByHlcSecret)||void 0===n?void 0:n.token)?m(g(e.data.generateCustomerTokenByHlcSecret.token)):(v("No required data in the server response",{variant:"error"}),h.push(t))}).catch(e=>{e.message?v(e.message,{variant:"error"}):v("An unexpected error occurred on the server",{variant:"error"}),h.push(t)})},[k,x,t,f,m,v,h]),(0,a.useEffect)(()=>{"READY"===P&&h.push(f)},[P,h,f]),(0,n.jsx)(i.FullPageLoader,{})}},54780:function(e,r,t){"use strict";t.r(r),t.d(r,{FullPageLoader:function(){return d}});var n=t(85893);t(67294);var a=t(98456),i=t(87357),s=t(24813),o=t(30182),l=t.n(o),c=t(94193),u=t.n(c);let d=e=>{var r,t;let{t:o}=(0,s.$G)(),c=void 0===e.message?"Fetching Data...":e.message;return e.variant&&"list-item"===e.variant&&e.height?(0,n.jsx)("li",{style:{display:"flex",justifyContent:"center",height:e.height},children:(0,n.jsxs)("span",{style:{alignSelf:"center",textAlign:"center"},children:[(0,n.jsx)(a.Z,{"aria-label":o("Loading")}),(0,n.jsx)("p",{className:l().message,children:o(c)}),e.additionalContent&&e.additionalContent]})}):"fixed"===e.variant?(0,n.jsx)(i.Z,{sx:{position:"fixed",top:0,left:0,zIndex:1e5,width:"100%",display:"flex",justifyContent:"center",background:u().mainThemeBaseBackground,height:null!==(r=e.height)&&void 0!==r?r:"100vh"},children:(0,n.jsxs)(i.Z,{sx:{alignSelf:"center",textAlign:"center"},children:[(0,n.jsx)(a.Z,{"aria-label":o("Loading")}),(0,n.jsx)("p",{className:l().message,children:o(c)}),e.additionalContent&&e.additionalContent]})}):(0,n.jsx)(i.Z,{sx:{display:"flex",justifyContent:"center",height:null!==(t=e.height)&&void 0!==t?t:"100vh"},children:(0,n.jsxs)(i.Z,{sx:{alignSelf:"center",textAlign:"center"},children:[(0,n.jsx)(a.Z,{"aria-label":o("Loading")}),(0,n.jsx)("p",{className:l().message,children:o(c)}),e.additionalContent&&e.additionalContent]})})};r.default=d},30182:function(e){e.exports={message:"styles_message__zPlq_"}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=15151)}),_N_E=e.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.