PageSourceSearch

https://ocyo-consulting.com/_next/static/chunks/pages/admin/feedback-content-553e783f6ad908f1.js

js ocyo-consulting.com collected 2026-10-07 15:12:50 UTC 6,249 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6657],{4372:function(e,r,t){"use strict";t.d(r,{u:function(){return b}});var n=t(29),a=t(9081),i=t.n(a),o=t(7794),p=t.n(o),s=t(7294),d=t(8403),c=t.n(d),m=t(1664),u=t.n(m),l=t(9583),N=t(1752),h=t(5144),f=t(7479),y=t(8468),x=t(8322),j=t(3404),F=t(5893),T=(0,N.default)().publicRuntimeConfig;function b(e){var r=e.entityType,t=e.entities,a=e.allowNewRecordCreation,o=e.allowDeletion,d=(0,l.useRouter)(),m=s.useMemo((function(){return function(e){if(e===f.p.Address)return[{propName:"id"},{propName:"type"},{propName:"addressLine1",header:"Address Line 1"},{propName:"addressLine2",header:"Address Line 2"}];if(e===f.p.CustomerFeedbackCategory)return[{propName:"id"},{propName:"position"},{propName:"titleFr",header:"Title Fr"},{propName:"titleEn",header:"Title En"}];if(e===f.p.CustomerFeedbackContent)return[{propName:"id"},{propName:"missionId",header:"Mission",relatedEntity:{entityType:f.p.CustomerFeedbackMission,shortName:"Mission"}},{propName:"categoryId",header:"Category",relatedEntity:{entityType:f.p.CustomerFeedbackCategory,shortName:"Category"}}];if(e===f.p.CustomerFeedbackIndustry)return[{propName:"id"},{propName:"position"},{propName:"titleFr",header:"Title Fr"},{propName:"titleEn",header:"Title En"}];if(e===f.p.CustomerFeedbackMission)return[{propName:"id"},{propName:"position"},{propName:"titleFr",header:"Title Fr"},{propName:"titleEn",header:"Title En"},{propName:"industryId",header:"Industry",relatedEntity:{entityType:f.p.CustomerFeedbackIndustry,shortName:"Industry"}}];if(e===f.p.Page)return[{propName:"id"},{propName:"nameFr",header:"Name Fr"},{propName:"nameEn",header:"Name En"}];if(e===f.p.PageSection)return[{propName:"id"},{propName:"pageId",header:"Page",relatedEntity:{entityType:f.p.Page}},{propName:"position"},{propName:"type"},{propName:"titleFr",header:"Title Fr"},{propName:"titleEn",header:"Title En"}];if(e===f.p.SiteSetting)return[{propName:"id"}];if(e===f.p.Slide)return[{propName:"id"},{propName:"imageName",header:"Image Name"}];if(e===f.p.SlideText)return[{propName:"id"},{propName:"titleFr",header:"Title Fr"},{propName:"titleEn",header:"Title En"}];if(e===f.p.TeamMember)return[{propName:"id"},{propName:"name"},{propName:"titleFr",header:"Title Fr"},{propName:"titleEn",header:"Title En"},{propName:"isManager",header:"Is Manager"},{propName:"hasBio",header:"Has Bio"}];if(e===f.p.Testimony)return[{propName:"id"},{propName:"company"},{propName:"authors"}];if(e===f.p.ToolSlide)return[{propName:"id"},{propName:"position"},{propName:"titleFr",header:"Project Phase Fr"},{propName:"titleEn",header:"Project Phase En"},{propName:"textFr",header:"Description Fr"},{propName:"textEn",header:"Description En"}];if(e===f.p.User)return[{propName:"id"},{propName:"name"}];return[]}(r)}),[r]),N=s.useMemo((function(){return t[r]}),[t,r]),b=function(){var e=(0,n.Z)(p().mark((function e(t){var n,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,x.e)(r),a="".concat(r,' "').concat(t[n],'" (id=').concat(t.id,")"),confirm("Are you sure you want to delete ".concat(a,"?"))){e.next=5;break}return e.abrupt("return");case 5:return e.prev=5,e.next=8,j.h.delete("".concat(T.apiUrl,"/").concat(r,"/").concat(t.id));case 8:d.reload(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),h.Ak.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[5,11]])})));return function(r){return e.apply(this,arguments)}}();return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{className:"jsx-1201021524",children:[(0,F.jsxs)("table",{className:"jsx-1201021524 w-100",children:[(0,F.jsx)("thead",{className:"jsx-1201021524 table-header",children:(0,F.jsxs)("tr",{className:"jsx-1201021524",children:[m.map((function(e,r){return(0,F.jsx)("th",{className:"jsx-1201021524 pa1",children:e.header||c()(e.propName)},r)})),(0,F.jsx)("th",{className:"jsx-1201021524 pa1",children:"Actions"})]})}),(0,F.jsx)("tbody",{className:"jsx-1201021524",children:N.map((function(e,n){return(0,F.jsxs)("tr",{className:"jsx-1201021524 "+((n%2===1?"row-bg":"")||""),children:[m.map((function(r,n){var a=r.relatedEntity;if(a){var i=e[r.propName],o=(t[a.entityType]||[]).find((function(e){return e.id===i})),p=(0,x.e)(a.entityType),s=o?o[p]:"";return(0,F.jsx)("td",{className:"jsx-1201021524",children:(0,F.jsx)(u(),{href:(0,y.IF)(a.entityType,i),children:"".concat(a.shortName||a.entityType," [").concat(i,']: "').concat(s,'"')})},n)}var d=e[r.propName],c="boolean"===typeof d;return(0,F.jsx)("td",{className:"jsx-1201021524 "+((c?"tc":"pv1")||""),children:c?d?"X":"":d},n)})),(0,F.jsxs)("td",{className:"jsx-1201021524 tc",children:[(0,F.jsx)("button",{onClick:function(){return d.push((0,y.IF)(r,e.id))},className:"jsx-1201021524",children:"Edit"}),o&&(0,F.jsx)("button",{onClick:function(){return b(e)},className:"jsx-1201021524 ml3",children:"Delete"})]})]},e.id)}))})]}),a&&(0,F.jsx)("div",{className:"jsx-1201021524 flex justify-end pt4",children:(0,F.jsx)("button",{onClick:function(){return d.push((0,y.le)(r))},className:"jsx-1201021524",children:"Add new record"})})]}),(0,F.jsx)(i(),{id:"1201021524",children:[".table-header.jsx-1201021524{background-color:#c0c0f0;}",".row-bg.jsx-1201021524{background-color:#f0f0f0;}"]})]})}}
1,8322:function(e,r,t){"use strict";t.d(r,{e:function(){return a}});var n=t(7479);function a(e){return e===n.p.Address?"type":e===n.p.CustomerFeedbackCategory?"titleFr":e===n.p.CustomerFeedbackContent?"id":e===n.p.CustomerFeedbackIndustry||e===n.p.CustomerFeedbackMission?"titleFr":e===n.p.Page?"nameFr":e===n.p.Slide?"id":e===n.p.SlideText?"titleFr":e===n.p.TeamMember?"name":e===n.p.Testimony?"company":e===n.p.User?"name":"id"}},9556:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return p}});var n=t(3544),a=(t(7294),t(5792)),i=t(4372),o=t(5893),p=!0;r.default=(0,n.withSuperJSONPage)((function(e){var r=e.entityType,t=e.entities;return(0,o.jsx)(a.Z,{entityType:r,children:(0,o.jsx)(i.u,{entityType:r,entities:t,allowNewRecordCreation:!0,allowDeletion:!0})})}))},2319:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/feedback-content",function(){return t(9556)}])}},function(e){e.O(0,[3714,2691,3544,4069,5792,9774,2888,179],(function(){return r=2319,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.