YouTube Researcher Program Application - YouTube Help Skip to main content Search
Clear search
Close search
Google apps
Main menu
15843555172646786434
Search Help Center
true
true
59
');
a=sn("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=In(c)}else{a=new Map([["nonce",a]]);c=tn(K3a).toString();var e=c.split(/[?#]/),f=/[?]/.test(c)?"?"+e[1]:"";a=X2a(e[0],f,/[#]/.test(c)?"#"+(f?e[2]:e[1]):"",a)}b.src=tn(a).toString();b.style.cssText="height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b}
;var K0={PU:!1},L0;function M0(a){this.options=a=a===void 0?K0:a;P3a(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new J0)}
M0.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?K0:e;return Ya(function(f){if(f.o==1)return f.yield(Q3a(a,b,c,e),2);if(f.ma)return f.return();L0||(L0=new M0,L0.init());return f.yield(R3a(L0,a,b,c),0)})};
M0.prototype.init=function(){var a=this;return Ya(function(b){return a.sandbox==null?b.return():b.yield(a.sandbox.load(),0)})};
M0.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return Ya(function(f){return f.o==1?f.yield(Q3a(a,b,c,e.options),2):f.ma?f.return():f.yield(R3a(e,a,b,c),0)})};
function R3a(a,b,c,e){e=e===void 0?"":e;var f,h;return Ya(function(k){switch(k.o){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){k.Na(2);break}navigator.msSaveOrOpenBlob(f,c);return k.yield(N0(),3);case 3:return k.return();case 2:if(!fc()||Mb(d3a(),16)>=0||!bc()&&(!Vb("iPad")&&!Vb("iPhone")||ac()||bc()||(Wb()?0:Vb("Coast"))||$b()||!Vb("AppleWebKit"))){k.Na(4);break}h=new FileReader;h.onload=function(){var n=xp("A"),p=Bn(String(h.result));Dn(n,
p);n.download=c;n.click()};
h.readAsDataURL(f);return k.yield(N0(),5);case 5:return k.return();case 4:return a.sandbox==null&&(a.sandbox=new J0,a.sandbox.load()),k.yield(a.sandbox.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',[{name:"blob",value:f,transfer:!1},
{name:"filename",value:c,transfer:!1}]),6);case 6:return k.yield(N0(),0)}})}
function Q3a(a,b,c,e){c=c===void 0?"":c;e=e===void 0?K0:e;var f;return Ya(function(h){switch(h.o){case 1:if(!P3a(e))return h.return(!1);Pa(h,2);return h.yield(S3a(a,b,c),4);case 4:Qa(h,3);break;case 2:f=Sa(h);if(f instanceof DOMException&&f.name==="SecurityError")return h.return(!1);throw f;case 3:return h.return(!0)}})}
function P3a(a){a=a===void 0?K0:a;return a.PU&&!!window.showSaveFilePicker}
function S3a(a,b,c){c=c===void 0?"":c;var e,f,h,k;return Ya(function(n){switch(n.o){case 1:var p=c,r={suggestedName:b},u;(u=b.match(/\..+$/))?(u=u[0],u=u.length>16?null:u):u=null;if(u){p=p.replace(/;[^]*/,"");var w={};r.types=[{description:"*"+u,accept:(w[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(p)?p:"*/*"]=[u],w)}]}e=r;Pa(n,2);return n.yield(window.showSaveFilePicker(e),4);case 4:f=n.ma;Qa(n,3);break;case 2:h=Sa(n);if(h instanceof DOMException&&h.name==="AbortError")return n.return();throw h;
case 3:return n.yield(f.createWritable(),5);case 5:return k=n.ma,n.ua=0,n.oa=6,n.yield(k.write(a),6);case 6:return Ta(n),n.yield(k.close(),9);case 9:Ua(n,7);break;case 7:return n.return()}})}
M0.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};
function N0(){return new Promise(function(a){setTimeout(a,500)})}
tb("SafeDownloader",M0);function T3a(a,b,c){var e=this;this.element=a;this.model=b;this.flags=c;this.validateOnly=to("validate_only")==="true";this.page=1;this.fields=[];this.Ra=[];this.Ha=new Map;this.bubbles=[];this.Pa=[];this.caseId=null;this.ya=new Map;this.Ec=new Map;this.c2c=null;this.listeners=[];this.qb=0;this.Ka=!0;this.o=null;this.oa=this.Bb=this.Ma=!1;this.va=this.Ia=this.recaptcha=null;this.md=[];this.gcmRegistrationId="";this.productSpecificData={};this.ma=[];this.Fa=[];this.Qd="";this.mb=[];this.parentCaseName=
"";this.wc=[];this.ub=!1;this.Qa=[];this.ua=[];this.targetVerified=this.Ua=!1;this.qa=[];this.chatPoolId="";this.Md=this.model.show_recaptcha;this.Mb=this.querySelector(".form-screenshot");this.Ut=new Map;this.submissionChannel=0;this.Ca=new kD("HelpcenterFields/Form");this.submitId=po;this.dispatchEvent("startinginitialization");a=this.querySelectorAll(".field");for(b=0;b0&&h.parents.push(p)}}});
P0(this);this.dispatchEvent("fieldsinitialized");this.Md&&V3a(this);W3a(this);Q0(this,!1);X3a(this);Y3a(this);Z3a(this);this.prepopulateFields();this.element.addEventListener("submit",function(h){h.preventDefault();e.submitForm()});
this.model.c2c_configured&&(this.c2c=(0,window.sc_initFormClickToCall)(this));this.model.is_chat_form&&!this.shouldSubmitToCasesV2()&&R0(this);$3a(this);this.dispatchEvent("validatorinitialized");this.dispatchEvent("initializationcomplete");S0(20);if(a=this.element.getAttribute("data-form-sc-frd-values"))for(a=x(JSON.parse(a)),b=a.next();!b.done;b=a.next())b=new eA(new Bm(b.value)),this.mb.push(iA(b)),this.ma.push(AP(b));a=x(this.fields);for(b=a.next();!b.done;b=a.next())if(b=b.value,c=b.getFrdIdentifier()){this.Ra.push(b);
var f=this.Ha.get(c);f?f.push(b):this.Ha.set(c,[b])}a4a(this,this.element.getAttribute("data-helpcenter-frd-fields-confg"));b4a(this)}
l=T3a.prototype;l.querySelector=function(a){return this.element.querySelector(a)};
function T0(a,b){return a.element.querySelector(b)}
l.querySelectorAll=function(a){return this.element.querySelectorAll(a)};
function O0(a,b){for(var c=0;c=a.model.total_pages;qo(a.Mb,"hidden",!b);b?a.va.activate():a.va.deactivate()}}
function W3a(a){if(window.sc_createSpinner){a.o=window.sc_createSpinner("small");qo(a.o.getElement(),"submit-spin",!0);var b=a.element.querySelector(".submit-button");b&&b.parentNode.appendChild(a.o.getElement())}}
function Q0(a,b){var c=a.page>=a.model.total_pages,e=a.querySelector(".submit-button");e&&(qo(e,"hidden",!c),e.disabled=!a.Ka||b);a.oa&&qo(a.querySelector(".recaptcha"),"hidden",!c);if(c=a.querySelector(".previous-button"))qo(c,"hidden",a.page===1),c.disabled=b;if(c=a.querySelector(".next-button"))qo(c,"hidden",a.page===a.model.total_pages),c.disabled=!a.Ka||b;a.o&&(b?a.o.show():a.o.hide())}
function X3a(a){var b=a.querySelector(".submit-button");b&&(!z().li&&a.model.is_chat_form?(b.disabled=!0,T0(a,".notification-area").textContent=a.model.strings.CHAT_UNAVAILABLE):b.addEventListener("click",a.submitForm.bind(a)));(b=a.querySelector(".previous-button"))&&b.addEventListener("click",function(){c4a(a,a.page-1)&&(a.dispatchEvent("previouspage"),S0(7))});
(b=a.querySelector(".next-button"))&&b.addEventListener("click",a.submitForm.bind(a))}
function Y3a(a){a=a.element.getElementsByTagName("textarea");for(var b=0;b0)for(c.is_assistive=!0,c.assistive_flow_results=[],k=x(a.ua),n=k.next();!n.done;n=k.next())p=n.value,r=p.answer,p.translatedAnswer&&(r+=" ***** "+p.translatedAnswer),c.header.push({name:p.questionId,value:r}),c.content+=p.questionId+": "+r+"\n",c.assistive_flow_results.push({question:p.questionId,answer:r,prediction_id:p.predictionId,recommendation_id:p.recommendationId});u=a.getFieldValues();w=k4a(a,!0);E=new Map(a.getHcfNameScFrdValueMap().entries());
a.qa.map(function(hb){return hb.model}).forEach(function(hb){hb.isValid()&&E.set(hb.getName(),AP(hb.Fd()))});
for(la=0;la0&&(c.product_specific_data=Va);a.Ua&&(c.target_submission_details={used_target_selector:!0,is_target_selector_verified:a.targetVerified});return Ab.return(c)})}
function f4a(a,b){var c=Y0(a,1);Do({httpMethod:"POST",endpoint:"escalationavailability",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},requestBody:a.shouldSubmitToCasesV2()?c.serialize():"",onLoadCallback:function(e){var f=null;try{f=JSON.parse(e.responseText)}catch(r){f={}}var h,k,n,p;((h=f.chat_channel)==null?0:(k=h.common_options)==null?0:k.available_to_user)||((n=f.hangout_channel)==null?0:(p=n.common_options)==null?0:p.available_to_user)?g4a(a,b):(a.o&&a.o.hide(),R0(a))},
Id:function(e){window.sc_trackStatsEvent(52,21,"escalationavailability: - "+e.statusText);a.o&&a.o.hide();if(e=a.querySelector(".submit-button"))e.disabled=!1;W0(a,a.model.strings.BACKEND_ERROR);a.dispatchEvent("validationend")}})}
l.getChatAvailability=function(){var a=this;return Ya(function(b){return b.return(l4a(a))})};
function h4a(a,b){var c,e,f,h,k,n;Ya(function(p){if(p.o==1)return c={contact_flow:b},a.oa?(c.recaptcha_response=a.Ia.getResponse(),p.Na(2)):a.Bb?p.yield(a.recaptcha.getResponse(),4):p.Na(2);p.o!=2&&(c.recaptcha_response_v3=p.ma);a.c2c.populateCallParameters(c);a.shouldSubmitToCasesV2()&&(e={},f=Y0(a,5),xh(f,2)&&(e.form_id=Sg(f,2)),Rg(f,4)!=null&&(e.redwood_form_id=Rg(f,4)),e.channel=[5],Of(f,WP,7)?e.sc_frd_values=b3a(new UQ(f.getScFrdValues())):Of(f,pm,1)&&(e.frd_values=c3a(new UQ(yg(f,pm,1)))),c.escalation=
e);h={v:"1",psd:JSON.stringify(a.productSpecificData)};(k=to("test"))&&(h.test=k);(n=to("cases2"))&&(h.cases2=n);b.submit_id=a.submitId;Do({httpMethod:"POST",endpoint:"createcall",params:h,requestBody:c,onLoadCallback:function(r){var u=null;try{u=JSON.parse(r.responseText)}catch(w){}Z0(a,{type:"c2c",response:u})},
Id:function(){Z0(a,{type:"c2c",response:!1})}});
Oa(p)})}
function g4a(a,b){var c,e,f,h;Ya(function(k){if(k.o==1)return c={v:"0",psd:JSON.stringify(a.productSpecificData)},(e=to("test"))&&(c.test=e),(f=to("cases2"))&&(c.cases2=f),b.submit_id=a.submitId,h={common_params:{context_params:{view_id:z().vid}},resource:b},a.oa?(h.recaptcha_response=a.Ia.getResponse(),k.Na(2)):a.Bb?k.yield(a.recaptcha.getResponse(),4):k.Na(2);k.o!=2&&(h.recaptcha_response_v3=k.ma);a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||f)&&(a.Ma=!0);Do({httpMethod:"POST",endpoint:"cufinsert",
params:c,requestBody:h,onLoadCallback:function(n){var p=null;try{p=JSON.parse(n.responseText)}catch(r){Z0(a,{type:"cuf",response:n.responseText});return}Z0(a,{type:"cuf",response:p})},
Id:function(){Z0(a,{type:"cuf",response:!1})},
Pr:!0});Oa(k)})}
function X0(a){if(!a.model.fix_multi_page)return!1;var b=!1;O0(a,function(c){Number(c.lk())>a.lk()&&c.hasSatisfiedDependencies()&&(b=!0)});
return b}
l.getSubjectFieldId=function(){return T0(this,'input[name="subject-line-field-id"]').value};
l.getBodyFieldId=function(){return T0(this,'input[name="body-text-field-id"]').value};
function k4a(a,b){var c=[];O0(a,function(p){if(p.hasSatisfiedDependencies())for(var r=p.getValues(b),u=0;u0){W0(a,r4a(e),e);a.dispatchEvent("validationend");break a}s4a(a,e)}else W0(a,a.model.strings.BACKEND_ERROR,e)}else W0(a,a.model.strings.CONNECTION_ERROR);a.dispatchEvent("validationend")}else{b=b.response;e=typeof b==="object"?b==null?void 0:(c=b.result)==null?void 0:c[0]:void 0;c=!1;if(b&&typeof b==="object")if(!b.error&&b.result&&e&&e.indexOf("PERM_FAILURE")!==0)if(e==="ACCEPTED"||e==="SUCCESS"||e==="RETRIED")if(X0(a))$0(a);else{c=to("cases2");if(c=a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||
c))a.chatPoolId=b.chat_pool_id||"",a.model.chat_support_request_id=b.chat_support_request_id||"";a.dispatchEvent("validated");b.case_id&&(a.caseId=b.case_id,p4a(a));a.validateOnly||(!c||V0()||z().rs===79&&a.flags.enableChatMoleMigration||((0,window.sc_ensureSubscribed)(),a.dispatchEvent("chatrequested")),q4a(a));a1(!0);c=!0}else s4a(a,b);else W0(a,r4a(b),b);else W0(a,a.model.strings.CONNECTION_ERROR);b=to("cases2");!c&&a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||b)&&(a.Ma=!1);a.dispatchEvent("validationend")}}
function t4a(a,b){switch(a){case 22:switch(b){case 6:return"To work with a Support Specialist, ask a parent or guardian to contact Support for you.";case 4:case 3:return"Refresh this page and try again. Sorry, there was a problem with the form.";case 5:return"Sorry, no contact options are available.";case 2:return"To access support, sign in to a Google account based in a supported region, or go to a supported location.";default:return"Please try again later."}case 21:switch(b){case 1:case 2:return"Please try again later. All specialists are currently busy.";
case 3:return"To work with a Support Specialist, use the chat session you have open.";case 4:case 5:return"You\u2019re already in line to work with a specialist.";case 7:case 8:return"Please try again during support hours.";case 6:case 9:case 10:case 11:case 12:return"Refresh this page and try again. Sorry, there was a problem with the form.";case 13:return"Try again later. Sorry, there was a problem with the form.";default:return"Please try again later."}default:return"Please try again later."}}
function r4a(a){var b;return((b=a.submit_error)==null?0:b.length)?(a=a.submit_error[0],t4a(a.code,a.sub_code)):""}
function u4a(a,b){(a=a.querySelector(".recaptcha"))&&qo(a,"invalid",b)}
function s4a(a,b){for(var c=!1,e=a.model.strings.VALIDATION_NOTE,f=x(b.result||[]),h=f.next();!h.done;h=f.next())if(h=h.value.split(":"),h[0]==="REQUIRED_FORM_FRD_VALUE"){if(h=v4a(a,h[1],h[2]))h.isVisible()?RQ(h,!0,a.model.strings.REQUIRED_FIELD):e=a.model.strings.REQUIRED_FIELD+": "+h.model.getName(),c=!0}else{var k=a.tf(h[1]);if(h[0]==="REQUIRED_RECAPTCHA")a.page===a.model.total_pages&&(e=a,e.model.fallback_to_recaptcha_v2&&(e.oa||(qo(e.querySelector(".g-recaptcha"),"hidden",!0),j4a(e)),u4a(e,!0)),
c=!0,e=a.model.strings.REQUIRED_RECAPTCHA_NOTIFICATION);else if(h[0]==="CHAT_UNAVAILABLE")R0(a),c=!0;else if(k&&k.isVisible()){if(c=k.getType()==="PHONE_NUMBER"&&a.c2c)a:{c=a;var n=k.getValues(!0)[0];if(n&&n.value){n=JSON.parse(n.value);var p;if(p=n){n=n.country;p=[];var r=c.model.phone_type_required_countries;r&&(p=r.split(","));p=p.indexOf(n)!==-1}if(p){G0(k,!1,c.model.strings.PHONE_TYPE_VALIDATION,!0);c=!0;break a}}c=!1}c||G0(k,!1,a.model.strings[h[0]]||a.model.strings.DEFAULT);c=!0}}c?(U0(a,"invalid",
e+w4a(a,b)),a.dispatchEvent("invalidated"),S0(17)):$0(a)}
function o4a(a){var b=a.querySelector(".notification-area");b&&(qo(b,"error",!1),qo(b,"invalid",!1),b.textContent="");O0(a,function(e){G0(e,!0)});
b=x(a.qa);for(var c=b.next();!c.done;c=b.next())RQ(c.value,!1);a.oa&&u4a(a,!1)}
function U0(a,b,c){var e=a.querySelector(".notification-area");e&&(qo(e,b,!0),e.textContent=c,b==="invalid"?(e.setAttribute("role","alert"),(b=a.element.querySelector('[aria-invalid="true"]'))&&b.focus(),(a=a.element.querySelector(".invalid .validation-message"))&&a.setAttribute("aria-live","polite")):e.setAttribute("role","status"))}
l.getStatusMessage=function(){var a;return((a=this.querySelector(".notification-area"))==null?void 0:a.innerText)||""};
l.setErrorMessage=function(a){U0(this,"error",a)};
function W0(a,b,c){a.setErrorMessage(b+w4a(a,c));a.dispatchEvent("error");a1(!1)}
function w4a(a,b){if(!b||!a.model.show_debug_info)return"";a=["\n\nDebug info for Googlers:"];var c;((c=b.submit_error)==null?0:c.length)&&a.push.apply(a,["\nSubmit Errors:"].concat(Fa(b.submit_error.map(function(f){return JSON.stringify(f)}))));
var e;((e=b.result)==null?0:e.length)&&a.push.apply(a,["\nResult:"].concat(Fa(b.result)));return a.join("\n")}
function $0(a){c4a(a,a.page+1);a.dispatchEvent("nextpage");S0(6)}
function q4a(a){a.dispatchEvent("submitstart");if(!a.model.is_chat_form||a.ua.length>0)x4a(a),y4a(a);if(a.model.is_chat_form){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);window.sc_enableFormSubmissionDetailsAndDownloadUi&&(z4a(a),A4a(a,T0(a,".submission-details-chat__content")),B4a(a),b=T0(a,".submission-details-chat__download-button"),b.addEventListener("click",function(){C4a(a)}),T0(a,".submission-details-chat__edit-button").addEventListener("click",function(){D4a(a)}),window.sc_trackStatsEvent(182,
4,z().pid),qo(T0(a,".submission-details-chat"),"hidden",!1),b.focus());
T0(a,".notification-area").textContent=a.model.strings.CHAT_CREATING;a.dispatchEvent("chatrequested")}S0(22);a.dispatchEvent("submitend");a.dispatchEvent("cleancomplete");Zo("FormSurveysFeature__enable_hats")==="true"&&i4a()}
function x4a(a){for(var b=a.model.is_chat_form&&a.ua.length>0,c=0;c0&&a.Ec.set(c.getId(),e)}b=x(a.qa);for(c=b.next();!c.done;c=b.next())c=c.value,e=c.Yg(),c.isVisible()&&e&&a.ya.set(e,c.getDisplayValues())}
function A4a(a,b){a=x(a.ya.entries());for(var c=a.next();!c.done;c=a.next()){var e=x(c.value);c=e.next().value;var f=e.next().value;e=c;c=document.createElement("div");var h=document.createElement("span");c.appendChild(h);h.innerText=e;if(f)for(h.innerText+=": ",qo(c,"multi-value",f.length>1),e=x(f),f=e.next();!f.done;f=e.next())f=f.value,h=document.createElement("span"),qo(h,"submission-value",!0),h.innerText=f,c.appendChild(h);b.appendChild(c)}}
function C4a(a){for(var b="",c=x(a.ya.entries()),e=c.next();!e.done;e=c.next()){var f=x(e.value);e=f.next().value;f=f.next().value;b+=e;if(f)for(b+=":",e=x(f),f=e.next();!f.done;f=e.next())b+="\n"+f.value;b+="\n\n"}var h;c=((h=a.caseId)!=null?h:a.getId())+".txt";M0.download(b,c,"text/plain");window.sc_trackStatsEvent(182,47,z().pid);$o("contact_form_submission_download")}
function D4a(a){var b=new URLSearchParams;a=x(a.Ec.entries());for(var c=a.next();!c.done;c=a.next()){var e=x(c.value);c=e.next().value;e=e.next().value;e=x(e);for(var f=e.next();!f.done;f=e.next())b.append("pcff",c+":"+f.value)}$o("contact_form_submission_edit");window.sc_trackStatsEvent(182,24,z().pid);b=new URL(""+window.location.origin+window.location.pathname+"?"+b);Oo(b.toString())}
function a1(a){Do({httpMethod:"POST",endpoint:"cufz",requestBody:{success:a,page_view_id:z().pvid}})}
function v4a(a,b,c){return b&&c?a.qa.find(function(e){return BP(e.model.Fd(),vP(wP(new eA,+b),+b).vd(+c))}):null}
l.tf=function(a){var b=null;O0(this,function(c){var e=c.cidSelector&&c.getElement().querySelector(".cid-selector");return c.getId()===a&&c.getType()!=="EXTERNAL_SOURCE"||e!==null&&e.getAttribute("id")===a?(b=c,!1):!0});
return b};
function c4a(a,b){if(b===a.page||b<1||b>a.model.total_pages)return!1;a.page=b;P0(a);Q0(a,!1);return!0}
function S0(a,b){window.sc_trackStatsEvent(b===void 0?21:b,a,z().pid)}
function E4a(a,b){var c=Y0(a,b),e=a.productSpecificData;e.country_code=a.element.querySelector('.additional-request-data input[name="country_code"]').value;return new Promise(function(f,h){Do({httpMethod:"POST",endpoint:"escalationavailability",params:{v:1,psd:JSON.stringify(e)},requestBody:c.serialize(),onLoadCallback:function(k){try{f(JSON.parse(k.responseText))}catch(n){h(Error("Could not parse escalationavailability response"))}},
Id:function(){h(Error("escalationavailability endpoint returned an error"))},
Pr:!0})})}
function Y0(a,b){var c=new TQ,e=a.getId();sh(c,2,e);e=Number(a.getRedwoodId());qh(c,4,e);ig(c,3,[b],me);if(a.selectedSymptomFrdValues){b=[];e=x(a.selectedSymptomFrdValues);for(var f=e.next();!f.done;f=e.next()){var h=void 0;b.push.apply(b,Fa((h=xP(f.value))!=null?h:[]))}a=$Ma(YQ(WQ(new UQ,VQ(a.selectedSymptomFrdValues)).Wd(a.selectedSymptomFrdValues.Eh()),[yP(vP(wP(new eA,8000072),8000072).vd(15),b)]));Bg(c,WP,7,a)}return c}
l.getEscalationChannelAvailabilityInformation=function(a){var b=this,c,e,f,h,k,n,p,r,u;return Ya(function(w){if(w.o==1)return w.yield(E4a(b,a),2);if(c=w.ma)switch(a){case 1:return w.return((f=(e=c.chat_channel)==null?void 0:e.common_options)!=null?f:null);case 3:return w.return((n=(h=c)==null?void 0:(k=h.email_channel)==null?void 0:k.common_options)!=null?n:null);case 5:return w.return((u=(p=c)==null?void 0:(r=p.c2c_channel)==null?void 0:r.common_options)!=null?u:null)}return w.return(null)})};
function l4a(a){var b,c,e;return Ya(function(f){return f.o==1?f.yield(E4a(a,1),2):(b=f.ma)?f.return(((c=b.chat_channel)==null?void 0:(e=c.common_options)==null?void 0:e.open_now)==="CS_OPEN"):f.return(!1)})}
function $3a(a){var b=a.querySelector(".contact-form__gdpr-dialog");if(b){var c=function(e){var f=this.Fb().strings,h=this.Fb().style_params,k=this.Fb().gdpr_privacy_policy_url,n=z().lang,p={};f=new qD(z().lang,(p["gdpr_dialog.trigger_needing_privacy_policy_url"]=f.GDPR_DIALOG_TRIGGER,p["gdpr_dialog.title"]=f.GDPR_DIALOG_TITLE,p["gdpr_dialog.ok"]=f.GDPR_DIALOG_OK,p));var r=new $Q({Oa:f,locale:n,privacyPolicyUrl:k,Dp:h?{"font-family":h.font_family.title}:void 0,Kn:h?{"font-family":h.font_family.body}:
void 0,Pn:h?{"font-weight":String(h.strong_font_weight)}:void 0});fq(e,function(){r.render()});
return r}.call(a,b);
dNa(c,function(){c.data=new Map;c.Ja();for(var e=x(a.getFieldValues()),f=e.next();!f.done;f=e.next())f=f.value,f.type!=="HIDDEN"&&f.type!=="FROM_EMAIL_ADDRESS_HIDDEN"&&f.type!=="ADDITIONAL_DATA"||!f.value||aR(c,f.name,f.value);e=x(Object.keys(a.productSpecificData));for(f=e.next();!f.done;f=e.next())f=f.value,aR(c,f,a.productSpecificData[f]);a.gcmRegistrationId&&aR(c,"GCM",a.gcmRegistrationId)})}}
function U3a(a,b){b.addEventListener("uploadstart",function(){++a.qb});
b.addEventListener("uploadend",function(){--a.qb;cp(a.element,"uploadend")})}
function R0(a){if(!a.Ma){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);b=T0(a,".notification-area");qo(b,"invalid",!0);b.textContent=a.model.strings.CHAT_UNAVAILABLE}}
l.getId=function(){return this.element.getAttribute("id")};
l.getRedwoodId=function(){return this.element.dataset.contactFormRedwoodId};
l.getContactType=function(){return this.model.contact_type};
l.shouldSubmitToCasesV2=function(){return this.model.should_submit_to_cases_v2};
l.getTitle=function(){var a=this.element.querySelector(".contact-form__title");return a?a.textContent:""};
l.Fb=function(){return this.model};
l.getElement=function(){return this.element};
l.getCaseId=function(){return this.caseId};
l.getChatPoolId=function(){return this.chatPoolId};
l.getChatSupportRequestId=function(){return this.model.chat_support_request_id||""};
l.LP=function(){var a=[];O0(this,function(b){a.push(F4a(b))});
Array.prototype.push.apply(a,m4a(this));return a};
function F4a(a){return{getValues:a.getValues.bind(a),getType:a.getType.bind(a),isVisible:a.isVisible.bind(a),isConditional:a.isConditional.bind(a),hasSatisfiedDependencies:a.hasSatisfiedDependencies.bind(a),getId:a.getId.bind(a),getDisplayName:a.getDisplayName.bind(a),getFrdV1Identifier:a.getFrdV1Identifier.bind(a),getFrdV2Identifier:a.getFrdV2Identifier.bind(a),getFrdIdentifier:a.getFrdIdentifier.bind(a),getFrdContext:a.getFrdContext.bind(a),isCasesTarget:a.isCasesTarget.bind(a),setValues:a.setValues.bind(a),
getElement:a.getElement.bind(a),targetVerified:a.targetVerified.bind(a),setTargetVerified:a.setTargetVerified.bind(a),hide:a.hide.bind(a)}}
l.OP=function(){var a=[];O0(this,function(b){b.isVisible()&&a.push(F4a(b))});
return a};
l.setValidateOnly=function(a){this.validateOnly=a};
l.listen=function(a,b,c,e){this.listeners.push({type:a,listener:b,scope:e})};
l.unlisten=function(a,b,c,e){for(c=0;c0&&!a.ub;)a.Qa.shift()()}
l.wt=function(){var a=this;if(VP(c1(this))){var b=document.activeElement;d1(this,!0);var c=new lQ;H4a(this,c);Do({httpMethod:"POST",endpoint:"getavailablevaluesforgraph",params:{v:"1"},requestBody:c.serialize(),onLoadCallback:function(e){try{for(var f=ZLa(e.responseText),h=x(Ag(f,mQ,2,Zf())),k=h.next();!k.done;k=h.next()){var n=yg(k.value,Xl,1),p=n.getFrdContext(),r=p?Tg(p,2):null,u=a.Ha.get(I0(n));if(u)for(var w=x(u),E=w.next();!E.done;E=w.next()){var la=E.value,ma=Tg(H3a(la),2);if(!(r&&ma&&r!==
ma||!E0(la))){var sa=Ol(Ql($l(n)),Nd);switch(la.getType()){case "CHECKBOX":case "RADIOBUTTON":for(var za=x(la.querySelectorAll(".list-item")),Ca=za.next();!Ca.done;Ca=za.next()){var Ia=Ca.value,Ma=sa.indexOf(Ia.querySelector("input").value)===-1;qo(Ia,"hidden-by-vrg",Ma)}break;case "DROPDOWN":for(var Ra=x(la.querySelectorAll("option")),Va=Ra.next();!Va.done;Va=Ra.next()){var Za=Va.value;if(Za!==la.querySelector("option")){var vb=sa.indexOf(Za.value)===-1;qo(Za,"hidden-by-vrg",vb)}}la.element.querySelector("select").dispatchEvent(new Event("selectvrgupdate"))}}}}}catch(Db){}d1(a,
!1);b.focus();G4a(a)},
Id:function(){d1(a,!1);b.focus();G4a(a)}})}};
function d1(a,b){a.ub=b;a=x(a.Ra);for(var c=a.next();!c.done;c=a.next())c=c.value,E0(c)&&J3a(c,b)}
function H4a(a,b){var c=c1(a);c=VP(c);WLa(b,lh(c,1));XLa(b,mh(c,2));c=[];for(var e=[],f=!1,h=x(a.Ra),k=h.next();!k.done;k=h.next()){k=k.value;if(E0(k)){var n=k.getFrdIdentifier();n&&c.push(n)}if(C0(k)&&k.hasSatisfiedDependencies()){n=[];for(var p=x(k.getValues()),r=p.next();!r.done;r=p.next())n.push(r.value.value);n.length!==0&&(p=new Pl,k.getType()==="HIDDEN"?I4a(I3a(k),n[0],p):k.getFrdIdentifier()===8000001?p.yj((new Jl).Hg(n.map(function(w){return Number(w)||0}))):Sl(p,(new Nl).Hg(n)),n=am(new Xl,
p),p=H3a(k),(r=nh(p,2))&&Yl(n,Fl(new El,nh(p,1)).vd(r)),(k=k.getFrdV2Identifier())&&Zl(n,k),e.push(n),!f&&I0(n)===8000072&&(f=!0))}}if(window.sc_filter_promoted_by_selected_symptom&&!f){var u;
h=(u=a.selectedSymptomFrdValues)==null?void 0:VQ(u);u=Jg(b,2);if(a.selectedSymptomFrdValues&&h&&u&&h===u){u=x(a.mb);for(h=u.next();!h.done;h=u.next())if(I0(h.value)===8000072){f=!0;break}if(!f){f=[];u=x(a.selectedSymptomFrdValues);for(h=u.next();!h.done;h=u.next())k=void 0,f.push.apply(f,Fa((k=xP(h.value))!=null?k:[]));e.push(iA(yP(vP(wP(new eA,8000072),8000072).vd(15),f)))}}}ig(b,3,c,me);Z2a(b,a.mb.concat(e));uh(b,5,a.model.content_publish_state)}
function I4a(a,b,c){switch(a){case 1:c.yj((new Jl).Hg([Number(b)]));break;case 2:case 5:c.Gg((new Nl).Hg([b]));break;case 3:Ul(c,Il(new Hl,[Number(b)]));break;case 4:a=b.split(",");Sl(c,(new Nl).Hg(a));break;case 9:c.Nh(b==="true");break;case 8:a=b.split(",").map(function(e){return Number(e)});
c.tv(Ml(new Kl,[(new Jl).Hg(a)]));break;case 11:case 6:case 7:case 10:Wl(c,(new Gl).Hg([b]))}}
function c1(a){a=JSON.parse(a.element.getAttribute("data-form-service-vrg"));return new UP(a)}
l.getServiceVrgTaxonomyId=function(){var a=VP(c1(this));return a?Jg(a,1):null};
l.getServiceVrgTaxonomyView=function(){var a=VP(c1(this));return a?Sg(a,2):null};
l.setSupportJourneyId=function(a){this.submitId=a};
function p4a(a){window.sc_log&&window.sc_log("Form","INFO","Case ID: "+a.caseId)}
l.setIncludesTargetSelector=function(a){this.Ua=a};
l.setTargetVerified=function(a){this.targetVerified=a};
function a4a(a,b){var c,e,f,h,k,n,p,r,u;Ya(function(w){if(w.o==1){if(!b)return w.return();c=new jQ(JSON.parse(b));a.Qd=(e=Zg(c,7))!=null?e:"";a.Qd&&window.sc_log&&window.sc_log("Helpcenter Field","INFO","Form Helpcenter Fields User-based FRD Value Lookup EventID: "+a.Qd);return w.yield(SQ({helpCenterFrdFieldsConfg:c,locale:z().lang,neoTaxonomy:kQ(),placements:[a.Vs(1),a.Vs(2)],Xu:"*"}),2)}f=w.ma;h=a.getScFrdValues().map(function(E){return new eA(E)});
k=x(a.Ha.keys());for(n=k.next();!n.done;n=k.next())p=n.value,h.push(wP(new eA,p));r=a.getHcfNameScFrdValueMap();u=f.Vk;J4a(a,u,2,h,r,".cf div.helpcenter-fields-container.top");J4a(a,u,1,h,r,".cf div.helpcenter-fields-container.bottom");FP(a.Ca,a.qa.concat(f.Jq).map(function(E){return E.model}));
Oa(w)})}
l.Vs=function(a){var b=new IP,c=new HP,e=this.getContactType();pg(c,3,GP,ne(e));uh(c,2,a);Fg(b,1,HP,c);c=new HP;e=this.getRedwoodId();pg(c,1,GP,Te(e));uh(c,2,a);Fg(b,1,HP,c);a=new NP;Cg(a,1,MP,b);return a};
function J4a(a,b,c,e,f,h){if(h=a.element.querySelector(h)){var k=b.filter(function(n){if(n.model.placements.length||e.some(function(la){return BP(la,n.model.Fd())})||!n.model.Fd().getId()&&f.has(n.model.getName()))return!1;
for(var p=x(n.model.ua),r=p.next();!r.done;r=p.next()){r=r.value;var u=void 0,w=void 0,E=x((w=(u=r.It())==null?void 0:u.o())!=null?w:[]);for(u=E.next();!u.done;u=E.next())u.value.Gs()===c&&n.model.placements.push(r)}return!!n.model.placements.length});
k.length&&fq(h,function(){for(var n=x(k),p=n.next();!p.done;p=n.next())p=p.value,p.render(),a.qa.push(p)})}}
l.getHelpCenterFieldFrds=function(a){return this.Ca.Pc(a===void 0?!1:a).map(function(b){return AP(b)})};
l.setHelpCenterFieldFrd=function(a){a=new eA(a);for(var b=x(DP(this.Ca)),c=b.next();!c.done;c=b.next())if(c=c.value,BP(c.Fd(),a)){$2a(c,a);break}};
function b4a(a){var b=[];z().is_render_api||b.push("direct_to_form");to("cse")==="gse"&&b.push("gse");b.length&&a.addScFrdValue(AP(yP(vP(wP(new eA,8000104),8000104).vd(15),b)))}
function V0(){switch(z().rs){case 3:case 8:return!0;default:return!1}}
window.sc_initForm=function(a,b,c){a=new T3a(a,b,c);return{getEscalationChannelAvailabilityInformation:a.getEscalationChannelAvailabilityInformation.bind(a),getContactType:a.getContactType.bind(a),submitForm:a.submitForm.bind(a),getFields:a.LP.bind(a),getVisibleFields:a.OP.bind(a),getSubjectFieldId:a.getSubjectFieldId.bind(a),getBodyFieldId:a.getBodyFieldId.bind(a),getFieldValues:a.getFieldValues.bind(a),getChatPoolId:a.getChatPoolId.bind(a),getChatSupportRequestId:a.getChatSupportRequestId.bind(a),
setScreenshotter:a.setScreenshotter.bind(a),setGcmRegistrationId:a.setGcmRegistrationId.bind(a),getProductSpecificData:a.getProductSpecificData.bind(a),setProductSpecificData:a.setProductSpecificData.bind(a),setValidateOnly:a.setValidateOnly.bind(a),listen:a.listen.bind(a),unlisten:a.unlisten.bind(a),getInternalHelpcenterName:a.getInternalHelpcenterName.bind(a),setReenableOnValidated:function(){},
getCaseId:a.getCaseId.bind(a),getScFrdValues:a.getScFrdValues.bind(a),setScFrdValue:a.setScFrdValue.bind(a),addScFrdValue:a.addScFrdValue.bind(a),getHcfNameScFrdValueMap:a.getHcfNameScFrdValueMap.bind(a),setHcfNameScFrdValueMap:a.setHcfNameScFrdValueMap.bind(a),setSelectedSymptomFrdValues:a.setSelectedSymptomFrdValues.bind(a),setParentCaseName:a.setParentCaseName.bind(a),setSubmissionChannel:a.setSubmissionChannel.bind(a),shouldSubmitToCasesV2:a.shouldSubmitToCasesV2.bind(a),addCasesAttachment:a.addCasesAttachment.bind(a),
setChatType:function(){},
getChatAvailability:a.getChatAvailability.bind(a),getRedwoodId:a.getRedwoodId.bind(a),prepopulateFields:a.prepopulateFields.bind(a),setAssistiveQuestionAnswers:a.setAssistiveQuestionAnswers.bind(a),getId:a.getId.bind(a),getServiceVrgTaxonomyId:a.getServiceVrgTaxonomyId.bind(a),getServiceVrgTaxonomyView:a.getServiceVrgTaxonomyView.bind(a),setSupportJourneyId:a.setSupportJourneyId.bind(a),getInjectedScFrdValues:a.getInjectedScFrdValues.bind(a),setInjectedScFrdValue:a.setInjectedScFrdValue.bind(a),getInjectedFrdValuesEventId:a.getInjectedFrdValuesEventId.bind(a),
setIncludesTargetSelector:a.setIncludesTargetSelector.bind(a),setTargetVerified:a.setTargetVerified.bind(a),getStatusMessage:a.getStatusMessage.bind(a),setErrorMessage:a.setErrorMessage.bind(a),getHelpCenterFieldFrds:a.getHelpCenterFieldFrds.bind(a),setHelpCenterFieldFrd:a.setHelpCenterFieldFrd.bind(a)}};
false