PageSourceSearch

https://www.libertymutual.com/_next/static/chunks/9150-a888b7bdd6288b26.js

js libertymutual.com collected 2026-09-24 08:31:38 UTC 9,876 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9150],{645:function(t,e,i){var l=this&&this.__rest||function(t,e){var i={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&0>e.indexOf(l)&&(i[l]=t[l]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)0>e.indexOf(l[n])&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(i[l[n]]=t[l[n]]);return i},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=void 0;let o=n(i(14232)),s=n(i(18432));e.defaultProps=Object.assign(Object.assign({},s.default.defaultProps),{stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}}),e.default=function(t){let i=Object.assign(Object.assign({},e.defaultProps),t),{mode:n,onFixedToggle:r,hideOnBoundaryHit:a,offsetTransforms:d,disabled:c,boundaryElement:h,scrollElement:u,bottomOffset:p,topOffset:f,positionRecheckInterval:b,children:m,isIOSFixEnabled:g,dontUpdateHolderHeightWhenSticky:y,wrapperClassName:w,stickyClassName:E,stickyStyle:k}=i,O=l(i,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return o.default.createElement(s.default,{mode:n,onFixedToggle:r,hideOnBoundaryHit:a,offsetTransforms:d,disabled:c,boundaryElement:h,scrollElement:u,bottomOffset:p,topOffset:f,positionRecheckInterval:b,isIOSFixEnabled:g,dontUpdateHolderHeightWhenSticky:y},({isFixed:t,wrapperStyles:e,wrapperRef:i,holderStyles:l,holderRef:n})=>o.default.createElement("div",Object.assign({},O,{ref:n,style:l}),o.default.createElement("div",Object.assign({},O,{className:`${w} ${t?E:""}`,style:t?Object.assign(Object.assign({},e),k):e,ref:i}),m)))}},18432:function(t,e,i){var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});let n=i(14232),o=i(69193),s=l(i(80071)),r=l(i(95268)),a=i(63458);class d extends n.Component{constructor(){super(...arguments),this.holderEl=null,this.wrapperEl=null,this.el=null,this.scrollEl=null,this.boundaryEl=null,this.disabled=!1,this.checkPositionIntervalId=null,this.lastMinHeight=null,this.state={isFixed:!1,wrapperStyles:void 0,holderStyles:void 0,height:0},this.holderRef=t=>{t!==this.holderEl&&(this.holderEl=t)},this.wrapperRef=t=>{t!==this.wrapperEl&&(this.wrapperEl=t,this.updateScrollEl(),this.updateBoundaryEl())},this.checkPosition=()=>{let t,{holderEl:e,wrapperEl:i,boundaryEl:l,scrollEl:n,disabled:o}=this;if(!n||!e||!i)return void console.error("Missing required elements:",{scrollEl:n,holderEl:e,wrapperEl:i});let{mode:s,onFixedToggle:d,offsetTransforms:c,isIOSFixEnabled:h,dontUpdateHolderHeightWhenSticky:u}=this.props;if(o){this.state.isFixed&&this.setState({isFixed:!1,wrapperStyles:{}});return}if(!e.getBoundingClientRect||!i.getBoundingClientRect)return;let p=e.getBoundingClientRect(),f=i.getBoundingClientRect(),b=l?(0,a.getRect)(l):a.infiniteRect,m=(0,a.getRect)(n),g=this.isFixed(p,f,b,m),y=null;if(c&&g&&n instanceof HTMLElement){let t=(0,r.default)(n);t&&(y=(0,a.getRect)(t))}let w=this.state.isFixed&&u&&this.lastMinHeight?this.lastMinHeight:f.height;this.lastMinHeight=w;let E=h?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:void 0,k={isFixed:g,height:f.height,holderStyles:{minHeight:`${w}px`},wrapperStyles:g?Object.assign(Object.assign({},E),(t=this.props,("top"===s?(t,e)=>{let{bottomOffset:i,hideOnBoundaryHit:l}=e,{top:n,height:o,width:s,boundaryBottom:r}=t;return l||n+o+i<r?{top:`${n}px`,width:`${s}px`,position:"fixed"}:!l&&r>0?{top:`${r-o-i}px`,width:`${s}px`,position:"fixed"}:{width:`${s}px`,bottom:`${i}px`,position:"absolute"}}:(t,e)=>{let{bottomOffset:i,hideOnBoundaryHit:l}=e,{bottom:n,height:o,width:s,boundaryTop:r}=t;return l||n-o-i>r?{width:`${s}px`,top:`${n-o}px`,position:"fixed"}:{width:`${s}px`,top:`${i}px`,position:"absolute"}})({boundaryTop:"bottom"===s?b.top:0,boundaryBottom:"top"===s?b.bottom:0,top:"top"===s?m.top-(y?y.top:0):0,bottom:"bottom"===s?m.bottom-(y?y.bottom:0):0,width:p.width,height:f.height},t))):E};g!==this.state.isFixed&&d&&"function"==typeof d&&d(g),((t,e)=>{let i=t.wrapperStyles,l=e.wrapperStyles;if(t.isFixed!==e.isFixed||t.height!==e.height||!i&&l||i&&!l)return!1;if(!l)return!0;for(let t in i)if(i.hasOwnProperty(t)&&i[t]!==l[t])return!1;return!0})(this.state,k)||this.setState(k)}}isFixed(t,e,i,l){let{hideOnBoundaryHit:n,bottomOffset:o,topOffset:s,mode:r}=this.props;if(this.disabled||n&&i&&!(0,a.isIntersecting)(i,l,s,o))return!1;let d=n?e.height+o:0;return"top"===r?t.top+s<l.top&&l.top+d<=i.bottom:t.bottom-s>l.bottom&&l.bottom-d>=i.top}
1updateScrollEl(){if(!this.wrapperEl)return;this.scrollEl&&((0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);let{scrollElement:t}=this.props;"string"==typeof t?this.scrollEl=(0,s.default)(t,this.wrapperEl):this.scrollEl=t,this.scrollEl?(0,o.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+("string"==typeof t?t:"unknown"))}updateBoundaryEl(){if(!this.wrapperEl)return;let{boundaryElement:t}=this.props;this.boundaryEl=(0,s.default)(t,this.wrapperEl),(this.boundaryEl===window||this.boundaryEl===document)&&(this.boundaryEl=null)}initialize(){let{positionRecheckInterval:t,disabled:e}=this.props;this.disabled=e,(0,o.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),t&&(this.checkPositionIntervalId=setInterval(this.checkPosition,t))}componentDidUpdate({scrollElement:t,boundaryElement:e,disabled:i}){(t!==this.props.scrollElement||null===this.scrollEl)&&this.updateScrollEl(),(e!==this.props.boundaryElement||null===this.boundaryEl)&&this.updateBoundaryEl(),i!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())}componentDidMount(){this.initialize(),null===this.wrapperEl&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")}componentWillUnmount(){this.scrollEl&&(0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,o.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,this.checkPositionIntervalId&&clearInterval(this.checkPositionIntervalId)}render(){let{holderRef:t,wrapperRef:e}=this,{isFixed:i,wrapperStyles:l,holderStyles:n}=this.state;return this.props.children({holderRef:t,wrapperRef:e,isFixed:i,wrapperStyles:l,holderStyles:n})}}d.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,offsetTransforms:!0,disabled:!1,onFixedToggle:void 0,boundaryElement:void 0,hideOnBoundaryHit:!0,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},e.default=d},29150:function(t,e,i){var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RenderPropSticky=void 0,e.RenderPropSticky=l(i(18432)).default,e.default=l(i(645)).default},63458:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isIntersecting=e.getRect=e.infiniteRect=void 0,e.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0},e.getRect=function(t){return t&&"getBoundingClientRect"in t&&"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():t===window||t===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}},e.isIntersecting=function(t,e,i,l){let n=t.top+i,o=t.bottom+l;return n>=e.top&&n<=e.bottom||o>=e.top&&o<=e.bottom||o>=e.bottom&&n<=e.top}},69193:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unlisten=e.listen=void 0;let i=[],l=[];e.listen=function(t,e,n){for(let o=0,s=e.length;o<s;o+=1)!function(t,e,n){let o=i.indexOf(t);-1===o&&(o=i.length,i.push(t),l.push({el:t,callbacks:{},realCallbacks:{},realListenersCnt:0})),!function(t,e,i){if(t.callbacks[e]){-1===t.callbacks[e].indexOf(i)&&t.callbacks[e].push(i);return}t.callbacks[e]=[i],t.realCallbacks[e]=i=>{for(let l=0,n=t.callbacks[e].length;l<n;l+=1)t.callbacks[e][l](i)},t.el.addEventListener(e,t.realCallbacks[e]),t.realListenersCnt+=1}(l[o],e,n)}(t,e[o],n)},e.unlisten=function(t,e,n){for(let o=0,s=e.length;o<s;o+=1)!function(t,e,n){let o=i.indexOf(t);if(-1===o)return;let s=l[o];!function(t,e,i){if(!t.callbacks[e])return;let l=t.callbacks[e].indexOf(i);-1!==l&&(t.callbacks[e].splice(l,1),t.callbacks[e].length>0||(t.el.removeEventListener(e,t.realCallbacks[e]),delete t.callbacks[e],delete t.realCallbacks[e],t.realListenersCnt-=1))}(s,e,n),s.realListenersCnt>0||(i.splice(o,1),l.splice(o,1))}(t,e[o],n)}},80071:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});let i={};"undefined"!=typeof document&&(i.body=document.body,i.window=window,i.document=document);let l=(()=>
1{if("undefined"!=typeof document&&document.body){let t=document.body;return"function"==typeof t.matches?"matches":"function"==typeof t.webkitMatchesSelector?"webkitMatchesSelector":"function"==typeof t.mozMatchesSelector?"mozMatchesSelector":"function"==typeof t.msMatchesSelector?"msMatchesSelector":"function"==typeof t.oMatchesSelector?"oMatchesSelector":null}return null})();e.default=function(t,e){if(!t)return null;if(i.hasOwnProperty(t))return i[t];if("#"===t[0])return document.getElementById(t.slice(1));if(null===l)return null;let n=e;for(;n=n.parentElement;)if(n[l](t))return n||null;return null}},95268:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){do{let e=window.getComputedStyle(t);if("none"!==e.transform||"none"!==e.webkitTransform)return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}}}]);

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.