1"use strict";(self.webpackChunkstat=self.webpackChunkstat||[]).push([[3186],{6739:function(t,e,i){var s=i(2224);const n={data(){return{breakpoint:"mobile"}},mounted(){this.initBreakpoint()},methods:{updateBreakpoint(){window.innerWidth>=1024&&(this.breakpoint="desktop"),window.innerWidth>=900&&window.innerWidth<1024&&(this.breakpoint="tablet-plus"),window.innerWidth>=768&&window.innerWidth<900&&(this.breakpoint="tablet"),window.innerWidth>=0&&window.innerWidth<768&&(this.breakpoint="mobile")},initBreakpoint(){this.updateBreakpoint(),window.addEventListener("resize",(0,s.debounce)(this.updateBreakpoint))}},computed:{isMobile(){return"mobile"===this.breakpoint},isTablet(){return"tablet"===this.breakpoint},isTabletPlus(){return"tablet-plus"===this.breakpoint},isDesktop(){return"desktop"===this.breakpoint}}};e.A=n},4587:function(t,e,i){var s=i(2476);const n={data(){return{response:{text:"",type:""}}},methods:{respond(t,e="info",i=!0){this.response.text=t,this.response.type=e,this.$el&&i&&this.scrollTo()},scrollTo(t="#wrapper",e=0,i=500){(0,s.VG)(t,e,i)},getValidatorErrorMessage(t){const e=t?t.$response:null;let i="";return t&&t.$message?i=t.$message:e&&e.message&&(i=e.message),i}}};e.A=n},9639:function(t,e,i){var s=i(8066),n=i(7810);const r={data(){return{state:"",originalState:"",loading:!0,loaded:!1,working:!1,isMain:n.Y.ACCOUNT_LINK===window.location.pathname,isEdit:n.Y.ACCOUNT_LINK_EDIT===window.location.pathname,isBilling:0===window.location.pathname.indexOf(n.Y.ACCOUNT_LINK_BILLING),isGroupEmails:0===window.location.pathname.indexOf(n.Y.ACCOUNT_LINK_GROUP_EMAILS),isPurchaseSeats:0===window.location.pathname.indexOf(n.Y.ACCOUNT_LINK_PURCHASE_SEATS),isSaved:0===window.location.pathname.indexOf(n.Y.ACCOUNT_LINK_SAVED),isPlusSubscribe:0===window.location.pathname.indexOf(n.Y.PLUS_SUBSCRIBE_LINK),isActivate:0===window.location.pathname.indexOf(n.Y.ACTIVATE_LINK),isRegister:0===window.location.pathname.indexOf(n.Y.REGISTER_LINK),isRegisterConfirmed:0===window.location.pathname.indexOf(n.Y.REGISTER_CONFIRMED_LINK),isLogin:0===window.location.pathname.indexOf(n.Y.LOGIN_LINK),isSubscribe:0===window.location.pathname.indexOf(n.Y.SUBSCRIBE_LINK)}},created(){this.state=this.initState(),this.originalState=this.state},methods:{initState(){return s.k.getIdToken()?"logged-in":n.Y.LOGIN_GROUP_LINK===window.location.pathname?"group":this.isSubscribe?"subscribe":this.isRegister||this.isRegisterConfirmed?"register":this.isPlusSubscribe||this.isActivate?"lookup":"login"},toState(t){""===this.email&&this.v$.email.$reset(),""===this.password&&this.v$.password.$reset(),this.state=t,this.$nextTick(this.autoFocus)},toggleState(t,e){this.state===t?this.toState(e):this.toState(t)},isState(t){return t.includes(this.state)},setMinWidth(t){t.css("min-width",t.outerWidth(!0))},toggleLoadStates(){this.loading?(this.loading=!1,this.loaded=!0):(this.loaded=!1,this.loading=!0)}},computed:{loggedIn(){return"logged-in"===this.state}}};e.A=r},5225:function(t,e,i){var s=i(2224),n=i.n(s),r=i(6142),o=i.n(r),a=i(7810);const h={data(){return{options:{country:{"":"Select Your Country",...this.getHubspotPropertyOptions("countrySelect")},org:{"":"Select Your Industry",...this.getHubspotPropertyOptions("industries")},joblevel:{"":"Select Your Job Level","Business Development":"Business Development","Business Executive (C-Suite, VP)":"Business Executive (C-Suite, VP)","Business Manager (Director, Manager)":"Business Manager (Director, Manager)",Consultant:"Consultant",Educator:"Educator",Engineering:"Engineering","Finance/Venture Capitalist":"Finance/Venture Capitalist","General Administration/Operations":"General Administration/Operations","Government Employee":"Government Employee",HR:"HR","IT/Data Management":"IT/Data Management",Journalist:"Journalist",Lawyer:"Lawyer","Licensing/Partnering":"Licensing/Partnering","Marketing/Communications":"Marketing/Communications","Medical Doctor":"Medical Doctor",Nurse:"Nurse","Nurse Practitioner":"Nurse Practitioner",Researcher:"Researcher",Scientist:"Scientist",Student:"Student",other:"Other (Please Specify)"},jobtype:{"":"Select Your Job Type",...this.getHubspotPropertyOptions("jobTypes")},medical_specialty:{"":"Select Your Medical Specialty",...this.getHubspotPropertyOptions("medicalSpecialty")}},info:{name:"",country:{selected:"",other:""},org:{selected:"",other:""},job:"",joblevel:{selected:"",other:""},jobtype:{selected:"",other:""},medical_specialty:{selected:"",other:""},npi:{number:"",loading:!1,verified:!1,status:0},com:"",zip:"",group_name:"",opted_in_to_marketing:!1,opted_in_to_alerts:!1},customerAddress:{country:"",address1:"",address2:"",city:"",state:"",zip:""}}},methods:{infoSelect(t,e){return this.isOtherInfoFieldOptionSelected(e)?t.other:t.selected},mapInfo(){this.profile.email!==this.profile.name&&(this.info.name=this.profile.name),this.profile.user_metadata&&(this.profile.user_metadata.name&&(this.info.name=this.profile.user_metadata.name),this.profile.user_metadata.com&&(this.info.com=this.profile.user_metadata.com),this.profile.user_metadata.job&&(this.info.job=this.profile.user_metadata.job),this.profile.user_metadata.zip&&(this.info.zip=this.profile.user_metadata.zip),this.profile.user_metadata.group_name?this.info.group_name=this.profile.user_metadata.group_name:this.profile.app_metadata&&this.profile.app_metadata.group_name&&(this.info.group_name=this.profile.app_metadata.group_name),this.profile.user_metadata.opted_in_to_marketing&&(this.info.opted_in_to_marketing="false"!==this.profile.user_metadata.opted_in_to_marketing&&Boolean(this.profile.user_metadata.opted_in_to_marketing)),this.profile.user_metadata.opted_in_to_alerts&&(this.info.opted_in_to_alerts="false"!==this.profile.user_metadata.opted_in_to_alerts&&Boolean(this.profile.user_metadata.opted_in_to_alerts)),this.profile.user_metadata.npi&&(this.info.npi.number=this.profile.user_metadata.npi),this.profile.user_metadata.npi_verified&&(this.info.npi.verified="false"!==this.profile.user_metadata.npi_verified&&Boolean(this.profile.user_metadata.npi_verified)),n().each(["country","org","joblevel","jobtype","medical_specialty"],t=>{let e=this.profile.user_metadata[t];e&&(n().contains(n().keys(this.options[t]),e)?this.info[t].selected=e:(this.info[t].selected=this.getOtherInfoSelectFieldValue(t),this.info[t].other=e))}))},getHubspotPropertyOptions(t){const e={};return o()&&o().hubspot&&Array.isArray(o().hubspot[t])&&o().hubspot[t].forEach(t=>{t.hidden||(e[t.id]=t.name)}),e},isOtherInfoFieldOptionSelected(t){const e=this.options[t]?Object.keys(this.options[t]):[],i=e.length?e[e.length-1]:null;return!(!this.info[t]||!this.info[t].selected)&&null!==this.info[t].selected.match(a.Y.OTHER_SELECT_OPTION_REGEXP)&&this.info[t].selected===i},getOtherInfoSelectFieldValue(t){let e,i="";if(this.options[t])for(e in this.options[t])null!==e.match(a.Y.OTHER_SELECT_OPTION_REGEXP)&&(i=e);return i}},computed:{userMeta:function(){const t="register"===this.state||"subscribe"===this.state||"activate"===this.state;return{name:this.info.name,country:this.infoSelect(this.info.country,"country"),jobtype:this.infoSelect(this.info.jobtype,"jobtype"),medical_specialty:this.infoSelect(this.info.medical_specialty,"medical_specialty"),npi:this.info.npi.number,npi_verified:this.info.npi.verified,org:this.infoSelect(this.info.org,"org"),opted_in_to_marketing:this.info.opted_in_to_marketing,opted_in_to_alerts:this.info.opted_in_to_alerts,...t?{}:{com:this.info.com},...t?{}:{job:this.info.job},...t?{}:{joblevel:this.infoSelect(this.info.joblevel,"joblevel")},...t?{}:{zip:this.info.zip},...t?{}:{group_name:this.info.group_name}}},isShowNpiFieldOptionSelected:function(){return"Medical Doctor"===this.info.jobtype.selected||"Other health care provider"===this.info.jobtype.selected}},watch:{profile(){this.mapInfo()}}};e.A=h}
1,7088:function(t,e,i){i.d(e,{Ds:function(){return f},L4:function(){return l},P0:function(){return _},Ru:function(){return u},TD:function(){return d},ac:function(){return c},dT:function(){return m},lG:function(){return g},mk:function(){return p},ob:function(){return w},t5:function(){return h}});var s=i(4105),n=i(8066);const r=(0,s.F5)(function(){return"group"!==this.state}),o=(0,s.F5)(function(){return"login"===this.state||"subscribe"===this.state||"register"===this.state||"activate"===this.state}),a=(0,s.F5)(function(){return"register"===this.state}),h=(0,s.F5)(function(){return"logged-in"===this.state&&(this.isPlusSubscribe||this.isEdit)}),l=(0,s.F5)(function(){return this.isEdit&&"logged-in"===this.state}),u=(0,s.F5)(function(){return!(Object.keys(this.options.country).length<=1)&&("register"===this.state&&"lookup"!==this.originalState||"activate"===this.state||"subscribe"===this.state||"logged-in"===this.state)}),d=(0,s.F5)(function(){return!(Object.keys(this.options.org).length<=1)&&("register"===this.state&&"lookup"!==this.originalState||"activate"===this.state||"subscribe"===this.state||"logged-in"===this.state)}),c=(0,s.F5)(function(){return!(Object.keys(this.options.org).length<=1)&&("register"===this.state||"subscribe"===this.state||"activate"===this.state||"logged-in"===this.state)&&this.isOtherInfoFieldOptionSelected("org")}),p=(0,s.F5)(function(){return!(Object.keys(this.options.jobtype).length<=1)&&("register"===this.state&&"lookup"!==this.originalState||"activate"===this.state||"subscribe"===this.state||"logged-in"===this.state)}),f=(0,s.F5)(function(){return!(Object.keys(this.options.jobtype).length<=1)&&("register"===this.state||"subscribe"===this.state||"activate"===this.state||"logged-in"===this.state)&&this.isOtherInfoFieldOptionSelected("jobtype")}),g=(0,s.F5)(function(){return!(Object.keys(this.options.medical_specialty).length<=1)&&this.isShowNpiFieldOptionSelected&&("register"===this.state&&"lookup"!==this.originalState||"activate"===this.state||"subscribe"===this.state||"logged-in"===this.state)}),m=function(t){return this.info.npi.loading=!1,this.info.npi.status=0,this.info.npi.verified=!1,!t||"subscribe"!==this.state&&"register"!==this.state&&"activate"!==this.state&&"logged-in"!==this.state?Promise.resolve(!0):/^\d{10}$/.test(t)?(this.info.npi.loading=!0,fetch(`/wp-json/stat-paywall/v1/npi/${t}`).then(t=>(this.info.npi.status=t.status,t.json())).then(e=>{if(e.code&&e.message)throw new Error(e?.data?.params?.number||e.message);if(!Array.isArray(e.results)||!e.results.length||!e.results[0].number||t!==e.results[0].number)throw new Error("This NPI number could not be found. Please check and try again.");return this.info.npi.verified=!0,!0}).catch(t=>this.info.npi.status>=500||t instanceof TypeError?(this.info.npi.status=this.info.npi.status||500,Promise.reject(new Error("Weâre having trouble validating your NPI right now. You can update this information later from your account page."))):Promise.reject(t)).finally(()=>{this.info.npi.loading=!1})):Promise.reject(new Error("Please enter a valid NPI number (exactly 10 digits)"))},_=(0,s.F5)(function(){return this.isPlusSubscribe&&this.isGroupPrice(this.selectedPrice)||"logged-in"===this.state&&this.isEdit}),b=(0,s.F5)(function(){return"group"===this.state}),w={email:{required:s._$.withMessage("Email address is required",r),address:function(t){return function(t){let e=t.split("@");return!e.length||!/["()<>]/.test(e[0])}(t)?!!s.Rp.$validator(t)||{$valid:!1,message:"Please enter a valid email address"}:{$valid:!1,message:"No special characters allowed in email"}},name:s._$.withMessage('The email address youâve entered appears to be meant for password sharing and in conflict with our <a href="/terms-conditions/" target="_blank" rel="noopener">terms & conditions</a>. Please select an email address for an individual subscriber.',function(t){return!!("forgot"===this.state||"login"===this.state||"lookup"===this.state||this.isPlusSubscribe&&this.isGroupPrice(this.selectedPrice))||n.k.isValidEmailName(t)}),tld:s._$.withMessage("Please enter a valid email domain",function(t){let e=t.split("@"),i=["con","cmo"];if(2===e.length){let t=e[1].split("."),s=t[t.length-1];return-1===i.indexOf(s)}return!0}),groupInfo:function(){return!this.isActivate||"lookup"!==this.state||!this.hasGroupInfoError||{$valid:!1,message:this.getGroupInfoError()}}},password:{required:s._$.withMessage("Password is required",o),minLength:s._$.withMessage("Password must be at least 6 characters",function(t){return"subscribe"!==this.state&&"register"!==this.state&&"activate"!==this.state||t.length>=6})},name:{required:s._$.withMessage("Name is required",a)},info:{name:{required:s._$.withMessage("Name is required",h)},country:{selected:{required:s._$.withMessage("Country is required",u)}},org:{selected:{required:s._$.withMessage("Industry is required",d)},other:{required:s._$.withMessage("Industry is required",c)}},jobtype:{selected:{required:s._$.withMessage("Job Type is required",p)},other:{required:s._$.withMessage("Job Type is required",f)}},com:{required:s._$.withMessage("Company / Organization is required",_)},medical_specialty:{selected:{required:s._$.withMessage("Medical Specialty is required",g)}},npi:{number:{validate:s._$.withAsync(m)}}},groupDomain:{required:s._$.withMessage("Group email domain is required",b)}}}}]);
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.