PageSourceSearch

https://studio.mydid.com/js/ba-instagram.b0529ce0.js

js mydid.com collected 2026-09-24 11:42:44 UTC 6,412 bytes, 2 lines download raw bytes

1"use strict";(globalThis["webpackChunkissuer_platform"]=globalThis["webpackChunkissuer_platform"]||[]).push([[79],{70825(e,t,r){r.r(t),r.d(t,{default:()=>E});var a=r(20641),n=r(90033);const o={class:"relative flex-1 flex flex-col overflow-hidden"},s={key:0,class:"absolute top-3 right-4 z-20"},i=["title"],l=(0,a.Lk)("i",{class:"fas fa-rotate-right text-xs"},null,-1),c={key:1,class:"flex items-center gap-2 bg-white dark:bg-slate-800 border border-red-300 dark:border-red-700 rounded-lg px-3 py-1.5 shadow-md"},u={class:"text-xs text-red-600 dark:text-red-400 font-medium whitespace-nowrap"},d=["disabled"],p={key:0,class:"fas fa-spinner fa-spin"},g={key:1},m=["disabled"],b={key:3,class:"flex-1 overflow-y-auto bg-background-light dark:bg-background-dark p-8 scroll-smooth relative flex items-center justify-center"},f={class:"text-center"},y={class:"text-slate-500 dark:text-slate-400"};function h(e,t,r,h,v,k){const A=(0,a.g2)("BaseSocialAnalyzer"),S=(0,a.g2)("BrightDataAccountSetup");return(0,a.uX)(),(0,a.CE)("div",o,["DASHBOARD"===r.sectionUiState&&h.isDev?((0,a.uX)(),(0,a.CE)("div",s,[h.resetConfirming?((0,a.uX)(),(0,a.CE)("div",c,[(0,a.Lk)("span",u,(0,n.v_)(e.$t("brandAnalyzer.brightDataSetup.devDeleteAllQuestion",{platform:e.$t("brandAnalyzer.brightDataSetup.platformInstagram")})),1),(0,a.Lk)("button",{class:"px-2 py-0.5 rounded bg-red-600 hover:bg-red-700 text-white text-xs font-semibold transition-colors disabled:opacity-60",disabled:h.resetting,onClick:t[1]||(t[1]=(...e)=>h.doReset&&h.doReset(...e))},[h.resetting?((0,a.uX)(),(0,a.CE)("i",p)):((0,a.uX)(),(0,a.CE)("span",g,(0,n.v_)(e.$t("brandAnalyzer.brightDataSetup.resetConfirmButton")),1))],8,d),(0,a.Lk)("button",{class:"px-2 py-0.5 rounded text-slate-500 hover:text-slate-700 dark:hover:text-slate-300 text-xs transition-colors",disabled:h.resetting,onClick:t[2]||(t[2]=e=>h.resetConfirming=!1)},(0,n.v_)(e.$t("brandAnalyzer.common.cancel")),9,m)])):((0,a.uX)(),(0,a.CE)("button",{key:0,class:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium text-slate-500 dark:text-slate-400 hover:text-red-600 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 border border-transparent hover:border-red-200 dark:hover:border-red-800 transition-all",title:e.$t("brandAnalyzer.brightDataSetup.devRelaunchTitle",{platform:e.$t("brandAnalyzer.brightDataSetup.platformInstagram")}),onClick:t[0]||(t[0]=e=>h.resetConfirming=!0)},[l,(0,a.eW)(" "+(0,n.v_)(e.$t("brandAnalyzer.brightDataSetup.devRelaunchLabel")),1)],8,i))])):(0,a.Q3)("",!0),"DASHBOARD"===r.sectionUiState&&r.accountData.account?((0,a.uX)(),(0,a.Wv)(A,{key:`instagram-${r.accountData.account}-${h.analyzerKey}`,"platform-id":"instagram","icon-class":"fab fa-instagram","icon-gradient":"bg-gradient-to-br from-pink-500 to-purple-600","platform-name":"Instagram","profile-url":h.profileUrl,"profile-url-base":"https://www.instagram.com/",username:r.accountData.account,"section-ui-state":r.sectionUiState,"is-upgrade-locked":r.isUpgradeLocked,onProfileMeta:t[3]||(t[3]=t=>e.$emit("profile-meta",t))},null,8,["profile-url","username","section-ui-state","is-upgrade-locked"])):["ANALYZING","SETUP_REQUIRED","ERROR"].includes(r.sectionUiState)?((0,a.uX)(),(0,a.Wv)(S,{key:2,"platform-id":"instagram","platform-name":"Instagram","platform-icon":"fab fa-instagram","platform-color":"#E1306C","is-upgrade-locked":r.isUpgradeLocked,"is-resuming-analysis":"ANALYZING"===r.sectionUiState||"ERROR"===r.sectionUiState,"has-error":"ERROR"===r.sectionUiState,"error-message":h.errorDisplayMessage,"error-severity":h.errorSeverity,"previous-account":r.accountData.account,"current-jobs":r.currentJobs,"input-label":e.$t("brandAnalyzer.brightDataSetup.instagramInputLabel"),"input-placeholder":e.$t("brandAnalyzer.brightDataSetup.instagramInputPlaceholder"),"input-hint":e.$t("brandAnalyzer.brightDataSetup.instagramInputHint"),onSetupComplete:t[4]||(t[4]=t=>e.$emit("setup-complete",t)),onResetComplete:t[5]||(t[5]=t=>e.$emit("reset-complete",t))},null,8,["is-upgrade-locked","is-resuming-analysis","has-error","error-message","error-severity","previous-account","current-jobs","input-label","input-placeholder","input-hint"])):((0,a.uX)(),(0,a.CE)("div",b,[(0,a.Lk)("div",f,[(0,a.Lk)("p",y,(0,n.v_)(e.$t("brandAnalyzer.brightDataSetup.unknownState")),1)])]))])}var v=r(50953),k=r(46992),A=r(11874),S=r(85041);const D={name:"InstagramAnalyzer",components:{BaseSocialAnalyzer:A.A,BrightDataAccountSetup:S.A},props:{sectionUiState:{type:String,required:!0,validator:e=>["DASHBOARD","ANALYZING","SETUP_REQUIRED","ERROR"].includes(e)},accountData:{type:Object,required:!0,default:()=>({configured:!1,hasData:!1,account:null,batchId:null,batchStatus:null})},currentJobs:{type:Array,default:()=>[]},isUpgradeLocked:{type:Boolean,default:!1}},emits:["setup-complete","reset-complete","resetComplete","profile-meta"],setup(e,{emit:t}){const{t:r}=(0,k.s9)(),n=(0,a.WQ)("analyzerApi"),o=(0,v.KR)(0),s=(0,v.KR)(!1),i=(0,v.KR)(!1),l="production"!==String("production"),c=(0,a.EW)(()=>{const t=e.accountData?.account;if(!t)return"#";if("string"===typeof t&&t.includes("instagram.com"))return t;const r=t.startsWith("@")?t.slice(1):t;return`https://www.instagram.com/${encodeURIComponent(r)}/`}),u=(0,a.EW)(()=>{const t=Array.isArray(e.currentJobs)?e.currentJobs:[];return t.find(e=>"instagram"===String(e?.network||"").toLowerCase())||null}),d=(0,a.EW)(()=>u.value?.progress?.error),p=(0,a.EW)(()=>
1{if("ERROR"!==e.sectionUiState)return"";const t=d.value,a=r("brandAnalyzer.brightDataSetup.parentErrorWithAccount",{account:e.accountData.account||r("brandAnalyzer.brightDataSetup.thisAccount")}),n=r("brandAnalyzer.brightDataSetup.parentErrorGeneric");if(null==t)return n;if("string"===typeof t)return t.trim()||n;const o=t.userMessage||t.message;return"string"===typeof o&&o.trim()?o.trim():a}),g=(0,a.EW)(()=>{const e=d.value;return e&&"object"===typeof e&&"warning"===e.severity?"warning":"error"}),m=async()=>{if(!i.value){i.value=!0;try{await n.resetBrightDataPlatform("instagram"),s.value=!1,t("reset-complete","instagram")}catch(e){console.error("[INSTAGRAM-RESET]",e),alert(r("brandAnalyzer.brightDataSetup.devResetError"))}finally{i.value=!1}}};return{analyzerKey:o,profileUrl:c,errorDisplayMessage:p,errorSeverity:g,resetConfirming:s,resetting:i,doReset:m,isDev:l}}};var R=r(66262);const x=(0,R.A)(D,[["render",h]]),E=x}}]);
2//# sourceMappingURL=ba-instagram.b0529ce0.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.