PageSourceSearch

https://dsmla.com/_next/static/chunks/pages/admin/banner/[id]/view-bff815c28998e078.js

js dsmla.com collected 2026-10-08 20:36:19 UTC 5,277 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2699],{3959:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/banner/[id]/view",function(){return s(9060)}])},4230:function(e,a,s){"use strict";s.d(a,{Z:function(){return Layout}});var n=s(5893);s(7294);var Dashboard_Footer=function(){let e=new Date().getFullYear();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("footer",{className:"sticky-footer bg-white",children:(0,n.jsx)("div",{className:"container my-auto",children:(0,n.jsx)("div",{className:"copyright text-center my-auto",children:(0,n.jsxs)("span",{children:["Copyright \xa9 Security Camera ",e," "]})})})})})},r=s(1397),l=s(1664),t=s.n(l),Dashboard_Header=function(){let{user:e,logout:a}=(0,r.E)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("nav",{style:{background:"#212F3D"},className:"navbar navbar-expand navbar-light text-light topbar mb-4 static-top shadow",children:[(0,n.jsx)("button",{id:"sidebarToggleTop",className:"btn btn-link d-md-none rounded-circle mr-3",children:(0,n.jsx)("i",{className:"fa fa-bars"})}),(0,n.jsx)("ul",{className:"navbar-nav ml-auto",children:(0,n.jsxs)("li",{className:"nav-item dropdown no-arrow",children:[(0,n.jsxs)("a",{className:"nav-link dropdown-toggle",href:"#",id:"userDropdown",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[(0,n.jsx)("span",{style:{fontWeight:900},className:"mr-2 d-none d-lg-inline text-light fw-bold small",children:"Digital Surveillance"}),(0,n.jsx)("img",{className:"img-profile rounded-circle",src:"/assets/img/logo-dsmla.png",alt:""})]}),(0,n.jsxs)("div",{className:"dropdown-menu dropdown-menu-right shadow animated--grow-in","aria-labelledby":"userDropdown",children:[(0,n.jsxs)(t(),{className:"dropdown-item",href:"/admin/activitylogs/".concat(null==e?void 0:e.UserId),children:[(0,n.jsx)("i",{className:"fas fa-list fa-sm fa-fw mr-2 text-gray-400"}),"Activity Log"]}),(0,n.jsx)("div",{className:"dropdown-divider"}),(0,n.jsxs)("button",{className:"dropdown-item",onClick:a,children:[(0,n.jsx)("i",{className:"fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"}),"Logout"]})]})]})})]})})};function Layout(e){let{children:a}=e;return(0,n.jsxs)("div",{id:"content-wrapper",className:"d-flex flex-column",children:[(0,n.jsxs)("div",{id:"content",children:[(0,n.jsx)(Dashboard_Header,{}),a]}),(0,n.jsx)(Dashboard_Footer,{})]})}},5491:function(e,a,s){"use strict";s.d(a,{g:function(){return r}});var n=s(5893);let r={getStatus:e=>(0,n.jsx)("span",{className:"badge badge-pill ".concat("1"==e.StatusId?"badge-primary":"badge-danger"),children:e.StatusName})}},9060:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return AddViewBanner}});var n=s(5893),r=s(4230),l=s(9250),t=s(5491),i=s(381),c=s.n(i),d=s(1163),o=s(7294),banner_BannerView=function(e){let{Edit:a,CurrentData:s}=e,{back:r}=(0,d.useRouter)(),[l,i]=(0,o.useState)(!1);return(0,n.jsxs)("div",{className:"container-fluid",children:[(0,n.jsxs)("div",{className:"card shadow mb-4",children:[(0,n.jsx)("div",{className:"card-header py-3",children:(0,n.jsxs)("h6",{className:"m-0 font-weight-bold text-dark",style:{fontSize:15},children:[(0,n.jsx)("i",{className:"fa fa-eye"})," View Banner Details "]})}),(0,n.jsx)("div",{className:"card-body",children:(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("div",{className:"col-md-4 col-lg-4 col-xs-12 col-sm-12",children:(0,n.jsx)("img",{src:"/api/images?imageName=".concat(s.Image),style:{width:"100%"}})}),(0,n.jsx)("div",{className:"col-md-8 col-lg-8 col-xs-12 col-sm-12",children:(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("div",{className:"col-md-12 col-lg-12 col-xs-12 col-sm-12",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("b",{children:"Banner Name:"})," ",s.BannerName," "]})}),(0,n.jsx)("div",{className:"col-md-12 col-lg-12 col-xs-12 col-sm-12",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("b",{children:"Banner Link :"})," ",(0,n.jsxs)("a",{style:{textDecoration:"underline"},href:s.BannerLink,target:"_blank",children:[" ",s.BannerLink]})]})}),(0,n.jsx)("div",{className:"col-md-12 col-lg-12 col-xs-12 col-sm-12",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("b",{children:"Status :"})," ",t.g.getStatus(s)," "]})}),(0,n.jsx)("div",{className:"col-md-12 col-lg-12 col-xs-12 col-sm-12",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("b",{children:"Created At :"})," ",c()(s.CreatedAt).format("MMMM Do YYYY, h:mm:ss a")," "]})}),(0,n.jsx)("div",{className:"col-md-12 col-lg-12 col-xs-12 col-sm-12",children:s.UpdatedAt&&(0,n.jsxs)("p",{children:[(0,n.jsx)("b",{children:"Updated At:"})," ",c()(s.UpdatedAt).format("MMMM Do YYYY, h:mm:ss a")]})})]})})]})})]}),(0,n.jsx)("div",{className:"text-right mb-4",children:(0,n.jsxs)("button",{className:"btn btn-sm btn-primary",onClick:r,children:[(0,n.jsx)("i",{className:"fa fa-arrow-left"})," Back"]})})]})};
1function AddViewBanner(){let[e,a]=o.useState({}),{query:{id:s}}=(0,d.useRouter)();o.useEffect(()=>{getBanner()},[]);let getBanner=async()=>{try{let e=await (0,l.nG)({BannerId:s});a(e.data[0])}catch(e){console.log(e)}};return(0,n.jsx)(banner_BannerView,{Edit:!0,CurrentData:e})}AddViewBanner.getLayout=e=>(0,n.jsx)(r.Z,{children:e})}},function(e){e.O(0,[4885,9250,9774,2888,179],function(){return e(e.s=3959)}),_N_E=e.O()}]);

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.