PageSourceSearch

https://thainamthip.co.th/_next/static/chunks/pages/backend/pillars_sustainability-5c49e48f6de5ca8216b6.js

js thainamthip.co.th collected 2026-10-02 18:52:55 UTC 5,853 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4383],{51161:function(n,e,t){"use strict";var i=t(64836);e.Z=void 0;var a=i(t(64938)),s=t(85893);e.Z=(0,a.default)((0,s.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutlineOutlined")},73255:function(n,e,t){"use strict";var i=t(93967),a=t.n(i),s=t(67294),r=t(3694),c=t(85893);e.Z=function(n){var e=n.id,t=n.index,i=n.children,l=n.onDrop,o=n.onDragEnd,d=(0,s.useState)(""),u=d[0],h=d[1],f=function(n,e,t){h(""),o(e,t)};return(0,c.jsx)(r.Z,{className:a()("drag ",u),draggable:!0,onDragStart:function(n){h("")},onDragEnter:function(n){h("")},onDrop:function(){h(""),l(e,t)},onDragOver:function(n){return function(n,e,t){return n.preventDefault&&n.preventDefault(),h("over"),n.dataTransfer.dropEffect="move",!1}(n)},onDragLeave:function(n){h("")},onDrag:function(n){return n.stopPropagation&&n.stopPropagation(),h(""),!1},onDragEnd:function(n){return f(0,e,t)},children:i})}},1386:function(n,e,t){"use strict";t(67294);var i=t(1905),a=t(51161),s=t(85893);e.Z=function(n){var e=n.show,t=n.onHide,r=n.size,c=n.text,l=n.cancel_btn,o=n.ref_id,d=n.onConfirm;return(0,s.jsx)(i.Z,{className:"modal-alert",centered:!0,show:e,onHide:t,size:r,children:(0,s.jsx)(i.Z.Body,{children:(0,s.jsx)("form",{children:(0,s.jsxs)("div",{className:"row mt-4 justify-content-center",children:[(0,s.jsx)("div",{className:"col-12",children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(a.Z,{color:"error",sx:{fontSize:90}})})}),(0,s.jsx)("div",{className:"col-12 my-4",children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("h4",{children:c})})}),(0,s.jsx)("div",{className:"col-12 mb-4",children:(0,s.jsxs)("div",{className:"text-center",children:[l&&(0,s.jsx)("button",{type:"button",className:"buttonSecondary",onClick:t,children:"Cancel"}),(0,s.jsx)("button",{type:"button",className:"buttonPrimary",onClick:function(n){d?(d(o||null),t()):t()},children:"Confirm"})]})})]})})})})}},38487:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return p}});var i=t(41664),a=t(67294),s=t(85260),r=t(53023),c=t(1386),l=t(8677),o=t(63906),d=t(9573),u=t(56011),h=t(3694),f=t(46926),x=t(38732),j=(t(73255),t(85893)),m=function(n){n.query;var e=(0,a.useState)(!1),t=e[0],s=e[1],m=(0,a.useState)(!1),v=m[0],p=m[1],y=(0,a.useState)(!1),b=(y[0],y[1]),g=(0,a.useState)(25),Z=(g[0],g[1],(0,a.useState)(1)),N=(Z[0],Z[1],(0,a.useState)({})),_=(N[0],N[1],function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b(!0),r.Z.getAllPillars(n).then((function(n){var e=n.data;p(e),b(!1)})).catch((function(n){console.log(n.response),b(!1)}))});(0,a.useEffect)((function(){_()}),[]);var S=(0,a.useState)(),w=S[0];S[1];return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o.Z,{sx:{width:"100%",overflowX:"auto"},children:(0,j.jsxs)(d.Z,{children:[(0,j.jsx)(u.Z,{children:(0,j.jsxs)(h.Z,{children:[(0,j.jsx)(f.Z,{children:"#"}),(0,j.jsx)(f.Z,{children:"\u0e0a\u0e37\u0e48\u0e2d"}),(0,j.jsx)(f.Z,{children:"\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17"}),(0,j.jsx)(f.Z,{colSpan:3,style:{textAlign:"center"},classes:4,children:"Manage"})]})}),(0,j.jsx)(x.Z,{children:v?null===v||void 0===v?void 0:v.map((function(n,e){return(0,j.jsxs)(h.Z,{hover:!0,children:[(0,j.jsx)(f.Z,{children:e+1}),(0,j.jsx)(f.Z,{children:(0,l.VQ)(n.trans,"th","title")}),(0,j.jsx)(f.Z,{children:"main"==(null===n||void 0===n?void 0:n.type)?"\u0e40\u0e19\u0e37\u0e49\u0e2d\u0e2b\u0e32\u0e2b\u0e25\u0e31\u0e01":"\u0e40\u0e19\u0e37\u0e49\u0e2d\u0e2b\u0e32\u0e22\u0e48\u0e2d\u0e22"}),(0,j.jsx)(f.Z,{style:{textAlign:"left",minWidth:"200px"},children:"main"!=(null===n||void 0===n?void 0:n.type)?(0,j.jsx)(i.default,{href:"/backend/pillars_sustainability/widget/content/".concat(n.id),children:(0,j.jsxs)("a",{className:"buttonSecondary",children:["\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08  ",(0,j.jsx)("i",{className:"fa fa-pencil-alt"})]})}):""}),(0,j.jsx)(f.Z,{style:{textAlign:"left",minWidth:"200px"},children:"main"!=(null===n||void 0===n?void 0:n.type)?(0,j.jsx)(i.default,{href:"/backend/pillars_sustainability/widget/activity/".concat(n.id),children:(0,j.jsxs)("a",{className:"buttonSecondary",children:["\u0e01\u0e34\u0e08\u0e01\u0e23\u0e23\u0e21\u0e44\u0e2e\u0e44\u0e25\u0e17\u0e4c  ",(0,j.jsx)("i",{className:"fa fa-pencil-alt"})]})}):""}),(0,j.jsx)(f.Z,{children:(0,j.jsx)(i.default,{href:"/backend/pillars_sustainability/edit/".concat(n.id),children:(0,j.jsxs)("a",{className:"buttonSecondary",children:["Edit ",(0,j.jsx)("i",{className:"fa fa-pencil-alt"})]})})})]},e)})):[]})]})}),(0,j.jsx)(c.Z,{show:t,text:"Do you confirm to delete this ?",size:"md",cancel_bt
1n:!0,onConfirm:function(){w&&r.Z.deletePillars(w).then((function(n){n.data,_(),s(!1)})).catch((function(n){console.log(n.response)}))},ref_id:w,onHide:function(){return s(!1)}})]})},v=function(n){var e=n.query;return(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(s.Z,{title:"Pillars of Sustainability",pageProps:{mainPage:"thainamthip",page:"sustainability",subpage:"pillars"},pageTopNav:"Pillars of Sustainability",dataBreadcrumb:[{name:"Pillars of Sustainability",active:!0}],children:(0,j.jsx)("div",{className:"main-content",children:(0,j.jsxs)("div",{className:"container mt-3",children:[(0,j.jsx)("div",{className:"row justify-content-end mb-4",children:(0,j.jsx)("div",{className:"col-6"})}),(0,j.jsx)("div",{children:(0,j.jsx)(m,{query:e})})]})})})})};v.getInitialProps=function(n){return{query:n.query}};var p=v},62829:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/backend/pillars_sustainability",function(){return t(38487)}])}},function(n){n.O(0,[9774,4636,4170,9704,9125,3066,6233,5260,2888,179],(function(){return e=62829,n(n.s=e);var e}));var e=n.O();_N_E=e}]);

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.