1(self.webpackChunkcapa_frontend=self.webpackChunkcapa_frontend||[]).push([[4712],{88692:function(o,t,n){"use strict";var e,i,r,u,a=n(25602),l=n(92369),s=n(92517),c=n(89754),f=n(152),d=n(69614),p=n(86832),h=n(98308),_=n(74302),k=n.n(_),v=n(17512),g=n.n(v),m=n(28802);function b(o,t,n,e){u||(u="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=o&&o.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=e;else if(r>1){for(var a=Array(r),l=0;l<r;l++)a[l]=arguments[l+3];t.children=a}if(t&&i)for(var s in i)void 0===t[s]&&(t[s]=i[s]);else t||(t=i||{});return{$$typeof:u,type:o,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}class y extends a.Component{constructor(o){super(o),this.setField=d.x.bind(this)}componentDidMount(){const{id:o,type:t,dispatch:n,outlook:e,settingKey:i}=this.props,r=(0,s.GP)((0,c.b)(new Date),"d-MMM-yyyy");let u="outlook-"+t+"-"+o;i&&(u+="-"+i),e||n((0,m.g)({loadID:u,id:o,type:t,week:r}))}render(){const{outlook:o,loadedSettings:t,myCAPA:n}=this.props;if(!t||!o||!o.length)return null;const{range:u}=this.props,a=function(t){return o.find(function(o){return o.week==t})},l=a(0);if(!l.seats&&!l.cargo)return null;const s=a(u),c=(l.seats-s.seats)/s.seats,d=(l.cargo-s.cargo)/s.cargo;if(!c&&!d)return null;let p,_;return c&&(p=b("div",{className:g().outlook},void 0,b("div",{className:g().outlookTitle},void 0,"Seat Capacity"),b("div",{className:g().outlookValue+" "+(c>0?g().positive:g().negative)},void 0,(0,f.ZV)(c,{useGrouping:!0,minimumFractionDigits:1,maximumFractionDigits:1,style:"percent",signDisplay:"exceptZero"})))),d&&(_=b("div",{className:g().outlook},void 0,b("div",{className:g().outlookTitle},void 0,"Cargo"),b("div",{className:g().outlookValue+" "+(d>0?g().positive:g().negative)},void 0,(0,f.ZV)(d,{useGrouping:!0,minimumFractionDigits:1,maximumFractionDigits:1,style:"percent",signDisplay:"exceptZero"})))),b("div",{className:g().box},void 0,!n&&b("h2",{},void 0,b(h.A,{id:"simple-outlook",name:"Capacity Change for "+this.props.name,settings:{id:this.props.id,type:this.props.type,range:this.props.range}}),"Capacity Change"),b("div",{style:{display:"flex"}},void 0,p,_),b("div",{className:g().outlookNote},void 0,"Current week vs"," ",b("select",{value:this.props.range,onChange:this.setField("range")},void 0,e||(e=b("option",{value:"-52"},void 0,"-12 months")),i||(i=b("option",{value:"-26"},void 0,"-6 months")),r||(r=b("option",{value:"12"},void 0,"+12 weeks")))))}}t.A=(0,p.A)((0,l.Ng)()(k()(g())(y)),{range:"-52"})},74712:function(o,t,n){"use strict";n.r(t);var e=n(25602),i=n(88692),r=n(38415);function u(){return u=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)({}).hasOwnProperty.call(n,e)&&(o[e]=n[e])}return o},u.apply(null,arguments)}const a=function(o){!function(o,t){if(o!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);const{settingKey:t}=o,n=(0,r.t0)(t),a=(0,r.xc)(t);return e.createElement(i.A,u({},o,n,{outlook:a.outlook}))}.bind(void 0);t.default=a},38415:function(o,t,n){"use strict";n.d(t,{M3:function(){return h},Mr:function(){return b},OX:function(){return g},Q3:function(){return y},SM:function(){return k},TE:function(){return v},dS:function(){return p},dU:function(){return m},t0:function(){return f},vA:function(){return x},xc:function(){return d}});var e=n(25602),i=n(92369),r=n(50919),u=n(56243),a=n(89754),l=n(44711),s=n(28802);function c(o,t){if(o!==t)throw new TypeError("Cannot instantiate an arrow function")}function f(o){var t=this;return(0,i.d4)(function(n){return c(this,t),n.toolSettings[o]}.bind(this),{equalityFn:i.bN})}function d(o){var t=this;return(0,i.d4)(function(n){c(this,t);const e=n.data.profiles,{type:i,id:r}=n.toolSettings[o];return e[i]&&e[i][r]?e[i][r]:{}}.bind(this),{equalityFn:i.bN})}function p(o){var t=this;const n=(0,i.wA)(),r=f(o),u=d(o),{id:a,type:l}=r,p="mycapa-profile-"+l+"-"+a,h=(0,i.d4)(function(o){return c(this,t),o.loading[p]}.bind(this),{equalityFn:i.bN}),{info:_}=u;return(0,e.useEffect)(function(){c(this,t),_||h||n((0,s.qk)({id:a,type:l,loadID:p}))}.bind(this),[]),_}function h(){var o=this;return(0,i.d4)(function(t){return c(this,o),t.loading}.bind(this),{equalityFn:i.bN})}function _(o,{profileKey:t,actionCreator:n,loadIDPrefix:r,mapResult:u}){var a=this;const l=(0,i.wA)(),s=f(o),p=d(o),{id:h,type:_}=s,k=p[t];return(0,e.useEffect)(function(){c(this,a),k||l(n({id:h,loadID:r+"-"+_+"-"+h,type:_}))}.bind(this),[l,n,h,r,k,_]),k?u(k):null}function k(o){var t=this;return _(o,{profileKey:"codeshares",actionCreator:s.qT,loadIDPrefix:"codeshares-data",mapResult:function(o){return c(this,t),{codeshares:o}}.bind(this)})}function v(o,t=!1){const n=f(o),e=d(o),i=p(o);if(!i)return null;return{...n,date:i.eto?(0,u.W)((0,r.S)(i.eto)):(0,u.W)((0,a.b)(new Date)),fleet:e[t?"currentFleet":"fleet"]}}function g(o){return v(o,!0)}function m(o){const t=f(o),n=d(o),e=p(o);if(!e)return null;const i=(0,u.W)((0,a.b)(new Date)),r=t.country||(e.country&&e.country.id?e.country.id:4==t.type?t.id:0);return{...t,date:i,country:r,capacity:n.capacity,marketCapacity:n.marketCapacity}}function b(o){var t=this;return _(o,{profileKey:"sustainability",actionCreator:s.sg,loadIDPrefix:"sustainability-data",mapResult:function(o){return c(this,t),{sustainability:o.data,source:o.meta.source,fNotes:o.meta.note}}.bind(this)})}function y(o){var t=this;return _(o,{profileKey:"safContracts",actionCreator:s.ib,loadIDPrefix:"saf-contracts-data",mapResult:function(o){return c(this,t),{safContracts:o.data}}.bind(this)})}function x(o,t){var n=this;const e=(0,i.d4)(function(o){return c(this,n),o.user.activesubs}.bind(this),{equalityFn:i.bN});return"boolean"==typeof t?t:(0,l.mv)(e,o)}},95726:function(o,t,n){var e=n(89547),i=n(38532)(e);i.push([o.id,'.outlook_button_vh9{background-color:#e61e26;border:0;color:#fff;cursor:pointer;display:inline-block;font-family:Roboto,sans-serif;font-weight:700;padding:16px;text-align:center;width:120px}.outlook_button_vh9:hover{background-color:#e9353c;color:#fff;-webkit-text-decoration:none;text-decoration:none}.outlook_button_vh9:disabled{background-color:#e1e1e1;cursor:default}.outlook_videoWrapper_RcL{padding:56.25% 0 0;position:relative}.outlook_videoWrapper_RcL iframe{height:100%;left:0;position:absolute;top:0;width:100%}.outlook_helpCursor_vCl{cursor:help}.outlook_box_muD{background-color:#fff;box-sizing:border-box;flex:1;margin:0 8px 16px;padding:16px}@media(max-width:768px){.outlook_box_muD{justify-content:space-between;margin:0 0 16px}}.outlook_box_muD h2{font-size:16px;margin:0 0 16px}.outlook_box_muD h2,.outlook_box_muD h2 input,.outlook_box_muD h2 select{color:#0d2c6c;font-weight:700}
1.outlook_row_RsC{display:flex}@media(max-width:768px){.outlook_row_RsC{flex-wrap:wrap}}.outlook_row_RsC>div:first-of-type{margin-left:0}.outlook_row_RsC>div:last-of-type{margin-right:0}.outlook_column_TOI{display:flex;flex-direction:column}@media(max-width:768px){.outlook_column_TOI{flex:1 0 auto;margin-bottom:16px}.outlook_column_TOI>.outlook_box_muD{margin-bottom:0}}.outlook_graph_Xnp{height:300px!important}.outlook_header_Rom{color:#0d2c6c;font-weight:700}.outlook_footer_q7m{color:#0d2c6c;font-size:12px}.outlook_outlook_C5w{flex:1;text-align:center}.outlook_outlookValue_BgG{font-size:36px}.outlook_outlookTitle_YgK,.outlook_outlookValue_BgG{font-weight:700}.outlook_outlookNote_bjL{font-size:14px;text-align:center}.outlook_positive_Ib5:after{color:#19b504;content:"â²"}.outlook_negative_dp0:after{color:#e61e26;content:"â¼"}',""]),i.locals={button:"outlook_button_vh9",videoWrapper:"outlook_videoWrapper_RcL",helpCursor:"outlook_helpCursor_vCl",box:"outlook_box_muD",row:"outlook_row_RsC",column:"outlook_column_TOI",graph:"outlook_graph_Xnp",header:"outlook_header_Rom",footer:"outlook_footer_q7m",outlook:"outlook_outlook_C5w",outlookValue:"outlook_outlookValue_BgG",outlookTitle:"outlook_outlookTitle_YgK",outlookNote:"outlook_outlookNote_bjL",positive:"outlook_positive_Ib5",negative:"outlook_negative_dp0"},o.exports=i},17512:function(o,t,n){var e=n(95726),i=n(61352),r="string"==typeof e?[[o.id,e,""]]:e;(t=o.exports=e.locals||{})._getContent=function(){return r},t._getCss=function(){return""+e},t._insertCss=function(o){return i(r,o)}},50919:function(o,t,n){"use strict";n.d(t,{S:function(){return i}});var e=n(97245);function i(o,t){return(0,e.a)(1e3*o,t?.in)}},56243:function(o,t,n){"use strict";n.d(t,{W:function(){return i}});var e=n(97245);function i(o){return+(0,e.a)(o)}}}]);
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.