1"use strict";(self.webpackChunkinsta_automate=self.webpackChunkinsta_automate||[]).push([[9442],{25234:(e,n,t)=>{t.d(n,{Mc:()=>r,Q6:()=>l,rp:()=>s,uy:()=>c});var a=t(55472),o=t(52446);const i="connect_links",c="share_link_id",s=6048e5;function r(e){return(0,a.H9)(o.fireDB,i,e)}async function l(e){const n=localStorage.getItem(c);if(n){localStorage.removeItem(c);try{await(0,a.mZ)(r(n),{status:"connected",connected_username:e||null,connected_at:Date.now()})}catch(t){console.warn("share-link status update failed",t)}}}},89442:(e,n,t)=>{t.r(n),t.d(n,{default:()=>g});t(22570);var a=t(65043),o=t(73216),i=t(29169),c=t(40164),s=t(95240),r=t(54420),l=t(55472),d=t(25234),u=t(70579);const g=function(){const{id:e}=(0,o.g)(),[n,t]=(0,a.useState)(null);return(0,a.useEffect)((()=>{if(!e)return;(async()=>{try{const a=await(0,l.x7)((0,d.Mc)(e));if(!a.exists())return void t("This link is invalid or has already been used. Please ask for a new link.");const o=a.data();if("connected"===o.status)return void t("This account is already connected. You can close this page.");if(!o.token||o.created_at&&Date.now()-o.created_at>d.rp)return void t("This link has expired. Please ask for a new link.");localStorage.setItem("token",o.token),sessionStorage.clear();try{localStorage.setItem("userData",JSON.stringify(function(e){var n;let t=(0,r.s)(e),a={};var o;return a=void 0!=(null===t||void 0===t||null===(n=t.default_page)||void 0===n?void 0:n.connected_instagram_account)?null===t||void 0===t||null===(o=t.default_page)||void 0===o?void 0:o.connected_instagram_account:t.default_page||{},a.agency=null===t||void 0===t?void 0:t.agency,a.user_id=null===t||void 0===t?void 0:t.user_id,a.name=null===t||void 0===t?void 0:t.name,a.emailid=null===t||void 0===t?void 0:t.emailid,a.workspace_id=null===t||void 0===t?void 0:t.workspace_id,a.workspace_role=null===t||void 0===t?void 0:t.workspace_role,a}(o.token)))}catch(n){}localStorage.setItem(d.uy,e),window.location.replace(o.show_ig_connect?"/ig-connect?show_ig_connect=true":"/ig-connect")}catch(a){console.error("share-login failed",a),t("Couldn't open this link. Check your internet connection and try again.")}})()}),[e]),(0,u.jsxs)("div",{className:"account-setup",children:[(0,u.jsx)("img",{src:"/logo192.png",alt:"Logo",style:{height:"62px",width:"62px"}}),(0,u.jsx)("div",{style:{maxWidth:"420px",margin:"80px auto 0",textAlign:"center",padding:"0 16px"},children:n?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{style:{fontSize:"42px",margin:"0 0 8px"},children:(0,u.jsx)(s.A,{})}),(0,u.jsx)("p",{children:n})]}):(0,u.jsxs)("p",{children:[(0,u.jsx)(i.A,{indicator:(0,u.jsx)(c.A,{spin:!0}),style:{marginRight:"10px"}}),"Logging you in, please wait\u2026"]})})]})}},40164:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(58168),o=t(65043);const i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var c=t(22172),s=function(e,n){return o.createElement(c.A,(0,a.A)({},e,{ref:n,icon:i}))};const r=o.forwardRef(s)},95240:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(58168),o=t(65043);const i={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 c=t(22172),s=function(e,n){return o.createElement(c.A,(0,a.A)({},e,{ref:n,icon:i}))};const r=o.forwardRef(s)},22570:()=>{}}]); 2//# sourceMappingURL=9442.a06674f4.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.