PageSourceSearch

https://technomancer.biz/build/assets/FacebookPageDialog.1d3ed5f5.js

js technomancer.biz collected 2026-10-09 22:43:12 UTC 2,558 bytes, 1 lines download raw bytes

1import{bf as x,bF as C,I as $,E as m,L as M,c as N,w as P,ay as n,o as c,a as o,b as u,f as g,t as j,s as w}from"./app.0910bc5f.js";import{s as f}from"./focustrap.esm.fa167002.js";import{s as D}from"./dialog.esm.768e2748.js";import{s as E}from"./progressspinner.esm.af967411.js";import"./ripple.esm.4dd86dd7.js";import"./index.esm.71f75d81.js";import"./portal.esm.e7473283.js";const F={class:"w-100 d-flex justify-content-between align-items-center"},L={key:0,class:"d-flex flex-column align-items-center"},S=["src"],V={class:"text-center"},A={key:1},I={key:2},U={class:"w-100 d-flex justify-content-center"},Q={__name:"FacebookPageDialog",props:x({userToken:String},{visible:{},visibleModifiers:{}}),emits:x(["close"],["update:visible"]),setup(b,{emit:h}){const d=b,k=C(b,"visible"),T=h,_=$(),v=m(!1),a=m({}),r=m({}),p=async(l=null)=>{var e,t,s;v.value=!0;try{const i=l?{paging_param:l,paging_cursor:(e=r.value.cursors)==null?void 0:e[l]}:{},y=await w.get(route("api.facebook.accounts.show",{user_token:d.userToken,...i}));a.value=(t=y.data.data[0])!=null?t:null,r.value=(s=y.data.paging)!=null?s:null}catch(i){console.error(i)}v.value=!1};M(()=>d.userToken,()=>p(),{once:!0});const B=async()=>{var l,e,t;try{const s=await w.post(route("api.facebook.token.store"),{user_token:d.userToken,page_token:a.value.access_token,page_id:a.value.id,page_name:a.value.name,page_image_url:a.value.picture.data.url});_.add({summary:s.data.message,severity:"success",life:5e3}),T("close")}catch(s){console.error(s),_.add({summary:(t=(e=(l=s.response)==null?void 0:l.data)==null?void 0:e.message)!=null?t:s.message,severity:"error",life:5e3})}};return(l,e)=>(c(),N(n(D),{visible:k.value,"onUpdate:visible":e[2]||(e[2]=t=>k.value=t),class:"facebook-dialog"},{default:P(()=>{var t,s;return[o("div",F,[o("div",null,[u(n(f),{class:"rounded-pill me-2",icon:"pi pi-angle-left",disabled:!r.value.previous,onClick:e[0]||(e[0]=i=>p("before"))},null,8,["disabled"])]),a.value.name?(c(),g("div",L,[o("img",{src:(s=(t=a.value.picture)==null?void 0:t.data)==null?void 0:s.url},null,8,S),o("h5",V,j(a.value.name),1)])):a.value?(c(),g("div",A,[u(n(E))])):(c(),g("div",I,e[3]||(e[3]=[o("h5",null,"No pages available.",-1)]))),o("div",null,[u(n(f),{class:"rounded-pill ms-2",icon:"pi pi-angle-right",disabled:!r.value.next,onClick:e[1]||(e[1]=i=>p("after"))},null,8,["disabled"])])]),o("div",U,[o("div",null,[u(n(f),{class:"rounded-pill",label:"Link Page",loading:v.value,disabled:!a.value.name,onClick:B},null,8,["loading","disabled"])])])]}),_:1},8,["visible"]))}};export{Q as default};

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.