PageSourceSearch

https://conservationtalkhca.ca/_next/static/chunks/30313-600f666d26cc211c.js

js conservationtalkhca.ca collected 2026-09-28 13:18:21 UTC 15,405 bytes, 2 lines download raw bytes

1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4b411d40-d567-46b4-aff6-b197f0acfea2",t._sentryDebugIdIdentifier="sentry-dbid-4b411d40-d567-46b4-aff6-b197f0acfea2")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30313],{7073:(t,e,r)=>{r.d(e,{C8:()=>C,vj:()=>R,O$:()=>D,s5:()=>S,d0:()=>F,Vs:()=>T,r$:()=>J,Ym:()=>H,wE:()=>I,vm:()=>U,oR:()=>L});var n,a=r(44478),i=r(42969),c=r(63857),o=r(60180),s=r.n(o),u=r(58398),l=r(23745),p=r(67251),d=r(29898),f=r(52672),y=r(76966),h=r(7379),b=r.n(h);function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(m=function(){return!!t})()}var v=function(t){function e(){var t,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,p.default)(this,e),t=e,r=[a],t=(0,f.default)(t),n=(0,d.default)(this,m()?Reflect.construct(t,r||[],(0,f.default)(this).constructor):t.apply(this,r)),b().call(n,a),n.name=a.name,n.description=a.description,n.imageUrl=a.imageUrl,n.viewCount=a.viewCount,n.subscribersCount=a.subscribersCount,n.permalink=a.permalink,n}return(0,y.default)(e,t),(0,l.default)(e)}(b());(0,i.default)(v,"_type","recommendations"),(0,i.default)(v,"baseURL","/recommendations");var O=r(63415),g=r.n(O),j=r(5323),A=r.n(j),E=r(92604),w=r(61158),P=r(64747);function _(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 x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach(function(e){(0,i.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var T=function(t){var e;return e=(0,c.A)(s().mark(function e(r){var n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:E.A.FETCH_PROJECTS_REQUEST}),e.prev=1,e.next=4,u.A.query(t);case 4:n=e.sent,r({type:E.A.FETCH_PROJECTS_SUCCESS,projects:n.map(function(t){return x({id:t.id},t.attributes())}),meta:n.meta}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),r({type:E.A.FETCH_PROJECTS_FAILURE,errorMessage:e.t0.statusText||e.t0.status});case 11:case"end":return e.stop()}},e,null,[[1,8]])})),function(t){return e.apply(this,arguments)}},C=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=(0,c.A)(s().mark(function t(n){var i,o,l,p,d,f,y;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:E.A.FETCH_ALL_PROJECTS_REQUEST}),t.prev=1,i=[],o={page:1,per_page:r?999:50,sort:"name",order:"asc",assigned:!0,filterable:!0,fields:{project:["name"].concat((0,a.A)(e))}},t.next=6,u.A.query(o);case 6:if(l=t.sent,p={data:(0,a.A)(l),meta:l.meta},!(l&&l.meta&&l.meta.all>50)){t.next=13;break}return d=Math.ceil(l.meta.all/50),f=g()(2,d+1),t.next=13,Promise.all(f.map(function(){var t=(0,c.A)(s().mark(function t(e,r){var n,a;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=x(x({},o),{},{page:e}),t.next=3,u.A.query(n).catch(function(t){return{chunkIndex:r,error:Error(t)}});case 3:a=t.sent,p.data=p.data.concat(a);case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()));case 13:y=[],p.data.forEach(function(t){t&&t.error instanceof Error?i.push(t):y.push(x({id:t.id},t.attributes()))}),n({type:E.A.FETCH_ALL_PROJECTS_SUCCESS,projects:A()(y,"name"),meta:p.meta}),t.next=21;break;case 18:t.prev=18,t.t0=t.catch(1),n({type:E.A.FETCH_ALL_PROJECTS_FAILURE,errorMessage:t.t0.statusText||t.t0.status});case 21:case"end":return t.stop()}},t,null,[[1,18]])})),function(e){return t.apply(this,arguments)}},k=(n=(0,c.A)(s().mark(function t(e,r,n,i){var c,o,l;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u.A.query(n);case 3:o=(c=t.sent).map(function(t){return x({id:t.id},t.attributes())}),l=i.length>0?[].concat((0,a.A)(i),(0,a.A)(o)):o,e({type:E.A.FETCH_PROJECTS_SUCCESS,projects:l,meta:c.meta}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),e({type:E.A.FETCH_PROJECTS_FAILURE,errorMessage:t.t0.statusText||t.t0.status});case 12:case"end":return t.stop()}},t,null,[[0,9]])})),function(t,e,r,a){return n.apply(this,arguments)}),R=function(){var t,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=(0,c.A)(s().mark(function t(n,a){var i,c,o,u;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:E.A.FETCH_PROJECTS_REQUEST}),i=!1===e?x(x({},a().projects.query),{},{assigned:r}):x(x({},a().projects.query),{},{assigned:!0,filterable:e}),c=a().projects.filters.state,o=x(x({},a().projects.filters),{},{state:"all"===c?"":c}),u=new w.A(i,o),t.next=7,k(n,a,u,[]);case 7:case"end":return t.stop()}},t)})),function(e,r){return t.apply(this,arguments)}},S=function(){var t;return t=(0,c.A)(s().mark(function t(e,r){var n,a,i,c;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e({type:E.A.FETCH_PROJECTS_REQUEST}),a=x(x({},r().projects.query),{},{per_page:50,assigned:!0,filterable:!0}),i={sort:{created_at:"desc"},state:P.wu,parent_id:null==(n=r())||null==(n=n.hub)||null==(n=n.hub)?void 0:n.id},c=new w.A(a,i),t.prev=4,t.next=7,k(e,r,c,r().projects.projects);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(4),e({type:E.A.FETCH_PROJECTS_FAILURE,errorMessage:t.t0.statusText||t.t0.status});case 12:case"end":return t.stop()}},t,null,[[4,9]])}
1)),function(e,r){return t.apply(this,arguments)}},D=function(){var t;return t=(0,c.A)(s().mark(function t(e,r){var n,a,i;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e({type:E.A.FETCH_PROJECTS_REQUEST}),n=x(x({},r().projects.query),{},{fields:{project:["name","image_url","banner_url","description","permalink","state","published_at","parent_id","visibility_mode"]},per_page:50,assigned:!0,filterable:!0}),a=x(x({},r().projects.filters),{},{sort:{created_at:"desc"},state:P.wu}),i=new w.A(n,a),t.next=6,k(e,r,i,r().projects.projects);case 6:case"end":return t.stop()}},t)})),function(e,r){return t.apply(this,arguments)}},L=function(t){return{type:E.A.UPDATE_PROJECTS_QUERY,query:t}},U=function(t){return{type:E.A.UPDATE_PROJECTS_FILTERS,filters:t}},F=function(t){return{type:E.A.FILTER_PROJECTS_BY_NAME,search:t}},J=function(){return{type:E.A.RESET_PROJECTS_PAGE}},I=function(t){return{type:E.A.TOGGLE_PROJECT,id:t}},H=function(t){return{type:E.A.TOGGLE_ALL_PROJECTS,selected:t}}},23288:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(40123),a=r.n(n),i=r(69364),c=r.n(i),o=r(65595),s=r(37876);let u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom";return a()(t)?"":t.length<e?t:(0,s.jsx)(o.A,{title:t,placement:r,slotProps:{tooltip:{sx:{maxWidth:360,wordBreak:"break-word"}}},children:(0,s.jsx)("span",{children:c()(t,{length:e})})})}},33309:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(59234),a=r(39512),i=r(39502),c=r(46783),o=r(57459),s=r(37876);function u(t){var e=t.label,r=t.validateStatus,u=t.help,l=t.required,p=t.children;return(0,s.jsxs)(a.A,{fullWidth:!0,error:"error"===r,margin:"normal",required:l,children:[null!=e&&""!==e&&(0,s.jsxs)(c.A,{component:"div",variant:"body2",sx:{mb:.5,fontWeight:500},children:[e,l?(0,s.jsx)(o.A,{}):null]}),(0,s.jsx)(n.A,{children:p}),null!=u&&""!==u&&(0,s.jsx)(i.A,{component:"div",sx:{mt:1,mx:0},children:u})]})}},41380:(t,e,r)=>{r.d(e,{A:()=>l});var n=r(42969),a=r(59860),i=r(34626),c=r(14232),o=r(37876),s=["size"];function u(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}let l=(0,c.forwardRef)(function(t,e){var r=t.size,c=(0,a.A)(t,s);return(0,o.jsx)(i.A,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){(0,n.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({inputRef:e,fullWidth:!0,variant:"outlined",size:"large"===r?"medium":"small"},c))})},49272:(t,e,r)=>{r.d(e,{A:()=>p});var n=r(42969),a=r(59860),i=r(71858),c=r(21471),o=r(37876),s=["type","htmlType","loading","children","disabled","startIcon"];function u(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 l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){(0,n.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t){var e=t.type,r=void 0===e?"default":e,n=t.htmlType,u=t.loading,p=t.children,d=t.disabled,f=t.startIcon,y=(0,a.A)(t,s),h="outlined",b="primary";return"primary"===r?(h="contained",b="primary"):"danger"===r?(h="contained",b="error"):"link"===r||"text"===r?h="text":"dashed"===r&&(h="outlined"),(0,o.jsx)(c.A,l(l({type:void 0===n?"button":n,variant:h,color:b,disabled:d||u,startIcon:u?(0,o.jsx)(i.A,{color:"inherit",size:16}):f},y),{},{children:p}))}},57459:(t,e,r)=>{r.d(e,{A:()=>
1o});var n=r(44478),a=r(59234),i=r(37876),c={color:"error.main",ml:.25,fontWeight:600,lineHeight:1};function o(t){var e=t.sx;return(0,i.jsx)(a.A,{component:"span","aria-hidden":"true",sx:[c].concat((0,n.A)(Array.isArray(e)?e:e?[e]:[])),children:"*"})}},58535:(t,e,r)=>{r.d(e,{A:()=>b});var n=r(42969),a=r(59860);r(14232);var i=r(59234),c=r(31123),o=r(65595),s=r(21014),u=r(54237),l=r(37876),p=["onClick","disabled","className","sx","title","placement","size","data-testid"];function d(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 f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){(0,n.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var y={color:"text.secondary","&:hover":{color:"error.main"}},h={minHeight:36,minWidth:36};function b(t){var e=t.onClick,r=t.disabled,n=t.className,d=t.sx,b=t.title,m=t.placement,v=t.size,O=void 0===v?"medium":v,g=t["data-testid"],j=(0,a.A)(t,p),A=(0,u.useTranslation)("common").t,E=null!=b?b:A("common.delete");return(0,l.jsx)(o.A,{title:E,placement:void 0===m?"top":m,children:(0,l.jsx)(i.A,{component:"span",className:n,sx:{display:"inline-flex",verticalAlign:"middle"},children:(0,l.jsx)(c.A,f(f({onClick:e,disabled:void 0!==r&&r,size:O,"aria-label":"string"==typeof E?E:A("common.delete"),"data-testid":g,sx:f(f(f({},y),"medium"===O?h:null),d)},j),{},{children:(0,l.jsx)(s.A,{fontSize:"inherit"})}))})})}},64747:(t,e,r)=>{r.d(e,{YL:()=>n,kn:()=>a,wu:()=>c,yL:()=>i});var n="fr-CA",a="en",i="fr",c=["published","archived","draft"]},73473:(t,e,r)=>{r.d(e,{nD:()=>s,um:()=>
1o});var n=r(42969);function a(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 i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){(0,n.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t){if(null==t||"object"!=typeof t)return t;var e,r="function"==typeof t.attributes?t.attributes():i({},t),n=null!=(e=t.id)?e:r.id;return i(i({},r),null!=n?{id:n}:{})}function o(t){if(null==t)return[];var e=(Array.isArray(t)?t:[]).map(c);return null!=t.meta&&(e.meta=t.meta),e}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["owner","project","trackable"];if(null==t||"object"!=typeof t)return t;var r=c(t);return e.forEach(function(e){null!=t[e]&&(r[e]=c(t[e]))}),r}},73664:(t,e,r)=>{r.d(e,{A:()=>h});var n=r(67251),a=r(23745),i=r(29898),c=r(52672),o=r(76966),s=r(42969),u=r(7379),l=r.n(u),p=r(48363),d=r(1234);function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var y=function(t){function e(){var t,r,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.default)(this,e),t=e,r=[o],t=(0,c.default)(t),a=(0,i.default)(this,f()?Reflect.construct(t,r||[],(0,c.default)(this).constructor):t.apply(this,r)),l().call(a,o),a.name=o.name,a.description=o.description,a.state=o.state,a.createdAt=o.createdAt,a.updatedAt=o.updatedAt,a.permalink=o.permalink,a.isNewHub=o.isNewHub||!1,a.platformAnalyticsTagList=o.platformAnalyticsTagList||[],a.userIds=o.userIds||[],a.imageDescription=o.imageDescription,a.imageCaption=o.imageCaption,a.imageUrl=o.imageUrl,a.visibilityMode=o.visibilityMode,a.segments=a.hasMany(d.A,o.segments),a}return(0,o.default)(e,t),(0,a.default)(e,[{key:"validate",value:function(){(0,p.default)(this.name)&&this.errors.add({code:"blank",source:{pointer:"/data/attributes/name"}})}},{key:"getTags",value:function(){var t=this;return this.constructor.adapter.get("".concat(this.constructBaseURL(),"/").concat(this.id,"/tags")).then(function(e){var r=e.data;return t.constructor.deserialize(r)})}},{key:"getAdmins",value:function(){var t=this;return this.constructor.adapter.get("".concat(this.constructBaseURL(),"/").concat(this.id,"/admins")).then(function(e){var r=e.data;return t.constructor.deserialize(r)})}},{key:"associateSegments",value:function(){return this.constructor.adapter.put("".concat(this.constructBaseURL(),"/").concat(this.id,"/visibility"),this.serialize())}},{key:"generatePermalink",value:function(){var t=this;return this.constructor.adapter.get("".concat(this.constructBaseURL(),"/generate_permalink?name=").concat(this.name)).then(function(e){var r=e.data;return t.constructor.deserialize(r)})}}],[{key:"authorize",value:function(t,e){return this.adapter.post("".concat(this.constructBaseURL(),"/").concat(t,"/admins"),{data:{attributes:{user_id:e}}})}},{key:"unauthorize",value:function(t,e){return this.adapter.delete("".concat(this.constructBaseURL(),"/").concat(t,"/admins/").concat(e))}}])}(l());(0,s.default)(y,"_type","hubs"),(0,s.default)(y,"baseURL","/hubs");let h=y}}]);
2//# sourceMappingURL=30313-600f666d26cc211c.js.map

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.