PageSourceSearch

https://static-assets.codio.com/dashboard/js/ipConsent.app.cd1541d47ad282297554.js

js codio.com collected 2026-09-24 19:46:34 UTC 5,300 bytes, 6 lines download raw bytes

1/*! For license information please see ipConsent.app.cd1541d47ad282297554.js.LICENSE.txt */
2"use strict";
3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dadcabad-96ac-56b5-89d7-cb981243bdda")}catch(e){}}();
4(self.webpackChunkcodio_dashboard=self.webpackChunkcodio_dashboard||[]).push([[2466],{51695(e,o,t){t.d(o,{A:()=>n});const n=t(37095).A.createActions(["setBlocker","removeBlocker","blockerLeave","blockerStay","resetBlocker"])},39825(e,o,t){t.d(o,{A:()=>j});var n=t(13285),s=t(242),r=t(59763),a=(t(96540),t(18566)),i=t(71743),c=t(43982),l=t(71857),d=t(11419),h=t(57685),A=t(43867),u=t(45474),p=t.n(u),g=t(54868),m=t(9594),x=t(74848);const C=(0,m.Ay)("pre")((({theme:e})=>({padding:e.spacing(1),backgroundColor:(e.vars||e).palette.MuiCodioCodeBlock.bgColor,borderRadius:e.shape.borderRadius,whiteSpace:"pre-wrap"}))),f=(0,m.Ay)("code")((({theme:e})=>({backgroundColor:(e.vars||e).palette.MuiCodioCodeBlock.bgColor,borderRadius:e.shape.borderRadius}))),y=(e,o)=>(0,x.jsx)(r.A,{variant:e,...o}),j=({source:e,options:o={}})=>{const t=(e=>{const o=[l.A,d.A];return e.linkTarget&&o.push([c.A,{target:e.linkTarget}]),e.html&&o.push(i.A),o})(o),u=[[p(),{locale:["en-US"]}],g.A,h.A,A.A];return(0,x.jsx)(n.A,{spacing:"1rem",children:(0,x.jsx)(a.cj,{rehypePlugins:t,remarkPlugins:u,components:{p:r.A,a:s.A,h1:e=>y("h1",e),h2:e=>y("h2",e),h3:e=>y("h3",e),h4:e=>y("h4",e),h5:e=>y("h5",e),h6:e=>y("h6",e),pre:e=>(0,x.jsx)(C,{...e}),code:e=>(0,x.jsx)(f,{...e})},children:e})})}},62397(e,o,t){t.d(o,{A:()=>d});var n=t(96540),s=t(13285),r=t(9594),a=t(46942),i=t.n(a),c=t(74848);const l=(0,r.Ay)(s.A,{name:"MuiCodioPageContainer",slot:"root"})((({theme:e})=>({padding:e.spacing(3,5,2,5),flex:1,overflow:"auto","&.MuiCodioPageContainer-disableGutters":{padding:0}}))),d=n.forwardRef(((e,o)=>{const{disableGutters:t,className:n,...s}=e,r=i()("MuiCodioPageContainer-root",n,{"MuiCodioPageContainer-disableGutters":t});return(0,c.jsx)(l,{ref:o,...s,className:r})}))},955(e,o,t){t.d(o,{A:()=>m,Z:()=>g});var n=t(76832),s=t(13285),r=t(60673),a=t(96540),i=t(9594),c=t(47767),l=t(51695),d=t(74848);const h=(0,i.Ay)(r.A,{name:"MuiCodioPageFooter",slot:"root"})((({theme:e})=>({padding:e.spacing(2,5),display:"flex"}))),A=(0,i.Ay)(s.A,{name:"MuiCodioPageFooterPrimaryActions",slot:"primaryActions"})((({theme:e})=>({gap:e.spacing(1)}))),u=(0,i.Ay)(s.A,{name:"MuiCodioPageFooterSecondaryActions",slot:"secondaryActions"})((({theme:e})=>({gap:e.spacing(1)}))),p=(0,i.Ay)("div",{name:"MuiCodioPageFooterSpacer",slot:"spacer"})((()=>({flexGrow:1}))),g=e=>{const{disabled:o}=e,t=(0,c.Zp)();return(0,d.jsx)(n.A,{variant:"text",color:"tertiary",disabled:o,onClick:()=>{l.A.resetBlocker(),window.history.length>1?t(-1):t("/home")},children:"Cancel"})},m=a.forwardRef(((e,o)=>{const{primaryActions:t,secondaryActions:n,...s}=e;return(0,d.jsxs)(h,{ref:o,...s,children:[(0,d.jsx)(u,{direction:"row",children:n}),(0,d.jsx)(p,{}),(0,d.jsx)(A,{direction:"row",children:t})]})}))},49192(e,o,t){t.r(o),t.d(o,{default:()=>w});var n=t(60673),s=t(76832),r=t(85979),a=t(44094),i=t(13285),c=t(72515),l=t(59763),d=t(96540),h=t(47767),A=t(4255),u=t(39825),p=t(39922),g=t(89458),m=t(41622),x=t(25037),C=t(91951),f=t(65754),y=t(58270),j=t(955),k=t(62397),b=t(74848);const w=()=>{const[e,o]=d.useState(null),[t,w]=d.useState(null),[v,P]=d.useState(!1),[M,S]=d.useState(!1),I=(0,h.Zp)(),B=(0,h.zy)();(0,d.useEffect)((()=>{y.A.getToken()?R():y.A.fetchAccessToken().catch((()=>{}))}),[]),(0,d.useEffect)((()=>y.A.listen(R)));const R=e=>{const o=y.A.getToken();e?g.A.error(e.message):o&&F()},F=async()=>{try{const[e,t]=await Promise.all([f.A.getMy(),C.A.getMyInfo()]);if(!t.ipConsents||t.ipConsents.isEmpty())G();else{const n=t.ipConsents.get(0),s=e.find((e=>e.ipConsent&&e.ipConsent.consentId===n.consentId));o(t),w(s)}}catch({message:e}){g.A.error(e)}},G=()=>{const{nextPath:e,externalPath:o}=(0,m.rG)(B.search);if(o){const o=(0,x.F)(e);o?window.location=o:I("/home")}else I(e)},T=()=>{const o=e.ipConsents.get(0);if(!t)return o;const n=t.details.name;return{...o.toJS(),orgName:n}};if(!e)return null;const{orgName:N,text:E}=T();return(0,b.jsx)(A.A,{children:(0,b.jsxs)(n.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,b.jsx)(k.A,{children:(0,b.jsxs)(i.A,{spacing:4,sx:{overflow:"auto"},children:[(0,b.jsx)(l.A,{variant:"h4",children:`IP Consent for organization ${N||""}`}),(0,b.jsx)(c.A,{sx:{overflow:"auto",p:4},children:(0,b.jsx)(u.A,{source:E,options:{html:!0}})})]})}),(0,b.jsx)(j.A,{primaryActions:(0,b.jsxs)(i.A,{direction:"row",spacing:2,sx:{alignItems:"center"},children:[(0,b.jsx)(r.A,{control:(0,b.jsx)(a.A,{checked:v,onClick:()=>P(!v)}),label:"I Agree"}),(0,b.jsx)(s.A,{variant:"contained",color:"primary",onClick:async()=>{const{revision:e,consentId:t}=T();S(!0);try{await p.A.consentWithIp(t,e),o(null),F(),G()}catch({message:e}){g.A.error(e)}finally{S(!1)}},disabled:!v||M,loading:M,loadingPosition:"start",children:"Submit"})]})})]})})}}}]);
5//# sourceMappingURL=http://sourcemaps.codio.test:22334/dashboard/js/ipConsent.app.cd1541d47ad282297554.js.map
6//# debugId=dadcabad-96ac-56b5-89d7-cb981243bdda

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.