1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6350],{97363:function(t,e,n){n.d(e,{W:function(){return u}});var o=n(85893),s=n(67294),i=n(87751),r=n(66884),c=n(29094),a=n(938),l=n(51760),d=n(21648);let p="".concat(40,"px"),x="".concat(a.B,"px"),h=s.forwardRef((t,e)=>{let{children:n}=t,s=(0,l.$p)(),i=(0,l.ss)(s);return(0,o.jsxs)("div",{ref:e,style:{minHeight:"100vh",paddingTop:p,paddingBottom:x},children:[(0,o.jsx)(m,{height:p,title:i.copy,icon:i.icon}),n({Container:u,headingH:40,menuH:a.B}),(0,o.jsx)(a.Z,{options:s,activeView:i.key})]})});e.Z=h;let u=t=>{let{children:e}=t;return(0,o.jsx)(c.W_,{maxWidth:"650px",w:"100%",m:"0 auto",position:"relative",children:e})},m=t=>{let{height:e,title:n,icon:s}=t,{state:a}=(0,r.j)();return(0,o.jsx)(c.Kq,{bg:"white",px:2,position:"fixed",w:"100%",left:"0",top:"0",css:{zIndex:1},children:(0,o.jsxs)(u,{children:[(0,o.jsx)(d.Z,{message:"Brrrr, it's chilly in here!\nThis account has frozen units."}),(0,o.jsxs)(c.Kq,{space:"between",y:!0,h:e,children:[(0,o.jsxs)(c.Kq,{y:!0,gap:2,children:[s&&(0,o.jsx)(s,{}),(0,o.jsx)(i.E.div,{initial:{x:-20},animate:{x:0},children:(0,o.jsx)(c.xv,{variant:"title",size:5,children:n})})]}),(0,o.jsx)(c.Kq,{x:"end",y:!0,h:"100%",children:(0,o.jsx)(c.xv,{variant:"title",size:5,children:a.account.name})})]})]})})}},938:function(t,e,n){n.d(e,{B:function(){return a}});var o=n(85893);n(67294);var s=n(87751),i=n(29094),r=n(51760),c=n(8279);let a=45;e.Z=t=>{let{options:e,activeView:n}=t,l=Object.keys(e),d=(0,r.ZP)();return(0,o.jsx)(i.Kq,{bg:"white",h:a+"px",position:"fixed",w:"100vw",left:"0",bottom:"0",space:"around",zIndex:"1000",children:(0,o.jsx)(i.Kq,{x:!0,y:!0,w:"100%",maxWidth:"650px",children:l.map((t,r)=>{let l=t===n,p=e[t];return(0,o.jsx)(i.Kq,{w:"25%",h:a,x:!0,y:!0,cursor:"pointer",onClick:()=>d[t](),children:l?(0,o.jsxs)(i.Kq,{vertical:!0,x:!0,children:[(0,o.jsx)(s.E.div,{initial:"start",animate:"end",variants:{start:{y:-12},end:{y:-3}},children:(0,o.jsx)(i.xv,{variant:"title",color:p.color,children:p.copy})}),(0,o.jsx)(s.E.div,{initial:"start",animate:"end",variants:{start:{y:12},end:{y:0}},children:(0,o.jsx)(i.W_,{borderRadius:"100%",bg:p.color,w:2,h:2})})]}):(0,o.jsx)(c.Z,{children:(0,o.jsx)(p.icon,{})})},t)})})})}},66350:function(t,e,n){n.r(e);var o=n(85893),s=n(97363),i=n(57384),r=n(44142),c=n(65874),a=n(4628);e.default=t=>{let{permissions:e}=t,n=(0,a.Z)(),l=(0,c.Z)({screen:n});return n.isWide?(0,o.jsx)(i.Z,{...l}):(0,o.jsx)(s.Z,{children:()=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.Z,{...l})})})}},51760:function(t,e,n){n.d(e,{$p:function(){return l},ss:function(){return d},tk:function(){return r}});var o=n(66884),s=n(11163),i=n(29094);let r={stats:"stats",txt:"txt",ppl:"ppl",home:"home",promos:"promos",incentive:"incentive",invoices:"invoices",contacts:"contacts",txtSchedule:"txtSchedule",txtCalendar:"txtCalendar",dashboard:"dashboard"},c={home:{copy:"home",color:i.TV.colors.purple,icon:n(98725).Home},stats:{copy:"stats",color:i.TV.colors.yellow,icon:n(98725).Stats},ppl:{copy:"ppl",color:i.TV.colors.green,icon:n(98725).Person},txt:{copy:"txt",color:i.TV.colors.blue,icon:n(98725).Text},promos:{copy:"promos",color:i.TV.colors.red,icon:n(98725).Ticket},feedback:{copy:"feedback",color:i.TV.colors.pink,icon:n(98725).Feedback}},a={READ:{dashboard:c.home,stats:c.stats,txt:c.txt,promos:c.promos,feedback:c.feedback},"READ:WRITE":{dashboard:c.home,stats:c.stats,ppl:c.ppl,txt:c.txt,promos:c.promos,feedback:c.feedback}},l=()=>{let{state:t}=(0,o.j)();return a[t.permissions]||{}},d=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,s.useRouter)(),n=e.pathname.split("/"),o=Object.keys(t),i=o.find(t=>!!n.includes(t)),r=t[i];if(o.length&&!r)throw Error("view path, ".concat(e.pathname,", does not match view config"));return{...r,key:i}};e.ZP=()=>{let{state:t}=(0,o.j)(),e=(0,s.useRouter)(),n="READ"===t.permissions?"@/".concat(e.query.guid):"READ:WRITE"===t.permissions?"".concat(e.query["account-slug"]):"",i=(t,o)=>e.push("/".concat(o||n,"/").concat(t));return{godmode:()=>e.push("/godmode/accounts"),txt:t=>i("txt",t),txtCalendar:t=>i("txt/calendar",t),ppl:t=>i("ppl",t),stats:t=>i("stats",t),redemptionStats:t=>i("stats/redemptions",t),ratingStats:t=>i("stats/ratings",t),promos:t=>i("promos",t),home:t=>i("home",t),incentive:t=>i("promos/".concat(t)),invoices:()=>i("billing/invoices/"),invoice:t=>{let{id:e}=t;return i("billing/invoices/".concat(e))},feedback:t=>i("feedback",t),txtSchedule:t=>i("txt/schedule",t),txtBroadcast:t=>{let{id:e}=t;return i("txt/broadcast/".concat(e))},integrations:()=>i("ppl/integrations"),dashboard:t=>i("dashboard",t)}}}}]);
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.