vendor: 5,070 bytes, lines 1-2
1/*! For license information please see 5947-91de4010453974db83a5.js.LICENSE.txt */ 2"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[5947],{5947:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var i=o(4692),a=o.n(i),r=o(9779);function n(e){return n="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},n(e)}function s(){s=function(){return t};var e,t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,o){e[t]=o.value},r="function"==typeof Symbol?Symbol:{},c=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",d=r.toStringTag||"@@toStringTag";function u(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,o){return e[t]=o}}function f(e,t,o,i){var r=t&&t.prototype instanceof C?t:C,n=Object.create(r.prototype),s=new D(i||[]);return a(n,"_invoke",{value:N(e,o,s)}),n}function h(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function C(){}function w(){}function k(){}var b={};u(b,c,(function(){return this}));var L=Object.getPrototypeOf,P=L&&L(L(T([])));P&&P!==o&&i.call(P,c)&&(b=P);var x=k.prototype=C.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(a,r,s,c){var l=h(e[a],e,r);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==n(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(u).then((function(e){d.value=e,s(d)}),(function(e){return o("throw",e,s,c)}))}c(l.arg)}var r;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){o(e,i,t,a)}))}return r=r?r.then(a,a):a()}})}function N(t,o,i){var a=p;return function(r,n){if(a===m)throw new Error("Generator is already running");if(a===y){if("throw"===r)throw n;return{value:e,done:!0}}for(i.method=r,i.arg=n;;){var s=i.delegate;if(s){var c=S(s,i);if(c){if(c===g)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===p)throw a=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;var l=h(t,o,i);if("normal"===l.type){if(a=i.done?y:v,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(a=y,i.method="throw",i.arg=l.arg)}}}function S(t,o){var i=o.method,a=t.iterator[i];if(a===e)return o.delegate=null,"throw"===i&&t.iterator.return&&(o.method="return",o.arg=e,S(t,o),"throw"===o.method)||"return"!==i&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=h(a,t.iterator,o.arg);if("throw"===r.type)return o.method="throw",o.arg=r.arg,o.delegate=null,g;var n=r.arg;return n?n.done?(o[t.resultName]=n.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=e),o.delegate=null,g):n:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var o=t[c];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,r=function o(){for(;++a<t.length;)if(i.call(t,a))return o.value=t[a],o.done=!1,o;return o.value=e,o.done=!0,o};return r.next=r}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=k,a(x,"constructor",{value:k,configurable:!0}),a(k,"constructor",{value:w,configurable:!0}),w.displayName=u(k,d,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,u(e,d,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},E(O.prototype),u(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,o,i,a,r){void 0===r&&(r=Promise);var n=new O(f(e,o,i,a),r);return t.isGeneratorFunction(o)?n:n.next().then((function(e){return e.done?e.value:n.next()}))},E(x),u(x,d,"Generator"),u(x,c,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var i in t)o.push(i);return o.reverse(),function e(){for(;o.length;){var i=o.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=T,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(j),!t)for(var o in this)"t"===o.charAt(0)&&i.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var o=this;function a(i,a){return s.type="throw",s.arg=t,o.next=i,a&&(o.method="next",o.arg=e),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r],s=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(c&&l){if(this.prev<n.catchLoc)return a(n.catchLoc,!0);if(this.prev<n.finallyLoc)return a(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return a(n.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return a(n.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var n=r?r.completion:{};return n.type=e,n.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(n)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),j(o),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var i=o.completion;if("throw"===i.type){var a=i.arg;j(o)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:T(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function c(e,t,o,i,a,r,n){try{var s=e[r](n),c=s.value}catch(e){return void o(e)}s.done?t(c):Promise.resolve(c).then(i,a)}function l(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function d(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$el=a()(t),this.rootClass=".apptwizard",this.locationsEndpoint="/content/dam/web-production/sg/seo/en/sitemap/primary-care-directory.json",this.locationCookie="appt_location",this.serviceCookie="appt_services",this.isUnderAge=!1,this.epicEnabled=!0,this.locationsData={},this.selectedLocationData={},this.location=null,this.service=null,this.initialize()}var t,o,i,n,d;return t=e,o=[{key:"initialize",value:(n=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storeLocationsData();case 2:this.detectResetFlow(),this.displayPanels(),this.eventListeners(),setTimeout((function(){document.querySelector(".wizard").focus()}),200);case 6:case"end":return e.stop()}}),e,this)})),d=function(){var e=this,t=arguments;return new Promise((function(o,i){var a=n.apply(e,t);function r(e){c(a,o,i,r,s,"next",e)}function s(e){c(a,o,i,r,s,"throw",e)}r(void 0)}))},function(){return d.apply(this,arguments)})},{key:"resetWizard",value:function(){this.clearCookies(),a()(this.rootClass+" section").each((function(){a()(this).removeClass("completed active")})),this.isUnderAge=!1,a()(this.rootClass+" .wizard-navigation").css("visibility","hidden")}},{key:"resetLoaderIcon",value:function(){setTimeout((function(){a()(".loading").removeClass("hideme").addClass("showme"),a()("#mychart-embedded-widget").removeClass("showme").addClass("hideme")}),1500)}},{key:"eventListeners",value:function(){var e=this;window.addEventListener("message",(function(e){"reset-wizard"===e.data&&a()(".wizard-start-over").trigger("click")}),!1),a()(this.rootClass+" .wizard-navigation a").each((function(){var t=this;
2a()(this).on("click",(function(o){if(o.preventDefault(),"wizard-start-over"==t.className)e.resetWizard(),e.resetLoaderIcon();else{var i=a()(e.rootClass+" section.active").prevAll("section").first();i.hasClass("location")?e.resetWizard():i.hasClass("service")&&r.campaignCookies.deleteCookie(e.serviceCookie),i.hasClass("underage")?(i.removeClass("completed"),i.prevAll("section").first().removeClass("completed")):i.hasClass("age")?(e.isUnderAge=!1,a()(e.rootClass+" section.active").prevAll("section").first().removeClass("completed"),a()(e.rootClass+" section.underage").removeClass("active").addClass("completed")):(a()(e.rootClass+" section.active").prevAll("section").first().removeClass("completed"),a()(e.rootClass+" section.active").removeClass("active"),e.resetLoaderIcon())}a()(e.rootClass+" section.error").removeClass("active").addClass("completed"),a()("section.widget .mychart-container").empty(),e.displayPanels()}))})),a()(this.rootClass+" section.age .radio").each((function(){var t=this;a()(this).on("click",(function(){var o=e.getOfficeProp("phone");t.className.indexOf("underage")>-1?(e.isUnderAge=!0,a()(e.rootClass+" section.underage .phone").html(o),a()(e.rootClass+" section.underage a").attr("href","tel:"+o)):a()(e.rootClass+" section.underage").addClass("completed"),e.advanceNextPanel("age")}))})),a()(this.rootClass+" section.service .radio").each((function(){var t=this;a()(this).on("click",(function(o){var i=t.dataset.serviceType;i&&(r.campaignCookies.setCookie(e.serviceCookie,i,36e5),e.advanceNextPanel("service"))}))}))}},{key:"buildIframe",value:function(){this.detectLocationAndServices();var e=a()("#mychart-embedded-widget").data("key");if(void 0!==e){var t={dept:this.getDeptId(),vt:this.service,oId:this.location,site:this.getOfficeProp("officeName"),oType:this.getOfficeProp("officeType"),parentId:EPIC.parentId,state:this.getOfficeProp("address").state},o=r.campaignCookies.readCookie("campaign");o&&(t.linksource=o);var i=r.campaignCookies.readCookie("rwg_token");i&&(t.gct=i),t.refUrl=location.href,mychartWidget.renderWidget({url:EPIC.openScheduler,apiKey:e,widgetType:"openscheduling",containerId:"mychart-embedded-widget",additionalParams:t})}}},{key:"getDeptId",value:function(){var e=Number(this.location);switch(this.getOfficeProp("officeType")){case"MD":e=e+7e4+"0109";break;case"GP":e=e+1e4+"0101";break;case"KD":e=e+1e4+"0102"}return e}},{key:"detectLocationAndServices",value:function(){this.location=r.campaignCookies.readCookie(this.locationCookie),this.service=r.campaignCookies.readCookie(this.serviceCookie)}},{key:"storeLocationsData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){var o=e;fetch(e.locationsEndpoint).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){o.locationsData=e,o.location&&o.saveOfficeData(o.location),o.setLocationsPanel()})).catch((function(e){a()("section.location .state-selection").append("<h6>We apologize for the inconvenience, but an unexpected error has occurred. Please attempt your request again shortly.</h6>"),console.error("Error fetching locations data:",e)})),t()}),1e3)}))}},{key:"setLocationsPanel",value:function(){a()(".apptwizard .wizard-navigation").css("visibility",a()("section.location.active").length?"hidden":"visible");var e=this,t=a()("section.location .state-selection");a().each(this.locationsData.states,(function(e,o){var i,r=0;a().each(o.cities,(function(e,t){a().each(t.offices,(function(e,t){0!=t.active&&r++}))})),i=r>1?r+" locations available":r+" location available",t.append('<a href="#" class="radio" tabindex="0" role="button" aria-checked="false" aria-label="'.concat(o.fullName,'" data-state="').concat(e,'"><span>').concat(o.fullName,' <span class="subtext">').concat(i,"</span></span></a>"))})),t.find(".radio").on("click",(function(){t.find(".radio").removeClass("selected").attr("aria-checked","false"),a()(this).addClass("selected").attr("aria-checked","true");var o=a()(this).data("state");e.setOfficeSelection(o)}))}},{key:"setOfficeSelection",value:function(e){var t=this,o=a()("section.location .offices .office-selection");o.empty();var i=this.locationsData.states[e];a().each(i.cities,(function(e,i){a().each(i.offices,(function(e,i){0!=i.active&&o.append('\n <a href="#" class="radio address" tabindex="0" role="button" aria-checked="false" aria-label="'.concat(t.shortenOfficeName(i.officeName)," ").concat(i.address.address,", ").concat(i.address.city," ").concat(i.address.state," ").concat(i.address.zip,'" data-office-id="').concat(i.officeID,'" data-epic-enabled="').concat(i.epic,'">
2\n <span><p><strong>').concat(t.shortenOfficeName(i.officeName),"</strong></p>\n <p>").concat(i.address.address,", ").concat(i.address.city," ").concat(i.address.state," ").concat(i.address.zip,"</p></span>\n </a>\n "))}))})),a()("section.location .offices").addClass("active"),o.find(".radio").off("click").on("click",(function(){a()(".apptwizard .wizard-navigation").css("visibility","visible");var e=a()(this).data("office-id");t.epicEnabled=a()(this).data("epic-enabled"),r.campaignCookies.setCookie(t.locationCookie,e),t.location=e,t.saveOfficeData(e),a()("section.location .offices").addClass("completed").removeClass("active"),a()(".radio.selected").removeClass("selected");var i=t.getOfficeProp("phone");a()(t.rootClass+" section.error .phone").html(i),a()(t.rootClass+" section.error a").attr("href","tel:"+i),t.advanceNextPanel("location"),o.empty()}))}},{key:"updateCampaignTracking",value:function(e){var t=r.campaignCookies.readCookie("campaign");if(t){var o=t.replace(":na:",":".concat(e,":"));r.campaignCookies.setCookie("campaign",o,36e5)}}},{key:"shortenOfficeName",value:function(e){return e.replace("PDS Medical Group ","")}},{key:"saveOfficeData",value:function(e){var t=this;Object.values(this.locationsData.states).some((function(o){return Object.values(o.cities).some((function(o){var i=o.offices.find((function(t){return t.officeID==e}));i&&(t.selectedLocationData=i)}))}))}},{key:"getOfficeProp",value:function(e){return this.selectedLocationData[e]}},{key:"advanceNextPanel",value:function(e){a()("".concat(this.rootClass," section.").concat(e)).removeClass("active").addClass("completed"),this.showNextPendingStep()}},{key:"displayPanels",value:function(){this.detectLocationAndServices(),this.location&&this.$el.find(".location, .offices").removeClass("active").addClass("completed"),this.service&&this.$el.find(".service").removeClass("active").addClass("completed"),this.showNextPendingStep()}},{key:"showNextPendingStep",value:function(){var e=this;if(this.isUnderAge)a()("section.underage").addClass("active"),a()("section.underage").removeClass("hidden completed");else if(this.epicEnabled){var t=this.$el.find("section:not(.completed):not(.active)").first();if(t.length>0&&(this.$el.find("section").removeClass("active"),t.addClass("active"),t.removeClass("hidden"),"widget active"==t[0].className)){var o=r.campaignCookies.readCookie(this.locationCookie);this.updateCampaignTracking(o),this.buildIframe(),window.addEventListener("message",(function(t){["https://mychart-np.et1079.epichosted.com","https://www.smilegenerationmychart.com"].includes(t.origin)&&("frame-loaded"===t.data?(t.source.postMessage("ack-received",t.origin),setTimeout((function(){a()(".loading").removeClass("showme").addClass("hideme"),a()("#mychart-embedded-widget").removeClass("hideme").addClass("showme")}),700)):"epic-error"===t.data&&(t.source.postMessage("ack-received",t.origin),setTimeout((function(){a()(e.rootClass+" section.widget").removeClass("active").addClass("hidden completed");var t=e.getOfficeProp("phone");a()(e.rootClass+" section.epic-error .phone").html(t),a()(e.rootClass+" section.epic-error a").attr("href","tel:"+t),a()(e.rootClass+" section.epic-error").removeClass("hidden completed").addClass("active")}),700)))}))}}else a()("section.error").addClass("active"),a()("section.error").removeClass("hidden completed"),this.epicEnabled=!0}},{key:"detectResetFlow",value:function(){var e=new URLSearchParams(window.location.search).get("resetflow");e&&"true"===e&&this.clearCookies()}},{key:"clearCookies",value:function(){r.campaignCookies.deleteCookie(this.locationCookie),r.campaignCookies.deleteCookie(this.serviceCookie)}}],o&&l(t.prototype,o),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}]);
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.