PageSourceSearch

https://app.instantdm.com/static/js/5945.29681855.chunk.js

js instantdm.com collected 2026-09-24 09:28:53 UTC 6,737 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkinsta_automate=self.webpackChunkinsta_automate||[]).push([[5945],{75945:(e,t,s)=>{s.r(t),s.d(t,{default:()=>T});var n=s(65043),r=s(31023),a=s(76399),o=s(13382),i=s(68662),c=s(56597),l=s(29169),d=s(99472),u=s(34135),f=s(42261),h=s(89967),y=s(95240),x=s(94786),g=s(77677),p=s(41402),j=s(46237),A=s(69380),m=s(90617),v=s(48663),w=s(43569),z=s(70579);const{Title:S,Text:b}=r.A;function _(e){if(!e)return"";const t=new Date-new Date(e),s=Math.floor(t/6e4);if(s<60)return"".concat(s,"m ago");const n=Math.floor(s/60);if(n<24)return"".concat(n,"h ago");const r=Math.floor(n/24);return"".concat(r,"d ago")}function k(e){switch(e){case"critical":return(0,z.jsx)(h.A,{style:{fontSize:24,color:"#ff4d4f"}});case"warning":return(0,z.jsx)(y.A,{style:{fontSize:24,color:"#faad14"}});default:return(0,z.jsx)(x.A,{style:{fontSize:24,color:"#1677ff"}})}}function C(e){switch(e){case"critical":return"red";case"warning":return"orange";default:return"blue"}}function M(e){let{fixAction:t}=e;if(!t)return null;const s="video"===t.type?(0,z.jsx)(g.A,{}):(t.type,(0,z.jsx)(p.A,{}));return"info"===t.type?(0,z.jsx)(a.A,{color:"default",style:{padding:"4px 12px",fontSize:13},children:t.label}):(0,z.jsx)(o.Ay,{type:"primary",size:"small",icon:s,onClick:()=>{"video"===t.type&&t.url?window.open(t.url,"_blank"):"reconnect"===t.type?window.location.href="true"===localStorage.getItem("ig_api")?"/ig-connect?show_ig_connect=true":"/ig-connect":t.url&&(window.location.href=t.url)},children:t.label})}function B(e){let{issue:t}=e;return(0,z.jsx)(i.A,{style:{marginBottom:12,borderLeft:"4px solid ".concat("red"===C(t.severity)?"#ff4d4f":"orange"===C(t.severity)?"#faad14":"#1677ff")},bodyStyle:{padding:"16px 20px"},children:(0,z.jsxs)(c.A,{align:"flex-start",gap:16,children:[(0,z.jsx)("div",{style:{paddingTop:2},children:k(t.severity)}),(0,z.jsxs)("div",{style:{flex:1},children:[(0,z.jsxs)(c.A,{justify:"space-between",align:"center",wrap:"wrap",gap:8,children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(b,{strong:!0,style:{fontSize:15},children:t.title}),(0,z.jsx)(a.A,{color:C(t.severity),style:{marginLeft:8},children:t.severity})]}),(0,z.jsx)(M,{fixAction:t.fix_action})]}),(0,z.jsx)(b,{type:"secondary",style:{display:"block",marginTop:4,fontSize:13},children:t.description}),(0,z.jsxs)(c.A,{gap:16,style:{marginTop:8},children:[(0,z.jsxs)(b,{type:"secondary",style:{fontSize:12},children:[t.error_count," error",1!==t.error_count?"s":""]}),(0,z.jsxs)(b,{type:"secondary",style:{fontSize:12},children:["First: ",_(t.first_error_at)]}),(0,z.jsxs)(b,{type:"secondary",style:{fontSize:12},children:["Last: ",_(t.last_error_at)]})]})]})]})})}const T=function(){const[e,t]=(0,n.useState)(!1),[s,r]=(0,n.useState)(null),a=()=>{(0,v.A)({url:"get-health-status",method:"GET",loadingState:t,dataState:e=>{null!==e&&void 0!==e&&e.data&&r(e.data)}})};return(0,n.useEffect)((()=>{a()}),[]),(0,z.jsxs)("div",{className:"page-layout",children:[(0,z.jsx)(w.A,{}),(0,z.jsx)("div",{className:"page-content",children:(0,z.jsxs)("div",{style:{maxWidth:700,margin:"0 auto",padding:"24px 16px"},children:[(0,z.jsxs)(c.A,{justify:"space-between",align:"center",style:{marginBottom:20},children:[(0,z.jsxs)(c.A,{align:"center",gap:10,children:[(0,z.jsx)(A.A,{style:{fontSize:22}}),(0,z.jsx)(S,{level:4,style:{margin:0},children:"Account Health"})]}),(0,z.jsx)(o.Ay,{icon:(0,z.jsx)(m.A,{}),onClick:a,loading:e,size:"small",children:"Refresh"})]}),s&&!e&&s.healthy&&(0,z.jsx)(f.A,{type:"success",showIcon:!0,icon:(0,z.jsx)(j.A,{}),message:"All systems operational",style:{marginBottom:20}}),e&&!s?(0,z.jsx)(c.A,{justify:"center",align:"center",style:{minHeight:300},children:(0,z.jsx)(l.A,{size:"large"})}):s?s.healthy?(0,z.jsx)(u.Ay,{icon:(0,z.jsx)(j.A,{style:{color:"#52c41a"}}),title:"All Good!",subTitle:"Your account is healthy. No issues detected."}):(0,z.jsxs)("div",{children:[(0,z.jsx)(f.A,{type:"error",showIcon:!0,icon:(0,z.jsx)(y.A,{}),message:"".concat(s.issues.length," issue").concat(1!==s.issues.length?"s":""," found \u2014 ").concat(s.total_errors_24h," total errors"),description:"Fix the issues below to restore your automations.",style:{marginBottom:20}}),s.issues.map(((e,t)=>(0,z.jsx)(B,{issue:e},e.category||t)))]}):(0,z.jsx)(d.A,{description:"Unable to load health status"})]})})]})}},69380:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(58168),r=s(65043);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"};var o=s(22172),i=function(e,t){return r.createElement(o.A,(0,n.A)({},e,{ref:t,icon:a}))};const c=r.forwardRef(i)},77677:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(58168),r=s(65043);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}
1]},name:"play-circle",theme:"outlined"};var o=s(22172),i=function(e,t){return r.createElement(o.A,(0,n.A)({},e,{ref:t,icon:a}))};const c=r.forwardRef(i)},95240:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(58168),r=s(65043);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};var o=s(22172),i=function(e,t){return r.createElement(o.A,(0,n.A)({},e,{ref:t,icon:a}))};const c=r.forwardRef(i)}}]);
2//# sourceMappingURL=5945.29681855.chunk.js.map

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.