1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2875],{51992:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/approval",function(){return r(70420)}])},60135:function(e,n,r){"use strict";var t=r(85893),i=r(79547),s=r.n(i);n.Z=function(e){var n=e.children,r=e.style;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:r,className:"jsx-e163ebe18344683 cardContent",children:n}),(0,t.jsx)(s(),{id:"e163ebe18344683",children:".cardContent.jsx-e163ebe18344683{padding:1.6rem}"})]})}},64347:function(e,n,r){"use strict";var t=r(85893),i=r(79547),s=r.n(i);r(67294);function c(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){c(e,n,r[n])}))}return e}n.Z=function(e){var n=e.title,r=e.subheader,i=e.titleColor,c=e.style,o=e.subHeaderStyle,l=e.textStyle;return(0,t.jsxs)("div",{style:a({},c),className:s().dynamic([["d23474cc61734d4d",[i||"#393232"]]])+" card-title-wrapper",children:[(0,t.jsx)("h2",{style:a({},l),className:s().dynamic([["d23474cc61734d4d",[i||"#393232"]]])+" card-title",children:n}),(0,t.jsx)("p",{style:a({},o),className:s().dynamic([["d23474cc61734d4d",[i||"#393232"]]])+" card-subheader",children:r}),(0,t.jsx)(s(),{id:"d23474cc61734d4d",dynamic:[i||"#393232"],children:".card-title.__jsx-style-dynamic-selector{background:".concat(i||"#393232",";-webkit-background-clip:text;-webkit-text-fill-color:transparent;margin:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-transform:uppercase}.card-subheader.__jsx-style-dynamic-selector{margin:0;color:var(--secondary-light-colour)}.card-title-wrapper.__jsx-style-dynamic-selector{padding:16px 16px 24px 16px}")})]})}},8733:function(e,n,r){"use strict";var t=r(85893),i=(r(67294),r(19669)),s=r(58474),c=r(36729),a=r(22920);n.Z=function(e){var n=e.children,r=e.name,o=e.level,l=(0,i.ec)();return l.permission[r]&&l.permission[r]>=(o||1)?(0,t.jsx)(c.Z,{accessDenied:(0,t.jsx)(s.JK,{}),loadingUnion:(0,t.jsx)(a.Z,{}),children:n}):(0,t.jsx)(s.JK,{})}},70420:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Z}});var t=r(85893),i=r(67294),s=r(71641),c=r(50319),a=r(60135),o=r(41664),l=r.n(o),d=r(57508),u=r(87583),f=r(4982),h=r(64347),p=function(e){var n=e.user,r=n.dateOfBirth,i=n.firstName,s=n.lastName,c=n.profile,a=n.unionPosition,o=n.username;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{children:["Name: ",i," ",s]}),(0,t.jsxs)("p",{children:["Phone: ",c.phone]}),(0,t.jsxs)("p",{children:["Email: ",o]}),(0,t.jsxs)("p",{children:["Position: ",a]}),(0,t.jsxs)("p",{children:["DOB: ",r]})]})},x=r(59932),j=r(46737),m=r.n(j);function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function v(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,i,s=[],c=!0,a=!1;try{for(r=r.call(e);!(c=(t=r.next()).done)&&(s.push(t.value),!n||s.length!==n);c=!0);}catch(o){a=!0,i=o}finally{try{c||null==r.return||r.return()}finally{if(a)throw i}}return s}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return y(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var b=function(e){var n=e.union,r=e.refetch,i=n.id,o=n.information,j=n.name,y=o.address,b=o.city,g=o.email,w=o.phone,_=o.postalCode,N=o.province,O=(0,s.a)(d.fo,{variables:{unionID:i}}).data,Z=v((0,c.D)(u.fd,{variables:{id:i},onCompleted:function(){r()}}),1)[0];return(0,t.jsxs)(f.Z,{children:[(0,t.jsx)(h.Z,{title:(0,t.jsxs)("p",{children:["Union Name: ",j]})}),(0,t.jsx)(a.Z,{children:(0,t.jsxs)("div",{className:"four-col-grid",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"Location:"}),(0,t.jsx)("p",{children:y}),(0,t.jsxs)("p",{children:[b,", ",N]}),(0,t.jsx)("p",{children:_})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{children:["Email: ",g]}),(0,t.jsxs)("p",{children:["Phone: ",w]})]}),(0,t.jsx)("div",{children:O&&O.users&&(0,t.jsx)(p,{user:O.users[0]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(l(),{href:{pathname:"/approval/union",query:{uid:i}},children:(0,t.jsx)("a",{children:(0,t.jsx)(x.Z,{children:"Approve"})})}),(0,t.jsx)(x.Z,{func:function(){m()({title:"Are you sure?",text:"This will delete ".concat(j," from the database"),buttons:!0,confirmButtonClass:"show-loading-icon",dangerMode:!0}).then((function(e){e&&Z()}))},style:{marginTop:"4rem"},children:"Delete"})]})]})})]})},g=r(88065),w=r(20245),_=r(25765),N=(0,w.Z)((function(){var e=(0,i.useState)([]),n=e[0],r=e[1],c=(0,s.a)(_.Ao,{notifyOnNetworkStatusChange:!0}),a=c.data,o=c.loading,l=c.refetch;return(0,i.useEffect)((function(){if(a&&a.unions){var e=a.unions.filter((function(e){return 1===e.status}));r(e)}}
1),[a]),(0,t.jsxs)("div",{children:[!o&&(0!==n.length?n.map((function(e){return(0,t.jsx)(b,{union:e,refetch:l},e.id)})):(0,t.jsx)("div",{children:"No Union found in Pending List"})),o&&(0,t.jsx)(g.Z,{style:{display:"flex",alignItems:"center",justifyContent:"center",margin:"1rem"}})]})})),O=r(8733),Z=function(){return(0,t.jsx)(O.Z,{name:"unionApproval",children:(0,t.jsx)(N,{})})}}},function(e){e.O(0,[9774,2888,179],(function(){return n=51992,e(e.s=n);var n}));var n=e.O();_N_E=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.