PageSourceSearch

https://app.instantdm.com/static/js/2090.7f5f0156.chunk.js

js instantdm.com collected 2026-09-24 09:28:06 UTC 10,412 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkinsta_automate=self.webpackChunkinsta_automate||[]).push([[2090],{32090:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(89379),i=a(65043),s=a(73216),c=a(31023),l=a(16569),o=a(29169),r=a(34135),d=a(13382),m=a(68662),v=a(10898),u=a(76399),p=a(38818),h=a(46237),g=a(89967),x=a(54420),y=a(24227),f=a(70579);const{Title:j,Text:A}=c.A;const w=function(){var e;const{token:t}=(0,s.g)(),a=(0,s.Zp)(),[c,w]=l.Ay.useMessage(),[k,b]=(0,i.useState)(!0),[N,C]=(0,i.useState)(null),[_,S]=(0,i.useState)(null),[z,O]=(0,i.useState)(!1),[E,I]=(0,i.useState)(!1),[P,T]=(0,i.useState)(null),L=y.J;return(0,i.useEffect)((()=>{fetch("".concat(L,"/team/invite/").concat(t)).then((e=>e.json())).then((e=>{b(!1),"Success"===e.message?C(e):S(e.message||"Invalid or expired invitation")})).catch((()=>{b(!1),S("Failed to validate invitation. Please try again.")}))}),[t]),k?(0,f.jsx)("div",{className:"team-invite-container",children:(0,f.jsx)(o.A,{size:"large",tip:"Validating invitation..."})}):_?(0,f.jsx)("div",{className:"team-invite-container",children:(0,f.jsx)(r.Ay,{status:"warning",title:"Invitation Unavailable",subTitle:_,extra:(0,f.jsx)(d.Ay,{type:"primary",onClick:()=>a("/login"),children:"Go to Login"})})}):"accepted"===P?(0,f.jsx)("div",{className:"team-invite-container",children:(0,f.jsx)(r.Ay,{status:"success",title:"You've joined the workspace!",subTitle:'You are now a member of "'.concat(null===N||void 0===N?void 0:N.workspace_name,'".'),extra:(0,f.jsx)(d.Ay,{type:"primary",onClick:()=>a("/ig"),children:"Go to Dashboard"})})}):"declined"===P?(0,f.jsx)("div",{className:"team-invite-container",children:(0,f.jsx)(r.Ay,{status:"info",title:"Invitation Declined",subTitle:"You have declined this invitation.",extra:(0,f.jsx)(d.Ay,{type:"primary",onClick:()=>a("/login"),children:"Go to Login"})})}):(0,f.jsxs)("div",{className:"team-invite-container",children:[w,(0,f.jsxs)(m.A,{className:"team-invite-card",bordered:!0,children:[(0,f.jsx)(p.A,{className:"team-invite-icon"}),(0,f.jsx)(j,{level:3,children:"You're Invited!"}),(0,f.jsxs)(A,{type:"secondary",children:[null!==N&&void 0!==N&&N.invited_by_name?"".concat(N.invited_by_name," has"):"You've been"," invited you to join a team workspace."]}),(0,f.jsx)("div",{className:"team-invite-details",children:(0,f.jsxs)(v.A,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,f.jsxs)("div",{children:[(0,f.jsx)(A,{strong:!0,children:"Workspace:"})," ",(0,f.jsx)(A,{children:null===N||void 0===N?void 0:N.workspace_name})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)(A,{strong:!0,children:"Role:"})," ",(0,f.jsx)(u.A,{color:"blue",children:null===N||void 0===N||null===(e=N.role)||void 0===e?void 0:e.toUpperCase()})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)(A,{strong:!0,children:"Email:"})," ",(0,f.jsx)(A,{children:null===N||void 0===N?void 0:N.email})]}),(null===N||void 0===N?void 0:N.expires_at)&&(0,f.jsxs)("div",{children:[(0,f.jsx)(A,{strong:!0,children:"Expires:"})," ",(0,f.jsx)(A,{type:"secondary",children:new Date(N.expires_at).toLocaleDateString()})]})]})}),(0,f.jsxs)("div",{className:"team-invite-actions",children:[(0,f.jsx)(d.Ay,{type:"primary",size:"large",icon:(0,f.jsx)(h.A,{}),loading:z,onClick:()=>{O(!0),fetch("".concat(L,"/team/invite/").concat(t,"/accept"),{method:"POST",headers:{"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{if(O(!1),"Invitation accepted"===e.message){var t;if(null!==(t=e.data)&&void 0!==t&&t.token){localStorage.setItem("token",e.data.token);const t=(0,x.s)(e.data.token),a=(0,n.A)((0,n.A)({},t.default_page||{}),{},{user_id:t.user_id,name:t.name,emailid:t.emailid,workspace_id:t.workspace_id,workspace_role:t.workspace_role});localStorage.setItem("userData",JSON.stringify(a))}e.workspace_id&&localStorage.setItem("current_workspace_id",e.workspace_id),T("accepted")}else c.error(e.message||"Failed to accept invitation")})).catch((()=>{O(!1),c.error("Something went wrong. Please try again.")}))},children:"Accept Invitation"}),(0,f.jsx)(d.Ay,{danger:!0,size:"large",icon:(0,f.jsx)(g.A,{}),loading:E,onClick:()=>{I(!0),fetch("".concat(L,"/team/invite/").concat(t,"/decline"),{method:"POST",headers:{"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{I(!1),"Invitation declined"===e.message?T("declined"):c.error(e.message||"Failed to decline invitation")})).catch((()=>{I(!1),c.error("Something went wrong. Please try again.")}))},children:"Decline"})]})]})]})}},46237:(e,t,a)=>{a.d(t,{A:()=>
1o});var n=a(58168),i=a(65043);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"};var c=a(22172),l=function(e,t){return i.createElement(c.A,(0,n.A)({},e,{ref:t,icon:s}))};const o=i.forwardRef(l)},89967:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(58168),i=a(65043);const s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};var c=a(22172),l=function(e,t){return i.createElement(c.A,(0,n.A)({},e,{ref:t,icon:s}))};const o=i.forwardRef(l)},38818:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(58168),i=a(65043);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};var c=a(22172),l=function(e,t){return i.createElement(c.A,(0,n.A)({},e,{ref:t,icon:s}))};const o=i.forwardRef(l)},15315:(e,t,a)=>{function n(e){return["small","middle","large"].includes(e)}function i(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}a.d(t,{X:()=>n,m:()=>i})},10898:(e,t,a)=>{a.d(t,{A:()=>g});var n=a(65043),i=a(98139),s=a.n(i),c=a(62149),l=a(15315),o=a(35296),r=a(45132);const d=n.createContext({latestIndex:0}),m=d.Provider,v=e=>{let{className:t,index:a,children:i,split:s,style:c}=e;const{latestIndex:l}=n.useContext(d);return null===i||void 0===i?null:n.createElement(n.Fragment,null,n.createElement("div",{className:t,style:c},i),a<l&&s&&n.createElement("span",{className:"".concat(t,"-split")},s))};var u=a(78309),p=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]])}return a};const h=n.forwardRef(((e,t)=>{var a;const{getPrefixCls:i,direction:r,size:d,className:h,style:g,classNames:x,styles:y}=(0,o.TP)("space"),{size:f=(null!==d&&void 0!==d?d:"small"),align:j,className:A,rootClassName:w,children:k,direction:b="horizontal",prefixCls:N,split:C,style:_,wrap:S=!1,classNames:z,styles:O}=e,E=p(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[I,P]=Array.isArray(f)?f:[f,f],T=(0,l.X)(P),L=(0,l.X)(I),M=(0,l.m)(P),D=(0,l.m)(I),G=(0,c.A)(k,{keepEmpty:!0}),R=void 0===j&&"horizontal"===b?"center":j,Y=i("space",N),[F,B,X]=(0,u.A)(Y),J=s()(Y,h,B,"".concat(Y,"-").concat(b),{["".concat(Y,"-rtl")]:"rtl"===r,["".concat(Y,"-align-").concat(R)]:R,["".concat(Y,"-gap-row-").concat(P)]:T,["".concat(Y,"-gap-col-").concat(I
1)]:L},A,w,X),U=s()("".concat(Y,"-item"),null!==(a=null===z||void 0===z?void 0:z.item)&&void 0!==a?a:x.item);let W=0;const H=G.map(((e,t)=>{var a;null!==e&&void 0!==e&&(W=t);const i=(null===e||void 0===e?void 0:e.key)||"".concat(U,"-").concat(t);return n.createElement(v,{className:U,key:i,index:t,split:C,style:null!==(a=null===O||void 0===O?void 0:O.item)&&void 0!==a?a:y.item},e)})),V=n.useMemo((()=>({latestIndex:W})),[W]);if(0===G.length)return null;const Z={};return S&&(Z.flexWrap="wrap"),!L&&D&&(Z.columnGap=I),!T&&M&&(Z.rowGap=P),F(n.createElement("div",Object.assign({ref:t,className:J,style:Object.assign(Object.assign(Object.assign({},Z),g),_)},E),n.createElement(m,{value:V},H)))}));h.Compact=r.Ay;const g=h}}]);
2//# sourceMappingURL=2090.7f5f0156.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.