PageSourceSearch

https://www.wymedicaid.org/etc.clientlibs/dmp/clientlibs/clientlib…/ues-plu-serp.304db294f5ec9137ee9a.js

js wymedicaid.org collected 2026-10-05 06:41:31 UTC 15,866 bytes, 2 lines download raw bytes

1/*! For license information please see ues-plu-serp.304db294f5ec9137ee9a.js.LICENSE.txt */
2"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[1753],{65883(e,t,r){r.r(t),r.d(t,{default:()=>d});var n=r(44914),o=r(45226),a=r(94801),i=r(28307);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var v=(0,a.Z)(function(){return r.e(6680).then(r.t.bind(r,6680,23))});const d=function(){var e=f((0,n.useState)("opp"),2),t=e[0],r=e[1],a=f((0,n.useState)(!1),2),c=a[0],u=a[1],s=f((0,n.useState)(""),2),p=s[0],d=s[1],m=f((0,n.useState)(!1),2),y=m[0],b=m[1],h=f((0,n.useState)(!1),2),g=h[0],w=h[1],S=f((0,n.useState)(""),2),O=S[0],P=S[1],j=f((0,n.useState)("Search Results"),2),k=j[0],E=j[1],A=f((0,n.useState)("Search by provider or for the care you need"),2),_=A[0],D=A[1],T=f((0,n.useState)(""),2),C=T[0],L=T[1],x=f((0,n.useState)(""),2),N=(x[0],x[1]),I=f((0,n.useState)(!0),2),G=I[0],R=I[1],$=f((0,n.useState)(!1),2),M=$[0],F=$[1],z=((0,n.useRef)(0),(0,i.Q)("ups",L,{onLoadStart:function(){R(!0),F(!1)},onLoadError:function(){return F(!0)},onLoadSettled:function(){return R(!1)}}).refresh);(0,n.useEffect)(function(){var e=function(){return new URLSearchParams(window.location.search).get("query")},t=Boolean(e()),r=window.setInterval(function(){e()&&(t=!0)},250),n=function(){e()||(t?window.location.reload():window.history.back())};return window.addEventListener("popstate",n),function(){window.clearInterval(r),window.removeEventListener("popstate",n)}},[]),(0,n.useEffect)(function(){var e=document.getElementById("ues-search-bar-component");if(e){r(e.getAttribute("data-app-name")||"opp");var t=e.getAttribute("data-aep")||"";u("false"!==t),d(e.getAttribute("data-cdo")||"");var n=e.getAttribute("data-seo-enabled")||"";b("false"!==n),w("true"===e.getAttribute("data-global-plu")),P(e.getAttribute("data-hash")||""),E(e.getAttribute("data-header")||"Search Results"),D(e.getAttribute("data-sub-header")||"Search by provider or for the care you need")}},[O]);var B=l({sources:{search:[],autoComplete:[]},aep:c},p&&""!==p.trim()?{cdo_ids:p.split(",").map(function(e){return parseInt(e,10)})}:{});return G?n.createElement("div",{className:"ups-serp-loading",role:"status"},n.createElement("span",{className:"dmp-util-assist__text"},"Loading search results")):M?n.createElement("div",{className:"ups-serp-error",role:"alert",style:{padding:"2rem",textAlign:"center"}},n.createElement("p",null,"We’re having trouble loading the search tool. Please try refreshing the page."),n.createElement("button",{onClick:z,style:{marginTop:"1rem",padding:"0.5rem 1.5rem",cursor:"pointer"}},"Try again")):n.createElement(n.Fragment,null,C?n.createElement(n.Suspense,{fallback:null},n.createElement(v,{app:t,onSearchResultsClick:function(e){e.type,l({sources:{search:[],autoComplete:[]},aep:c},p&&""!==p.trim()&&p.split(",").some(function(e){return 0!==parseInt(e,10)})?{cdo_ids:p.split(",").map(function(e){return parseInt(e,10)})}:{});var t="",r=e.meta.display_address.match(/,\s*([A-Z]{2})\s*\d{5}/),n=r?r[1].toLowerCase():"ca";N(n);var a="facility"===e.type?e.meta.id:e.id;if(y)t="provider"===e.type?(0,o.Gm)(e.meta.display_name,a,n):(0,o.EN)(e.meta.display_name,a,n);else{var i="/content/optum5/en/care/locations/ups-detail",u=window.location.pathname.split("/");u.length>2&&"content"===u[1]&&(i="/content/".concat(u[2],"/en/care/locations/ups-detail")),t="".concat(i,".html?id=").concat(a,"&partner=cdo_hybrid&type=").concat(e.type),e.aep&&(t+="&aep=true&zip=".concat(e.meta.zip_code))}sessionStorage.setItem("isPluDetailRedirect","true"),window.location.href=t},searchBarHeader:k,searchBarSubHeader:_,queryParams:B,commonSearches:["primary care physician","urgent care near me","pediatric wellness visit","annual checkup"],categories:["Primary Care","Dental Care","Vision Care","Behavioral Health"],clientProps:{securityToken:C,cdo:p,enableGlobalPlu:g}}
2)):n.createElement("div",null))}},94801(e,t,r){r.d(t,{Z:()=>o});var n=r(44914);function o(e){return n.lazy(function(){return e().catch(function(){return new Promise(function(e){return setTimeout(e,1500)}).then(e)})})}},45226(e,t,r){r.d(t,{EN:()=>i,Gm:()=>a,Ww:()=>c});var n=function(e){return e.replace(/\bM\.D\.?(?=\s|$)/gi,"MD").replace(/\bD\.O\.?(?=\s|$)/gi,"DO").replace(/\bPh\.D\.?(?=\s|$)/gi,"PhD").replace(/\bD\.D\.S\.?(?=\s|$)/gi,"DDS").replace(/\bD\.M\.D\.?(?=\s|$)/gi,"DMD").replace(/\bR\.N\.?(?=\s|$)/gi,"RN").replace(/\bN\.P\.?(?=\s|$)/gi,"NP").replace(/\bP\.A\.?(?=\s|$)/gi,"PA")},o=function(e){if(!e||""===e.trim())return"";var t=e.replace(/,/g," ");return(t=(t=(t=(t=(t=(t=(t=n(t)).replace(/\./g," ")).replace(/\u00A0/g," ")).replace(/[^a-zA-Z0-9\s-]/g,"-")).replace(/\s+/g,"-")).replace(/-+/g,"-")).replace(/^-+|-+$/g,"")).toLowerCase()},a=function(e,t,r){var o=String(e||""),a=String(t||""),i=String(r||"");if(!o||""===o.trim()||!a||""===a.trim()||!i||""===i.trim())return"";var c=function(e){if(!e||""===e.trim())return"";var t=e.replace(/,/g," ");return(t=(t=(t=(t=(t=(t=n(t)).replace(/\./g," ")).replace(/[^a-zA-Z\s-]/g,"-")).replace(/\s+/g,"-")).replace(/-+/g,"-")).replace(/^-+|-+$/g,"")).toLowerCase()}(o),u=i.toLowerCase();return"/en/care/providers/".concat(u,"/").concat(c,"-").concat(a,".html")},i=function(e,t,r){var n=String(e||""),a=String(t||""),i=String(r||"");if(!n||""===n.trim()||!a||""===a.trim()||!i||""===i.trim())return"";var c=o(n),u=i.toLowerCase();return"/en/care/facilities/".concat(u,"/").concat(c,"-").concat(a,".html")},c=function(e,t,r){var n=String(e||""),a=String(t||""),i=String(r||"");if(!n||""===n.trim()||!a||""===a.trim()||!i||""===i.trim())return"";var c=o(n),u=i.toLowerCase();return"/en/care/msc/".concat(u,"/").concat(c,"-").concat(a,".html")}},28307(e,t,r){r.d(t,{Q:()=>y});var n=r(44914);function o(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function c(r,n,o,i){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return a(s,"_invoke",function(r,n,o){var a,i,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,r){return a=t,i=0,c=e,p.n=r,u}};function v(r,n){for(i=r,c=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],v=p.p,d=a[2];r>3?(o=d===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=v&&((o=r<2&&v<a[1])?(i=0,p.v=n,p.n=a[1]):v<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,i=0))}if(o||r>1)return u;throw f=!0,n}return function(o,s,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&v(s,d),i=s,c=d;(t=i<2?e:c)||!f;){a||(i?i<3?(i>1&&(p.n=-1),v(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==u)break}catch(t){a=e,i=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),s}var u={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(a(t={},n,function(){return this}),t),v=f.prototype=l.prototype=Object.create(p);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(v),e}return s.prototype=f,a(v,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(v),a(v,i,"Generator"),a(v,n,function(){return this}),a(v,"toString",function(){return"[object Generator]"}),(o=function(){return{w:c,m:d}})()}function a(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,r,n){function i(t,r){a(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},a(e,t,r,n)}function i(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var c=15e5,u=function(e){return"apim_token_".concat(e)},l=function(e){try{var t=window.sessionStorage.getItem(u(e));if(!t)return null;var r=JSON.parse(t);if(r&&"string"==typeof r.token&&"number"==typeof r.expiresAt&&Date.now()<r.expiresAt)return r.token}catch(e){}return null},s=function(e,t){try{var r,n=null!==(r=function(e){try{var t=e.split(".")[1];if(!t)return null;var r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r+"=".repeat((4-r.length%4)%4),o=JSON.parse(atob(n)).exp;if("number"==typeof o&&Number.isFinite(o))return 1e3*o-6e4}catch(e){}return null}(t))&&void 0!==r?r:Date.now()+c,o={token:t,expiresAt:n};window.sessionStorage.setItem(u(e),JSON.stringify(o))}catch(e){}},f=function(e){return new Promise(function(t){return setTimeout(t,e)})},p=function(){var e,t=(e=o().m(function e(t){var r,n,a,i,c,u,p,v,d,m,y=arguments;return o().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=(r=y.length>1&&void 0!==y[1]?y[1]:{}
2).signal,a=r.retries,i=void 0===a?2:a,!(c=l(t))){e.n=1;break}return e.a(2,c);case 1:u=0;case 2:if(!(u<=i)){e.n=11;break}return e.p=3,e.n=4,fetch("".concat("/bin/dmp/apimtoken","?widget=").concat(encodeURIComponent(t)),n?{signal:n}:void 0);case 4:if((p=e.v).ok){e.n=5;break}return console.error('APIM token request failed for widget "'.concat(t,'": ').concat(p.status," ").concat(p.statusText)),e.a(2,null);case 5:return e.n=6,p.json();case 6:return v=e.v,(d=v&&v.access_token||null)&&s(t,d),e.a(2,d);case 7:if(e.p=7,m=e.v,!n||!n.aborted){e.n=8;break}return e.a(2,null);case 8:if(u!==i){e.n=9;break}return console.warn('APIM token request could not reach the server for widget "'.concat(t,'" after ').concat(i+1," attempts."),m),e.a(2,null);case 9:return e.n=10,f(400*Math.pow(2,u));case 10:u++,e.n=2;break;case 11:return e.a(2,null)}},e,null,[[3,7]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function c(e){i(a,n,o,c,u,"next",e)}function u(e){i(a,n,o,c,u,"throw",e)}c(void 0)})});return function(e){return t.apply(this,arguments)}}();function v(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return d(l,"_invoke",function(r,n,o){var a,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,r){return a=t,c=0,u=e,p.n=r,i}};function v(r,n){for(c=r,u=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],v=p.p,d=a[2];r>3?(o=d===n)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=v&&((o=r<2&&v<a[1])?(c=0,p.v=n,p.n=a[1]):v<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,c=0))}if(o||r>1)return i;throw f=!0,n}return function(o,s,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&v(s,d),c=s,u=d;(t=c<2?e:u)||!f;){a||(c?c<3?(c>1&&(p.n=-1),v(c,u)):p.n=u:p.v=u);try{if(l=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==i)break}catch(t){a=e,c=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,a),!0),l}var i={};function c(){}function u(){}function l(){}t=Object.getPrototypeOf;var s=[][n]?t(t([][n]())):(d(t={},n,function(){return this}),t),f=l.prototype=c.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,d(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=l,d(f,"constructor",l),d(l,"constructor",u),u.displayName="GeneratorFunction",d(l,o,"GeneratorFunction"),d(f),d(f,o,"Generator"),d(f,n,function(){return this}),d(f,"toString",function(){return"[object Generator]"}),(v=function(){return{w:a,m:p}})()}function d(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}d=function(e,t,r,n){function a(t,r){d(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},d(e,t,r,n)}function m(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var y=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,n.useRef)(t);o.current=t;var a=(0,n.useRef)(r);a.current=r;var i=(0,n.useRef)(null);return(0,n.useEffect)(function(){if(e){var t,r=new AbortController,n=!1,l=function(){if(!n){t&&clearTimeout(t);var r=function(e){try{var t=window.sessionStorage.getItem(u(e));if(!t)return null;var r=JSON.parse(t);if(r&&"number"==typeof r.expiresAt)return r.expiresAt}catch(e){}return null}(e),o=null!=r?Math.max(r-Date.now(),3e4):c;t=setTimeout(function(){s(!1)},o)}},s=function(){var t,i=(t=v().m(function t(i){var c,u,s,f,d,m,y;return v().w(function(t){for(;;)switch(t.n){case 0:return i&&(null===(c=(u=a.current).onLoadStart)||void 0===c||c.call(u)),t.n=1,p(e,{signal:r.signal});case 1:if(s=t.v,!r.signal.aborted&&!n){t.n=2;break}return t.a(2);case 2:s?o.current(s):i&&(null===(f=(d=a.current).onLoadError)||void 0===f||f.call(d)),i&&(null===(m=(y=a.current).onLoadSettled)||void 0===m||m.call(y)),l();case 3:return t.a(2)}},t)}),function(){var e=this,r=arguments;
2return new Promise(function(n,o){var a=t.apply(e,r);function i(e){m(a,n,o,i,c,"next",e)}function c(e){m(a,n,o,i,c,"throw",e)}i(void 0)})});return function(e){return i.apply(this,arguments)}}();i.current=function(){s(!0)},s(!0);var f=function(){"visible"===document.visibilityState&&s(!1)};return document.addEventListener("visibilitychange",f),function(){n=!0,r.abort(),t&&clearTimeout(t),document.removeEventListener("visibilitychange",f)}}},[e]),{refresh:function(){var e;return null===(e=i.current)||void 0===e?void 0:e.call(i)}}}}}]);

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.