"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29172],{329172:function(e,t,r){r.r(t),r.d(t,{StaffFeedback:function(){return D}});var n=r(867932),o=r(92575),a=r(652983),s=r(863849),i=r.n(s),c=r(310124),l=r(394580),u=r(670296),f=r(423291),p=r(496751),d=r(99892),b=r(513899),h=r(368105),j=r(128149),x=r(437386),y=r(122679),m=r(444938),g=r(557823),O=r(410281),v=r(397458);let w=({children:e})=>{let t=(0,O.R)();return t?.user&&t.user?.badge.type==="staff"?(0,v.jsx)(v.Fragment,{children:e}):null},k=["children"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t(0,m.d)()?null:(0,v.jsx)(w,{children:(0,v.jsx)(M,{children:(0,v.jsx)(F,{})})}),F=()=>{let{0:e,1:t}=(0,a.useState)(!0);return e?(0,v.jsxs)(B,{children:[(0,v.jsx)(Z,{}),(0,v.jsx)(z,{}),(0,v.jsx)(R,{}),(0,v.jsx)(I,{onClick:()=>t(!1)})]},"staff"):null},M=({children:e})=>{let[t,r]=(0,g.Z)(C,null),n=(0,x.f)(C);return((0,a.useEffect)(()=>{null!==n&&r(n)},[r,n]),"false"===t)?null:(0,v.jsx)(v.Fragment,{children:e})},B=({children:e})=>(0,v.jsx)(c.h,{children:(0,v.jsx)(i(),{bounds:"body",children:(0,v.jsx)(l.k,{bgColor:"gray.800",_dark:{bgColor:"white"},borderWidth:"1px",borderColor:"stroke",pos:"fixed",borderRadius:"xs",p:"xs",gap:"xs",w:"max-content",align:"center",left:{base:"0",sm:"calc(90% - 15px)"},bottom:{base:"50px",sm:"lg"},sx:{button:{_dark:{borderColor:"darkBlueAlpha.300"}}},children:e})})}),L=e=>{let{children:t}=e,r=(0,o.Z)(e,k),n=(0,y.M)(P({},j.r.components.Tooltip.baseStyle));return(0,v.jsx)(u.u,P(P({},r),{},{sx:n,children:t}))},I=({onClick:e})=>{let t=(0,y.M)(P({},j.r.components.Button?.variants?.primary));return(0,v.jsx)(L,{label:"Hide Feedback button for this session",children:(0,v.jsx)(f.h,{"aria-label":"Feedback close switcher",icon:(0,v.jsx)(d.p,{}),variant:"primary",size:"xs",sx:t,onClick:e})})},Z=()=>{let e=(0,y.M)(P({},j.r.components.Button?.variants?.primary));return(0,v.jsx)(f.h,{_hover:{cursor:"grab"},_active:{cursor:"grabbing"},"aria-label":"Drag Feedback Button",icon:(0,v.jsx)(b.M,{}),variant:"primary",size:"xs",sx:e})},z=()=>{let e=(0,y.M)(P({},j.r.components.Button?.variants?.primary));return(0,v.jsx)(L,{label:E,children:(0,v.jsx)(f.h,{as:"a",target:"_blank",href:"https://vimean.atlassian.net/secure/CreateIssue.jspa?issuetype=7&pid=14422",size:"xs",variant:"primary",icon:(0,v.jsx)(h.o,{boxSize:"20px !important"}),"aria-label":E,sx:e})})},R=()=>{let e=(0,y.M)(P({},j.r.components.Badge?.variants?.new));return(0,v.jsx)(L,{placement:"top",label:_,children:(0,v.jsx)(p.C,{variant:"new",size:"sm",pos:"absolute",left:"-20px",top:"-16px",sx:e,children:"Staff"})})}},122679:function(e,t,r){r.d(t,{M:function(){return i}});var n=r(867932),o=r(736416);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t(0,o.I)()?t:s(s({},e),t)},736416:function(e,t,r){r.d(t,{I:function(){return o}});var n=r(969158);let o=()=>{let e=(0,n.F)();return!!e.styles?.global.body.fontFamily.includes("ABCRepro")}},444938:function(e,t,r){r.d(t,{d:function(){return a}});var n=r(132951),o=r(451434);let a=(e=!1)=>{let t=`screen and (max-width: ${n.rS.breakpoints.md})`;return t+=e?" and (orientation: portrait)":"",(0,o.y)(t)}},451434:function(e,t,r){r.d(t,{y:function(){return o}});var n=r(652983);let o=e=>{let{0:t,1:r}=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=e=>{r(e.matches)},n=window.matchMedia(e);return(r(n.matches),"function"==typeof n.addEventListener)?(n.addEventListener("change",t),()=>{n.removeEventListener("change",t)}):"function"==typeof n.addListener?(n.addListener(t),()=>{n.removeListener(t)}):void 0},[]),t}},437386:function(e,t,r){r.d(t,{Z:function(){return s},f:function(){return n}});let n=e=>new URLSearchParams(window.location.search).get(e),o=e=>"true"===n(e),a=e=>{let t=n(e);if(t){if("false"===t){try{window.localStorage.removeItem(e)}catch(e){}return!1}try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){}return"true"===t}try{let t=window.localStorage.getItem(e);return!!t&&"true"===JSON.parse(t)}catch(e){}return!1},s=(e,t=!1)=>t?a(e):o(e)},410281:function(e,t,r){r.d(t,{R:function(){return a}});var n=r(652983),o=r(16871);function a(){return(0,n.useContext)(o.Z)}}}]); //# sourceMappingURL=29172.03aa5a4ed7164b22.js.map