PageSourceSearch

https://canalrivertrust.org.uk/build/35.e2722230.js

js canalrivertrust.org.uk collected 2026-10-01 10:11:52 UTC 5,964 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[35],{34717:function(r,e,n){n.d(e,{Ay:function(){return k},UE:function(){return h},Wb:function(){return b},jd:function(){return l},lS:function(){return d},nj:function(){return v},st:function(){return f},ti:function(){return p},x1:function(){return m}});var t=n(8711),o=n(96540),a=n(50676),i=n(20982),u=n(79656),s=n(6615);function c(){return c=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},c.apply(this,arguments)}const l=0,d=1,f=2,b=3,h=4,v=5,m=6,p=7,g={[l]:{backgroundColor:"var(--p)",color:"var(--pc)",":hover":{backgroundColor:"var(--pf)"},":focus":{backgroundColor:"var(--pf)"}},[d]:{backgroundColor:"var(--s)",color:"var(--sc)",":hover":{backgroundColor:"var(--sf)"},":focus":{backgroundColor:"var(--sf)"}},[f]:{backgroundColor:"var(--s)",color:"var(--sc)",":hover":{backgroundColor:"var(--sf)"},borderStyle:"none"},[b]:{backgroundColor:"var(--brand-towpath-100)",borderWidth:"1px",borderColor:"var(--brand-towpath-500)",":hover":{backgroundColor:"var(--brand-towpath-500)"},":focus":{backgroundColor:"var(--brand-towpath-500)",borderStyle:"none"}},[h]:{backgroundColor:"var(--brand-white-500)",borderWidth:"1px",borderColor:"var(--brand-towpath)",color:"var(--brand-darkslate-500)",":hover":{borderColor:"var(--brand-darkslate-500)",color:"var(--brand-darkslate-500)",":disabled":{borderColor:"var(--brand-towpath)"}}},[v]:{},[m]:{backgroundColor:"var(--brand-white-500) !important",":hover":{backgroundColor:"var(--brand-white-500) !important"},borderWidth:"1px",borderColor:"var(--brand-leaf-500)",borderRadius:"0.5rem",fontSize:"1rem",fontWeight:"300"},[p]:{color:"var(--brand-black-500)",fontSize:"1.125rem",display:"inline",backgroundColor:"var(--brand-white-500)",marginTop:"0.5rem",borderWidth:"1px",borderColor:"var(--brand-black-500)",borderRadius:"0.375rem",":hover":{color:"var(--p)"},":focus":{color:"var(--p)"}}},C=(0,t.i7)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),w=t.Ay.button.withConfig({displayName:"Button__StyledContainer",componentId:"sc-g4gnmm-0"})((r=>{let{isLoading:e,variant:n}=r;return[{display:"inline-flex",flexShrink:"0",flexWrap:"wrap",alignItems:"center",justifyContent:"center",borderColor:"transparent",textAlign:"center",cursor:"pointer",userSelect:"none",borderRadius:"9999px",textTransform:"none",height:"3rem",paddingLeft:"1rem",paddingRight:"1rem","&[disabled]":{cursor:"not-allowed",opacity:"0.6"},"> svg":{height:"1rem",width:"1rem",display:"inline",marginLeft:"0.75rem","@media (min-width: 768px)":{height:"1.25rem",width:"1.25rem"}},"& .status":{width:"1.5rem",height:"1.5rem",marginRight:"0.5rem",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--brand-white-500)",borderTopColor:"var(--brand-water-500)"},"@media (min-width: 1180px)":{minWidth:"max-content"}},g[n],e&&{backgroundColor:"var(--brand-towpath-600)",":hover":{backgroundColor:"var(--brand-towpath-600)"}},e&&t.AH`
2            & .status {
3                animation: ${C} 1s linear infinite;
4            }
5        `]}));function k(r){let{ariaLabel:e,children:n,isDisabled:t=!1,isIcon:d=!1,isLoading:f=!1,onPress:b=(()=>{}),theme:h=s.SS,type:v="button",variant:m=l,id:p,title:g}=r;const C=(0,o.useRef)(),{buttonProps:k}=(0,a.s)({isDisabled:t,onPress:b,type:v,id:p},C);return o.createElement(w,c({},k,{isLoading:f,variant:m,"aria-label":e,title:g||e,"data-theme":h,ref:C}),f?o.createElement("div",{className:"status"}):o.createElement(o.Fragment,null,n,d&&o.createElement(i.g,{icon:u.vmR})))}},6615:function(r,e,n){n.d(e,{C_:function(){return u},SS:function(){return a},ff:function(){return i},mI:function(){return l},uh:function(){return d},v:function(){return c},z3:function(){return s}});var t=n(5556),o=n.n(t);const a="default",i="campaign",u="donate",s="moss",c="leaf",l={apple:"#afe15a",darkslate:"#333333",dawn:"#ffd400",deepwater:"#00416e",grass:"#00b45a",gravel:"#e1d7cd",lilac:"#a88fee",leaf:"#0086a6",moss:"#005528",poppy:"#e64f00",rose:"#ff8cb4",slate:"#5a5a5a",sky:"#33d8ff",sunset:"#ff8700",towpath:"#a0b4be",water:"#1e29f5",white:"#ffffff"};function d(){return o().shape({alt:o().string.isRequired,srcset:o().shape({default:o().string.isRequired,avif:o().string.isRequired})})}},41358:function(r,e,n){n.d(e,{A:function(){return a}});var t=n(96540),o=n(41774);function a(r,e,n){void 0===e&&(e=0),void 0===n&&(n=[]);var a=(0,o.A)(r,e),i=a[0],u=a[1],s=a[2];return(0,t.useEffect)(s,n),[i,u]}},94701:function(r,e,n){var t=n(96540);e.A=function(r){(0,t.useEffect)(r,[])}},41774:function(r,e,n){n.d(e,{A:function(){return o}});var t=n(96540);function o(r,e){void 0===e&&(e=0);var n=(0,t.useRef)(!1),o=(0,t.useRef)(),a=(0,t.useRef)(r),i=(0,t.useCallback)((function(){return n.current}),[]),u=(0,t.useCallback)((function(){n.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout((function(){n.current=!0,a.current()}),e)}),[e]),s=(0,t.useCallback)((function(){n.current=null,o.current&&clearTimeout(o.current)}),[]);return(0,t.useEffect)((function(){a.current=r}),[r]),(0,t.useEffect)((function(){return u(),s}),[e]),[i,s,u]}},69494:function(r,e,n){n.d(e,{h:function(){return u}});var t=n(43329),o=n(29407);function a(r,e){const n=(0,o.a)(r,e?.in),a=n.getFullYear(),i=n.getMonth(),u=(0,t.w)(n,0);return u.setFullYear(a,i+1,0),u.setHours(0,0,0,0),u.getDate()}function i(r,e,n){const i=(0,o.a)(r,n?.in),u=i.getFullYear(),s=i.getDate(),c=(0,t.w)(n?.in||r,0);c.setFullYear(u,e,15),c.setHours(0,0,0,0);const l=a(c);return i.setMonth(e,Math.min(s,l)),i}function u(r,e,n){let a=(0,o.a)(r,n?.in);return isNaN(+a)?(0,t.w)(n?.in||r,NaN):(null!=e.year&&a.setFullYear(e.year),null!=e.month&&(a=i(a,e.month)),null!=e.date&&a.setDate(e.date),null!=e.hours&&a.setHours(e.hours),null!=e.minutes&&a.setMinutes(e.minutes),null!=e.seconds&&a.setSeconds(e.seconds),null!=e.milliseconds&&a.setMilliseconds(e.milliseconds),a)}}}]);

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.