1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4591],{18161:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-br-connection-access",function(){return r(88849)}])},66091:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var l=r(73380),n=r(37876);let o=(0,l.A)((0,n.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},74552:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var l=r(37876);r(14232);var n=r(21875),o=r(76343),i=r(41987);function a(){return(0,l.jsxs)(n.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",py:10},children:[(0,l.jsx)(o.A,{size:150,sx:{color:i.R.olive900}}),(0,l.jsx)(n.A,{style:{position:"absolute",height:120,width:120,borderRadius:75,margin:"0px 10px",backgroundColor:i.R.olive900,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("img",{src:"/logos/BR-Icon-Yellow-RGB.svg",style:{height:"50px",width:"100px"}})})]})}},88691:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var l=r(14232),n=r(69241),o=r(13323),i=r(43913),a=r(83539),s=r(15920),c=r(56604),u=r(83311),d=r(51869),p=r(3279),g=r(14457),h=r(21849);function y(e){return(0,h.Ay)("MuiAlert",e)}let A=(0,g.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var v=r(96365),m=r(73380),f=r(37876);let x=(0,m.A)((0,f.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),j=(0,m.A)((0,f.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,m.A)((0,f.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S=(0,m.A)((0,f.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var q=r(66091);let z=(0,i.Ay)(p.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,u.A)(r.color||r.severity))]]}})((0,a.A)(e=>{let{theme:t}=e,r="light"===t.palette.mode?t.darken:t.lighten,l="light"===t.palette.mode?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((0,d.A)(["light"])).map(e=>{let[n]=e;return{props:{colorSeverity:n,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert["".concat(n,"Color")]:r(t.palette[n].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(n,"StandardBg")]:l(t.palette[n].light,.9),["& .".concat(A.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(n,"IconColor")]}:{color:t.palette[n].main}}}}),...Object.entries(t.palette).filter((0,d.A)(["light"])).map(e=>{let[l]=e;return{props:{colorSeverity:l,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert["".concat(l,"Color")]:r(t.palette[l].light,.6),border:"1px solid ".concat((t.vars||t).palette[l].light),["& .".concat(A.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(l,"IconColor")]}:{color:t.palette[l].main}}}}),...Object.entries(t.palette).filter((0,d.A)(["dark"])).map(e=>{let[r]=e;return{props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert["".concat(r,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(r,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}})]}})),w=(0,i.Ay)("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),b=(0,i.Ay)("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),M=(0,i.Ay)("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),k={success:(0,f.jsx)(x,{fontSize:"inherit"}),warning:(0,f.jsx)(j,{fontSize:"inherit"}),error:(0,f.jsx)(C,{fontSize:"inherit"}),info:(0,f.jsx)(S,{fontSize:"inherit"})},N=l.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiAlert"}),{action:l,children:i,className:a,closeText:d="Close",color:p,components:g={},componentsProps:h={},icon:A,iconMapping:m=k,onClose:x,role:j="alert",severity:C="success",slotProps:S={},slots:N={},variant:I="standard",...R}=r,E={...r,color:p,severity:C,variant:I,colorSeverity:p||C},L=(e=>{let{variant:t,color:r,severity:l,classes:n}=e,i={root:["root","color".concat((0,u.A)(r||l)),"".concat(t).concat((0,u.A)(r||l)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,o.A)(i,y,n)})(E),T={slots:{closeButton:g.CloseButton,closeIcon:g.CloseIcon,...N},slotProps:{...h,...S}},[_,O]=(0,c.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,n.A)(L.root,a),elementType:z,externalForwardedProps:{...T,...R},ownerState:E,additionalProps:{role:j,elevation:0}}),[W,B]=(0,c.A)("icon",{className:L.icon,elementType:w,externalForwardedProps:T,ownerState:E}),[P,H]=(0,c.A)("message",{className:L.message,elementType:b,externalForwardedProps:T,ownerState:E}),[F,G]=(0,c.A)("action",{className:L.action,elementType:M,externalForwardedProps:T,ownerState:E}),[V,Y]=(0,c.A)("closeButton",{elementType:v.A,externalForwardedProps:T,ownerState:E}),[X,Z]=(0,c.A)("closeIcon",{elementType:q.A,externalForwardedProps:T,ownerState:E});return(0,f.jsxs)(_,{...O,children:[!1!==A?(0,f.jsx)(W,{...B,children:A||m[C]||k[C]}
1):null,(0,f.jsx)(P,{...H,children:i}),null!=l?(0,f.jsx)(F,{...G,children:l}):null,null==l&&x?(0,f.jsx)(F,{...G,children:(0,f.jsx)(V,{size:"small","aria-label":d,title:d,color:"inherit",onClick:x,...Y,children:(0,f.jsx)(X,{fontSize:"small",...Z})})}):null]})})},88849:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var l=r(37876),n=r(14232),o=r(89099),i=r(18951),a=r(21875),s=r(88691),c=r(1036),u=r(74552);let d=()=>{var e,t,r,d,p,g,h,y,A,v,m,f,x,j,C,S,q,z,w,b,M;let k=(0,o.useRouter)(),[N,I]=(0,n.useState)(!1),[R,E]=(0,n.useState)(null),[L,T]=(0,n.useState)(!1),_=Array.isArray(null==k||null==(e=k.query)?void 0:e.g1id)?null==k||null==(t=k.query)?void 0:t.g1id[0]:null==k||null==(r=k.query)?void 0:r.g1id,O=Array.isArray(null==k||null==(d=k.query)?void 0:d.g1cid)?null==k||null==(p=k.query)?void 0:p.g1cid[0]:null==k||null==(g=k.query)?void 0:g.g1cid,W=Array.isArray(null==k||null==(h=k.query)?void 0:h.g1Name)?null==k||null==(y=k.query)?void 0:y.g1Name[0]:null==k||null==(A=k.query)?void 0:A.g1Name,B=Array.isArray(null==k||null==(v=k.query)?void 0:v.g2id)?null==k||null==(m=k.query)?void 0:m.g2id[0]:null==k||null==(f=k.query)?void 0:f.g2id,P=Array.isArray(null==k||null==(x=k.query)?void 0:x.g2cid)?null==k||null==(j=k.query)?void 0:j.g2cid[0]:null==k||null==(C=k.query)?void 0:C.g2cid,H=Array.isArray(null==k||null==(S=k.query)?void 0:S.g2Name)?null==k||null==(q=k.query)?void 0:q.g2Name[0]:null==k||null==(z=k.query)?void 0:z.g2Name,F=Array.isArray(null==k||null==(w=k.query)?void 0:w.departure)?null==k||null==(b=k.query)?void 0:b.departure[0]:null==k||null==(M=k.query)?void 0:M.departure,G=n.useRef(!1),V=async()=>{if(!_||!O||!B||!P)return void E("Missing guest information.");I(!0),E(null);try{let e=await fetch("/api/guests/confirmGuestAccess",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({guest1Id:_,guest1ContactId:O,guest2Id:B,guest2ContactId:P,tripName:F,requesterName:W,targetGuestName:H})});if(!e.ok){let t=await e.json().catch(()=>null);throw Error((null==t?void 0:t.message)||"Request failed")}T(!0)}catch(e){E(e instanceof Error?e.message:"Something went wrong.")}finally{I(!1)}};return(0,n.useEffect)(()=>{_&&O&&B&&P&&!G.current&&(G.current=!0,V())},[_,O,B,P]),(null==k?void 0:k.query)?(0,l.jsxs)(i.A,{maxWidth:"lg",sx:{minHeight:"55vh",mt:18,textAlign:"center"},children:[(0,l.jsxs)(c.A,{font:"serif",variant:"h4",size:"lg",children:["My B&R Access Authorization for ",F]}),(0,l.jsxs)(c.A,{font:"sansSerif",variant:"body1",size:"lg",sx:{mt:4},children:[W," is requesting access to ",H,"'s pre-trip checklist."]}),N&&(0,l.jsx)(a.A,{sx:{maxWidth:650,margin:"auto"},children:(0,l.jsx)(s.A,{severity:"info",sx:{mt:6,fontSize:16},children:"Authorizing access to your pre-trip checklist --- please wait..."})}),L&&(0,l.jsx)(a.A,{sx:{maxWidth:750,margin:"auto"},children:(0,l.jsx)(s.A,{severity:"success",sx:{mt:6,fontSize:16},children:"You've successfully authorized access to your pre-trip checklist. You may now close this page."})}),R&&(0,l.jsx)(s.A,{severity:"success",sx:{mt:6,fontSize:16},children:"There was a problem with your request, please try again. If the problem persists, please contact your Travel Coordinator for assistance."})]}):(0,l.jsx)(i.A,{maxWidth:"lg",sx:{minHeight:"50vh",mt:18},children:(0,l.jsx)(u.A,{})})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=18161)),_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.