PageSourceSearch

https://www.clarenceconversations.com.au/_next/static/chunks/ProjectsSectionLayout18.03cdd6cf96b4fbec.js

js clarenceconversations.com.au collected 2026-09-26 07:45:09 UTC 14,167 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7ec9c96f-c759-4c72-afd2-6d944a6fae1a",e._sentryDebugIdIdentifier="sentry-dbid-7ec9c96f-c759-4c72-afd2-6d944a6fae1a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7],{13434:(e,t,r)=>{"use strict";r.d(t,{JU:()=>m,V6:()=>u,yt:()=>f,z6:()=>d});var a,n,o=r(63857),i=r(60180),s=r.n(i),l=r(12436),c="/admin/api/unsplash",d=(a=(0,o.A)(s().mark(function e(){var t,r,a,n,o=arguments;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"community",r=o.length>1&&void 0!==o[1]?o[1]:{pageNumber:1,numberOfImages:25,orientation:"landscape"},e.prev=2,e.next=5,fetch("".concat(c,"/search"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:t,pageNumber:r.pageNumber,numberOfImages:r.numberOfImages,orientation:r.orientation})});case 5:if((a=e.sent).ok){e.next=8;break}throw Error("Failed to search photos");case 8:return e.next=10,a.json();case 10:return n=e.sent,e.abrupt("return",n.results||[]);case 14:return e.prev=14,e.t0=e.catch(2),console.error("Error loading images:",e.t0),e.abrupt("return",[]);case 18:case"end":return e.stop()}},e,null,[[2,14]])})),function(){return a.apply(this,arguments)}),u=(n=(0,o.A)(s().mark(function e(t,r){var a,n,o,i;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(c,"/upload"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageUrl:t,photoId:r})});case 3:if((a=e.sent).ok){e.next=17;break}return n="Failed to upload image",e.prev=6,e.next=9,a.json();case 9:n=(o=e.sent).details||o.error||n,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),n=a.statusText||n;case 16:throw Error(n);case 17:return e.next=19,a.json();case 19:return i=e.sent,e.abrupt("return",i.awsImageUrl);case 23:throw e.prev=23,e.t1=e.catch(0),console.error("Error uploading image:",e.t1),e.t1;case 27:case"end":return e.stop()}},e,null,[[0,23],[6,13]])})),function(e,t){return n.apply(this,arguments)}),h=function(e){var t=m(e);t&&"-undefined"!==t&&fetch("".concat(c,"/track-view?photoId=").concat(encodeURIComponent(t)),{method:"GET"}).catch(function(e){console.error("Error tracking view:",e)})},f=function(e,t,r){if(null!=e&&e.includes("/static/images/")){var a=e.match(/\/(\d+)-/);if(null!=a&&a[1])return"/static/assets/images/home-page-placeholder-images/".concat(a[1],".jpg")}var n=null==e?void 0:e.match(/\/(?:static\/media|_next\/static\/media)\/(\d+)\.[a-zA-Z0-9_-]+\.\w+/);if(null!=n&&n[1])return"/static/assets/images/home-page-placeholder-images/".concat(n[1],".jpg");if(!e)return"";if(e.startsWith("/static/assets/")||e.startsWith("/static/media/"))return e.split("?")[0];if(e.indexOf(".gif")>-1)return e;var o=(0,l.G)(e,t,r);return -1===e.indexOf("unsplash-")||h(e),o},m=function(e){var t="";try{var r=e&&e.split("unsplash-")[1];if(!r)return"";if(!(t=r.split("-")[0])){var a=r.split("-")[1];if(!a)return"";t="-".concat(a)}}catch(e){t=""}return t}},14499:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var a=r(31777);r(14232);var n=r(39822),o=r(65955),i=r(70435),s=r(43123),l=r(6709),c=r(54237),d=r(26796),u=r(13434),h=r(69364),f=r.n(h),m=r(75912),g=r(37876);let p=(0,c.withTranslation)(["editor"])(function(e){var t=e.t,r=e.data,a=e.meta,c=e.theme,h=e.isInsideAdminView,p=e.i18n;return(!!r.length||!!h)&&(0,g.jsx)(n.a,{bg:c.backgroundColor,px:{base:2,sm:4,md:8,lg:16},children:(0,g.jsx)(n.a,{bg:c.backgroundColor,py:8,px:{base:4,sm:4,md:0},children:(0,g.jsxs)(i.m,{maxWidth:"container.lg",mx:"auto",px:0,children:[!!a.title&&(0,g.jsx)(n.a,{color:c.sectionTitleColor,fontSize:"sectionTitle",fontWeight:"heading",fontFamily:"heading",asChild:!0,children:(0,g.jsx)("h2",{children:a.title})}),(0,g.jsx)(s.s,{flexWrap:"wrap",flexDirection:{xs:"column",md:"row"},mx:-6,children:r.map(function(e,r){var i,s,h,x,b;return(0,g.jsx)(n.a,{px:6,py:6,w:{base:"100%",md:"50%"},children:(0,g.jsx)(n.a,{"aria-label":"".concat(p.t("editor:editor.viewProject")," - ").concat(e.title||e.name),bg:c.cardBackgroun
1dColor||"#ffffff",boxShadow:"site",display:"block",target:e.openInNewTab?"_blank":"_self",overflow:"hidden",rounded:"site",h:"full",className:"animated-card",asChild:!0,children:(0,g.jsx)("a",{href:a.autoAddProjects?"/".concat(e.permalink):e.permalink,children:(0,g.jsxs)(n.a,{display:"flex",flexDir:{base:"column",lg:"row"},h:"full",children:[(0,g.jsx)(n.a,{w:{base:"100%",lg:"40%"},overflow:"hidden",h:"100%",children:(0,g.jsx)(n.a,{backgroundColor:e.image?null:"brand",backgroundImage:"url(".concat((0,u.yt)(e.image||e.imageUrl||e.bannerUrl,a.imageSize||800),")"),backgroundPosition:"".concat(e.imgFocalX,"% ").concat(e.imgFocalY,"%"),backgroundRepeat:"no-repeat",backgroundSize:"cover",h:{base:48,lg:"full"},position:"relative",className:"animated-card-image",role:"img","aria-label":"",children:!!e.state&&(i=t("common:common.".concat(e.state)),!!a.autoAddProjects&&!!a.showProjectStatus&&(0,g.jsx)(o.Ex,{fontFamily:"body",fontSize:"xs",rounded:"site",variant:"solid",fontWeight:"normal",position:"absolute",top:4,right:4,backgroundColor:"gray.700",children:i}))})}),(0,g.jsxs)(n.a,{display:"flex",flexDirection:"column",justifyContent:"space-between",p:6,h:"full",w:{base:"100%",lg:"60%"},children:[(0,g.jsx)(n.a,{children:(0,g.jsxs)(l.B,{gap:3,children:[(0,g.jsx)(n.a,{children:(s=e.publishedAt,h=e.ctaLinkType,!!a.showPublishDate&&!!s&&("projects"===h||void 0===h)&&(0,g.jsx)(n.a,{color:"gray.700",fontFamily:"body",fontSize:"body",fontWeight:"body",children:(0,d.Av)(s,p.language)}))}),(0,g.jsx)(n.a,{children:(x=e.title||e.name,(0,g.jsx)(n.a,{color:c.textColor,fontFamily:"heading",fontWeight:"heading",fontSize:"heading",wordBreak:"break-word",asChild:!0,children:(0,g.jsx)("h3",{children:f()(x,{length:70})})}))}),(0,g.jsx)(n.a,{children:(b=e.description,(0,g.jsx)(n.a,{color:c.textColor,fontFamily:"body",fontWeight:"body",fontSize:"body",wordBreak:"break-word",children:(0,g.jsx)(m.A,{html:b,allowTags:["br","&","p"],truncateLength:100})}))})]})}),(0,g.jsx)(n.a,{children:!!a.ctaText&&(0,g.jsx)(n.a,{alignItems:"center",bg:c.ctaBackgroundColor||"brand",boxShadow:"site",color:c.ctaTextColor||"white",_hover:{bg:c.ctaBackgroundHoverColor||c.ctaBackgroundColor||"brand",color:c.ctaTextHoverColor||c.ctaTextColor||"#fff"},display:"inline-flex",fontFamily:"body",fontSize:"body",fontWeight:"bold",justifyContent:"center",mt:4,px:2,py:1,rounded:"site",textDecoration:"none",className:"project-button",children:(0,g.jsx)(n.a,{children:f()(a.ctaText,{length:20})})})})]})]})},r)})},r)})})]})})})}),x=(0,a.Ng)(function(e,t){return{data:e.homePageRevision.revision.sections[t.sectionId].meta.autoAddProjects?t.projects:e.homePageRevision.revision.sections[t.sectionId].data,meta:e.homePageRevision.revision.sections[t.sectionId].meta,theme:e.homePageRevision.revision.sections[t.sectionId].theme}})(p)},26796:(e,t,r)=>{"use strict";r.d(t,{Av:()=>d,I3:()=>c,PI:()=>l,dS:()=>s,iv:()=>u,lg:()=>h});var a=r(56557),n=r.n(a),o=r(66315),i=r.n(o);r(46476),n().extend(i());var s=function(e,t){if(!e)throw Error("Missing required argument: timestamp1");if(!t)throw Error("Missing required argument: timestamp2");return n()(t).isAfter(n()(e))?1:-1},l=function(e){if(!e)throw Error("Missing required argument: timestamp");return n()(e).fromNow()},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"D MMM YYYY, H:mm",r=arguments.length>2?arguments[2]:void 0;if(!e)throw Error("Missing required argument: timestamp");return"fr-CA"===r?n()(e).locale("fr-ca").format(t):n()(e).format(t)},d=function(e,t){if(!e)throw Error("Missing required argument: timestamp");var r="fr-CA"===t?"D MMMM YYYY":"MMMM D, YYYY";return"fr-CA"===t?n()(e).locale("fr-ca").format(r):n()(e).format(r)},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"second";if(!e)throw Error("Missing required argument: timestamp");return n()().diff(e,t)},h=function(e){return e?n()(e).format():null}},36060:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var a=r(31777);r(14232);var n=r(39822),o=r(65955),i=r(70435),s=r(43123),l=r(6709),c=r(54237),d=r(26796),u=r(13434),h=r(69364),f=r.n(h),m=r(75912),g=r(37876);let p=(0,c.withTranslation)(["editor"])(function(e){var t=e.t,r=e.data,a=e.meta,c=e.theme,h=e.isInsideAdminView,p=e.i18n,x=e.dataTestId;
1return(!!r.length||!!h)&&(0,g.jsx)(n.a,{bg:c.backgroundColor,px:{base:2,sm:4,md:8,lg:16},"data-testid":x,children:(0,g.jsx)(n.a,{bg:c.backgroundColor,py:8,px:{base:4,sm:4,md:0},children:(0,g.jsxs)(i.m,{maxWidth:"container.lg",mx:"auto",px:0,children:[!!a.title&&(0,g.jsx)(n.a,{color:c.sectionTitleColor,fontSize:"sectionTitle",fontWeight:"heading",fontFamily:"heading",asChild:!0,children:(0,g.jsx)("h2",{children:a.title})}),(0,g.jsx)(s.s,{flexWrap:"wrap",flexDirection:{xs:"column",md:"row"},mx:-6,children:r.map(function(e,r){var i,s,h,x,b;return(0,g.jsx)(n.a,{px:6,py:6,w:{base:"100%",md:"50%"},children:(0,g.jsx)(n.a,{bg:c.cardBackgroundColor||"#ffffff",boxShadow:"site",display:"block","aria-label":"".concat(p.t("editor:editor.viewProject")," - ").concat(e.title||e.name),target:e.openInNewTab?"_blank":"_self",overflow:"hidden",rounded:"site",h:"full",className:"animated-card",asChild:!0,children:(0,g.jsx)("a",{href:a.autoAddProjects?"/".concat(e.permalink):e.permalink,children:(0,g.jsxs)(n.a,{display:"flex",flexDir:{base:"column",lg:"row"},h:"full",children:[(0,g.jsx)(n.a,{w:{base:"100%",lg:"40%"},overflow:"hidden",h:"100%",children:(0,g.jsx)(n.a,{backgroundColor:e.image?null:"brand",backgroundImage:"url(".concat((0,u.yt)(e.image||e.imageUrl||e.bannerUrl,a.imageSize||800),")"),backgroundPosition:"".concat(e.imgFocalX,"% ").concat(e.imgFocalY,"%"),backgroundRepeat:"no-repeat",backgroundSize:"cover",h:{base:48,lg:"full"},position:"relative",className:"animated-card-image",role:"img","aria-label":"",children:!!e.state&&(i=t("common:common.".concat(e.state)),!!a.autoAddProjects&&!!a.showProjectStatus&&(0,g.jsx)(o.Ex,{fontFamily:"body",fontSize:"xs",rounded:"site",variant:"solid",fontWeight:"normal",position:"absolute",top:4,right:4,backgroundColor:"gray.700",children:i}))})}),(0,g.jsxs)(n.a,{display:"flex",flexDirection:"column",justifyContent:"space-between",p:6,h:"full",w:{base:"100%",lg:"60%"},children:[(0,g.jsx)(n.a,{children:(0,g.jsxs)(l.B,{gap:3,children:[(0,g.jsx)(n.a,{children:(s=e.publishedAt,h=e.ctaLinkType,!!a.showPublishDate&&!!s&&("projects"===h||void 0===h)&&(0,g.jsx)(n.a,{color:"gray.700",fontFamily:"body",fontSize:"body",fontWeight:"body",children:(0,d.Av)(s,p.language)}))}),(0,g.jsx)(n.a,{children:(x=e.title||e.name,(0,g.jsx)(n.a,{color:c.textColor,fontFamily:"heading",fontWeight:"heading",fontSize:"heading",wordBreak:"break-word",asChild:!0,children:(0,g.jsx)("h3",{children:f()(x,{length:70})})}))}),(0,g.jsx)(n.a,{children:(b=e.description,(0,g.jsx)(n.a,{color:c.textColor,fontFamily:"body",fontWeight:"body",fontSize:"body",wordBreak:"break-word",children:(0,g.jsx)(m.A,{html:b,allowTags:["br","&","p"],truncateLength:100})}))})]})}),(0,g.jsx)(n.a,{children:!!a.ctaText&&(0,g.jsx)(n.a,{alignItems:"center",bg:c.ctaBackgroundColor||"brand",boxShadow:"site",color:c.ctaTextColor||"white",_hover:{bg:c.ctaBackgroundHoverColor||c.ctaBackgroundColor||"brand",color:c.ctaTextHoverColor||c.ctaTextColor||"#fff"},display:"inline-flex",fontFamily:"body",fontSize:"body",fontWeight:"normal",href:a.autoAddProjects?"/".concat(e.permalink):e.permalink,justifyContent:"center",mt:4,px:2,py:1,rounded:"site",textDecoration:"none",target:e.openInNewTab?"_blank":"_self",className:"project-button",children:(0,g.jsx)(n.a,{"aria-label":a.ctaText,children:f()(a.ctaText,{length:20})})})})]})]})},r)})},r)})})]})})})}),x=(0,a.Ng)(function(e,t){return{data:e.hubPageRevision.revision.sections[t.sectionId].meta.autoAddProjects?t.projects:e.hubPageRevision.revision.sections[t.sectionId].data,meta:e.hubPageRevision.revision.sections[t.sectionId].meta,theme:e.hubPageRevision.revision.sections[t.sectionId].theme,dataTestId:"participant-hubs-views-projects-section-layout-three"}})(p)},43123:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var a=r(37876),n=r(14232),o=r(57539);let i=(0,n.forwardRef)(function(e,t){let{direction:r,align:n,justify:i,wrap:s,basis:l,grow:c,shrink:d,inline:u,...h}=e;return(0,a.jsx)(o.B.div,{ref:t,...h,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:n,justifyContent:i,flexWrap:s,flexBasis:l,flexGrow:c,flexShrink:d,...e.css}})});i.displayName="Flex"},65955:(e,t,r)=>{"use strict";r.d(t,{Ex:()=>o});let{PropsProvider:a,withContext:n}=(0,r(74482).a)({key:"badge"}),o=n("span");o.displayName="Badge"},66315:function(e){e.exports=function(e,t,r){e=e||{};var a=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,r,n){return a.fromToBase(e,t,r,n)}r.en.relativeTime=n,a.fromToBase=function(t,a,o,i,s){for(var l,c,d,u=o.$locale().relativeTime||n,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,m=0;m<f;m+=1){var g=h[m];g.d&&(l=i?r(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var p=(e.rounding||Math.round)(Math.abs(l));if(d=l>0,p<=g.r||!g.r){p<=1&&m>0&&(g=h[m-1]);var x=u[g.l];s&&(p=s(""+p)),c="string"==typeof x?x.replace("%d",p):x(p,a,g.l,d);break}}if(a)return c;var b=d?u.future:u.past;return"function"==typeof b?b(c):b.replace("%s",c)},a.to=function(e,t){return o(e,t,this,!0)},a.from=function(e,t){return o(e,t,this)};var i=function(e){return e.$u?r.utc():r()};a.toNow=function(e){return this.to(i(this),e)},a.fromNow=function(e){return this.from(i(this),e)}}},70435:(e,t,r)=>{"use strict";r.d(t,{m:()=>
1o});let{withContext:a,PropsProvider:n}=(0,r(74482).a)({key:"container"}),o=a("div");o.displayName="Container"}}]);
2//# sourceMappingURL=ProjectsSectionLayout18.03cdd6cf96b4fbec.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.