1import{x as P,bp as Y,r as $,o as J,z as Q,b as X,c as o,d as l,h as p,w as Z,e as t,k as tt,T as et,f as s,H as nt,t as r,g as M,q as st}from"./index-81dbe199.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="4437b1cb-2f71-4438-97a3-a0a357f6735a",a._sentryDebugIdIdentifier="sentry-dbid-4437b1cb-2f71-4438-97a3-a0a357f6735a")}catch{}})();const ot={class:"flex flex-col gap-y-6 2xl:flex-row 2xl:items-start 2xl:gap-x-4 2xl:gap-y-0 lg:pb-10 text-sm"},at={key:0,class:"bg-gradient-to-b from-[#FCE96A] to-[#FFCE5E] p-4 rounded-lg mx-4 md:mx-6 lg:mx-0 lg:max-w-[700px] 2xl:order-last 2xl:max-w-sm 2xl:rounded 2xl:shadow-[0_2px_6px_rgba(0,0,0,.25),0_6px_11px_rgba(0,0,0,.03)]"},lt={class:"flex flex-col gap-[2px]"},it={class:"flex items-center justify-between gap-x-2"},rt={class:"w-full lg:max-w-[700px] 2xl:flex-none"},ct={key:0,class:"w-full"},dt={key:1,class:"bg-white px-4 md:px-6 py-6 lg:p-4 lg:rounded-lg lg:shadow-md w-full text-base"},pt={class:"bg-gray-50 rounded-lg p-4 lg:mx-6 grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-3"},ft={class:"font-normal break-all"},xt={class:"font-normal break-all"},mt={class:"font-normal break-all"},ut={class:"flex items-center gap-2"},gt={class:"font-normal"},j="updateWhatnotBannerDismissed",_t={__name:"ConnectionSettings",setup(a){const n=P(),i=Y(),z=st(),c=$(!0);J(()=>{c.value=localStorage.getItem(j)!=="true"});const G=()=>{c.value=!1,localStorage.setItem(j,"true")};Q(()=>i.connectionAccountInfo),i.fetchConnectionAccount("whatnot");const K=()=>{n.unlinkToChannel("whatnot")},O=()=>{z.push("/connections/whatnot/connect")};return(ht,e)=>{var f,x,m,u,g,h,y,_,w,b,k,v,C,B,T,A,I,D,S,E,N,W,U,F,R,V,q,H,L;const d=X("Icon");return o(),l("section",ot,[p(et,{name:"fade"},{default:Z(()=>[c.value?(o(),l("section",at,[t("div",lt,[t("div",it,[e[0]||(e[0]=t("h3",{class:"flex-1 min-w-0 text-xs font-semibold text-[#C27803] 2xl:uppercase 2xl:tracking-[1px]"}," Update Whatnot Settings ",-1)),t("button",{onClick:G,class:"flex-none"},[p(d,{icon:"heroicons:x-mark",class:"text-base text-[#C27803]"})])]),e[1]||(e[1]=t("p",{class:"text-xs text-[#633112]"}," Go to the Whatnot app to update these settings. Refresh the page to see the latest info. ",-1)),e[2]||(e[2]=t("a",{href:"https://www.collx.app/marketplace-faq",target:"_blank",class:"w-fit text-xs font-bold text-tint-1 transition hover:text-tint-2"}," Learn More ",-1))])])):tt("",!0)]),_:1}),t("div",rt,[s(i).connectionAccountLoader?(o(),l("div",ct,[p(nt)])):(o(),l("section",dt,[e[7]||(e[7]=t("h1",{class:"md:text-lg font-semibold mb-4 lg:ml-6 lg:mt-1"}," Whatnot Settings ",-1)),t("div",pt,[e[3]||(e[3]=t("span",{class:"font-medium text-gray-500"},"Account Email",-1)),t("span",ft,r(((m=(x=(f=s(n).credentialByType("whatnot"))==null?void 0:f.profile)==null?void 0:x.me)==null?void 0:m.email)||((h=(g=(u=s(n).user)==null?void 0:u.whatnot_profile)==null?void 0:g.me)==null?void 0:h.email)||"-"),1),e[4]||(e[4]=t("span",{class:"font-medium text-gray-500"},"Username",-1)),t("span",xt,r(((w=(_=(y=s(n).credentialByType("whatnot"))==null?void 0:y.profile)==null?void 0:_.me)==null?void 0:w.username)||((v=(k=(b=s(n).user)==null?void 0:b.whatnot_profile)==null?void 0:k.me)==null?void 0:v.username)||"-"),1),e[5]||(e[5]=t("span",{class:"font-medium text-gray-500"},"Display Name",-1)),t("span",mt,r(((T=(B=(C=s(n).credentialByType("whatnot"))==null?void 0:C.profile)==null?void 0:B.me)==null?void 0:T.displayName)||((D=(I=(A=s(n).user)==null?void 0:A.whatnot_profile)==null?void 0:I.me)==null?void 0:D.displayName)||"-"),1),e[6]||(e[6]=t("span",{class:"font-medium text-gray-500"},"Access to Auctions",-1)),t("div",ut,[!((S=s(n).credentialByType("whatnot"))!=null&&S.profile)&&!((E=s(n).user)!=null&&E.whatnot_profile)?(o(),M(d,{key:0,icon:"heroicons:x-circle-solid",class:"text-xl flex-none text-red-500"})):(o(),M(d,{key:1,icon:"heroicons:check-circle-solid",class:"text-green-500 text-base"})),t("span",gt,r((F=(U=(W=(N=s(n).credentialByType("whatnot"))==null?void 0:N.profile)==null?void 0:W.me)==null?void 0:U.features)!=null&&F.auctions||(H=(q=(V=(R=s(n).user)==null?void 0:R.whatnot_profile)==null?void 0:V.me)==null?void 0:q.features)!=null&&H.auctions?"Active":"Inactive"),1)]),(L=s(n).user)!=null&&L.whatnot_token?(o(),l("button",{key:0,onClick:K,class:"alternative-button px-4 py-1.5 md:col-span-2 w-fit"}," Disconnect from Whatnot ")):(o(),l("button",{key:1,onClick:O,class:"alternative-button px-4 py-1.5 md:col-span-2 w-fit"}," Authenticate with Whatnot "))])]))])])}}};export{_t as default}; 2//# sourceMappingURL=ConnectionSettings-c8c08b5e.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.