PageSourceSearch

https://www.authy.com/etc.clientlibs/twilio-foundation/clientlibs/…/resources/9533.f936a5686a44a61c3f5a.js

js authy.com collected 2026-10-01 08:31:05 UTC 11,964 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktwilio_foundation_frontend=self.webpackChunktwilio_foundation_frontend||[]).push([[9533],{9533:function(e,t,r){r.d(t,{A:function(){return x}});var o=r(4803),n=r(56839),i=r(60874),a=r(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 r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}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,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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 r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}var y={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},h=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)}(y,e);var t,r,o,i,d=(o=y,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(o);if(i){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}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 y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return p(l(e=d.call.apply(d,[this].concat(r))),"state",{query:e.props.query,focused:!1}),p(l(e),"input",(0,n._3)()),p(l(e),"onInput",function(t){var r=e.props,o=r.searchAsYouType,n=r.refine,i=r.onChange,a=t.target.value;e.props.ignoreCompositionEvents&&t.isComposing||(o&&n(a),e.setState({query:a}),i(t))}),p(l(e),"onSubmit",function(t){var r=e.props,o=r.searchAsYouType,n=r.refine,i=r.onSubmit;return t.preventDefault(),t.stopPropagation(),e.input.current&&e.input.current.blur(),o||n(e.state.query),i(t),!1}),p(l(e),"onReset",function(t){var r=e.props,o=r.refine,n=r.onReset;e.input.current&&e.input.current.focus(),o(""),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=y,(r=[{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,r=e.placeholder,o=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:r,autoFocus:o,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,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.uA);p(h,"defaultProps",y);var m=h,b=r(37989),v=r(94165),g=r(7414),S=r(3769),w=(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"})))),j={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"},w)},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 C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){var o,n,i,a;o=e,n=t,i=r[t],a=function(e){if("object"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n),(n="symbol"==I(a)?a:String(a))in o?Object.defineProperty(o,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var R=(0,g.V)({name:"search-box"}),N=(0,v.s)("SearchBox"),x=function(e){var t=e||{},r=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,y=void 0!==d&&d,h=t.showReset,v=void 0===h||h,g=t.showSubmit,w=void 0===g||g,O=t.showLoadingIndicator,P=void 0===O||O,I=t.queryHook,C=t.templates,x=void 0===C?{}:C;if(!r)throw new Error(R("The `container` option is required."));var T=(0,S.e)(r),E={root:(0,o.cx)(N(),c.root),form:(0,o.cx)(N({descendantName:"form"}),c.form),input:(0,o.cx)(N({descendantName:"input"}),c.input),submit:(0,o.cx)(N({descendantName:"submit"}),c.submit),submitIcon:(0,o.cx)(N({descendantName:"submitIcon"}),c.submitIcon),reset:(0,o.cx)(N({descendantName:"reset"}),c.reset),resetIcon:(0,o.cx)(N({descendantName:"resetIcon"}
1),c.resetIcon),loadingIndicator:(0,o.cx)(N({descendantName:"loadingIndicator"}),c.loadingIndicator),loadingIcon:(0,o.cx)(N({descendantName:"loadingIcon"}),c.loadingIcon)},k=q(q({},j),x),L=function(e){var t=e.containerNode,r=e.cssClasses,o=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,y=e.isSearchStalled;(0,n.XX)((0,n.h)(m,{query:d,placeholder:o,autofocus:a,refine:p,searchAsYouType:s,ignoreCompositionEvents:c,templates:i,showSubmit:l,showReset:u,showLoadingIndicator:f,isSearchStalled:y,cssClasses:r}),t)}}({containerNode:T,cssClasses:E,placeholder:a,templates:k,autofocus:l,searchAsYouType:p,ignoreCompositionEvents:y,showReset:v,showSubmit:w,showLoadingIndicator:P});return q(q({},(0,b.A)(L,function(){return(0,n.XX)(null,T)})({queryHook:I})),{},{$$widgetType:"ais.searchBox"})}},37989:function(e,t,r){var o=r(64982),n=r(7414),i=r(60874);function a(e){return a="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},a(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var o,n,i,s;o=e,n=t,i=r[t],s=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n),(n="symbol"==a(s)?s:String(s))in o?Object.defineProperty(o,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u=(0,n.V)({name:"search-box",connector:!0}),l=function(e,t){return t(e)};t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.l;return(0,o.t)(e,u()),function(r){var o,n,i=(r||{}).queryHook,a=void 0===i?l:i;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e(c(c({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(c(c({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return c(c({},e),{},{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,i=e.instantSearchInstance,s=e.state;return o||(o=function(e){a(e,function(e){return t.setQuery(e).search()})},n=function(){t.setQuery("").search()}),{query:s.query||"",refine:o,clear:n,widgetParams:r,isSearchStalled:"stalled"===i.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:c(c({},e),{},{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}}}}]);

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.