1(this.webpackJsonpcochlear=this.webpackJsonpcochlear||[]).push([[54,51],{648:function(e,t,i){"use strict";i.r(t);var n=i(1),a=i.n(n),r=i(707),o=i.n(r),s=i(82);t.default=function(e){var t=e.rendering,i=e.noPadding,n=void 0!==i&&i,r=e.animation,l=void 0!==r&&r,c=a.a.createElement(s.a,{name:"content-33-split-left",rendering:t}),u=a.a.createElement(s.a,{name:"content-33-split-middle",rendering:t}),p=a.a.createElement(s.a,{name:"content-33-split-right",rendering:t});return a.a.createElement("div",{className:"sl ".concat(n?"":"l-padding"," is-33-split")},a.a.createElement("div",{className:"sl-list has-3-items"},a.a.createElement("div",{className:"sl-item"},l?a.a.createElement(o.a,{animateIn:"toFadeInUp",animateOnce:!0,delay:100,duration:.5},c):c),a.a.createElement("div",{className:"sl-item"},l?a.a.createElement(o.a,{animateIn:"toFadeInUp",animateOnce:!0,delay:150,duration:.5},u):u),a.a.createElement("div",{className:"sl-item"},l?a.a.createElement(o.a,{animateIn:"toFadeInUp",animateOnce:!0,delay:200,duration:.5},p):p)))}},687:function(e,t,i){"use strict";i.r(t);var n=i(114),a=i(1),r=i.n(a),o=i(26),s=i(648),l=i(706),c=function(e){var t=e.fields,i=e.rendering;return r.a.createElement("div",{className:"your-cochlear-stories"},r.a.createElement("div",{className:"l-padding"},r.a.createElement("div",{className:"description"},r.a.createElement(o.Text,{field:t.title,tag:"h2"}),r.a.createElement(o.Text,{field:t.description,tag:"p"}),r.a.createElement(o.Link,{field:t.link,className:"cta-button tertiary"})),r.a.createElement(s.default,{rendering:i,noPadding:!0,animation:t.hasFade.value})))};c.defaultProps=l.a.SitecoreItem.inject(Object(n.a)(Object(n.a)({},l.a.ContentBlock),{},{link:l.a.Link,hasFade:l.a.Checkbox})),t.default=c},706:function(e,t,i){"use strict";i.d(t,"b",(function(){return P})),i.d(t,"a",(function(){return b}));var n=i(114),a=i(8),r=i.n(a),o={DefaultProps:{value:!1},Mock:{value:!1},PropTypes:{value:r.a.bool}},s={DefaultProps:{value:{src:"",alt:"",width:"",height:""}},Mock:{value:{src:"http://via.placeholder.com/150",alt:"this is the alt tag",width:"",height:""}},PropTypes:{value:r.a.shape({src:r.a.string,alt:r.a.string,width:r.a.string,height:r.a.string})}},l={DefaultProps:{value:{href:"",querystring:"",anchor:"",url:"",title:"",class:"",linktype:"",text:""}},Mock:{value:{href:"http://google.com",querystring:"",anchor:"",url:"",title:"Mock link",class:"",linktype:"",text:"VIsit google through this mock link"}},PropTypes:{value:r.a.shape({href:r.a.string,anchor:r.a.string,class:r.a.string,linktype:r.a.string,title:r.a.string,text:r.a.string,querystring:r.a.string,target:r.a.string,id:r.a.string})}},c=[],u={DefaultProps:{value:""},Mock:{value:"This is mock text"},PropTypes:{value:r.a.string}},p={DefaultProps:c,Mock:[{fields:{title:u.mock},id:""},{fields:{title:u.mock},id:""}],PropTypes:{default:r.a.arrayOf(r.a.any),inject:function(e){return r.a.arrayOf({id:r.a.string,fields:e})}}},f={DefaultProps:{value:""},Mock:{value:"<p>This is text in a paragraph tag</p>"},PropTypes:{value:r.a.string}},d={DefaultProps:{title:u.DefaultProps,description:f.DefaultProps},Mock:{title:u.Mock,description:f.Mock},PropTypes:{title:u.PropTypes,description:f.PropTypes}},h={DefaultProps:{navigationTitle:u.DefaultProps,title:u.DefaultProps,navigationLink:l.DefaultProps,url:l.DefaultProps,id:u.DefaultProps,image:s.DefaultProps,description:u.DefaultProps,subtitle:u.DefaultProps},Mock:{navigationTitle:u.Mock,title:u.Mock,navigationLink:l.Mock,url:l.Mock,id:u.Mock,image:s.Mock,description:u.Mock,subtitle:u.Mock},PropTypes:{navigationTitle:u.PropTypes,title:u.PropTypes,navigationLink:l.PropTypes,url:l.PropTypes,id:u.PropTypes,image:s.PropTypes,description:u.PropTypes,subtitle:u.PropTypes}},m={DefaultProps:{image:s.DefaultProps,link:l.DefaultProps},Mock:{image:s.Mock,link:l.Mock},PropTypes:{image:s.PropTypes,link:l.PropTypes}},y={DefaultProps:Object(n.a)(Object(n.a)({},d.DefaultProps),m.DefaultProps),Mock:Object(n.a)(Object(n.a)({},d.Mock),m.Mock),PropTypes:Object(n.a)(Object(n.a)({},d.PropTypes),m.PropTypes)},g={DefaultProps:{default:{id:"",fields:{}},inject:function(e){return{id:"",fields:e}}},Mock:{default:{id:"",fields:{}},inject:function(e){return{id:"1234098704987",fields:e}}},PropTypes:{default:r.a.shape({id:r.a.string,fields:r.a.any}
1),inject:function(e){return r.a.shape({id:r.a.string,fields:e}).isRequired}}},v={basePage:{id:r.a.string,url:r.a.string,description:r.a.shape({value:r.a.string}),image:r.a.shape({jss:s.PropTypes}),navigationLink:r.a.shape({url:r.a.string}),navigationTitle:r.a.shape({value:r.a.string}),title:r.a.shape({value:r.a.string})}},P=Object(n.a)({SingleLineText:u.PropTypes,RichText:f.PropTypes,Multilist:p.PropTypes,Link:l.PropTypes,Image:s.PropTypes,Checkbox:o.PropTypes,ContentBlock:d.PropTypes,ImageLink:m.PropTypes,ImageContentLink:y.PropTypes,BasePage:h.PropTypes,SitecoreItem:g.PropTypes,GraphQL:v},a),b={SingleLineText:u.DefaultProps,RichText:f.DefaultProps,Multilist:p.DefaultProps,Link:l.DefaultProps,Image:s.DefaultProps,Checkbox:o.DefaultProps,ContentBlock:d.DefaultProps,ImageLink:m.DefaultProps,ImageContentLink:y.DefaultProps,BasePage:h.DefaultProps,SitecoreItem:g.DefaultProps}},707:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var r=i(1),o=a(r),s=a(i(708)),l=a(i(8)),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){for(var n=!0;n;){var a=e,r=t,o=i;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,r);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var c=Object.getPrototypeOf(a);if(null===c)return;e=c,t=r,i=o,n=!0,s=c=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.serverSide="undefined"===typeof window,this.listener=(0,s.default)(this.handleScroll.bind(this),50),this.visibility={onScreen:!1,inViewport:!1},this.state={classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"getElementTop",value:function(e){for(var t=0;e&&void 0!==e.offsetTop&&void 0!==e.clientTop;)t+=e.offsetTop+e.clientTop,e=e.offsetParent;return t}},{key:"getScrollPos",value:function(){return void 0!==this.scrollableParent.pageYOffset?this.scrollableParent.pageYOffset:this.scrollableParent.scrollTop}},{key:"getScrollableParentHeight",value:function(){return void 0!==this.scrollableParent.innerHeight?this.scrollableParent.innerHeight:this.scrollableParent.clientHeight}},{key:"getViewportTop",value:function(){return this.getScrollPos()+this.props.offset}},{key:"getViewportBottom",value:function(){return this.getScrollPos()+this.getScrollableParentHeight()-this.props.offset}},{key:"isInViewport",value:function(e){return e>=this.getViewportTop()&&e<=this.getViewportBottom()}},{key:"isAboveViewport",value:function(e){return e<this.getViewportTop()}},{key:"isBelowViewport",value:function(e){return e>this.getViewportBottom()}},{key:"inViewport",value:function(e,t){return this.isInViewport(e)||this.isInViewport(t)||this.isAboveViewport(e)&&this.isBelowViewport(t)}},{key:"onScreen",value:function(e,t){return!this.isAboveScreen(t)&&!this.isBelowScreen(e)}},{key:"isAboveScreen",value:function(e){return e<this.getScrollPos()}},{key:"isBelowScreen",value:function(e){return e>this.getScrollPos()+this.getScrollableParentHeight()}},{key:"getVisibility",value:function(){var e=this.getElementTop(this.node)-this.getElementTop(this.scrollableParent),t=e+this.node.clientHeight;return{inViewport:this.inViewport(e,t),onScreen:this.onScreen(e,t)}}},{key:"componentDidMount",value:function(){if(!this.serverSide){var e=this.props.scrollableParentSelector;this.scrollableParent=e?document.querySelector(e):window,this.scrollableParent&&this.scrollableParent.addEventListener?this.scrollableParent.addEventListener("scroll",this.listener):console.warn("Cannot find element by locator: "+this.props.scrollableParentSelector),this.props.animatePreScroll&&this.handleScroll()}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.delayedAnimationTimeout),clearTimeout(this.callbackTimeout),this.listener.cancel(),window&&window.removeEventListener&&window.removeEventListener("scroll",this.listener)}},{key:"visibilityHasChanged",value:function(e,t){return e.inViewport!==t.inViewport||e.onScreen!==t.onScreen}},{key:"animate",value:function(e,t){var i=this;this.delayedAnimationTimeout=setTimeout((function(){i.animating=!0,i.setState({classes:"animated "+e,style:{animationDuration:i.props.duration+"s"}}),i.callbackTimeout=setTimeout(t,1e3*i.props.duration)}),this.props.delay)}},{key:"animateIn",value:function(e){var t=this;
1this.animate(this.props.animateIn,(function(){t.props.animateOnce||(t.setState({style:{animationDuration:t.props.duration+"s",opacity:1}}),t.animating=!1);var i=t.getVisibility();e&&e(i)}))}},{key:"animateOut",value:function(e){var t=this;this.animate(this.props.animateOut,(function(){t.setState({classes:"animated",style:{animationDuration:t.props.duration+"s",opacity:0}});var i=t.getVisibility();i.inViewport&&t.props.animateIn?t.animateIn(t.props.afterAnimatedIn):t.animating=!1,e&&e(i)}))}},{key:"handleScroll",value:function(){if(!this.animating){var e=this.getVisibility();this.visibilityHasChanged(this.visibility,e)&&(clearTimeout(this.delayedAnimationTimeout),e.onScreen?e.inViewport&&this.props.animateIn?this.animateIn(this.props.afterAnimatedIn):e.onScreen&&this.visibility.inViewport&&this.props.animateOut&&1===this.state.style.opacity&&this.animateOut(this.props.afterAnimatedOut):this.setState({classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}),this.visibility=e)}}},{key:"render",value:function(){var e=this,t=this.props.className?this.props.className+" "+this.state.classes:this.state.classes;return o.default.createElement("div",{ref:function(t){e.node=t},className:t,style:Object.assign({},this.state.style,this.props.style)},this.props.children)}}]),t}(r.Component);t.default=c,c.defaultProps={offset:150,duration:1,initiallyVisible:!1,delay:0,animateO
vendor: 2,333 bytes, lines 1-2
1nce:!1,animatePreScroll:!0},c.propTypes={animateIn:l.default.string,animateOut:l.default.string,offset:l.default.number,duration:l.default.number,delay:l.default.number,initiallyVisible:l.default.bool,animateOnce:l.default.bool,style:l.default.object,scrollableParentSelector:l.default.string,className:l.default.string,animatePreScroll:l.default.bool},e.exports=t.default},708:function(e,t,i){(function(t){var i=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,p=Math.max,f=Math.min,d=function(){return c.Date.now()};function h(e,t,i){var n,a,r,o,s,l,c=0,u=!1,h=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var i=n,r=a;return n=a=void 0,c=t,o=e.apply(r,i)}function P(e){return c=e,s=setTimeout(k,t),u?v(e):o}function b(e){var i=e-l;return void 0===l||i>=t||i<0||h&&e-c>=r}function k(){var e=d();if(b(e))return T(e);s=setTimeout(k,function(e){var i=t-(e-l);return h?f(i,r-(e-c)):i}(e))}function T(e){return s=void 0,g&&n?v(e):(n=a=void 0,o)}function w(){var e=d(),i=b(e);if(n=arguments,a=this,l=e,i){if(void 0===s)return P(l);if(h)return s=setTimeout(k,t),v(l)}return void 0===s&&(s=setTimeout(k,t)),o}return t=y(t)||0,m(i)&&(u=!!i.leading,r=(h="maxWait"in i)?p(y(i.maxWait)||0,t):r,g="trailing"in i?!!i.trailing:g),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=a=s=void 0},w.flush=function(){return void 0===s?o:T(d())},w}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var s=a.test(e);return s||r.test(e)?o(e.slice(2),s?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,i){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(i)&&(n="leading"in i?!!i.leading:n,a="trailing"in i?!!i.trailing:a),h(e,t,{leading:n,maxWait:t,trailing:a})}}).call(this,i(115))}}]); 2//# sourceMappingURL=YourCochlearStories.f10fa427.chunk.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.