1"use strict";(self.webpackChunk_yi_gatsby=self.webpackChunk_yi_gatsby||[]).push([[8071],{29433:function(n,e,r){r.d(e,{U:function(){return h}});var t=r(70684),o=r(70326),i=r(19232),s=r(74607),a=r(74214),c=r(93239),d=r(93934),u=r(79229);const l=({children:n,onlyCheckOnProduction:e})=>{const{loading:r,error:l,hasAnyPermissions:h}=(()=>{var n;const{data:e,loading:r,error:i}=(0,t.I)(o.b);return{loading:r,error:i,hasAnyPermissions:!(null==e||null===(n=e.CurrentUser_Permissions)||void 0===n||!n.permissions.length)}})(),g=(0,c.w)();return e&&"production"!==(0,i.g)()?(0,u.Y)(u.FK,{children:n}):r||g?(0,u.Y)(d.y,{}):l?(0,u.Y)(a.K,{message:`${l}`}):h?(0,u.Y)(u.FK,{children:n}):((0,s.oo)("/404"),(0,u.Y)(d.y,{}))},h=(n,e)=>r=>(0,u.Y)(l,{onlyCheckOnProduction:!(null==e||!e.onlyCheckOnProduction),children:(0,u.Y)(n,{...r})})},40083:function(n,e,r){r.d(e,{n:function(){return h}});var t=r(96540),o=r(24213),i=r(64557),s=r(65961);const a=(n,e)=>new Promise((r,t)=>{try{n("webWidget",e),r()}catch(o){if((n=>{var e;return String(null!==(e=null==n?void 0:n.message)&&void 0!==e?e:"").includes("does not exist")})(o))try{n("messenger",e),r()}catch(i){t(i)}else t(o)}}),c=()=>(0,s.f)()?Promise.resolve(()=>console.warn("Attempted to get Zendesk during SSR")):(0,i.M)(async()=>{if("function"!=typeof window.zE)throw new Error("Failed to get Zendesk from window");return window.zE},{maxRetries:4}).catch(n=>(o.nr.noticeError(`Failed to get Zendesk: ${n}`),(...e)=>{const r=`Failed to get Zendesk and run: ${e} - ${n}`;console.error(r),o.nr.noticeError(r)})),d=()=>c().then(n=>a(n,"close")),u=()=>c().then(n=>a(n,"hide")),l=()=>c().then(n=>a(n,"show")),h=()=>{(0,t.useEffect)(()=>{const n=n=>e=>{const r=e instanceof Error?e:new Error(String(e));o.nr.noticeError(r,{context:n})},e=()=>{u().catch(n("Failed to hide Zendesk widget")),d().catch(n("Failed to close the Zendesk widget"))};e();let r=0;const t=setInterval(()=>{"fixed"===document.body.style.getPropertyValue("position")&&(r+=1,o.nr.addAction(o.nr.ZENDESK_PREVENTED_SCROLL_ISSUE,{count:r}),e())},1500);return()=>{l().catch(n("Failed to show Zendesk widget")),clearInterval(t)}},[])}},58389:function(n,e,r){r.d(e,{m:function(){return o}});var t=r(96540);const o=()=>{const{0:n,1:e}=(0,t.useState)(!1);return(0,t.useEffect)(()=>{e(!0)},[]),{hasMounted:n}}},70326:function(n,e,r){r.d(e,{b:function(){return s}});var t,o=r(75276),i=r(68726),s=r.n(i)()(t||(t=(0,o.A)(["\n query Query_CurrentUser_Permissions {\n CurrentUser_Permissions {\n permissions\n }\n }\n"])))},70940:function(n,e,r){r.d(e,{A:function(){return t}});var t=function(n){var e={en:"Error",es:"Error"};return e[n]||e.en||"error"}},73415:function(n,e,r){r.r(e);var t=r(83714),o=r(74607),i=r(40083),s=r(29433),a=r(79229);const c=["coupons","customer-service-change-email","customer-service-course-access","customer-service-login","page-manager","phrase-builder","quiz-builder","redirects","settings","design-system"];e.default=(0,s.U)(()=>{(0,i.n)();const{loading:n}=(0,t.i)();return n?null:(0,a.FD)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",padding:50},children:[(0,a.Y)("h1",{children:"Admin Pages"}),c.map(n=>(0,a.Y)("div",{style:{margin:10},children:(0,a.Y)("button",{style:{padding:10,minWidth:350},onClick:()=>(0,o.oo)(n),children:n})}))]})})},74214:function(n,e,r){r.d(e,{K:function(){return d}});var t=r(95275),o=r(87494),i=r(70940),s=r(25838),a=r(72800),c=r(79229);const d=({message:n,style:e,...r})=>{const{locale:d}=(0,a.Ym)();return(0,c.FD)(o.A,{style:{color:s.aqx,boxShadow:"-1px 6px 34px 0px rgba(0, 0, 0, 0.08)",...e},p:2,border:`2px solid ${s.aqx}`,borderRadius:"6px",maxWidth:600,mx:"auto",role:"alert",...r,children:[(0,c.FD)(o.A,{mb:2,fontWeight:500,children:[(0,c.Y)(t.A,{style:{marginBottom:-5,marginRight:8}}),(0,i.A)(d)]}),(0,c.Y)(o.A,{children:n})]})}},93239:function(n,e,r){r.d(e,{w:function(){return i}});var t=r(65961),o=r(58389);function i(){const{hasMounted:n}=(0,o.m)(),e=!n;return(0,t.f)()||e}},93934:function(n,e,r){r.d(e,{y:function(){return l}});var t=r(57427),o=r(88595),i=r(25838),s=r(79229);const a="main-spinner-animation",c=`\n @keyframes ${a}{\n\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n`,d=({...n})=>(0,s.Y)("div",{"aria-label":"loading",...n}),u=({backgroundColor:n=i.EQ4,size:e=50,spinnerColor:r=i.jDn})=>`\n ${c}\n background: linear-gradient(to right, ${r} 10%, rgba(255, 255, 255, 0) 42%);\n width: ${e}px;\n height: ${e}px;\n font-size: 10px;\n margin: 50px auto;\n margin-top: 20px;\n margin-bottom: 20px;\n text-indent: -9999em;\n border-radius: 50%;\n position: relative;\n animation: ${a} 1.4s infinite linear;\n transform: translateZ(0);\n &:before {\n width: 50%;\n height: 50%;\n background: ${r};\n border-radius: 100% 0 0 0;\n position: absolute;\n top: 0;\n left: 0;\n content: '';\n }\n &:after {\n background: ${n};\n width: 75%;\n height: 75%;\n border-radius: 50%;\n content: '';\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n`,l=(0,t.A)(d,{shouldForwardProp:n=>(0,o.A)(n)&&!["backgroundColor","size","spinnerColor"].includes(n),target:"ehrcl060"})(u,";")},95275:function(n,e,r){var t=r(58181),o=r(74848);e.A=(0,t.A)((0,o.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"WarningOutlined")}}]);
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.