PageSourceSearch

https://webassets.cafebazaar.ir/bundles/-oFWav77.js

js cafebazaar.ir collected 2026-09-24 15:17:11 UTC 1,959 bytes, 1 lines download raw bytes

1import{a7 as b,a as y,n as g,$ as h,c as p,p as w}from"./BcZZBfx9.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a0220b19-09be-4b96-bc2b-84620a60acfd",e._sentryDebugIdIdentifier="sentry-dbid-a0220b19-09be-4b96-bc2b-84620a60acfd")}catch{}function T(e,r=300){let t={};const c=async(...n)=>{const a=JSON.stringify(n);if(t[a]){const{cachedTime:o,data:i,onFly:l}=t[a];if(!(Date.now()-o>r*1e3))return i||l}t[a]={onFly:e(...n),cachedTime:Date.now()};try{const o=await t[a].onFly;return t[a].data=o,delete t[a].onFly,o}catch(o){throw delete t[a],o}};return c.clearCache=n=>{if(n!==void 0){const a=JSON.stringify(n);delete t[a]}else t={}},c}const S="https://seoul.cafebazaar.org/api/v2",m=(e,r="fa")=>{let t=e.replace(/^\/|\/$/g,"")||"/";return`${S}/pagemeta?slug=${t}&l=${r}`};function D(e,r){const t=m(e,r);return b.get(t,{timeout:2e3}).then(c=>{var n;return((n=c==null?void 0:c.data)==null?void 0:n.data)||null}).catch(c=>null)}const $=T(D);function v(e,r){const t=e==="/"?"/":e.replace(/^\/|\/$/,"");return $(t,r)}function E({result:e,tabs:r,path:t}){var n,a,o,i,l;let c=((a=(n=e==null?void 0:e.data)==null?void 0:n.catData)==null?void 0:a.type)??((l=(i=(o=e==null?void 0:e.data)==null?void 0:o.meta)==null?void 0:i.category)==null?void 0:l.type);if(!c){const s=(w(t)||"").replace(/\?.+/g,"");Object.keys(r).forEach(d=>{const{subTabs:f}=r[d];f.forEach(({path:u})=>{u===s&&(c=d)})})}return c||"none"}function x(e,{seol:r=!1}={}){return async function(t){var c;try{const n=y();let a=null;if(r&&(a=await v(n.path,(c=n.query)==null?void 0:c.l)),a!=null&&a.redirect_url)throw g(a.redirect_url,{redirectCode:301,external:!0});const o=await e.call(this,t);if(!o)return o;o.meta=a||{};{const{tabs:i,setActiveTab:l}=h(),s=E({result:o,tabs:i,path:n.fullPath});l(s)}return o}catch(n){throw p(n)}}}export{x as a};

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.