PageSourceSearch

https://www.chkmountford.co.uk/asset_bundles/266.bundle.0a3705642aef2cabebd0.js

js chkmountford.co.uk collected 2026-09-29 14:04:32 UTC 16,783 bytes, 1 lines download raw bytes

1(self.webpackChunktheme_boilerplate=self.webpackChunktheme_boilerplate||[]).push([[266],{370:function(e,t,r){"use strict";r.d(t,{XZ:function(){return R},Y8:function(){return T}});var n=r(7294);function o(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=o(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}var a=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=o(e))&&(n&&(n+=" "),n+=t);return n},i=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}};function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var l=["checked","state","setState","value","defaultValue"],s=["locked","color","variant","animation","children","style","id","className","bigger","hasFocus"],u=["shape","plain","icon","indeterminate","hasFocus"],p=["color","icon","id","children"],d=["checked","value","state"],f=["ref"],h=["checked","value","state"],b=["checked","value","state"];function m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){var n;return n=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==c(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}(e,t)||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.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var k={pointerEvents:"none"},x=function(e){var t=e.locked,r=e.style;return t?y(y({},k),r):r},j=function(e){return(0,n.useMemo)((function(){if(e){var t="icon";"img"===e.type?t="image":"svg"===e.type&&(t="svg");var r=new RegExp("\\b".concat(t,"\\b"));return{iconType:e.props["data-type"]||t,icon:e.props.className&&!r.test(e.props.className)?(0,n.cloneElement)(e,y(y({},e.props),{},{className:a(e.props.className,t)})):e}}return{}}),[e])},E=function(e,t){return!(t||e&&"smooth"!==e&&"pulse"!==e)},D=function(e,t){var r=e.animation,n=e.bigger,o=e.locked,a=e.plain,i=e.shape,c=e.variant,l=e.iconType,s=e.hasFocus;return g(g(g(g({"p-default":!t&&E(r,l),"p-bigger":n,"p-locked":o,"p-plain":a,"p-has-focus":s},"p-".concat(r),r),"p-".concat(i),i),"p-".concat(c),c),"p-".concat(l),l)},S=function(e){return"boolean"==typeof e},N=function(e){return null==e},P=function(e){var t=e.checked,r=e.state,n=e.setState,o=e.value,a=e.defaultValue,i=m(e,l);return n&&(!S(r)&&"indeterminate"!==r||S(t)||!N(t)?Array.isArray(r)?t=r.includes(o):N(t)&&(t=Object.is(r,o)):t=!!r,N(o)&&(o=a||"")),y({checked:t,value:o,state:r},i)},C=function(e){var t=(0,n.useRef)("pcr_"+function(){for(var e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}(8)).current,r=e.locked,o=e.color,a=e.variant,i=e.animation,c=e.children,l=e.style,u=e.id;return{locked:r,color:o,variant:a,animation:i,children:c,id:void 0===u?t:u,className:e.className,bigger:e.bigger,style:l,hasFocus:e.hasFocus,htmlProps:m(e,s)}},M=function(e){var t=e.shape,r=e.plain,n=e.icon,o=e.indeterminate,a=(e.hasFocus,m(e,u));return y({shape:t,plain:r,icon:n,indeterminate:o},C(a))},_=function(e){var t=e.color,r=e.icon,o=e.id,i=e.children,c=m(e,p);return(0,n.createElement)("div",y({className:a("state",t&&"p-".concat(t))},c),r,(0,n.createElement)("label",{htmlFor:o},i))};_.displayName="State";var R=(0,n.forwardRef)((function(e,t){var r=P(e),o=r.checked,c=r.value,l=r.state,s=m(r,d),u=M(s),p=u.children,h=u.locked,b=u.color,v=u.id,g=u.className,O=u.style,k=u.indeterminate,E=u.icon,S=u.htmlProps,N=function(e){var t=e.checked,r=e.state,o=e.indeterminate,a=w((0,n.use
1State)(!1),2),i=a[0],c=a[1],l=(0,n.useRef)(null);return(0,n.useEffect)((function(){void 0!==r&&l.current&&c("indeterminate"===r)}),[r]),(0,n.useEffect)((function(){"indeterminate"!==r&&l.current&&void 0!==o&&(l.current.checked=o,c(o))}),[o,r]),{ref:l,"aria-checked":i?"mixed":t}}({state:l,checked:o,indeterminate:k}),C=N.ref,R=m(N,f),T=x({locked:h,style:O}),A=j(E),F=A.icon,V=A.iconType;return(0,n.createElement)("div",{style:T,className:a("pretty",D(y(y({},e),{},{iconType:V})),g)},(0,n.createElement)("input",y(y({ref:i([t,C]),value:c,type:"checkbox",id:v,checked:o},R),S)),(0,n.createElement)(_,{id:v,icon:F,color:b},p))}));R.displayName="Checkbox";var T=(0,n.forwardRef)((function(e,t){var r=P(e),o=r.checked,i=r.value,c=(r.state,m(r,h)),l=M(c),s=l.shape,u=void 0===s?"round":s,p=l.children,d=l.locked,f=l.color,b=l.id,v=l.className,g=l.style,w=l.icon,O=l.htmlProps,k=x({locked:d,style:g}),E=j(w),S=E.icon,N=E.iconType;return(0,n.createElement)("div",{style:k,className:a("pretty",D(y(y({},e),{},{shape:u,iconType:N})),v)},(0,n.createElement)("input",y({ref:t,value:i,type:"radio",id:b,checked:o},O)),(0,n.createElement)(_,{id:b,icon:S,color:f},p))}));T.displayName="Radio";var A=function(e){e.currentTarget.setAttribute("aria-checked",e.currentTarget.checked+"")};(0,n.forwardRef)((function(e,t){var r=P(e),o=r.checked,c=r.value,l=(r.state,m(r,b)),s=C(l),u=s.children,p=s.locked,d=s.color,f=s.id,h=s.className,v=s.style,g=s.htmlProps,w=x({locked:p,style:v}),O=function(e){var t=e.setState,r=e.checked,o=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=o.current,n=!1;return t||r||!e||(e.setAttribute("aria-checked",e.checked+""),e.addEventListener("change",A),n=!0),function(){n&&e&&e.removeEventListener("change",A)}}),[t,r]),o}({setState:e.setState,checked:o});return(0,n.createElement)("div",{style:w,className:a("pretty","p-switch",D(e,!0),h)},(0,n.createElement)("input",y({ref:i([t,O]),type:"checkbox",role:"switch",value:c,id:f,"aria-checked":o,checked:o},g)),(0,n.createElement)(_,{id:f,color:d},u))})).displayName="Switch"},2855:function(e,t,r){(t=r(3645)(!1)).push([e.id,'.Dropdown-root{position:relative}.Dropdown-control{position:relative;overflow:hidden;background-color:#fff;border:1px solid #ccc;border-radius:2px;box-sizing:border-box;color:#333;cursor:default;outline:none;padding:8px 52px 8px 10px;transition:all 200ms ease}.Dropdown-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Dropdown-arrow{border-color:#999 rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:5px 5px 0;content:" ";display:block;height:0;margin-top:-ceil(2.5);position:absolute;right:10px;top:14px;width:0}.is-open .Dropdown-arrow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #999;border-width:0 5px 5px}.Dropdown-menu{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;overflow-y:auto;position:absolute;top:100%;width:100%;z-index:1000;-webkit-overflow-scrolling:touch}.Dropdown-menu .Dropdown-group>.Dropdown-title{padding:8px 10px;color:#333;font-weight:bold;text-transform:capitalize}.Dropdown-option{box-sizing:border-box;color:rgba(51,51,51,.8);cursor:pointer;display:block;padding:8px 10px}.Dropdown-option:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.Dropdown-option:hover{background-color:#f2f9fc;color:#333}.Dropdown-option.is-selected{background-color:#f2f9fc;color:#333}.Dropdown-noresults{box-sizing:border-box;color:#ccc;cursor:default;display:block;padding:8px 10px}',""]),e.exports=t},3658:function(e,t,r){"use strict";t.Z=void 0;var n,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(7294)),a=(n=r(3967))&&n.__esModule?n:{default:n};function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,638 bytes, line 1
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}var b="Select...",m=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?f(e):t}(this,d(t).call(this,e))).state={selected:r.parseValue(e.value,e.options)||{label:void 0===e.placeholder?b:e.placeholder,value:""},isOpen:!1},r.dropdownRef=(0,o.createRef)(),r.mounted=!0,r.handleDocumentClick=r.handleDocumentClick.bind(f(r)),r.fireChangeEvent=r.fireChangeEvent.bind(f(r)),r}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),r=t,n=[{key:"componentDidUpdate",value:function(e){if(this.props.value!==e.value)if(this.props.value){var t=this.parseValue(this.props.value,this.props.options);t!==this.state.selected&&this.setState({selected:t})}else this.setState({selected:{label:void 0===this.props.placeholder?b:this.props.placeholder,value:""}})}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(e){this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus(this.state.isOpen),"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))}},{key:"parseValue",value:function(e,t){var r;if("string"==typeof e)for(var n=0,o=t.length;n<o;n++)if("group"===t[n].type){var a=t[n].items.filter((function(t){return t.value===e}));a.length&&(r=a[0])}else void 0!==t[n].value&&t[n].value===e&&(r=t[n]);return r||e}},{key:"setValue",value:function(e,t){var r={selected:{value:e,label:t},isOpen:!1};this.fireChangeEvent(r),this.setState(r)}},{key:"fireChangeEvent",value:function(e){e.selected!==this.state.selected&&this.props.onChange&&this.props.onChange(e.selected)}},{key:"renderOption",value:function(e){var t,r=e.value;void 0===r&&(r=e.label||e);var n=e.label||e.value||e,i=r===this.state.selected.value||r===this.state.selected,c=(u(t={},"".concat(this.props.baseClassName,"-option"),!0),u(t,e.className,!!e.className),u(t,"is-selected",i),t),p=(0,a.default)(c),d=Object.keys(e.data||{}).reduce((function(t,r){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(r,!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,u({},"data-".concat(r),e.data[r]))}),{});return o.default.createElement("div",l({key:r,className:p,onMouseDown:this.setValue.bind(this,r,n),onClick:this.setValue.bind(this,r,n),role:"option","aria-selected":i?"true":"false"},d),n)}},{key:"buildMenu",value:function(){var e=this,t=this.props,r=t.options,n=t.baseClassName,a=r.map((function(t){if("group"===t.type){var r=o.default.createElement("div",{className:"".concat(n,"-title")},t.name),a=t.items.map((function(t){return e.renderOption(t)}));return o.default.createElement("div",{className:"".concat(n,"-group"),key:t.name,role:"listbox",tabIndex:"-1"},r,a)}return e.renderOption(t)}));return a.length?a:o.default.createElement("div",{className:"".concat(n,"-noresults")}
1,"No options found")}},{key:"handleDocumentClick",value:function(e){this.mounted&&(this.dropdownRef.current.contains(e.target)||this.state.isOpen&&this.setState({isOpen:!1}))}},{key:"isValueSelected",value:function(){return"string"==typeof this.state.selected||""!==this.state.selected.value}},{key:"render",value:function(){var e,t,r,n,i,c=this.props,l=c.baseClassName,s=c.controlClassName,p=c.placeholderClassName,d=c.menuClassName,f=c.arrowClassName,h=c.arrowClosed,b=c.arrowOpen,m=c.className,v=this.props.disabled?"Dropdown-disabled":"",y="string"==typeof this.state.selected?this.state.selected:this.state.selected.label,g=(0,a.default)((u(e={},"".concat(l,"-root"),!0),u(e,m,!!m),u(e,"is-open",this.state.isOpen),e)),w=(0,a.default)((u(t={},"".concat(l,"-control"),!0),u(t,s,!!s),u(t,v,!!v),t)),O=(0,a.default)((u(r={},"".concat(l,"-placeholder"),!0),u(r,p,!!p),u(r,"is-selected",this.isValueSelected()),r)),k=(0,a.default)((u(n={},"".concat(l,"-menu"),!0),u(n,d,!!d),n)),x=(0,a.default)((u(i={},"".concat(l,"-arrow"),!0),u(i,f,!!f),i)),j=o.default.createElement("div",{className:O},y),E=this.state.isOpen?o.default.createElement("div",{className:k,"aria-expanded":"true"},this.buildMenu()):null;return o.default.createElement("div",{ref:this.dropdownRef,className:g},o.default.createElement("div",{className:w,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},j,o.default.createElement("div",{className:"".concat(l,"-arrow-wrapper")},b&&h?this.state.isOpen?b:h:o.default.createElement("span",{className:x}))),E)}}],n&&p(r.prototype,n),t}(o.Component);m.defaultProps={baseClassName:"Dropdown"};var v=m;t.Z=v},1166:function(e,t,r){var n=r(2855);"string"==typeof n&&(n=[[e.id,n,""]]);r(6723)(n,{hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(e.exports=n.locals)}}]);

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.