PageSourceSearch

https://bdadevs.com/_next/static/chunks/3582-0c93f2aaccf43681.js

js bdadevs.com collected 2026-10-02 01:24:21 UTC 8,400 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3582],{10673:(e,t,r)=>{r.d(t,{R:()=>i});var a=r(52707),s=r(62397),o=r(95053);let n=a.A.create({withCredentials:!0}),l=null;function i(){return l||(l=(async()=>{try{let e=await n.post(s.J$.refresh,null),t=e?.data?.access??e?.data?.access_token;if("string"==typeof t&&t)return o.L.setAccess(t),t;return o.L.clear(),null}catch{return o.L.clear(),null}finally{l=null}})())}},25856:(e,t,r)=>{r.d(t,{$:()=>c});var a=r(95155),s=r(36469),o=r(6267),n=r(71707),l=r(12115);let i=(0,o.F)("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 hover:scale-105",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-background/80 hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",login:"bg-primary text-primary-foreground rounded-full px-6 hover:bg-primary/90 hover:scale-105 shadow-lg shadow-primary/25",nav:"text-foreground/80 hover:text-foreground font-medium tracking-wide uppercase text-xs"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=(0,l.forwardRef)(({className:e,variant:t,size:r,asChild:o=!1,isLoading:l=!1,children:c,...d},u)=>{let f=o?s.DX:"button",m=d.disabled??l;return(0,a.jsxs)(f,{className:(0,n.cn)(i({variant:t,size:r}),e),ref:u,disabled:m,"aria-busy":l,...d,children:[l&&(0,a.jsxs)("svg",{className:"animate-spin h-4 w-4 mr-2",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),c]})});c.displayName="Button"},53792:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(52707),s=r(29094),o=r(62397),n=r(95053),l=r(10673);let i=a.A.create({baseURL:o._x,withCredentials:!0,headers:{"Content-Type":"application/json"}}),c=e=>!!e&&o.Bo.some(t=>e.includes(t)),d=()=>{window.location.href=o.S0};i.interceptors.request.use(async e=>{if(c(e.url))return e;let t=n.L.getAccess();return!t&&n.L.hasSession()&&(t=await (0,l.R)()),t&&(e.headers.Authorization=`${o.NK} ${t}`),e},e=>Promise.reject(e)),i.interceptors.response.use(e=>e,async e=>{let t=e.config,r=e.response?.status;if(401===r&&t&&!t._retry&&!c(t.url)){t._retry=!0;let r=await (0,l.R)();return r?(t.headers.Authorization=`${o.NK} ${r}`,i.request(t)):(d(),Promise.reject(e))}return 403===r&&(s.oR.error("Forbidden! You don't have permission to access this resource."),n.L.clear(),d()),Promise.reject(e)});let u=i},62397:(e,t,r)=>{r.d(t,{Bo:()=>o,J$:()=>s,Lq:()=>c,NK:()=>n,S0:()=>l,_x:()=>a,eT:()=>i,hM:()=>d});let a="/bff",s={login:`${a}/api-token/`,refresh:`${a}/api-token-refresh/`,logout:`${a}/api-token-logout/`},o=["/api-token/","/api-token-refresh/"],n="JWT",l="/blogs-login",i="app_session",c="bbi-permission",d="username"},71707:(e,t,r)=>{r.d(t,{cn:()=>o});var a=r(89279),s=r(71563);function o(...e){return(0,s.QP)((0,a.$)(e))}},72907:(e,t,r)=>{r.d(t,{l:()=>v});var a=r(95155),s=r(25856),o=r(19749),n=r(84393),l=r(58079),i=r(71707),c=r(12115);let d=n.bL,u=n.ZL,f=n.bm,m=(0,c.forwardRef)((e,t)=>{let r,s,l,c,d=(0,o.c)(9);return d[0]!==e?({className:r,...s}=e,d[0]=e,d[1]=r,d[2]=s):(r=d[1],s=d[2]),d[3]!==r?(l=(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),d[3]=r,d[4]=l):l=d[4],d[5]!==s||d[6]!==t||d[7]!==l?(c=(0,a.jsx)(n.hJ,{ref:t,className:l,...s}),d[5]=s,d[6]=t,d[7]=l,d[8]=c):c=d[8],c});m.displayName=n.hJ.displayName;let p=(0,c.forwardRef)((e,t)=>{let r,s,c,d,p,g,h,x=(0,o.c)(13);return x[0]!==e?({className:s,children:r,...c}=e,x[0]=e,x[1]=r,x[2]=s,x[3]=c):(r=x[1],s=x[2],c=x[3]),x[4]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(m,{}),x[4]=d):d=x[4],x[5]!==s?(p=(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
1nded-lg",s),x[5]=s,x[6]=p):p=x[6],x[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsxs)(f,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,a.jsx)(l.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]}),x[7]=g):g=x[7],x[8]!==r||x[9]!==c||x[10]!==t||x[11]!==p?(h=(0,a.jsxs)(u,{children:[d,(0,a.jsxs)(n.UC,{ref:t,className:p,...c,children:[r,g]})]}),x[8]=r,x[9]=c,x[10]=t,x[11]=p,x[12]=h):h=x[12],h});p.displayName=n.UC.displayName;let g=e=>{let t,r,s,n,l=(0,o.c)(8);return l[0]!==e?({className:t,...r}=e,l[0]=e,l[1]=t,l[2]=r):(t=l[1],r=l[2]),l[3]!==t?(s=(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),l[3]=t,l[4]=s):s=l[4],l[5]!==r||l[6]!==s?(n=(0,a.jsx)("div",{className:s,...r}),l[5]=r,l[6]=s,l[7]=n):n=l[7],n};g.displayName="DialogHeader";let h=e=>{let t,r,s,n,l=(0,o.c)(8);return l[0]!==e?({className:t,...r}=e,l[0]=e,l[1]=t,l[2]=r):(t=l[1],r=l[2]),l[3]!==t?(s=(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end gap-2 sm:space-x-2",t),l[3]=t,l[4]=s):s=l[4],l[5]!==r||l[6]!==s?(n=(0,a.jsx)("div",{className:s,...r}),l[5]=r,l[6]=s,l[7]=n):n=l[7],n};h.displayName="DialogFooter";let x=(0,c.forwardRef)((e,t)=>{let r,s,l,c,d=(0,o.c)(9);return d[0]!==e?({className:r,...s}=e,d[0]=e,d[1]=r,d[2]=s):(r=d[1],s=d[2]),d[3]!==r?(l=(0,i.cn)("text-lg font-semibold leading-none tracking-tight",r),d[3]=r,d[4]=l):l=d[4],d[5]!==s||d[6]!==t||d[7]!==l?(c=(0,a.jsx)(n.hE,{ref:t,className:l,...s}),d[5]=s,d[6]=t,d[7]=l,d[8]=c):c=d[8],c});x.displayName=n.hE.displayName;let y=(0,c.forwardRef)((e,t)=>{let r,s,l,c,d=(0,o.c)(9);return d[0]!==e?({className:r,...s}=e,d[0]=e,d[1]=r,d[2]=s):(r=d[1],s=d[2]),d[3]!==r?(l=(0,i.cn)("text-sm text-gray-700/90",r),d[3]=r,d[4]=l):l=d[4],d[5]!==s||d[6]!==t||d[7]!==l?(c=(0,a.jsx)(n.VY,{ref:t,className:l,...s}),d[5]=s,d[6]=t,d[7]=l,d[8]=c):c=d[8],c});y.displayName=n.VY.displayName;var b=r(12669);let v=(e,t)=>new Promise(r=>{let o=document.createElement("div");document.body.appendChild(o);let n=(0,b.createRoot)(o),l=()=>{r(!1),i()},i=()=>{n.unmount(),document.body.removeChild(o)};n.render((0,a.jsx)(d,{open:!0,onOpenChange:e=>!e&&l(),children:(0,a.jsxs)(p,{children:[(0,a.jsxs)(g,{children:[(0,a.jsx)(x,{children:t?.title||"Confirm"}),(0,a.jsx)(y,{children:e})]}),(0,a.jsxs)(h,{children:[(0,a.jsx)(f,{asChild:!0,children:(0,a.jsx)(s.$,{variant:"outline",onClick:l,className:"w-full sm:w-auto",children:t?.cancelText||"Cancel"})}),(0,a.jsx)(s.$,{onClick:()=>{r(!0),i()},className:"w-full sm:w-auto",children:t?.confirmText||"OK"})]})]})}))})},95053:(e,t,r)=>{r.d(t,{L:()=>l});var a=r(62397);let s=null,o=new Set,n=()=>{for(let e of o)try{e()}catch{}},l={subscribe:e=>(o.add(e),()=>o.delete(e)),setAccess(e){s=e;try{localStorage.setItem(a.eT,"1")}catch{}n()},getAccess:()=>s,hasSession(){try{return"1"===localStorage.getItem(a.eT)}catch{return!1}},setUser(e,t){try{localStorage.setItem(a.Lq,JSON.stringify(e)),t&&localStorage.setItem(a.hM,String(t))}catch{}},getUser(){try{let e=localStorage.getItem(a.Lq);return e?JSON.parse(e):null}catch{return null}},clear(){s=null;try{localStorage.removeItem(a.eT),localStorage.removeItem(a.Lq),localStorage.removeItem(a.hM)}catch{}n()}}}}]);

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.