PageSourceSearch

https://www.sheetandbookstore.com/_nuxt/DJAQUd2C.js

js sheetandbookstore.com collected 2026-10-07 23:20:47 UTC 2,456 bytes, 1 lines download raw bytes

1import{_ as B}from"./5oHYMwXE.js";import{d as F,s as U,u as H,y as O,ar as z,C as g,K as I,L as x,o as p,g as b,f as m,e as W,F as $,h as E,t as L,k as M,aN as N,n as A,M as V,D as j}from"#entry";import{a as D}from"./CrbaH3J_.js";const P=["title","src"],T={key:0},J=F({__name:"FacebookPage",props:{page:{},tabs:{default:()=>["timeline"]},isHideCover:{type:Boolean,default:!1},isShowFacepile:{type:Boolean,default:!0},isUseSmallHeader:{type:Boolean,default:!1},isUseAdaptContainerWidth:{type:Boolean,default:!0},effects:{}},setup(c){const t=c,{web:w}=U(H()),{t:S}=O(),k=z(),h=V(null),f=j("");let o=0,i=0,d=!1,u=null,n=null;const y=(s,a)=>{if(!t.page)return"";let e=t.page.trim();e.startsWith("http")||(e=e.replace(/^\/+/,""),e=`https://www.facebook.com/${e}`);const r=new URLSearchParams({href:e,tabs:t.tabs.join(","),hide_cover:String(t.isHideCover),show_facepile:String(t.isShowFacepile),small_header:String(t.isUseSmallHeader),adapt_container_width:String(t.isUseAdaptContainerWidth)});return s&&r.set("width",String(s)),a&&r.set("height",String(a)),`https://www.facebook.com/plugins/page.php?${r.toString()}`},l=()=>{const s=h.value;if(!s)return;const a=s.getBoundingClientRect(),e=Math.round(a.width),r=Math.round(a.height);if(!e||!r){f.value="",o=0,i=0;return}d&&(e===o&&r===i||(o=e,i=r,f.value=y(e,r)))},v=()=>{u?.disconnect(),u=null,n?.disconnect(),n=null};g(h,s=>{if(v(),f.value="",o=0,i=0,d=!1,!!s){if(typeof ResizeObserver<"u"&&(u=new ResizeObserver(l),u.observe(s)),typeof IntersectionObserver>"u"){d=!0,l();return}n=new IntersectionObserver(a=>{a.some(e=>e.isIntersecting||e.intersectionRatio>0)&&(d=!0,n?.disconnect(),n=null,l())},{root:null,rootMargin:"200px 0px",threshold:.01}),n.observe(s)}},{flush:"post"}),g(k.breakpoint,()=>{I(l)}),g(()=>[t.page,t.tabs.join(","),t.isHideCover,t.isShowFacepile,t.isUseSmallHeader,t.isUseAdaptContainerWidth],()=>{o=0,i=0,l()},{flush:"post"}),x(v);const{elementRef:_,effectClassName:C,effectInlineStyle:R}=D(()=>t);return(s,a)=>{const e=B;return p(),b("div",{class:A(["widget-facebook-page",m(C)]),ref_key:"elementRef",ref:_,style:N(m(R))},[m(w)?(p(),b($,{key:1},[E("iframe",{ref_key:"iframeRef",ref:h,class:"iframe-facebook-page",title:c.page?.trim()?`Facebook: ${c.page.trim()}`:"Facebook",frameborder:"0",scrolling:"no",loading:"lazy",src:f.value||void 0},null,8,P),c.page?M("",!0):(p(),b("div",T,L(m(S)("ไม่พบเพจ Facebook")),1))],64)):(p(),W(e,{key:0}))],6)}}});
1export{J 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.