1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5241],{32777:function(t,e,r){r.d(e,{Q:function(){return R}});var o,i=r(92777),n=r(82262),l=r(81531),a=r(63553),c=r(37247),s=r(71218),h=r(59499),u=r(4730),p=r(96590),d=r(36864),f=r(79758);r(76801),r(43843),r(28436),r(50886),r(81919),r(69358),r(59749),r(38077),r(60228),r(70560),r(49693),r(47522),r(99474),r(35082),r(40739),r(76034),r(30050);var g=r(11851),y=r(21804),w=r.n(y),v=r(22188),b=r(67294),m=r(53457),x=r(16835);r(64043),r(21057),r(68932),r(32320);var k=r(53508),S=r(85893);r(92126);var C=["swatchColor","swatchSize","isHighlighted","isSelected"];function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,o)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach(function(e){(0,h.Z)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var _=function(t){return(0,S.jsx)("svg",O(O({},t),{},{children:(0,S.jsx)("path",{d:"M19.12 31.17l17.46-17.58a2 2 0 0 1 2.84 2.82l-18.88 19a2 2 0 0 1-2.83 0L9.6 27.34a2 2 0 0 1 2.82-2.83l6.7 6.67z"})}))};_.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"};var Z={shouldForwardProp:(0,k.Z)({blacklist:["textAlignValue","displayValue"]})},j=(0,f.Z)("div",(0,d.Z)({},{target:"e6a0lxt0"},Z))("margin:0 auto 32px;background-color:transparent;",function(t){var e=t.textAlignValue,r=t.displayValue;return(0,p.iv)("display:",r,";text-align:",e,";")},""),D={shouldForwardProp:(0,k.Z)({blacklist:["swatchColor","swatchSize","isLightSwatch","isHighlighted"]})},M=(0,f.Z)("span",(0,d.Z)({},{target:"e6a0lxt1"},D))("display:inline-block;position:relative;border-radius:50%;text-align:left;border:2px solid;",function(t){var e=t.swatchColor;return(0,p.iv)("background-color:",e,";")}," ",function(t){var e=t.swatchSize,r=void 0===e?30:e;return(0,p.iv)("width:",r,"px;height:",r,"px;",m.BC.down.sm,"{width:",r,"px;height:",r,"px;}")}," ",function(t){var e=t.isLightSwatch,r=t.swatchColor,o=t.theme,i=t.isHighlighted;return(0,p.iv)("border-color:",i?o.colors.primary[300]:e?o.colors.neutral[400]:r,";box-shadow:",i?o.shadows.lightPrimary:"none",";")}," &:not(:last-child){margin-right:10px;}",m.BC.down.sm,"{&:not(:last-child){margin-right:7px;}}&:hover{cursor:pointer;}"),z={shouldForwardProp:(0,k.Z)({blacklist:["isLightSwatch"]})},H=(0,f.Z)(_,(0,d.Z)({},{target:"e6a0lxt2"},z))(function(t){var e=t.isLightSwatch,r=t.theme;return(0,p.iv)("position:absolute;width:26px;height:26px;fill:",e?r.colors.neutral[700]:r.colors.white,";")},"");function L(t){var e=t.swatchColor,r=t.swatchSize,o=t.isHighlighted,i=t.isSelected,n=(0,u.Z)(t,C),l=b.useMemo(function(){try{return function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!e)throw Error("Could not parse Hex Color");var r=(0,x.Z)(e,4),o=r[1],i=r[2],n=r[3];if(!o||!i||!n)throw Error("Could not parse Hex Color");var l=parseInt(o,16),a=parseInt(i,16),c=parseInt(n,16),s=l/255,h=a/255,u=c/255,p=Math.max(s,h,u),d=Math.min(s,h,u),f=(p+d)/2,g=f,y=f;if(p===d)return{h:0,s:0,l:Math.round(100*y)};var w=p-d;switch(g=y>.5?w/(2-p-d):w/(p+d),p){case s:f=(h-u)/w+(h<u?6:0);break;case h:f=(u-s)/w+2;break;case u:f=(s-h)/w+4}return f/=6,g=Math.round(100*g),y=Math.round(100*y),{h:f=Math.round(360*f),s:g,l:y}}(e).l>=95}catch(t){return!1}},[e]);return(0,S.jsx)(M,O(O({swatchColor:e,swatchSize:r,isHighlighted:o,isLightSwatch:l},n),{},{children:i&&(0,S.jsx)(H,{isLightSwatch:l})}))}var R=((o=function(t){(0,l.Z)(o,t);var e,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=(0,c.Z)(o);return t=e?Reflect.construct(r,arguments,(0,c.Z)(this).constructor):r.apply(this,arguments),(0,a.Z)(this,t)});function o(){return(0,i.Z)(this,o),r.apply(this,arguments)}return(0,n.Z)(o,[{key:"hasSelection",get:function(){return!this.props.disabled&&this.props.onSelect&&"function"==typeof this.props.onSelect}},{key:"handleClick",value:function(t){var e=this;if(this.hasSelection)return function(){e.props.onSelect(t)}}},{key:"handleKeyDown",value:function(t){var e=this;if(this.hasSelection)return function(r){("Enter"===r.key||"Spacebar"===r.key||" "===r.key)&&(r.preventDefault(),e.props.onSelect(t))}}},{key:"renderColor",value:function(t,e){var r=this.props,o=r.disabled,i=r.highlightSelected,n=r.multiple,l=void 0!==n&&n,a=r.selectedId,c=r.selectedIds,s=r.size;if(!(null!=t&&t.color))return null;var h=l?(void 0===c?[]:c).includes(t.id):(void 0===a?null:a)===t.id,u=(t.color||t.label||"").trim(),p=this.handleClick(t),d=this.handleKeyDown(t);return(0,S.jsx)(L,O({id:"color-options-list-item-".concat(w()(t.label)),swatchSize:s,swatchColor:u,isHighlighted:void 0!==i&&i&&h,isSelected:h,"aria-label":t.label},p&&O({onClick:p,onKeyDown:d,tabIndex:0,"aria-disabled":void 0!==o&&o},l?{role:"option","aria-selected":h}:{role:"radio","aria-checked":h})),t.id||e)}},{key:"render",value:function(){var t=this.props,e=t.colors,r=t.textAlign,o=t.display,i=t.className,n=t.multiple;return(0,S.jsx)(j,O(O({id:"color-options-list",textAlignValue:r,displayValue:o,className:i},this.hasSelection?O({"aria-label":"Color options",role:n?"listbox":"radiogroup"},n&&{"aria-multiselectable":!0}):{"aria-label":"Available colors",role:"list"}),{},{children:e.map(this.renderColor)}))}}]),o}(b.PureComponent)).defaultProps={textAlign:"left",display:"block",size:30},(0,s.Z)(o.prototype,"hasSelection",[v.Fl],Object.getOwnPropertyDescriptor(o.prototype,"hasSelection"),o.prototype),(0,s.Z)(o.prototype,"handleClick",[g.bind],Object.getOwnPropertyDescriptor(o.prototype,"handleClick"),o.prototype),(0,s.Z)(o.prototype,"handleKeyDown",[g.bind],Object.getOwnPropertyDescriptor(o.prototype,"handleKeyDown"),o.prototype),(0,s.Z)(o.prototype,"renderColor",[g.bind],Object.getOwnPropertyDescriptor(o.prototype,"renderColor"),o.prototype),o)},10212:function(t,e,r){r.d(e,{u:function(){return i}});var o,i=((o={}).RegularPrice="regular_price",o.RegularPriceMonthly="monthly_regular_price",o.RegularPrice24Month="24_month_regular_price",o.UpfrontPriceMonthly="monthly_upfront_price",o.UpfrontPrice24Month="24_month_upfront_price",o.HomepackDiscount="homepack_discount",o.ByodDiscount="byod_discount",o.TimeDiscountPrice="time_discount_price",o.TimeDiscountAmount="time_discount_amount",o.ContractLength="contract_length",o.ServiceWithMobilePlan="device_with_mobile_plan",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.