1"use strict";(self.webpackChunktwilio_foundation_frontend=self.webpackChunktwilio_foundation_frontend||[]).push([[9008],{9533:function(e,t,o){o.d(t,{A:function(){return R}});var r=o(4803),n=o(56839),i=o(60874),a=o(47087);function s(e){return s="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},s(e)}function c(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,o){return(t=d(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function d(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}var h={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,ignoreCompositionEvents:!1,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:i.l,onSubmit:i.l,onReset:i.l,refine:i.l},m=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(h,e);var t,o,r,i,d=(r=h,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var o=f(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function h(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return p(l(e=d.call.apply(d,[this].concat(o))),"state",{query:e.props.query,focused:!1}),p(l(e),"input",(0,n._3)()),p(l(e),"onInput",function(t){var o=e.props,r=o.searchAsYouType,n=o.refine,i=o.onChange,a=t.target.value;e.props.ignoreCompositionEvents&&t.isComposing||(r&&n(a),e.setState({query:a}),i(t))}),p(l(e),"onSubmit",function(t){var o=e.props,r=o.searchAsYouType,n=o.refine,i=o.onSubmit;return t.preventDefault(),t.stopPropagation(),e.input.current&&e.input.current.blur(),r||n(e.state.query),i(t),!1}),p(l(e),"onReset",function(t){var o=e.props,r=o.refine,n=o.onReset;e.input.current&&e.input.current.focus(),r(""),e.setState({query:""}),n(t)}),p(l(e),"onBlur",function(){e.setState({focused:!1})}),p(l(e),"onFocus",function(){e.setState({focused:!0})}),e}return t=h,(o=[{key:"resetInput",value:function(){this.setState({query:""})}},{key:"componentWillReceiveProps",value:function(e){this.state.focused||e.query===this.state.query||this.setState({query:e.query})}},{key:"render",value:function(){var e=this.props,t=e.cssClasses,o=e.placeholder,r=e.autofocus,i=e.showSubmit,s=e.showReset,c=e.showLoadingIndicator,u=e.templates,l=e.isSearchStalled,f=e.ariaLabel;return(0,n.h)("div",{className:t.root},(0,n.h)("form",{action:"",role:"search",className:t.form,noValidate:!0,onSubmit:this.onSubmit,onReset:this.onReset},(0,n.h)("input",{ref:this.input,value:this.state.query,disabled:this.props.disabled,className:t.input,type:"search",placeholder:o,autoFocus:r,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",maxLength:512,onInput:this.onInput,oncompositionend:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,"aria-label":f}),(0,n.h)(a.A,{templateKey:"submit",rootTagName:"button",rootProps:{className:t.
1submit,type:"submit",title:"Submit the search query",hidden:!i},templates:u,data:{cssClasses:t}}),(0,n.h)(a.A,{templateKey:"reset",rootTagName:"button",rootProps:{className:t.reset,type:"reset",title:"Clear the search query",hidden:!(s&&this.state.query.trim()&&!l)},templates:u,data:{cssClasses:t}}),c&&(0,n.h)(a.A,{templateKey:"loadingIndicator",rootTagName:"span",rootProps:{className:t.loadingIndicator,hidden:!l},templates:u,data:{cssClasses:t}})))}}])&&c(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.uA);p(m,"defaultProps",h);var y=m,b=o(37989),v=o(94165),g=o(7414),w=o(3769),S=(0,n.h)("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"}),O=(0,n.h)("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"}),P=(0,n.h)("g",{fill:"none","fill-rule":"evenodd"},(0,n.h)("g",{transform:"translate(1 1)","stroke-width":"2"},(0,n.h)("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),(0,n.h)("path",{d:"M36 18c0-9.94-8.06-18-18-18"},(0,n.h)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))),C={reset:function(e){var t=e.cssClasses;return(0,n.h)("svg",{className:t.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},S)},submit:function(e){var t=e.cssClasses;return(0,n.h)("svg",{className:t.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},O)},loadingIndicator:function(e){var t=e.cssClasses;return(0,n.h)("svg",{"aria-label":"Results are loading",className:t.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},P)}};function I(e){return I="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},I(e)}function j(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function q(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?j(Object(o),!0).forEach(function(t){var r,n,i,a;r=e,n=t,i=o[t],a=function(e){if("object"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=I(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n),(n="symbol"==I(a)?a:String(a))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):j(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var N=(0,g.V)({name:"search-box"}),x=(0,v.s)("SearchBox"),R=function(e){var t=e||{},o=t.container,i=t.placeholder,a=void 0===i?"":i,s=t.cssClasses,c=void 0===s?{}:s,u=t.autofocus,l=void 0!==u&&u,f=t.searchAsYouType,p=void 0===f||f,d=t.ignoreCompositionEvents,h=void 0!==d&&d,m=t.showReset,v=void 0===m||m,g=t.showSubmit,S=void 0===g||g,O=t.showLoadingIndicator,P=void 0===O||O,I=t.queryHook,j=t.templates,R=void 0===j?{}:j;if(!o)throw new Error(N("The `container` option is required."));var T=(0,w.e)(o),L={root:(0,r.cx)(x(),c.root),form:(0,r.cx)(x({descendantName:"form"}),c.form),input:(0,r.cx)(x({descendantName:"input"}),c.input),submit:(0,r.cx)(x({descendantName:"submit"}),c.submit),submitIcon:(0,r.cx)(x({descendantName:"submitIcon"}),c.submitIcon),reset:(0,r.cx)(x({descendantName:"reset"}
1),c.reset),resetIcon:(0,r.cx)(x({descendantName:"resetIcon"}),c.resetIcon),loadingIndicator:(0,r.cx)(x({descendantName:"loadingIndicator"}),c.loadingIndicator),loadingIcon:(0,r.cx)(x({descendantName:"loadingIcon"}),c.loadingIcon)},A=q(q({},C),R),k=function(e){var t=e.containerNode,o=e.cssClasses,r=e.placeholder,i=e.templates,a=e.autofocus,s=e.searchAsYouType,c=e.ignoreCompositionEvents,u=e.showReset,l=e.showSubmit,f=e.showLoadingIndicator;return function(e){var p=e.refine,d=e.query,h=e.isSearchStalled;(0,n.XX)((0,n.h)(y,{query:d,placeholder:r,autofocus:a,refine:p,searchAsYouType:s,ignoreCompositionEvents:c,templates:i,showSubmit:l,showReset:u,showLoadingIndicator:f,isSearchStalled:h,cssClasses:o}),t)}}({containerNode:T,cssClasses:L,placeholder:a,templates:A,autofocus:l,searchAsYouType:p,ignoreCompositionEvents:h,showReset:v,showSubmit:S,showLoadingIndicator:P});return q(q({},(0,b.A)(k,function(){return(0,n.XX)(null,T)})({queryHook:I})),{},{$$widgetType:"ais.searchBox"})}},22853:function(e,t,o){o.d(t,{J:function(){return r}});var r,n=o(38222),i=o(83427),a=o(26445),s=o(153),c=o(48410);!function(e){e.algoliaInstantSearch=function(){const{indexName:e,appId:t,apiKey:o}=(0,a.T)(c.qO.algoliaSearch),r=(0,s.A)(t,o),u=new URL(document.location.href).searchParams.get("search"),l=null!==u&&!i.isBlogPage;return(0,n.default)({...l&&{initialUiState:{[e]:{query:u}}},searchClient:r,indexName:e})}}(r||(r={}))},50324:function(e,t,o){o.d(t,{b:function(){return s}});var r=o(45711),n=o(9533),i=o(26445),a=o(48410);function s(){const e=document.querySelector(a.qO.navigationSearchButton)?4:6,{searchLabel:t}=(0,i.T)(a.qO.algoliaSearch);return[(0,r.A)({hitsPerPage:e}),(0,n.A)({container:a.qO.searchBox,placeholder:t})]}}}]);
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.