1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e._posthogReleaseId=e._posthogReleaseId||`01a118ba-4f2c-0000-e63e-ca9fdc4ab9a4`;var t=new e.Error().stack;t&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[t]=`a969ea5f-8faa-55cd-beb7-eb29832ab175`)}catch{}})();import{o as e,t}from"./rolldown-runtime-C1E9dMlE.js";import{t as n}from"./react-CDzGGYan.js";import{f as r,h as i}from"./chunk-KS7C4IRE-Lk7DXiVw.js";import{t as a}from"./jsx-runtime-Bhzz1NqW.js";import{o,r as s}from"./SessionProvider-V7wHd5E6.js";import{t as c}from"./createSvgIcon-XN2sv-Ch.js";import{t as l}from"./Loading-Bf53LmBr.js";import{t as u}from"./styled-components.browser.esm-BOLPe0j4.js";import{t as d}from"./Button-C6zmRYe5.js";import{r as f,t as p}from"./Illustrations-6syw_Iyw.js";var m=a(),h=c((0,m.jsx)(`path`,{d:`M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z`}),`Refresh`),g=t(((e,t)=>{(function(r,i){typeof e==`object`&&t!==void 0?i(e,n()):typeof define==`function`&&define.amd?define([`exports`,`react`],i):(r=typeof globalThis<`u`?globalThis:r||self,i(r.ReactErrorBoundary={},r.React))})(e,(function(e,t){function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r=n(t);function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}var o=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),e.length!==t.length||e.some(function(e,n){return!Object.is(e,t[n])})},s={error:null},c=function(e){a(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.state=s,t.resetErrorBoundary=function(){var e,n=[...arguments];t.props.onReset==null||(e=t.props).onReset.apply(e,n),t.reset()},t}t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(s)},n.componentDidCatch=function(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n=this.state.error,r=this.props.resetKeys;if(n!==null&&t.error!==null&&o(e.resetKeys,r)){var i,a;(i=(a=this.props).onResetKeysChange)==null||i.call(a,e.resetKeys,r),this.reset()}},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,i=t.FallbackComponent,a=t.fallback;if(e!==null){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(a))return a;if(typeof n==`function`)return n(o);if(i)return r.createElement(i,o);throw Error(`react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop`)}return this.props.children},t}(r.Component);function l(e,t){var n=function(n){return r.createElement(c,t,r.createElement(e,n))};return n.displayName=`withErrorBoundary(`+(e.displayName||e.name||`Unknown`)+`)`,n}function u(e){var t=r.useState(null),n=t[0],i=t[1];if(e!=null)throw e;if(n!=null)throw n;return i}e.ErrorBoundary=c,e.useErrorHandler=u,e.withErrorBoundary=l,Object.defineProperty(e,"__esModule",{value:!0})}))})),_=e(n(),1),v=g(),y=/Loading (CSS )?chunk .* failed|(Failed to fetch|error loading) dynamically imported module|Importing a module script failed/i,b=`delivra.staleBundleReloadAt`,x=3e4,S=!1;function C(e){return e instanceof Error&&(e.name===`ChunkLoadError`||y.test(e.message))}function w(){if(S)return!0;let e=Date.now()-T();return e>=0&&e<x||!E(Date.now())?!1:(S=!0,console.warn(`Stale bundle detected - reloading to pick up the current build.`),window.location.reload(),!0)}function T(){try{let e=Number(window.sessionStorage.getItem(b));return Number.isFinite(e)?e:0}catch{return 0}}function E(e){try{return window.sessionStorage.setItem(b,String(e)),!0}catch{return!1}}var D={BASE_URL:`/app/`,DELIVRA_BUILD_ID:`3342975 agokak - DEV-562 Remove notification rollout flags`,DELIVRA_BUILT_AT_UTC:`2026-10-07T23:35:00.616Z`,DELIVRA_SOURCE_VERSION:`3342975c5e0eb4be398e46413665ea12e780d774`,DEV:!1,MODE:`iis-subapp`,PROD:!0,SSR:!1,VITE_APP_BASE_PATH:`/app/`,VITE_MIXPANEL_PROJECT_TOKEN:`26529b28d60b9470b31a30d6ed06591e`},O=Object.freeze({buildId:D.DELIVRA_BUILD_ID,sourceVersion:D.DELIVRA_SOURCE_VERSION,builtAtUtc:D.DELIVRA_BUILT_AT_UTC}),k=[`message`,`stack`,`fileName`,`lineNumber`,`columnNumber`,`cause`];function A(e,t){if(typeof e==`object`&&e&&t in e)return e[t]}var j=function(e,t,n,r,i){let a=typeof i==`string`?i:A(i,`message`);if(a!==`Possible side-effect in debug-evaluate`)try{let s={message:e?.toString()??a,source:t??A(i,`fileName`),lineno:n?.toString()??A(i,`lineNumber`)?.toString(),colno:r?.toString()??A(i,`columnNumber`)?.toString(),error:JSON.stringify(i,k),location:window.location.toString(),referrer:document.referrer,frontendBuildId:O.buildId,frontendSourceVersion:O.sourceVersion,frontendBuiltAtUtc:O.builtAtUtc};fetch(o(`Error/JavaScript`),{method:`POST`,headers:{"Content-Type":`application/json`,"X-Expected-ListName":`*`},body:JSON.stringify(s)})}catch{}};function M(e){let t=(0,_.useRef)(!1),n=(0,_.useRef)(!1),[,r]=(0,_.useState)(0);t.current&&(n.current=!0),(0,_.useEffect)(()=>(t.current||=!0,r(e=>e+1),()=>{n.current&&e()}),[])}function N(e=50,t=5){let n=(0,_.useRef)(null),r=(0,_.useRef)(0),i=(0,_.useRef)(e),a=e=>{o(),n.current=window.setTimeout(()=>{e(),r.current++,r.current<t&&(i.current*=2,a(e))},i.current)},o=()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null)};return M(o),{startTimeout:a,endTimeout:o}}var P=u.div` 2 width: 100%; 3 height: 100%; 4 flex-grow: 1; 5 6 display: flex; 7 align-items: center; 8 justify-content: center; 9 10 background-color: #ffffff; 11 background-repeat: no-repeat; 12 background-position: center; 13 background-size: contain; 14 15 /* inline image to avoid round trip */ 16 /* background-image: url("data:image/svg+xml,%3Csvg width='1184' height='1184' viewBox='0 0 1184 1184' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23fpy63tfraa)'%3E%3Cg clip-path='url(%23310o5c30nb)'%3E%3Cg mask='url(%23gk1xi4i5kd)'%3E%3Ccircle cx='592' cy='592' r='592' fill='url(%23116o04fode)'/%3E%3Ccircle cx='592' cy='592' r='444' fill='url(%23rra782lphf)'/%3E%3Ccircle cx='592' cy='592' r='222' fill='url(%23ut7d6bgjvg)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3CradialGradient id='116o04fode' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='rotate(-90 592 0) scale(592)'%3E%3Cstop stop-color='%232D96FD' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%230079F1' stop-opacity='.75'/%3E%3C/radialGradient%3E%3CradialGradient id='rra782lphf' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='rotate(-90 592 0) scale(444)'%3E%3Cstop stop-color='%232D96FD' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%230079F1' stop-opacity='.75'/%3E%3C/radialGradient%3E%3CradialGradient id='ut7d6bgjvg' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='rotate(-90 592 0) scale(222)'%3E%3Cstop stop-color='%232D96FD' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%230079F1' stop-opacity='.75'/%3E%3C/radialGradient%3E%3CclipPath id='fpy63tfraa'%3E%3Cpath fill='%23fff' d='M0 0h1184v1184H0z'/%3E%3C/clipPath%3E%3CclipPath id='310o5c30nb'%3E%3Cpath fill='%23fff' d='M0 0h1184v1184H0z'/%3E%3C/clipPath%3E%3ClinearGradient id='arhefry5nc' x1='412.55' y1='464.35' x2='592' y2='592' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E"); */ 17`,F=u.div` 18 display: flex; 19 flex-direction: column; 20 align-items: center; 21 gap: 20px; 22 23 h1 { 24 color: #19243b; 25 } 26`,I=u.div` 27 width: 512px; 28 height: 400px; 29 display: flex; 30 flex-direction: column; 31 justify-content: flex-start;
32 align-items: center; 33 gap: 30px; 34 margin: 40px auto; 35 padding: 0; 36 37 h1 { 38 color: #19243b; 39 } 40`;function L(e){let[t,n]=(0,_.useState)(!1),{session:r}=s(),i;return i=r?.extendedSiteOptions?!r.extendedSiteOptions.IsWhiteLabel:window&&window.location&&window.location.hostname.includes(`delivra`),(0,_.useEffect)(()=>{if(!t){let e=setTimeout(()=>n(!0),2e3);return()=>clearTimeout(e)}},[t,n]),(0,m.jsx)(P,{children:(0,m.jsxs)(i?I:F,{children:[i&&(0,m.jsx)(f,{}),(0,m.jsx)(`h1`,{style:{paddingTop:`10px`},children:`Uh Oh`}),(0,m.jsx)(`span`,{style:{marginTop:`-8px`,color:`var(--ui-800)`,fontFamily:`Inter`,fontSize:`16px`,fontWeight:`normal`},children:`Something went wrong.`}),(0,m.jsxs)(d,{onClick:e.resetErrorBoundary,style:{marginTop:`17px`,visibility:t?`visible`:`hidden`},children:[(0,m.jsx)(h,{}),`Reload`]})]})})}var R=u.div` 41 width: 512px; 42 height: 400px; 43 display: flex; 44 flex-direction: column; 45 justify-content: flex-start; 46 align-items: center; 47 gap: 40px; 48 margin: 40px auto; 49 padding: 0; 50`,z=u.div` 51 display: flex; 52 flex-direction: column; 53 align-items: center; 54 gap: 12px; 55 56 div { 57 text-align: center; 58 } 59`;function B(){return(0,m.jsxs)(R,{children:[(0,m.jsx)(p,{}),(0,m.jsxs)(z,{children:[(0,m.jsx)(`h1`,{children:`Request Access`}),(0,m.jsxs)(`div`,{className:`dlv-p1`,children:[`Whoops! It looks like you donât have access to this feature due to`,(0,m.jsx)(`br`,{}),`your permissions.`,(0,m.jsx)(`br`,{}),(0,m.jsx)(`br`,{}),`Please contact your admin to gain access to this feature.`]})]})]})}var V=`Access Denied. Sorry, your credentials do not grant you access to the requested resource.`;function H(e){let[t,n]=(0,_.useState)(!0),r=(0,_.useRef)(!1);return(0,_.useEffect)(()=>{w()||(r.current||(r.current=!0,j(void 0,void 0,void 0,void 0,e.error)),n(!1))},[e.error]),t?(0,m.jsx)(P,{children:(0,m.jsx)(l,{})}):(0,m.jsx)(L,{...e})}function U(e){return C(e.error)?(0,m.jsx)(H,{...e}):e.error.message===V?(0,m.jsx)(B,{}):(0,m.jsx)(L,{...e})}var W=(e,t)=>{C(e)||j(void 0,void 0,void 0,void 0,e)};function G(){let e=i(),t=(0,_.useMemo)(()=>e instanceof Error?e:Error(typeof e==`object`&&e&&`statusText`in e?String(e.statusText):String(e)),[e]);return(0,_.useEffect)(()=>{W?.(t,{componentStack:``})},[t]),(0,m.jsx)(U,{error:t,resetErrorBoundary:()=>window.location.reload()})}function K({children:e}){let t=r();return(0,m.jsx)(v.ErrorBoundary,{FallbackComponent:U,onError:W,resetKeys:[t.pathname,t.search,t.hash],children:e})}function q({isErrorTemporary:e,onUnmount:t,...n}){return M(t),e(n.error)?(0,m.jsx)(l,{}):(0,m.jsx)(L,{...n})}function J({children:e,isErrorTemporary:t,resetKeys:n}){let[r,i]=(0,_.useState)(0),{startTimeout:a,endTimeout:o}=N(50,10),s=e=>{console.warn(e),a(()=>i(e=>e+1))},c=(0,_.useCallback)(e=>(0,m.jsx)(q,{isErrorTemporary:t,onUnmount:o,...e}),[t,o]);return(0,m.jsx)(v.ErrorBoundary,{resetKeys:n?[...n,r]:[r],FallbackComponent:c,onError:s,children:e})}export{M as a,w as c,J as i,h as l,G as n,O as o,K as r,C as s,B as t}; 60//# chunkId=a969ea5f-8faa-55cd-beb7-eb29832ab175
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.