PageSourceSearch

https://agencyvista.com/_next/static/chunks/pages/admin/list-categories/[id]-e660f765c42401a12a33.js

js agencyvista.com collected 2026-09-28 06:30:51 UTC 9,402 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[85],{"+9V0":function(t,e,r){"use strict";r.r(e);var n=r("wx14"),a=r("o0o1"),i=r.n(a),c=r("HaE+"),o=r("1OyB"),s=r("vuIU"),u=r("Ji7U"),l=r("md7G"),f=r("foSv"),p=r("rePB"),d=r("q1tI"),m=r.n(d),b=r("Xdd4"),y=r("su7O"),h=r("NVXk"),g=r("hA7R"),x=r("waF2"),v=r("M7Zw"),O=r("vOnD"),w=r("zDcZ"),j=r("NWfJ"),I=r("t3Un"),_=r("/rfH"),D=r("iqMB"),k=r("nOHt"),C=r.n(k),N=r("4fKW"),P=r.n(N),E=r("gjtA"),S=r("XFC8"),A=m.a.createElement;function W(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(f.a)(t);if(e){var a=Object(f.a)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var R=Object(E.a)("routes/list-categories"),T=Object(O.d)(x.f).withConfig({displayName:"Detail__StyledText",componentId:"sc-1ey345c-0"})(["cursor:pointer;text-decoration:none;"]),X=Object(O.d)("table").withConfig({displayName:"Detail__StyledTable",componentId:"sc-1ey345c-1"})(["width:100%;font-size:",";text-align:left;"],w.e.s),z=Object(O.d)("thead").withConfig({displayName:"Detail__Header",componentId:"sc-1ey345c-2"})(["font-weight:",";"],w.g.bold),H=Object(O.d)("tr").withConfig({displayName:"Detail__Row",componentId:"sc-1ey345c-3"})(["height:50px;"]),J="\n  padding-left: ".concat(w.j.m,";\n  border: solid ").concat(w.a.SOLITUDE,";\n  border-width: 1px 0;\n"),M=Object(O.d)("th").withConfig({displayName:"Detail__HeaderCell",componentId:"sc-1ey345c-4"})(["",";"],J),U=Object(O.d)("td").withConfig({displayName:"Detail__BodyCell",componentId:"sc-1ey345c-5"})(["",";& > *{vertical-align:middle;}"],J),q=function(t){Object(u.a)(r,t);var e=W(r);function r(t){var n;return Object(o.a)(this,r),(n=e.call(this,t)).state={category:n.props.category},n}return Object(s.a)(r,[{key:"componentDidMount",value:function(){var t=Object(c.a)(i.a.mark((function t(){var e,r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(I.a)({path:"alert"});case 2:e=t.sent,r=e.type,n=e.message,r&&P.a[r](n,{timeout:5e3});case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,e=t.user,r=t.lists,a=this.state.category,i=(a=void 0===a?{}:a).list_category_gid,c=a.name,o=[{label:"Name",value:c,type:"text"},{label:"Id",value:i,type:"text"}];return A(y.a,{user:e},A(g.a,{mt:"xl"},A(h.b,{alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},A(h.b,{alignItems:"center"},A(T,{as:"a",href:"/admin/lists",fontWeight:"bold",color:"primary",fontSize:"xl"},"List Categories"),A(x.f,{color:w.a.VIOLET_WHIMSEY,fontSize:"xl"},"\xa0/\xa0"),A(x.f,{fontWeight:"bold",fontSize:"xl"},c)),A(h.b,{justifyContent:"center",alignItems:"center"},A(_.a.Gray,{mr:"s",height:"30px",onClick:function(){C.a.push("/admin/list-categories/".concat(i,"/edit"))}},A(D.a.Edit,null),A(x.f,{fontWeight:"bold",color:"secondaryText",ml:"s",mr:"s"},"Edit")))),A(h.a,{mt:"l"},A(j.a,null,A(h.b,{mt:"m",alignItems:"center"},A(x.f,{fontWeight:"bold",fontSize:"l"},c)),A(h.c,{gridTemplateColumns:["repeat(2, 1fr)","repeat(4, 1fr)"],gridGap:"l",mt:"l"},o.map((function(t){return A(v.a,Object(n.a)({key:t.label},t))}))),A(S.a,{mt:"xl"}),0!==r.length&&A(j.a,{px:0,pb:0},A(h.b,{mt:"l",mb:"m",justifyContent:"space-between"},A(x.f,{fontSize:"xs",fontWeight:"bold"},"Lists")),A(X,null,A(z,null,A(H,null,A(M,null,"ID"),A(M,null,"Name"))),A("tbody",null,r.map((function(t){return A(H,{key:t.id},A(U,null,A(x.f,{as:"a",href:"/admin/lists/".concat(t.id),fonstSize:"xl",color:"primary"},t.id)),A(U,null,A(x.f,{as:"span",fonstSize:"xl"},t.name)))})))))))))}}]),r}(d.Component);Object(p.a)(q,"getInitialProps",function(){var t=Object(c.a)(i.a.mark((function t(e){var r,n,a,c;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.query.id)||"null"===r){t.next=14;break}return t.prev=2,t.next=5,Object(I.a)({context:e,path:"admin/list-categories/".concat(r)});case 5:return n=t.sent,a=n.category,c=n.lists,t.abrupt("return",{category:a,lists:c});case 11:t.prev=11,t.t0=t.catch(2),R.error("unable to retrieve list category",t.t0);case 14:return t.abrupt("return",{});case 15:case"end":return t.stop()}}),t,null,[[2,11]])})));return function(e){return t.apply(this,arguments)}}()),q.defaultProps={user:{},alert:{},category:{},lists:[]};var B=Object(b.a)(q);e.default=B},M7Zw:function(t,e,r){"use strict";
1var n=r("q1tI"),a=r.n(n),i=r("NVXk"),c=r("waF2"),o=r("wd/R"),s=r.n(o),u=r("Ja5T"),l=a.a.createElement,f=function(t){var e=t.label,r=t.value,n=t.type,a=t.dateFormat,o=t.path,f=t.alt,p=t.color;return function(){var t=!0;return r?Array.isArray(r)&&0===r.length&&(t=!1):t=!1,t}()?l(i.a,null,l(c.f,{color:"secondaryText"},e),"text-a"===n&&l(c.f,{mt:"m"},l(c.f,{as:"a",href:o+r,mt:"m",color:"primary"},r)),"text-w"===n&&l(c.f,{mt:"m"},l(c.f,{as:"a",target:"_new",href:r,mt:"m",color:"primary"},r)),"picture"===n?l(u.a,{source:r,alt:f,maxWidth:"75px"}):("text"===n||"textDate"===n)&&l(c.f,{mt:"m",fontWeight:"bold",color:p},"text"===n&&Array.isArray(r)&&r.map((function(t){return t.name})).join(", "),"text"===n&&!Array.isArray(r)&&r,"textDate"===n&&s.a.utc(r).format(a))):null};f.defaultProps={color:"primaryText"},e.a=f},NWfJ:function(t,e,r){"use strict";var n=r("q1tI"),a=r.n(n),i=r("vOnD"),c=r("NVXk"),o=a.a.createElement,s=Object(i.d)(c.a).withConfig({displayName:"Card__StyledBox",componentId:"sc-17g78xb-0"})(["box-shadow:0px 4px 10px rgba(39,40,49,0.03);"]),u=function(t){var e=t.children,r=t.pt,n=t.pb,a=t.px,i=t.className;return o(s,{className:i},o(c.b,{pt:r,pb:n,px:a,bg:"white",flexDirection:"column"},e))};u.defaultProps={pt:"m",pb:"xxl",px:"l"};var l=u,f=r("Ja5T"),p=r("XFC8"),d=r("waF2"),m=a.a.createElement,b=function(t){var e=t.title,r=t.icon,n=t.linkComp,i=t.isDividerHidden;return m(a.a.Fragment,null,m(c.b,{my:"s",justifyContent:"space-between"},m(c.b,{alignItems:"center"},m(f.a,{source:r}),m(d.f,{ml:"l",fontWeight:"bold"},e)),n&&m(c.b,{alignItems:"center"},n)),!i&&m(p.a,{mt:"m"}))};b.defaultProps={isDividerHidden:!1};var y=b;l.Title=y;e.a=l},Xdd4:function(t,e,r){"use strict";var n=r("o0o1"),a=r.n(n),i=r("rePB"),c=r("HaE+"),o=r("1OyB"),s=r("vuIU"),u=r("Ji7U"),l=r("md7G"),f=r("foSv"),p=r("q1tI"),d=r.n(p),m=r("t3Un"),b=r("gjtA"),y=r("nOHt"),h=r.n(y),g=d.a.createElement;function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){Object(i.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function O(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(f.a)(t);if(e){var a=Object(f.a)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var w=Object(b.a)("withAdmin");e.a=function(t){return function(e){Object(u.a)(n,e);var r=O(n);function n(){return Object(o.a)(this,n),r.apply(this,arguments)}return Object(s.a)(n,[{key:"render",value:function(){return this.props.user?this.props.user?g(t,this.props):g("div",null,"Unauthorized"):(h.a.push("/"),null)}}],[{key:"getInitialProps",value:function(){var e=Object(c.a)(a.a.mark((function e(r){var n,i,c,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.req,i=r.res,!n){e.next=5;break}n.user?(w.debug("server side context with user",n.user.id),c=n.user):w.debug("server side context but no user"),e.next=15;break;case 5:return w.debug("client side rendering, where is my user?"),e.prev=6,e.next=9,Object(m.a)({context:r,path:"me"});case 9:c=e.sent,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),w.error(e.t0);case 15:if(c&&"ADMIN"===c.type){e.next=21;break}return w.debug("withAdmin: not admin"),i?i.redirect("/"):h.a.push("/"),e.abrupt("return",{});case 21:if(!t.getInitialProps){e.next=27;break}return e.next=24,t.getInitialProps(r);case 24:e.t1=e.sent,e.next=28;break;case 27:e.t1={};case 28:return o=e.t1,s=v(v({},o),{},{user:c}),e.abrupt("return",s);case 31:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t){return e.apply(this,arguments)}}()}]),n}(d.a.Component)}},XoMA:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/list-categories/[id]",function(){return r("+9V0")}])},hA7R:function(t,e,r){"use strict";var n=r("17x9"),a=r.n(n),i=r("vOnD"),c=r("NVXk"),o=r("zDcZ"),s=Object(i.d)(c.a).withConfig({displayName:"Container",componentId:"g7b5ah-0"})(["max-width:",";padding-left:",";padding-right:",";margin-left:auto;margin-right:auto;"],(function(t){return t.maxWidth||"1200px"}),o.j.m,o.j.m);s.propTypes={maxWidth:a.a.string},e.a=s}},[["XoMA",1,2,3,4,0,5,6,7,8,9,10,11,12]]]);

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.