1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6651],{5138:(e,t,n)=>{n.r(t),n.d(t,{a:()=>R,c:()=>j,i:()=>H,n:()=>M,o:()=>z,r:()=>V,s:()=>$,t:()=>_});var r=n(85),o=n(5096),i=n(7740),a=n(7182),l=n(5853);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var s=["children","render","className","aria-label"],u=["children","className","showCloseButton","dir","data-lang"],d=["children","className"],f=["children","className"],p=["children","className"],m=["children","className"],v=["children","render","className","aria-label"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=(0,r.r)({DIALOG_EVENTS:function(){return S},Dialog:function(){return _},DialogClose:function(){return U},DialogContent:function(){return M},DialogDescription:function(){return V},DialogFooter:function(){return H},DialogHeader:function(){return R},DialogOverlay:function(){return T},DialogPortal:function(){return L},DialogTitle:function(){return z},DialogTrigger:function(){return B},DialogWrapper:function(){return $},closeDialog:function(){return I},customElement:function(){return F},default:function(){return $},openDialog:function(){return k}}),O=(0,r.o)((0,o.t)(),1),C=(0,r.o)((0,i.l)(),1),E=(0,i.i)(),N="dialog-open",D="dialog-close",S={open:N,close:D},k=function(e){window.dispatchEvent(new CustomEvent(N,{detail:{dialogId:e}}))},I=function(e){window.dispatchEvent(new CustomEvent(D,{detail:{dialogId:e}}))},P=(0,O.createContext)(null),A=function(){var e=(0,O.useContext)(P);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},L=function(e){var t=e.children,n=e.container,r=x((0,O.useState)(!1),2),o=r[0],i=r[1];return(0,O.useEffect)((function(){i(!0)}),[]),o?(0,C.createPortal)(t,n||document.body):null},T=function(e){var t=e.className,n=e.onClick,r=A().open;return(0,E.jsx)("div",{className:(0,a.t)("fixed inset-0 z-[9998] bg-black-100/80","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-300",t),onClick:n,"aria-hidden":"true","data-dialog-overlay":!0,"data-state":r?"open":"closed"})},_=function(e){var t=e.open,n=e.defaultOpen,r=void 0!==n&&n,o=e.onOpenChange,i=(e.dismissible,e.closeOnEscape),a=void 0===i||i,l=e.children,c=x((0,O.useState)(r),2),s=c[0],u=c[1],d=void 0!==t,f=d?t:s,p=(0,O.useId)(),m="dialog-content-".concat(p),v="dialog-title-".concat(p),g="dialog-description-".concat(p),y=(0,O.useCallback)((function(e){d||u(e),null==o||o(e)}),[d,o]);(0,O.useEffect)((function(){var e=function(e){e.detail.dialogId===m&&y(!0)},t=function(e){e.detail.dialogId===m&&y(!1)};
1return window.addEventListener(N,e),window.addEventListener(D,t),function(){window.removeEventListener(N,e),window.removeEventListener(D,t)}}),[m,y]),(0,O.useEffect)((function(){if(f&&a){var e=function(e){"Escape"===e.key&&(e.preventDefault(),y(!1))};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}}),[f,a,y]),(0,O.useEffect)((function(){if(f){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}}),[f]);var b=(0,O.useMemo)((function(){return{open:f,setOpen:y,onOpenChange:o,contentId:m,titleId:v,descriptionId:g}}),[f,y,o,m,v,g]);return(0,E.jsx)(P.Provider,{value:b,children:l})},B=(0,O.forwardRef)((function(e,t){var n=e.children,r=e.render,o=e.className,i=e["aria-label"],l=h(e,s),c=A(),u=c.setOpen,d=c.contentId,f=function(e){e.preventDefault(),e.stopPropagation(),u(!0)};if(r&&(0,O.isValidElement)(r)){var p=r.props.onClick;return(0,O.cloneElement)(r,y(y({},l),{},{onClick:function(e){f(e),null==p||p(e)},"aria-haspopup":"dialog","aria-expanded":!1,"aria-controls":d}))}return(0,E.jsx)("button",y(y({ref:t,type:"button",className:(0,a.t)("cursor-pointer",o),onClick:f,"aria-haspopup":"dialog","aria-expanded":!1,"aria-controls":d,"aria-label":i},l),{},{children:n}))}));B.displayName="DialogTrigger";var M=(0,O.forwardRef)((function(e,t){var n=e.children,r=e.className,o=e.showCloseButton,i=void 0===o||o,l=e.dir,c=e["data-lang"],s=h(e,u),d=A(),f=d.open,p=d.setOpen,m=d.contentId,v=d.titleId,g=d.descriptionId;return f?(0,E.jsxs)(L,{children:[(0,E.jsx)(T,{onClick:function(){p(!1)}}),(0,E.jsxs)("div",y(y({ref:t,id:m,role:"dialog","aria-modal":"true","aria-labelledby":v,"aria-describedby":g,dir:l,"data-lang":c,"data-state":f?"open":"closed",className:(0,a.t)("fixed left-1/2 top-1/2 z-[9999] grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2","gap-4 border border-black-20 bg-white p-4 shadow-lg duration-300","max-h-[90vh] overflow-y-auto","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",r),onClick:function(e){e.stopPropagation()}},s),{},{children:[n,i&&(0,E.jsxs)("button",{type:"button",className:(0,a.t)("absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-white transition-opacity","hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-black-40 focus:ring-offset-2","disabled:pointer-events-none"),onClick:function(){return p(!1)},"aria-label":"Close",children:[(0,E.jsx)("i",{className:"ri-close-line text-xl"}),(0,E.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]}):null}));M.displayName="DialogContent";var R=function(e){var t=e.children,n=e.className,r=h(e,d);return(0,E.jsx)("div",y(y({className:(0,a.t)("flex flex-col gap-1.5 text-center tablet:text-left",n)},r),{},{children:t}))},z=(0,O.forwardRef)((function(e,t){var n=e.children,r=e.className,o=h(e,f),i=A().titleId;return(0,E.jsx)("h2",y(y({ref:t,id:i,className:(0,a.t)("text-lg font-semibold leading-none tracking-tight text-primary-black",r)},o),{},{children:n}))}));z.displayName="DialogTitle";var V=(0,O.forwardRef)((function(e,t){var n=e.children,r=e.className,o=h(e,p),i=A().descriptionId;return(0,E.jsx)("p",y(y({ref:t,id:i,className:(0,a.t)("text-sm text-black-60",r)},o),{},{children:n}))}));V.displayName="DialogDescription";var H=function(e){var t=e.children,n=e.className,r=h(e,m);return(0,E.jsx)("div",y(y({className:(0,a.t)("flex flex-col-reverse tablet:flex-row tablet:justify-end gap-2",n)},r),{},{children:t}))},U=(0,O.forwardRef)((function(e,t){var n=e.children,r=e.render,o=e.className,i=e["aria-label"],l=h(e,v),c=A().setOpen,s=function(e){e.preventDefault(),e.stopPropagation(),c(!1)};if(r&&(0,O.isValidElement)(r)){var u=r.props.onClick;return(0,O.cloneElement)(r,y(y({},l),{},{onClick:function(e){s(e),null==u||u(e)}}))}return(0,E.jsx)("button",y(y({ref:t,type:"button",className:(0,a.t)("cursor-pointer",o),onClick:s,"aria-label":i||"Close dialog"},l),{},{children:n}))}));U.displayName="DialogClose";var $=function(e){var t=e.open,n=e.defaultOpen,r=void 0!==n&&n,o=e.dismissible,i=void 0===o||o,a=e.closeOnEscape,c=void 0===a||a,s=e.showCloseButton,u=void 0===s||s,d=e.trigger,f=e.title,p=e.description,m=e.content,v=e.footer,g=e.className;return(0,E.jsxs)(_,{open:t,defaultOpen:r,dismissible:i,closeOnEscape:c,children:[d&&(0,E.jsx)(B,{render:(0,E.jsx)(l.t,y({},d))}),(0,E.jsxs)(M,{showCloseButton:u,className:g,children:[(f||p)&&(0,E.jsxs)(R,{children:[f&&(0,E.jsx)(z,{children:f}),p&&(0,E.jsx)(V,{children:p})]}),m&&(0,E.jsx)("div",{dangerouslySetInnerHTML:{__html:m}}),v&&(v.cancel||v.confirm)&&(0,E.jsxs)(H,{children:[v.cancel&&(0,E.jsx)(U,{render:(0,E.jsx)(l.t,y({},v.cancel))}),v.confirm&&(0,E.jsx)(l.t,y({},v.confirm))]})]})]})},F="ost-dialog"},6651:(e,t,n)=>{n.r(t),n.d(t,{n:()=>d,t:()=>m});var r=n(85),o=n(5096),i=n(7740),a=n(5853),l=n(5138),c=n(265);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=(0,r.r)({customElement:function(){return v},default:function(){return m}}),f=(0,r.o)((0,o.t)(),1),p=(0,i.i)(),m=function(e){var t=e.title,n=e.description,r=e.login,o=e.forceOpen,i=s((0,f.useState)(!1),2),u=i[0],d=i[1],m=!0===o||u,v=(0,f.useCallback)((function(){o||setTimeout((function(){if((0,c.n)()){(0,c.r)(),d(!0);try{var e=new BroadcastChannel(c.t);e.postMessage({type:"session_expired"}),e.close()}catch(e){}}}),1e3)}),[o]);return(0,f.useEffect)((function(){if(!o){v();var e=function(){"visible"===document.visibilityState&&v()};document.addEventListener("visibilitychange",e);var t=null;try{(t=new BroadcastChannel(c.t)).onmessage=function(e){var t;"session_expired"===(null===(t=e.data)||void 0===t?void 0:t.type)&&((0,c.r)(),d(!0))}}catch(e){}return function(){var n;document.removeEventListener("visibilitychange",e),null===(n=t)||void 0===n||n.close()}}}
1),[v,o]),(0,p.jsx)(l.t,{open:m,onOpenChange:o?void 0:d,dismissible:!o,closeOnEscape:!o,children:(0,p.jsxs)(l.n,{className:"max-w-md",showCloseButton:!o,children:[(0,p.jsxs)(l.a,{children:[(0,p.jsx)(l.o,{children:null!=t?t:"logging out due to inactivity"}),(0,p.jsx)(l.r,{children:null!=n?n:"You have been disconnected due to inactivity."})]}),(0,p.jsx)(l.i,{children:(0,p.jsx)(a.t,{color:"primary",variant:"button",link:null!=r?r:{label:"Login again",href:{value:"/login"}}})})]})})},v="ost-session-expired-dialog"},1050:(e,t,n)=>{n.d(t,{t:()=>r});var r=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}},265:(e,t,n)=>{n.d(t,{i:()=>l,n:()=>s,r:()=>c,t:()=>a});var r=n(4019),o=n(1050),i="ost_user_session_active",a="ost_session_expired",l=function(){try{localStorage.setItem(i,"1")}catch(e){}},c=function(){try{localStorage.removeItem(i)}catch(e){}},s=function(){try{var e="1"===localStorage.getItem(i),t=!!(0,o.t)(r.o);return e&&!t}catch(e){return!1}}}}]);
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.