YouTube API Services - Audit and Quota Extension Form

This form will ask for information about:

(i) your business,

(ii) your API Client, and

(iii) your API Client's access to and usage of YouTube API Services (current and proposed use, as applicable)

We will use the information you provide in accordance with our Privacy Policy (https://policies.google.com/privacy?hl=en)

If you are looking for support or quota increments for Reporting and Content ID APIs, please contact your YouTube Partner Manager

If you have been audited in the past 12 months and have been marked compliant by YouTube API Services Team, you can apply for an additional quota extension using this form. If YouTube denies the application for an additional quota extension, you can file an appeal by using this form.

If you, or any party operating your API Client(s) on your behalf, experience a change of control (for example, through a stock purchase or sale, merger or other form of corporate transaction), please fill out this form.

Am I filling out the correct form?

Continue to fill out this form if: 

  • You are requesting additional API quota for your API Client or a general compliance audit for your API Client.
  • You are completing a periodic audit.

Fill out a different form in these cases:

  • If you have been audited in the past 12 months and have been marked compliant by YouTube API Services Team, you can apply for an additional quota extension using this form.
  • If YouTube denies the application for an additional quota extension, you can file an appeal by using this form.
  • If you, or any party operating your API Client(s) on your behalf, experience a change of control (for example, through a stock purchase or sale, merger or other form of corporate transaction), please fill out this form.

* Required field

Reason for filling this form? *
General Information
About your organization as it relates to YouTube
eg https://www.google.com
Must start with https://
eg. https://www.google.com
Actively monitored email address for service announcements or contacts for further information
Must be valid email address
eg. google@google.com
Minimum 100 characters
If you have a working relationship with a Google employee, enter their contact email here
Must be valid email address
eg. google@google.com

API Client Information
An "API Client" is your website or software application that accesses or uses YouTube API Services.

Have you undergone an audit since June 2019? *
Is there any way in which your client's use of the YT API changed since the last audit? *
Name of your app or website (Please enter comma separated values if there are multiple API Clients)
The project number is a series of digits that can be found alongside the Project ID in your Google Cloud Console. Please comma separate the project numbers without additional spaces.
A project number must contain exclusively numeric values
Is this a publicly or privately available API Client? *
E.g. Links to API Client website, Play store link, Apple store link, Chrome Web link, YouTube channel link etc. If this question is not applicable, please explain
Please include similar data and interface as if a user was using the account
Does your API Client commercialize YouTube Data? *
For example, through sales, ads, paid subscriptions, one-time payments, or other means of monetization
Choose the option that best resembles your API Client's use case *
Add additional field
Specify all YouTube API Services used by this API Client *
Select the primary audience for your API Client *
Must be a numeric value
Does your API Client use multiple projects to access YouTube APIs? *
Does this API Client create, access or use any metrics derived from YouTube data? *
Does this API Client display data from, or provide features or services across, multiple platforms (ex: Facebook, Twitter, etc.)? *
For example, does this API Client display data obtained from YouTube beside or in conjunction with data from other sources?
Do you create/provide any type of reports using YouTube API Data? *
How long do you store YouTube API Data? *
How often do you refresh YouTube API Data? *
Does this API Client allow users to authenticate with their Google credentials *
Note : Please upload one file smaller than 10MB. Multiple file uploads and file size greater than 10 MB will result in an error during submission
Quota Request Form
Only fill out and submit this section if you are nearing your allocated quota limit
Name of your API Client
Enter your project number as shown on Google Developer Console
Must be a numeric value
Which YouTube API Service(s) are you requesting a quota increase for? *
"Additional Quota" = "Total Quota Needed" - "Current Allocated Quota"
Must be a numeric value

Provide a detailed breakdown:

- Expected growth and timelines

- Arithmetic calculations justifying the additional quota

- Daily usage pattern (total number of calls and peak QPS)

- Expected number of calls

Minimum 200 characters
Provide a detailed breakdown of API calls currently being made by the API Client and what they are used for
Minimum 200 characters
Minimum 200 characters
Ex: decreased feature set, estimated change in usage, etc.
Acknowledgement of YouTube API Services Terms of Service and Developer Policies
I have read and agree to the YouTube API Services Terms of Service (including the Developer Policies and Google Privacy Policy) and my current and proposed access to, and use of, YouTube API Service(s) comply with the YouTube API Services Terms of Service. *
If I provide a demo account and instructions on how Google can access my API Client, I understand and agree that Google is not bound to any terms of service or policies that applies to such account or access to my API Client. *
The above facts are true to the best of my knowledge and I understand that should the above facts be found to be untrue, YouTube may terminate my API Client's access to the YouTube API Services as per YouTube's Terms of Service and Developer Policies *
A copy of your responses will be emailed to the address you provided.

Note: Multiple file uploads and file size greater than 10 MB will result in an error during submission
https://myaccount.google.com/privacypolicy?hl=$0
Some account and system information will be sent to Google, and support calls and chats may be recorded. We will use this information to improve support quality and training, to help address technical issues, and to improve our products and services, subject to our Privacy Policy and Terms of Service. Translation services may be used in chats and email.
Additional info
Search
Clear search
Close search
Google apps
Main menu
12999592813824507377
true
Search Help Center
false
true
true
true
true
true
59
'; var e=Dl(a);a=ol("data:text/html;charset=UTF-8;base64,"+btoa(e.toString()));b||(c.srcdoc=Fl(e))}else{if(b)throw Error("IFRAME_SANDBOX_URL is not supported with disableSandbox");a=new Map([["nonce",a]]);var f=pl(zcb).toString();var h=f.split(/[?#]/);e=/[?]/.test(f)?"?"+h[1]:"";b=h[0];f=/[#]/.test(f)?"#"+(e?h[2]:h[1]):"";a=Pab(b,e,f,a)}c.src=pl(a).toString();c.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";c.setAttribute("aria-hidden","true");return c} ;var m2={kY:!1,zK:!1},n2;function o2(a){this.options=a=a===void 0?m2:a;if(!Ecb(this.options)&&typeof navigator.msSaveOrOpenBlob!=="function"){var b;this.sandbox=new l2({tE:(b=this.options.zK)!=null?b:!1})}} o2.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?m2:e;return La(function(f){if(f.o==1)return f.yield(Fcb(a,b,c,e),2);if(f.ma)return f.return();n2||(n2=new o2,n2.init());return f.yield(Gcb(n2,a,b,c),0)})}; o2.prototype.init=function(){var a=this;return La(function(b){return a.sandbox==null?b.return():b.yield(a.sandbox.load(),0)})}; o2.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return La(function(f){return f.o==1?f.yield(Fcb(a,b,c,e.options),2):f.ma?f.return():f.yield(Gcb(e,a,b,c),0)})}; function Gcb(a,b,c,e){e=e===void 0?"":e;var f,h,k;return La(function(l){switch(l.o){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){l.Oa(2);break}navigator.msSaveOrOpenBlob(f,c);return l.yield(p2(),3);case 3:return l.return();case 2:if(!Mb()||Caa(Oab(),16)>=0||!Fb()&&(!yb("iPad")&&!yb("iPhone")||Eb()||Fb()||(zb()?0:yb("Coast"))||Db()||!yb("AppleWebKit"))){l.Oa(4);break}h=new FileReader;h.onload=function(){var p=An("A"),r=yl(String(h.result)); Bl(p,r);p.download=c;p.click()}; h.readAsDataURL(/proxy?url=https%3A%2F%2Fsupport.google.com%2Ff);return l.yield(p2(),5);case 5:return l.return();case 4:return a.sandbox==null&&(a.sandbox=new l2({tE:(k=a.options.zK)!=null?k:!1}),a.sandbox.load()),l.yield(a.sandbox.exec('var url=URL.createObjectURL(/proxy?url=https%3A%2F%2Fsupport.google.com%2Fblob);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(/proxy?url=https%3A%2F%2Fsupport.google.com%2Furl);},250);',[{name:"blob", value:f,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return l.yield(p2(),0)}})} function Fcb(a,b,c,e){c=c===void 0?"":c;e=e===void 0?m2:e;var f;return La(function(h){switch(h.o){case 1:if(!Ecb(e))return h.return(!1);h.ua(2);return h.yield(Hcb(a,b,c),4);case 4:h.va(3);break;case 2:f=h.qa();if(f instanceof DOMException&&f.name==="SecurityError")return h.return(!1);throw f;case 3:return h.return(!0)}})} function Ecb(a){a=a===void 0?m2:a;return a.kY&&!!window.showSaveFilePicker} function Hcb(a,b,c){c=c===void 0?"":c;var e,f,h,k;return La(function(l){switch(l.o){case 1:var p=c,r={suggestedName:b},t;(t=b.match(/\..+$/))?(t=t[0],t=t.length>16?null:t):t=null;if(t){p=p.replace(/;[^]*/,"");var v={};r.types=[{description:"*"+t,accept:(v[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(p)?p:"*/*"]=[t],v)}]}e=r;l.ua(2);return l.yield(window.showSaveFilePicker(e),4);case 4:f=l.ma;l.va(3);break;case 2:h=l.qa();if(h instanceof DOMException&&h.name==="AbortError")return l.return(); throw h;case 3:return l.yield(f.createWritable(),5);case 5:return k=l.ma,l.Qa(6),l.yield(k.write(a),6);case 6:return l.Ca(),l.yield(k.close(),9);case 9:l.Aa(7);break;case 7:return l.return()}})} o2.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()}; function p2(){return new Promise(function(a){setTimeout(a,500)})} cb("SafeDownloader",o2);var Icb=[8000001,8000086,8000063,8000975,8000976,8000087,8000088],Jcb=["CHECKBOX","RADIOBUTTON","DROPDOWN"]; function Kcb(a,b,c){var e=this;this.element=a;this.model=b;this.flags=c;this.validateOnly=tm("validate_only")==="true";this.page=1;this.fields=[];this.Uc=[];this.Aa=new Map;this.bubbles=[];this.Sa=[];this.caseId=null;this.Ka=new Map;this.Gk=new Map;this.c2c=null;this.listeners=[];this.Yf=0;this.yb=!0;this.oa=null;this.ua=this.ob=this.Tc=!1;this.Ja=this.Ha=this.recaptcha=null;this.Ao=[];this.gcmRegistrationId="";this.productSpecificData={};this.va=[];this.qa=[];this.Qa=[];this.Yd="";this.mf=[];this.hd= [];this.parentCaseName="";this.Ck=[];this.Me=!1;this.od=[];this.Ca=[];this.targetVerified=this.vd=!1;this.ma=[];this.chatPoolId="";this.Ya=this.Fh=this.Da=this.Ma=!1;this.Ib=this.o=null;this.Ra=27;this.xo=new Set;this.wc=null;this.Jk=this.model.show_recaptcha;this.wg=this.querySelector(".form-screenshot");this.ww=new Map;this.submissionChannel=0;this.Va=new qF("HelpcenterFields/Form");this.submitId=pm;this.dispatchEvent("startinginitialization");a=this.querySelectorAll(".field");for(b=0;b0&&v.parents.push(la)}}}); r2(this);this.dispatchEvent("fieldsinitialized");this.Jk&&Ocb(this);window.sc_createSpinner&&(this.oa=window.sc_createSpinner("small"),qm(this.oa.getElement(),"submit-spin",!0));s2(this,!1);Pcb(this);Qcb(this);Rcb(this);t2(this,!0);this.prepopulateFields();this.prefillFieldsFromSession();this.element.addEventListener("submit",function(v){v.preventDefault();e.submitForm()}); this.element.addEventListener("input",function(){e.dispatchEvent("inputchange");e.setHasCheckedForDynamicRecommendation(!1);e.Ya=!1}); this.element.addEventListener("change",function(){e.setHasCheckedForDynamicRecommendation(!1);e.Ya=!1}); this.model.c2c_configured&&(this.c2c=(0,window.sc_initFormClickToCall)(this));this.model.is_chat_form&&!this.shouldSubmitToCasesV2()&&u2(this);Scb(this);this.dispatchEvent("validatorinitialized");this.dispatchEvent("initializationcomplete");v2(20);if(a=this.element.getAttribute("data-form-sc-frd-values"))for(a=w(JSON.parse(a)),b=a.next();!b.done;b=a.next())b=new er(new nk(b.value)),this.mf.push(ir(b)),this.qa.push(BP(b));a=w(this.fields);for(b=a.next();!b.done;b=a.next())if(b=b.value,c=b.getFrdIdentifier())this.Uc.push(b), (f=this.Aa.get(c))?f.push(b):this.Aa.set(c,[b]);Tcb(this,this.element.getAttribute("data-helpcenter-frd-fields-confg"));Ucb(this);Vcb(this);Wcb(this);Xcb(this);Ycb(this)} function Zcb(a){var b,c;return(c=(b=a.flags.policyViolationCampaignSelectorFormAllowlist)==null?void 0:b.primitive_value)!=null?c:[]} function Mcb(a){if(a.qk)var b=Zm("PolicyViolationCampaignSelectorFeature__enable_policy_violation_campaign_selector")!=="true";else b=a.getRedwoodId(),b=!(scb(b,Zcb(a))&&rcb());if(b)return null;if(a.wc)return a.wc;b=w(a.fields);for(var c=b.next();!c.done;c=b.next())if(c=c.value.o)return a.wc=c;return null} function Xcb(a){var b=document.querySelector(".contact-form-suggestions-panel-container");b&&(xw.initialize(b,void 0),Sqa(document),xw.Ei=function(c,e){return a.Ei(c,e)},yw(),FSa(a.getRedwoodId()),b=function(){ww()},a.element.addEventListener("input",b),a.element.addEventListener("change",b),setTimeout(b,0),b=function(){zw()},a.listen("nextpage",b),a.listen("highcontextchannelrecommendationfound",b),a.listen("submitstart",function(){xw.submitForm(); zw()}))} function Ycb(a){if(w2(a)&&!z().is_render_api){var b=a.querySelector(".submit-button");b&&(b.textContent=a.model.strings.NEXT);a.listen("dynamicrecommendationfound",a.eV.bind(a));a.listen("error",function(){a.va.length>0||a.Qv()}); a.listen("invalidated",function(){a.va.length>0||a.Qv()}); a.listen("submitend",function(){a.Qv()}); (b=document.querySelector(".collapsed-form-container__header"))&&b.addEventListener("click",a.Qv.bind(a))}} function $cb(){return{mL:document.querySelector(".form-suggestions-wrapper"),oK:document.querySelector(".collapsed-form-container"),KK:document.querySelector(".contact-form-dynamic-recommendations-container")}} n=Kcb.prototype;n.Qv=function(){var a=$cb(),b=a.mL,c=a.oK;a=a.KK;b&&c&&a&&(qm(c,"hidden",!0),qm(a,"hidden",!0),qm(b,"hidden",!1),this.setShouldShowNextStep(!0))}; n.eV=function(){var a=$cb(),b=a.mL,c=a.oK;a=a.KK;b&&c&&a&&(qm(c,"hidden",!1),qm(a,"hidden",!1),qm(b,"hidden",!0),this.setShouldShowNextStep(!1),this.Da||Bqa(a,this.getFieldValues(),this.Ar))}; n.querySelector=function(a){return this.element.querySelector(a)}; function x2(a,b){return a.element.querySelector(b)} n.querySelectorAll=function(a){return this.element.querySelectorAll(a)}; function q2(a,b){for(var c=0;c=a.model.total_pages;qm(a.wg,"hidden",!b);b?a.Ja.activate():a.Ja.deactivate()}} function s2(a,b){var c=a.page>=a.model.total_pages,e=a.querySelector(".submit-button");e&&(qm(e,"hidden",!c),e.disabled=!a.yb||b);if(a.ua){var f=y2(a)?".high-context-channel-recommendation__recaptcha":".recaptcha";qm(a.querySelector(f),"hidden",!c)}if(f=a.querySelector(".previous-button"))qm(f,"hidden",a.page===1),f.disabled=b;if(f=a.querySelector(".next-button"))qm(f,"hidden",a.page===a.model.total_pages),f.disabled=!a.yb||b;if(a.oa){b?a.oa.show():a.oa.hide();var h=a.oa.getElement();!c&&(f==null? 0:f.parentNode)?f.parentNode.appendChild(h):c&&(e==null?0:e.parentNode)?e.parentNode.appendChild(h):(e==null?0:e.parentNode)?e.parentNode.appendChild(h):(f==null?0:f.parentNode)&&f.parentNode.appendChild(h)}(c=a.querySelector(".high-context-channel-recommendation__button-spinner"))&&qm(c,"hidden",!b);z2(a,b)} function y2(a){return!sm(a.querySelector(".high-context-channel-recommendation__container"),"hidden")} function Pcb(a){var b=a.querySelector(".submit-button");b&&(!z().li&&a.model.is_chat_form?(b.disabled=!0,x2(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(){adb(a,a.page-1)&&(a.dispatchEvent("previouspage"),v2(7))}); (b=a.querySelector(".next-button"))&&b.addEventListener("click",a.submitForm.bind(a))} function Wcb(a){if(qcb()&&!a.model.logged_in){v2(4,304);var b=a.element.querySelector(".need-info-authentication-prompt__container");a=a.element.querySelector(".confirmation-message__authentication-prompt-container");b&&qm(b,"hidden",!1);a&&qm(a,"hidden",!1)}} function Vcb(a){if(qcb()&&a.model.logged_in&&!z().is_render_api){for(var b=[],c=w(Icb),e=c.next();!e.done;e=c.next())(e=a.Aa.get(e.value))&&b.push.apply(b,za(e));b=w(b);c=b.next();for(e={};!c.done;e={Hu:void 0,Bw:void 0,uF:void 0,targetIdAuthorizationWarning:void 0},c=b.next())e.Hu=c.value,e.uF=e.Hu.getFrdIdentifier(),e.uF&&(e.Bw=e.Hu.querySelector(".text-input-container"),e.targetIdAuthorizationWarning=e.Hu.querySelector(".target-id-authorization-warning"),e.Hu.getElement().addEventListener("focusout", function(f){return function(){var h,k,l,p;return La(function(r){switch(r.o){case 1:h=f.Hu.getValues()[0].value;if(!h)return r.return();f.Bw&&qm(f.Bw,"text-input-spin",!0);r.ua(2,3);return r.yield(bdb(a,f.uF,h),5);case 5:k=r.ma;if(ef(k,j2,1,Ge()).length===0)return r.return();l=ef(k,j2,1,Ge())[0];p=qf(l,2);qm(f.targetIdAuthorizationWarning,"hidden",p);v2(p?4:5,305);case 3:r.Ca();f.Bw&&qm(f.Bw,"text-input-spin",!1);r.Aa(0);break;case 2:r.qa(),qm(f.targetIdAuthorizationWarning,"hidden",!0),v2(5,305), r.Oa(3)}})}}(e)))}} function Qcb(a){a=a.element.getElementsByTagName("textarea");for(var b=0;b0&&x.getValues()[0].value!==""&&!Jcb.includes(x.getType())&&x.getType()!=="HIDDEN";if(!E||!a.xo.has(E)&&!la){k=[];var ta=of(v,2);ta?k=[ta]:ef(v,Lj,3,Ge()).length>0&&(k=[].concat(za(cdb(ef(v,Lj,3,Ge())[0]))));k.length>0&&(h++,Qbb(x,k)&&e++)}}}if(e>0){var va=document.querySelector(".prefilled-callout"); va&&qm(va,"hidden",!1)}ddb(e,h)}else ddb(0,0);a.hd=[];var Ba,Ha=(Ba=cf(f,c2,2))==null?void 0:Oe(Ba,2,Lj,JP);if(Ha)for(var Oa=w(Ha.values()),Pa=Oa.next();!Pa.done;Pa=Oa.next()){var ab=Pa.value,hb=pk(new nk,ab),xb=new er(hb);ab.jA()||xb.ad(15);a.hd.push(BP(xb))}}catch(Hb){console.error("Failed to parse FormsGetPrefillDataResponse",Hb)}finally{t2(a,!1)}}, Yc:function(e){window.sc_trackStatsEvent(313,21,"getprefilldata: "+e.statusText);console.error("getprefilldata endpoint returned an error",e);t2(a,!1)}, Cj:!0})}}else t2(this,!1)}; function ddb(a,b){var c="no_prefill";b>0&&(c=a===b?"full_prefill":"partial_prefill");window.sc_trackStatsEvent(313,15,c+": prefilled_count:"+(a+"_total_potential_count:"+b))} function cdb(a){return(a=Oj(a))?ze(a,Cj,8,Kf)?Dj(Fj(a)):ze(a,xj,2,Kf)?yj(a.fh()).map(function(b){return""+b}):ze(a,Cj,3,Kf)?Dj(a.fk()):ze(a,vj,4,Kf)?wj(Hj(a)).map(function(b){return""+b}):Jf(a)!=null?[a.un().toString()]:ze(a,zj,6,Kf)?Aj(a.zn()).flat().map(function(b){return""+b}):[]:[]} n.prepopulateFields=function(a){if(this.model.enable_prepopulate_contact_form_field_query_params)for(var b=w(this.fields),c=b.next();!c.done;c=b.next()){c=c.value;var e=edb(c,a),f=void 0;if((f=e)==null?0:f.fP.length)c.setValues(e.fP,!0),(f=c.getId())&&this.xo.add(f);f=void 0;((f=e)==null?0:f.tX)&&c.hide()}}; function edb(a,b){b||(b=z().query_params);b=b.filter(function(t){return t.key==="pcff"}); for(var c=[],e=!1,f=0;f .contact-form-label__text');if(a.length!==0&&a[0])return a=a[0],a.textContent?a.textContent:void 0} n.Oz=function(a,b){var c=[];q2(this,function(e){var f=Lbb(e,a,b);f&&c.push({field:e,control:f,value:b})}); return c}; n.El=function(){return this.page}; n.submitForm=function(){var a=this;if(this.Fh&&this.Ya&&!this.Ma)this.getStatusMessage()!==""&&(this.Da=!1),fdb(this);else{this.Ib&&this.Ra!==27||(this.Ib=wt.Td());for(var b=w(this.ma),c=b.next();!c.done;c=b.next()){c=c.value;var e=c.model;if(!e.xc()&&!e.ld().getId()){mR(c,!0,this.model.strings.REQUIRED_FIELD);A2(this,"invalid",this.model.strings.VALIDATION_NOTE);this.dispatchEvent("invalidated");return}}s2(this,!0);q2(this,function(h){h.Ca&&(a.vd=!0,h.targetVerified()&&(a.targetVerified=!0))}); if(this.Yf!==0){var f=function(){a.element.removeEventListener("uploadend",f);a.submitForm()}; this.element.addEventListener("uploadend",f)}else this.dispatchEvent("validationstart"),B2(this)||this.dispatchEvent("beforesubmit"),gdb(this).then(function(h){!a.c2c||a.model.use_cufinsert_api_when_validating_only&&a.validateOnly?C2(a)&&a.model.check_chat_availability_before_submitting_request&&!D2()&&!a.shouldSubmitToCasesV2()?hdb(a,h):idb(a,h):jdb(a,h)}).catch(function(){E2(a,a.model.strings.BACKEND_ERROR); a.dispatchEvent("validationend")})}}; function kdb(a){var b=a.querySelector("#channel-recommendation-chat-option"),c=a.querySelector(".high-context-channel-recommendation__continue-button"),e=a.querySelector(".high-context-channel-recommendation__switch-button");a.querySelector("#channel-recommendation-email-option").addEventListener("click",function(){ldb(a,!1)}); b.addEventListener("click",function(){ldb(a,!0)}); c.addEventListener("click",function(){window.sc_trackStatsEvent(303,55,z().pid);mdb(a,1)}); e.addEventListener("click",function(){window.sc_trackStatsEvent(303,54,z().pid);mdb(a,2)})} function mdb(a,b){b===2?ndb(a,a.o,"channel_reco_chat_channel_selected"):ndb(a,a.o,"channel_reco_chat_channel_shown");var c=a.querySelector(".notification-area");c&&(c.textContent="");a.setSubmissionChannel(b);a.o&&(a.o.submission_channel=b);a.submitForm()} function ldb(a,b){var c=a.querySelector("#channel-recommendation-email-option"),e=a.querySelector(".high-context-channel-recommendation__continue-button"),f=a.querySelector(".high-context-channel-recommendation__switch-button");qm(a.querySelector("#channel-recommendation-chat-option"),"high-context-channel-recommendation-options__option--active",b);qm(c,"high-context-channel-recommendation-options__option--active",!b);qm(f,"hidden",!b);qm(e,"hidden",b)} function odb(){var a=Zm("FormSurveysFeature__trigger_id");gu(new fu,{triggerId:a,enableTestingMode:Zm("FormSurveysFeature__enable_testing_mode")==="true",productData:{experimentIds:bn()}})} n.setAssistiveQuestionAnswers=function(a){this.Ca=a;if(this.c2c&&(!this.model.use_cufinsert_api_when_validating_only||!this.validateOnly)){a=w(this.Ca);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.c2cCountry&&b.c2cNumber){a=x2(this,'input[type="tel"]').closest(".field").querySelector("select");this.vf(a.name).setValues([[b.c2cCountry,b.c2cNumber]]);break}}}; function Ocb(a){var b="submit_form";a.model.has_custom_recaptcha_action&&(b="submit_form_"+a.getRedwoodId()+"_"+a.getId());var c=y2(a)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha";a.recaptcha=new nF(a.querySelector(c),function(){a.ob=!0;v2(19,22)},b)} function pdb(a){var b=y2(a)?".high-context-channel-recommendation__g-recaptcha-v2":".g-recaptcha-v2",c=a.querySelector(b);if(c){var e=window.sc_createSpinner?window.sc_createSpinner("small"):null;e&&c.parentNode&&c.parentNode.insertBefore(e.getElement(),c);a.Ha=(new kC(c,function(){e&&c.parentNode&&c.parentNode.removeChild(e.getElement());a.ua=!0;v2(19,172);v2(4,172)})).Wn(function(){v2(14,172)})}} function qdb(a,b){b=b===void 0?null:b;var c=f2().map(function(k){return k.toString()}); b&&c.push(b);var e,f;b=(f=(e=a.flags.smartIntakeDynamicQuestionsFormAllowlist)==null?void 0:e.primitive_value)!=null?f:[];e=Zcb(a);f=F2(a);var h=z().lang;c.push.apply(c,za(ecb(a.getRedwoodId(),b,f,h)));c.push.apply(c,za(tcb(a.getRedwoodId(),e)));return[zP(xP(wP(new er,8001336),8001336).ad(15),[].concat(za(new Set(c))))]} function ndb(a,b,c){b.form_frd_values=b.form_frd_values.filter(function(e){return e.frd_id!==8001336}); a=qdb(a,c)[0];b.form_frd_values.push(E1(a.Fc))} n.submitCaseUpdate=function(a,b,c){var e=this,f,h,k,l,p,r,t;return La(function(v){switch(v.o){case 1:return v.ua(2),v.yield(gdb(e),4);case 4:f=v.ma;h=structuredClone(f);h.validate_only=!1;h.header||(h.header=[]);h.header.push({name:"case_action",value:a});h.header.push({name:"case_id",value:"cases/"+b});c&&h.header.push({name:"note_body",value:c});h.submit_id=e.submitId;k={v:"0",psd:JSON.stringify(e.productSpecificData)};(l=tm("test"))&&(k.test=l);(p=tm("cases2"))&&(k.cases2=p);r={common_params:{context_params:{view_id:z().vid}}, resource:h};if(e.ua&&e.Ha){r.recaptcha_response=e.Ha.getResponse();v.Oa(5);break}if(!e.ob||!e.recaptcha){v.Oa(5);break}return v.yield(e.recaptcha.getResponse(),7);case 7:r.recaptcha_response_v3=v.ma;case 5:return v.yield(new Promise(function(x,E){Em({httpMethod:"POST",endpoint:"cufinsert",params:k,requestBody:r,onLoadCallback:function(la){try{var ta=JSON.parse(la.responseText);ta.result&&ta.result.includes("UPDATE_FAILED")?E(Error("Update failed with result: "+JSON.stringify(ta.result))):ta.result&& !ta.result.includes("UPDATE_OK")?E(Error("Update did not succeed. Result: "+JSON.stringify(ta.result))):x()}catch(va){E(Error("Failed to parse response"))}}, Yc:function(){E(Error("API error"))}, Cj:!0})}),8); case 8:return v.return();case 2:throw t=v.qa(),t;}})}; function gdb(a){var b,c,e,f,h,k,l,p,r,t,v,x,E,la,ta,va,Ba,Ha,Oa,Pa,ab,hb,xb,Hb,Jb,rb,Kb;return La(function(Ab){if(Ab.o==1){if(a.Ma&&a.o)return Ab.return(Promise.resolve(a.o));c={form_id:a.element.getAttribute("id"),header:[],subject:"",content:"",validate_only:a.validateOnly||G2(a)||B2(a)||w2(a),validation_info:a.model.validation_info,language:z().lang,helpcenter_id:a.model.helpcenter_id,active_experiments:a.model.active_experiments,referer:a.model.referer,referer_title:a.model.referer_title,timezone_offset_minutes:(new Date).getTimezoneOffset(), form_frd_values:tR(tR(tR(tR(tR(tR(tR(new pR,a.Qa),a.qa),a.Va.Oc()),a.hd),a.ma.map(function(lb){return lb.model}).filter(function(lb){return lb.isRequired()&&lb.isPending()&&lb.isValid()}).map(function(lb){return lb.ld().setRequired(!0)})),[xP(wP(new er,8000730),8000730).ad(15).Ah([Dm()])]),qdb(a)).Oc().map(function(lb){return E1(lb.Fc)}), selected_symptom_frd_values:(b=a.selectedSymptomFrdValues)==null?void 0:Nab(b),parent_case_name:a.parentCaseName,submission_channel:a.submissionChannel,cases_attachment:a.Ck.map(function(lb){return{blob_name:Hf(lb,1),file_name:lb.getFileName()}}), form_revision:Number(a.element.getAttribute("data-contact-form-revision"))};D2()&&(c.chat_pool_id=a.getChatPoolId(),a.getContactType()===1||a.getContactType()===3)&&(c.gcm_registration_id=a.gcmRegistrationId);e=a.getSubjectFieldId();f=a.getBodyFieldId();return a.Ja?Ab.yield(a.Ja.getScreenshotData(),3):Ab.Oa(2)}Ab.o!=2&&(h=Ab.ma)&&(a.Ao=[{name:"screenshot",value:"There was a file uploaded for this field."},{name:"upload_original_filename",value:h.originalFilename},{name:"upload_cns_filename",value:h.If}, {name:"upload_document_id",value:h.documentId}]);if(a.Ca.length>0)for(c.is_assistive=!0,c.assistive_flow_results=[],k=w(a.Ca),l=k.next();!l.done;l=k.next())p=l.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});H2(a)&&a.va&&a.va.length>0&&(c.dynamic_question_results=a.va.map(function(lb){return{question_text:lb.questionText, question_intent:lb.questionIntent,answer_values:lb.answerValues,relevance:lb.relevance,suggested_input_type:lb.suggestedInputType}})); t=F2(a);if(v=Z1(t))c.helpcenter_form_field_results=[],a.ma&&a.ma.length>0&&(x=a.ma.filter(function(lb){return lb.model.isValid()&&lb.model.iG}).map(function(lb){return{field_label:lb.Se(), field_id:lb.model.getName(),field_values:JQ(lb.model)}}),x.length>0&&(c.helpcenter_form_field_results=x)); E=a.getFieldValues();la=rdb(a,!0);ta=new Map(a.getHcfNameScFrdValueMap().entries());a.ma.map(function(lb){return lb.model}).forEach(function(lb){lb.isValid()&&ta.set(lb.getName(),BP(lb.ld()))}); for(va=0;va0&&(c.product_specific_data=Hb);a.vd&&(c.target_submission_details={used_target_selector:!0,is_target_selector_verified:a.targetVerified});return Ab.return(c)})} function hdb(a,b){var c=I2(a,1);Em({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,l,p;((h=f.chat_channel)==null?0:(k=h.common_options)==null?0:k.available_to_user)||((l=f.hangout_channel)==null?0:(p=l.common_options)==null?0:p.available_to_user)?idb(a,b):(a.oa&&a.oa.hide(),u2(a))}, Yc:function(e){window.sc_trackStatsEvent(52,21,"escalationavailability: - "+e.statusText);a.oa&&a.oa.hide();if(e=a.querySelector(".submit-button"))e.disabled=!1;E2(a,a.model.strings.BACKEND_ERROR);a.dispatchEvent("validationend")}})} n.getChatAvailability=function(){var a=this;return La(function(b){return b.return(sdb(a))})}; function jdb(a,b){var c,e,f,h,k,l;La(function(p){if(p.o==1)return c={contact_flow:b},a.ua?(c.recaptcha_response=a.Ha.getResponse(),p.Oa(2)):a.ob?p.yield(a.recaptcha.getResponse(),4):p.Oa(2);p.o!=2&&(c.recaptcha_response_v3=p.ma);a.c2c.populateCallParameters(c);a.shouldSubmitToCasesV2()&&(e={},f=I2(a,5),ag(f,2)&&(e.form_id=Hf(f,2)),vd(te(f,4))!=null&&(e.redwood_form_id=Of(f,4)),e.channel=[5],xe(f,cQ,7)?e.sc_frd_values=Mab(new pR(f.getScFrdValues())):xe(f,ak,1)&&(e.frd_values=Nab(new pR(cf(f,ak,1)))), c.escalation=e);h={v:"1",psd:JSON.stringify(a.productSpecificData)};(k=tm("test"))&&(h.test=k);(l=tm("cases2"))&&(h.cases2=l);b.submit_id=a.submitId;Em({httpMethod:"POST",endpoint:"createcall",params:h,requestBody:c,onLoadCallback:function(r){var t=null;try{t=JSON.parse(r.responseText)}catch(v){}J2(a,{type:"c2c",response:t})}, Yc:function(){J2(a,{type:"c2c",response:!1})}}); p.oa()})} function idb(a,b){var c,e,f,h;La(function(k){if(k.o==1)return c={v:"0",psd:JSON.stringify(a.productSpecificData)},(e=tm("test"))&&(c.test=e),(f=tm("cases2"))&&(c.cases2=f),b.submit_id=a.submitId,h={common_params:{context_params:{view_id:z().vid}},resource:b},a.ua?(h.recaptcha_response=a.Ha.getResponse(),k.Oa(2)):a.ob?k.yield(a.recaptcha.getResponse(),4):k.Oa(2);k.o!=2&&(h.recaptcha_response_v3=k.ma);C2(a)&&(a.shouldSubmitToCasesV2()||f)&&(a.Tc=!0);Em({httpMethod:"POST",endpoint:"cufinsert",params:c, requestBody:h,onLoadCallback:function(l){var p=null;try{p=JSON.parse(l.responseText)}catch(r){J2(a,{type:"cuf",response:l.responseText,formData:b});return}J2(a,{type:"cuf",response:p,formData:b})}, Yc:function(){J2(a,{type:"cuf",response:!1,formData:b})}, Cj:!0});k.oa()})} function C2(a){return a.model.is_chat_form||a.Ma&&a.o!==null&&a.o.submission_channel===2} function G2(a){if(!a.model.fix_multi_page)return!1;var b=!1;q2(a,function(c){Number(c.El())>a.El()&&c.hasSatisfiedDependencies()&&(b=!0)}); return b} function B2(a){var b=a.getContactType()===0;return a.model.logged_in&&(pcb()||f2().includes("channel_reco_treatment"))&&z().rs===1&&b&&!a.Ma} function w2(a){return a.model.logged_in&&!a.Da&&H2(a)} function H2(a){var b=a.getRedwoodId(),c=!!a.flags.enableSmartIntakeDynamicQuestions,e,f;a=(f=(e=a.flags.smartIntakeDynamicQuestionsFormAllowlist)==null?void 0:e.primitive_value)!=null?f:[];e=z().lang;return c&&yR(b,a,e)} n.getHasCheckedForDynamicRecommendation=function(){return this.Da}; n.setHasCheckedForDynamicRecommendation=function(a){this.Da=a}; n.getShouldShowNextStep=function(){return this.Fh}; n.setShouldShowNextStep=function(a){this.Fh=a}; function fdb(a,b){b=b===void 0?null:b;s2(a,!0);b&&(a.o=b);a.o.validate_only=a.validateOnly||G2(a);a.dispatchEvent("dynamicrecommendationfound");a.Ya=!0;a.Da=!0;s2(a,!1)} function tdb(a,b){s2(a,!0);a.o=b;a.o.validate_only=a.validateOnly||G2(a);a.Ma=!0;b={contact_flow_model:b};Em({httpMethod:"POST",endpoint:"channelrecommendation",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},requestBody:b,onLoadCallback:function(c){var e=null;try{e=JSON.parse(c.responseText)}catch(f){K2(a,{response:c.responseText});return}K2(a,{response:e})}, Yc:function(){K2(a,{response:!1})}, Cj:!0})} function K2(a,b){s2(a,!1);if(typeof b.response!=="object")a.submitForm();else if(b=b.response,b.channel_type&&b.channel_type==="CHAT"&&a.getContactType()===0){a.Ra=28;udb(a);vdb();window.sc_trackStatsEvent(303,4,z().pid);var c=a.querySelector(".high-context-channel-recommendation__container");wdb(a,!1);qm(c,"hidden",!1);!z().is_render_api&&H2(a)&&a.Qv();a.dispatchEvent("highcontextchannelrecommendationfound");a.Jk&&Ocb(a);c=a.querySelector(".high-context-channel-recommendation-options__option-estimated-wait-time"); var e=b.chat_channel;if(e&&e.common_options){var f=e.common_options.estimated_wait_time_id;e.common_options.estimated_wait_time_seconds&&(e=e.common_options.estimated_wait_time_seconds,f=e<60?a.model.strings.CHANNEL_RECOMMENDATION_WAIT_TIME.replace("$0","1"):e<180?a.model.strings.CHANNEL_RECOMMENDATION_WAIT_TIME.replace("$0","3"):e<3300?a.model.strings.CHANNEL_RECOMMENDATION_WAIT_TIME.replace("$0",""+Math.floor(e/300+1)*5):a.model.strings.CHANNEL_RECOMMENDATION_WAIT_TIME_IN_HRS.replace("$0",""+(Math.floor(e/ 3600)+1)));c&&f&&Pl(c,em.fe(f))}c=a.querySelector(".high-context-channel-recommendation-options__help-text");e=a.querySelector(".high-context-channel-recommendation-options__help-text-container");b.estimated_save_time?(b=Math.floor(b.estimated_save_time.seconds/3600)+1,b=a.model.strings[b===1?"CHANNEL_RECOMMENDATION_HELP_TEXT":"CHANNEL_RECOMMENDATION_HELP_TEXT_PLURAL"].replace("$0",""+b),Pl(c,em.fe(b))):qm(e,"hidden",!0);kdb(a)}else a.Ra=29,a.submitForm()} function bdb(a,b,c){var e;return La(function(f){e=wcb(new i2,vcb(ucb(new g2,b),c));return f.return(new Promise(function(h,k){Em({httpMethod:"POST",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},endpoint:"authorizetargets",requestBody:e,onLoadCallback:function(l){var p=null;try{p=ycb(l.responseText),h(p)}catch(r){k(Error("Failed to parse AuthorizeTargetsResponse."))}}, Yc:function(){k(Error("API error authorizing targets."))}, Cj:!0})}))})} function udb(a){a.Ib.report(a.Ra);a.Ib=null;a.Ra=27} n.getSubjectFieldId=function(){return x2(this,'input[name="subject-line-field-id"]').value}; n.getBodyFieldId=function(){return x2(this,'input[name="body-text-field-id"]').value}; function rdb(a,b){var c=[];q2(a,function(p){var r;if((r=p.hasSatisfiedDependencies())&&!(r=a.qk)){a:{var t=Mcb(a),v;r=(v=p.getId())!=null?v:"";v=p.getType();if(t||p.getFrdIdentifier()!==8001422||v!=="HIDDEN"||r.toLowerCase()!=="ads_policy_topics")if(t){var x=p.getFrdIdentifier();if(r.toLowerCase()==="policies_ad")t=["policy_other"];else if(x===8000293)t=Array.from(M1(t.o).keys());else if(x===8000638)t=Array.from(M1(t.o).values()),t=t.length>0?[t[0]]:[];else if(x===8000988)t=Array.from(M1(t.o).values()); else if(x===8001422)t=O1(t.oa);else{r=!1;break a}t=w(t);for(x=t.next();!x.done;x=t.next())c.push({name:r,value:x.value,type:v});r=!0}else r=!1;else c.push({name:r,value:"",type:v}),r=!0}r=!r}if(r)for(r=p.getValues(b),v=0;v0){E2(a,Cdb(e),e);a.dispatchEvent("validationend");break a}Ddb(a,e)}else E2(a,a.model.strings.BACKEND_ERROR,e)}else E2(a,a.model.strings.CONNECTION_ERROR);a.dispatchEvent("validationend")}else{c=b.response;b=b.formData;f=typeof c==="object"?c==null?void 0:(e=c.result)==null?void 0:e[0]:void 0;e=!1;if(c&&typeof c==="object")if(!c.error&&c.result&&f&&f.indexOf("PERM_FAILURE")!==0)if(f==="ACCEPTED"||f==="SUCCESS"||f==="RETRIED")if(G2(a))L2(a);else if(w2(a))fdb(a,b);else if(B2(a))tdb(a, b);else{b=tm("cases2");if(b=C2(a)&&(a.shouldSubmitToCasesV2()||b))a.chatPoolId=c.chat_pool_id||"",a.model.chat_support_request_id=c.chat_support_request_id||"";a.dispatchEvent("validated");c.case_id&&(a.caseId=c.case_id,Adb(a));a.validateOnly||(!b||D2()||z().rs===79&&a.flags.enableChatMoleMigration||((0,window.sc_ensureSubscribed)(),a.dispatchEvent("chatrequested")),udb(a),Bdb(a));M2(!0);e=!0}else Ddb(a,c);else E2(a,Cdb(c),c);else E2(a,a.model.strings.CONNECTION_ERROR);c=tm("cases2");!e&&C2(a)&&(a.shouldSubmitToCasesV2()|| c)&&(a.Tc=!1);a.dispatchEvent("validationend")}} function Edb(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 Cdb(a){var b;return((b=a.submit_error)==null?0:b.length)?(a=a.submit_error[0],Edb(a.code,a.sub_code)):""} function Fdb(a,b){var c=y2(a)?".high-context-channel-recommendation__recaptcha":".recaptcha";(a=a.querySelector(c))&&qm(a,"invalid",b)} function Ddb(a,b){for(var c=!1,e=a.model.strings.VALIDATION_NOTE,f=w(b.result||[]),h=f.next();!h.done;h=f.next())if(h=h.value.split(":"),h[0]==="REQUIRED_FORM_FRD_VALUE"){if(h=Gdb(a,h[1],h[2]))h.isVisible()?mR(h,!0,a.model.strings.REQUIRED_FIELD):e=a.model.strings.REQUIRED_FIELD+": "+h.model.getName(),c=!0}else{var k=a.vf(h[1]);if(h[0]==="REQUIRED_RECAPTCHA")a.page===a.model.total_pages&&(e=a,e.model.fallback_to_recaptcha_v2&&(e.ua||(h=y2(e)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha", (h=e.querySelector(h))&&qm(h,"hidden",!0),pdb(e)),Fdb(e,!0)),c=!0,e=a.model.strings.REQUIRED_RECAPTCHA_NOTIFICATION);else if(h[0]==="INVALID_AUTH_TOKEN")c=!0,e="Refresh this page and try again. Sorry, there was a problem with the form.";else if(h[0]==="CHAT_UNAVAILABLE")u2(a),c=!0;else if(k&&k.isVisible()){if(c=k.getType()==="PHONE_NUMBER"&&a.c2c)a:{c=a;var l=k.getValues(!0)[0];if(l&&l.value){l=JSON.parse(l.value);var p;if(p=l){l=l.country;p=[];var r=c.model.phone_type_required_countries;r&&(p=r.split(",")); p=p.indexOf(l)!==-1}if(p){k.setValidity(!1,c.model.strings.PHONE_TYPE_VALIDATION,!0);c=!0;break a}}c=!1}c||k.setValidity(!1,a.model.strings[h[0]]||a.model.strings.DEFAULT);c=!0}}c?(A2(a,"invalid",e+Hdb(a,b)),a.dispatchEvent("invalidated"),v2(17)):L2(a)} function zdb(a){var b=a.querySelector(".notification-area");b&&(qm(b,"error",!1),qm(b,"invalid",!1),b.textContent="");q2(a,function(e){e.setValidity(!0)}); b=w(a.ma);for(var c=b.next();!c.done;c=b.next())mR(c.value,!1);a.ua&&Fdb(a,!1)} function A2(a,b,c){var e=a.querySelector(".notification-area");e&&(qm(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"))} n.getStatusMessage=function(){var a;return((a=this.querySelector(".notification-area"))==null?void 0:a.innerText)||""}; n.setErrorMessage=function(a){A2(this,"error",a)}; function E2(a,b,c){a.setErrorMessage(b+Hdb(a,c));a.dispatchEvent("error");M2(!1)} function Hdb(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(za(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(za(b.result)));return a.join("\n")} function L2(a){adb(a,a.page+1);a.dispatchEvent("nextpage");v2(6)} function Bdb(a){a.dispatchEvent("submitstart");if(!C2(a)||a.Ca.length>0)vdb(),wdb(a),Idb(a);if(C2(a)){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);z2(a,!0);window.sc_enableFormSubmissionDetailsAndDownloadUi&&(Jdb(a),Kdb(a,x2(a,".submission-details-chat__content")),Ldb(a),b=x2(a,".submission-details-chat__download-button"),b.addEventListener("click",function(){Mdb(a)}),x2(a,".submission-details-chat__edit-button").addEventListener("click",function(){Ndb(a)}),window.sc_trackStatsEvent(182, 4,z().pid),qm(x2(a,".submission-details-chat"),"hidden",!1),b.focus()); x2(a,".notification-area").textContent=a.model.strings.CHAT_CREATING;a.dispatchEvent("chatrequested")}v2(22);a.dispatchEvent("submitend");a.dispatchEvent("cleancomplete");Zm("FormSurveysFeature__enable_hats")==="true"&&odb()} function z2(a,b){for(var c=w(a.querySelectorAll(".high-context-channel-recommendation__submit-button")),e=c.next();!e.done;e=c.next())e.value.disabled=b;a=w(a.querySelectorAll(".high-context-channel-recommendation-options__option"));for(c=a.next();!c.done;c=a.next())c.value.disabled=b} function vdb(){var a=document.querySelector(".prefilled-callout");a&&qm(a,"hidden",!0)} function wdb(a,b){b=b===void 0?!0:b;for(var c=C2(a)&&a.Ca.length>0,e=0;e0&&a.Gk.set(c.getId(),e)}b=w(a.ma);for(c=b.next();!c.done;c=b.next())c=c.value,e=c.Se(),c.isVisible()&&e&&a.Ka.set(e,c.getDisplayValues())} function Kdb(a,b){a=w(a.Ka.entries());for(var c=a.next();!c.done;c=a.next()){var e=w(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+=": ",qm(c,"multi-value",f.length>1),e=w(f),f=e.next();!f.done;f=e.next())f=f.value,h=document.createElement("span"),qm(h,"submission-value",!0),h.innerText=f,c.appendChild(h);b.appendChild(c)}} function Mdb(a){for(var b="",c=w(a.Ka.entries()),e=c.next();!e.done;e=c.next()){var f=w(e.value);e=f.next().value;f=f.next().value;b+=e;if(f)for(b+=":",e=w(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";o2.download(b,c,"text/plain");window.sc_trackStatsEvent(182,47,z().pid);$m("contact_form_submission_download")} function Ndb(a){var b=new URLSearchParams;a=w(a.Gk.entries());for(var c=a.next();!c.done;c=a.next()){var e=w(c.value);c=e.next().value;e=e.next().value;e=w(e);for(var f=e.next();!f.done;f=e.next())b.append("pcff",c+":"+f.value)}$m("contact_form_submission_edit");window.sc_trackStatsEvent(182,24,z().pid);b=new URL(""+window.location.origin+window.location.pathname+"?"+b);Om(b.toString())} function M2(a){Em({httpMethod:"POST",endpoint:"cufz",requestBody:{success:a,page_view_id:z().pvid}})} function Gdb(a,b,c){return b&&c?a.ma.find(function(e){return CP(e.model.ld(),wP(xP(new er,+b),+b).ad(+c))}):null} n.vf=function(a){var b=null;q2(this,function(c){var e=c.cidSelector&&c.getElement().querySelector(".cid-selector"),f=c.o&&c.getElement().querySelector(".policy-violation-campaign-selector-container");return c.getId()===a&&c.getType()!=="EXTERNAL_SOURCE"||e!==null&&e.getAttribute("id")===a||f!==null&&f.getAttribute("id")===a?(b=c,!1):!0}); return b}; function adb(a,b){if(b===a.page||b<1||b>a.model.total_pages)return!1;a.page=b;r2(a);s2(a,!1);return!0} function v2(a,b){window.sc_trackStatsEvent(b===void 0?21:b,a,z().pid)} function Odb(a,b){var c=I2(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){Em({httpMethod:"POST",endpoint:"escalationavailability",params:{v:1,psd:JSON.stringify(e)},requestBody:c.serialize(),onLoadCallback:function(k){try{f(JSON.parse(k.responseText))}catch(l){h(Error("Could not parse escalationavailability response"))}}, Yc:function(){h(Error("escalationavailability endpoint returned an error"))}, Cj:!0})})} function I2(a,b){var c=new oR,e=a.getId();Vf(c,2,e);e=Number(a.getRedwoodId());Sf(c,4,e);Pe(c,3,[b],qd);if(a.selectedSymptomFrdValues){b=[];e=w(a.selectedSymptomFrdValues);for(var f=e.next();!f.done;f=e.next()){var h=void 0;b.push.apply(b,za((h=yP(f.value))!=null?h:[]))}a=rUa(tR(rR(new pR,qR(a.selectedSymptomFrdValues)).rd(a.selectedSymptomFrdValues.hh()),[zP(wP(xP(new er,8000072),8000072).ad(15),b)]));ff(c,cQ,7,a)}return c} n.getEscalationChannelAvailabilityInformation=function(a){var b=this,c,e,f,h,k,l,p,r,t;return La(function(v){if(v.o==1)return v.yield(Odb(b,a),2);if(c=v.ma)switch(a){case 1:return v.return((f=(e=c.chat_channel)==null?void 0:e.common_options)!=null?f:null);case 3:return v.return((l=(h=c)==null?void 0:(k=h.email_channel)==null?void 0:k.common_options)!=null?l:null);case 5:return v.return((t=(p=c)==null?void 0:(r=p.c2c_channel)==null?void 0:r.common_options)!=null?t:null)}return v.return(null)})}; function sdb(a){var b,c,e;return La(function(f){return f.o==1?f.yield(Odb(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 Scb(a){var b=a.querySelector(".contact-form__gdpr-dialog");if(b){var c=function(e){var f=this.Mb().strings,h=this.Mb().style_params,k=this.Mb().gdpr_privacy_policy_url,l=z().lang,p={};f=new wF(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 vR({Pa:f,locale:l,privacyPolicyUrl:k,Dr:h?{"font-family":h.font_family.title}:void 0,Mp:h?{"font-family":h.font_family.body}: void 0,Rp:h?{"font-weight":String(h.strong_font_weight)}:void 0});mo(e,function(){r.render()}); return r}.call(a,b); vUa(c,function(){c.data=new Map;c.Ia();for(var e=w(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||wR(c,f.name,f.value);e=w(Object.keys(a.productSpecificData));for(f=e.next();!f.done;f=e.next())f=f.value,wR(c,f,a.productSpecificData[f]);a.gcmRegistrationId&&wR(c,"GCM",a.gcmRegistrationId)})}} function Ncb(a,b){b.addEventListener("uploadstart",function(){++a.Yf}); b.addEventListener("uploadend",function(){--a.Yf;cn(a.element,"uploadend")})} function u2(a){if(!a.Tc){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);z2(a,!0);b=x2(a,".notification-area");qm(b,"invalid",!0);b.textContent=a.model.strings.CHAT_UNAVAILABLE}} n.getId=function(){return this.element.getAttribute("id")}; n.getRedwoodId=function(){return this.element.dataset.contactFormRedwoodId}; n.getContactType=function(){return this.model.contact_type}; n.shouldSubmitToCasesV2=function(){return this.model.should_submit_to_cases_v2}; n.getTitle=function(){var a=this.element.querySelector(".contact-form__title");return a?a.textContent:""}; n.Mb=function(){return this.model}; n.getElement=function(){return this.element}; n.getCaseId=function(){return this.caseId}; n.getChatPoolId=function(){return this.chatPoolId}; n.getChatSupportRequestId=function(){return this.model.chat_support_request_id||""}; n.vT=function(){var a=[];q2(this,function(b){a.push(Pdb(b))}); Array.prototype.push.apply(a,xdb(this));return a}; function Pdb(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)}} n.wT=function(){var a=[];q2(this,function(b){b.isVisible()&&a.push(Pdb(b))}); return a}; n.setValidateOnly=function(a){this.validateOnly=a}; n.listen=function(a,b,c,e){this.listeners.push({type:a,listener:b,scope:e})}; n.unlisten=function(a,b,c,e){for(c=0;c0&&!a.Me;)a.od.shift()()} n.Pv=function(){var a=this;if(bQ(O2(this))){var b=document.activeElement;P2(this,!0);var c=new vQ;Rdb(this,c);Em({httpMethod:"POST",endpoint:"getavailablevaluesforgraph",params:{v:"1"},requestBody:c.serialize(),onLoadCallback:function(e){try{for(var f=KSa(e.responseText),h=w(ef(f,wQ,2,Ge())),k=h.next();!k.done;k=h.next()){var l=cf(k.value,Lj,1),p=l.getFrdContext(),r=p?Pf(p,2):null,t=a.Aa.get(e2(l));if(t)for(var v=w(t),x=v.next();!x.done;x=v.next()){var E=x.value,la=bcb(E),ta=Pf(la,2);if(!(r&&ta&& r!==ta||!W1(E))){var va=Dj(Fj(Oj(l)),Pc);switch(E.getType()){case "CHECKBOX":case "RADIOBUTTON":for(var Ba=w(E.querySelectorAll(".list-item")),Ha=Ba.next();!Ha.done;Ha=Ba.next()){var Oa=Ha.value,Pa=va.indexOf(Oa.querySelector("input").value)===-1;qm(Oa,"hidden-by-vrg",Pa)}break;case "DROPDOWN":for(var ab=w(E.querySelectorAll("option")),hb=ab.next();!hb.done;hb=ab.next()){var xb=hb.value;if(xb!==E.querySelector("option")){var Hb=va.indexOf(xb.value)===-1;qm(xb,"hidden-by-vrg",Hb)}}E.element.querySelector("select").dispatchEvent(new Event("selectvrgupdate"))}}}}}catch(Jb){}P2(a, !1);b.focus();Qdb(a)}, Yc:function(){P2(a,!1);b.focus();Qdb(a)}})}}; function P2(a,b){a.Me=b;a=w(a.Uc);for(var c=a.next();!c.done;c=a.next())c=c.value,W1(c)&&dcb(c,b)} function Rdb(a,b){var c=O2(a);c=bQ(c);HSa(b,mf(c,1));ISa(b,of(c,2));c=[];for(var e=[],f=!1,h=w(a.Uc),k=h.next();!k.done;k=h.next()){k=k.value;if(W1(k)){var l=k.getFrdIdentifier();l&&c.push(l)}if(U1(k)&&k.hasSatisfiedDependencies()){l=[];for(var p=w(k.getValues()),r=p.next();!r.done;r=p.next())l.push(r.value.value);l.length!==0&&(p=new Ej,k.getType()==="HIDDEN"?Sdb(ccb(k),l[0],p):k.getFrdIdentifier()===8000001?p.Ej((new xj).Bh(l.map(function(v){return Number(v)||0}))):Gj(p,(new Cj).Bh(l)),l=Pj(new Lj, p),p=bcb(k),(r=pf(p,2))&&Mj(l,tj(new sj,pf(p,1)).ad(r)),(k=k.getFrdV2Identifier())&&Nj(l,k),e.push(l),!f&&e2(l)===8000072&&(f=!0))}}if(window.sc_filter_promoted_by_selected_symptom&&!f){var t; h=(t=a.selectedSymptomFrdValues)==null?void 0:qR(t);t=Xo(mf(b,2));if(a.selectedSymptomFrdValues&&h&&t&&h===t){t=w(a.mf);for(h=t.next();!h.done;h=t.next())if(e2(h.value)===8000072){f=!0;break}if(!f){f=[];t=w(a.selectedSymptomFrdValues);for(h=t.next();!h.done;h=t.next())k=void 0,f.push.apply(f,za((k=yP(h.value))!=null?k:[]));e.push(ir(zP(wP(xP(new er,8000072),8000072).ad(15),f)))}}}Pe(b,3,c,qd);Jab(b,a.mf.concat(e));Xf(b,5,a.model.content_publish_state)} function Sdb(a,b,c){switch(a){case 1:c.Ej((new xj).Bh([Number(b)]));break;case 2:case 5:c.Ah((new Cj).Bh([b]));break;case 3:Ij(c,Qea(new vj,[Number(b)]));break;case 4:a=b.split(",");Gj(c,(new Cj).Bh(a));break;case 9:c.di(b==="true");break;case 8:a=b.split(",").map(function(e){return Number(e)}); c.Ex(Bj(new zj,[(new xj).Bh(a)]));break;case 11:case 6:case 7:case 10:Kj(c,(new uj).Bh([b]))}} function O2(a){a=JSON.parse(a.element.getAttribute("data-form-service-vrg"));return new aQ(a)} n.getServiceVrgTaxonomyId=function(){var a=bQ(O2(this));return a?Xo(mf(a,1)):null}; n.getServiceVrgTaxonomyView=function(){var a=bQ(O2(this));return a?Hf(a,2):null}; n.setSupportJourneyId=function(a){this.submitId=a}; function Adb(a){window.sc_log&&window.sc_log("Form","INFO","Case ID: "+a.caseId)} n.setIncludesTargetSelector=function(a){this.vd=a}; n.setTargetVerified=function(a){this.targetVerified=a}; function Tcb(a,b){var c,e,f,h,k,l,p,r,t;La(function(v){if(v.o==1){if(!b)return v.return();c=new tQ(JSON.parse(b));a.Yd=(e=vf(c,7))!=null?e:"";a.Yd&&window.sc_log&&window.sc_log("Helpcenter Field","INFO","Form Helpcenter Fields User-based FRD Value Lookup EventID: "+a.Yd);return v.yield(nR({helpCenterFrdFieldsConfg:c,locale:z().lang,neoTaxonomy:uQ(),placements:[a.wv(1),a.wv(2)],yx:"*"}),2)}f=v.ma;h=a.getScFrdValues().map(function(x){return new er(x)}); k=w(a.Aa.keys());for(l=k.next();!l.done;l=k.next())p=l.value,h.push(xP(new er,p));r=a.getHcfNameScFrdValueMap();t=f.Vi;Tdb(a,t,2,h,r,".cf div.helpcenter-fields-container.top");Tdb(a,t,1,h,r,".cf div.helpcenter-fields-container.bottom");IP(a.Va,a.ma.concat(f.Zs).map(function(x){return x.model})); v.oa()})} n.wv=function(a){var b=new NP,c=new MP,e=this.getContactType();Ve(c,3,LP,rd(e));Xf(c,2,a);jf(b,1,MP,c);c=new MP;e=this.getRedwoodId();Ve(c,1,LP,Od(e));Xf(c,2,a);jf(b,1,MP,c);a=new SP;gf(a,1,RP,b);return a}; function Tdb(a,b,c,e,f,h){if(h=a.element.querySelector(h)){var k=Z1(F2(a)),l=b.filter(function(p){if(p.model.placements.length||(!k||c!==1)&&e.some(function(la){return CP(la,p.model.ld())})||!p.model.ld().getId()&&f.has(p.model.getName()))return!1; for(var r=w(p.model.ua),t=r.next();!t.done;t=r.next()){t=t.value;var v=void 0,x=void 0,E=w((x=(v=t.cw())==null?void 0:v.o())!=null?x:[]);for(v=E.next();!v.done;v=E.next())v.value.Vu()===c&&p.model.placements.push(t)}return!!p.model.placements.length}); l.length&&mo(h,function(){for(var p=w(l),r=p.next();!r.done;r=p.next())r=r.value,r.render(),a.ma.push(r)})}} n.getHelpCenterFieldFrds=function(a){return this.Va.Oc(a===void 0?!1:a).map(function(b){return BP(b)})}; n.setHelpCenterFieldFrd=function(a){a=new er(a);for(var b=w(GP(this.Va)),c=b.next();!c.done;c=b.next())if(c=c.value,CP(c.ld(),a)){Kab(c,a);break}}; function F2(a){var b,c;return(c=(b=a.flags.multiTargetsHelpCenterAllowlist)==null?void 0:b.primitive_value)!=null?c:[]} function Ucb(a){var b=[];z().is_render_api||b.push("direct_to_form");var c=["gse","google_marketing_advisor","agentic_smart_journey_with_ma_web"],e=tm("cse");e&&c.includes(e)&&b.push(e);b.length&&a.addScFrdValue(BP(zP(wP(xP(new er,8000104),8000104).ad(15),b)))} n.Ei=function(a,b){a=this.Aa.get(Number(a));if(!a||a.length===0)return!1;a=a[0].getElement();return Gw(a,b)}; function D2(){switch(z().rs){case 3:case 8:return!0;default:return!1}} window.sc_initForm=function(a,b,c){a=new Kcb(a,b,c);b={getEscalationChannelAvailabilityInformation:a.getEscalationChannelAvailabilityInformation.bind(a),getContactType:a.getContactType.bind(a),submitForm:a.submitForm.bind(a),getFields:a.vT.bind(a),getVisibleFields:a.wT.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),prefillFieldsFromSession:a.prefillFieldsFromSession.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),setDynamicQuestionAnswers:a.setDynamicQuestionAnswers.bind(a),getDynamicQuestionAnswers:a.getDynamicQuestionAnswers.bind(a), getHasCheckedForDynamicRecommendation:a.getHasCheckedForDynamicRecommendation.bind(a),setHasCheckedForDynamicRecommendation:a.setHasCheckedForDynamicRecommendation.bind(a),getShouldShowNextStep:a.getShouldShowNextStep.bind(a),setShouldShowNextStep:a.setShouldShowNextStep.bind(a),submitCaseUpdate:a.submitCaseUpdate.bind(a)};return a.Ar=b};function Udb(){var a,b;return typeof((a=navigator)==null?void 0:(b=a.mediaDevices)==null?void 0:b.getDisplayMedia)==="function"} ;function Q2(a,b){var c,e;(e=(c=window).sc_trackStatsEvent)==null||e.call(c,a,b,z().pid)} ;function R2(a){A.call(this,"sc.forms.Screenshare");this.o=null;this.ma=!1;this.params=a} u(R2,A);R2.prototype.content=function(a){var b=this;a&&(this.params=a);this.element("div","class","screenshare",function(){b.o=b.element("video","autoplay",!0,"class","screenshare-video");b.ma&&b.element("div","class","screenshare-floating-message",function(){(new ru({ariaLabel:"You can scroll around",text:"You can scroll around",icon:"gm/swap_vert",selected:!1})).render()}); b.params.stream&&(b.o.srcObject=b.params.stream,b.ma||Vdb(b))})}; function Vdb(a){La(function(b){if(b.o==1){if(!a.params.Sg||!a.o)return b.Oa(0);b.ua(3);return b.yield(a.params.Sg.forwardWheel(a.o),5)}if(b.o!=3){a.ma=!0;a.params.HI(a.ma);var c,e;(e=(c=window).sc_trackStatsImpressions)==null||e.call(c,[{type:309,id:z().pid}],!0);Q2(309,10);a.Ia();return b.va(0)}b.qa();b.oa()})} function Wdb(a){var b,c,e;return La(function(f){if(!a.o)return f.return(Promise.resolve(new Blob([],{type:"image/png"})));b=a.o;c=document.createElement("canvas");c.width=b.videoWidth;c.height=b.videoHeight;e=c.getContext("2d");e.drawImage(b,0,0,c.width,c.height);return f.return(new Promise(function(h){c.toBlob(function(k){k?h(k):h(new Blob([],{type:"image/png"}))},"image/png")}))})} R2.prototype.cN=function(){return this.ma};function S2(a){A.call(this,"sc.forms.ScreenshareControllers");this.params=a;this.ma=new Lo({text:"Change tab",ariaLabel:"Change tab",style:3,icon:"gm/swap_horiz",Of:24,trigger:function(){Q2(309,56);a.vS()}}); this.o=new Lo({text:"Capture screenshot",ariaLabel:"Capture screenshot",style:4,icon:"gm/screenshot_monitor",Of:24,trigger:function(){Q2(309,46);a.Bp()}})} u(S2,A);function Xdb(a,b,c){a=a.element("span","class","screenshare-footer-learn-more","role","button","tabindex","0","onkeydown",function(e){if(e.key==="Enter"||e.key===" "){var f;(f=e.target)==null||f.click();e.preventDefault()}},"Learn more"); (new nt({trigger:a,text:b,Gj:4,Pj:"35rem",Gr:c,Ek:!1})).render()} function Ydb(a){a.element("div","class","screenshare-footer-scroll-info",function(){var b=a.params.cN,c="",e="",f=-150;a.params.Sg?b||(c="Scroll may be disabled.",e=" How to enable scrolling
  1. Click the Tune icon in the address bar
  2. Go to Shared tabs
  3. Turn on Scrolling & zooming
  4. Reload this page
",f=-170):(c="Scrolling may be unavailable.",e=" To capture the right area of the page:
  1. Go to the shared tab
  2. Scroll to the area of concern
  3. Come back to this page to capture the screenshot
"); c&&(a.element("span",c),e&&Xdb(a,e,f))})} S2.prototype.content=function(){var a=this;this.element("div","class","screenshare-footer",function(){Ydb(a);a.element("div","class","screenshare-footer-buttons",function(){a.ma.render();a.o.render()})})};function T2(a){A.call(this,"sc.forms.ScreenshotEdit");var b=this;this.oa=!1;this.Qk=this.ma=0;this.scaleY=this.scaleX=1;this.qa=[];this.ua=function(c){if(b.params.Rf!=="NONE"){b.oa=!0;var e=b.canvas,f=e.getBoundingClientRect();b.scaleX=e.width/f.width;b.scaleY=e.height/f.height;b.ma=(c.clientX-f.left)*b.scaleX;b.Qk=(c.clientY-f.top)*b.scaleY;var h;(h=b.canvas)==null||h.addEventListener("mousemove",b.va);var k;(k=b.canvas)==null||k.addEventListener("mouseup",b.Aa)}}; this.va=function(c){if(b.oa){var e=b.canvas.getBoundingClientRect(),f=(c.clientX-e.left)*b.scaleX,h=(c.clientY-e.top)*b.scaleY;U2(b);b.o=b.o;c=Math.min(b.ma,f);e=Math.min(b.Qk,h);f=Math.abs(b.ma-f);h=Math.abs(b.Qk-h);var k=b.params.Rf;k==="HIGHLIGHT"?Zdb(b,c,e,f,h):k==="HIDE"&&(b.o=b.o,b.o.fillStyle="rgba(0, 0, 0, 1)",b.o.fillRect(c,e,f,h))}}; this.Aa=function(c){if(b.oa){b.oa=!1;var e=b.canvas.getBoundingClientRect(),f=(c.clientX-e.left)*b.scaleX,h=(c.clientY-e.top)*b.scaleY;c=Math.min(b.ma,f);e=Math.min(b.Qk,h);f=Math.abs(b.ma-f);h=Math.abs(b.Qk-h);(f>0||h>0)&&b.qa.push({x:c,y:e,width:f,height:h,mode:b.params.Rf});var k;(k=b.canvas)==null||k.removeEventListener("mousemove",b.va);var l;(l=b.canvas)==null||l.removeEventListener("mouseup",b.Aa);U2(b)}}; this.params=a} u(T2,A);T2.prototype.content=function(a){var b=this;a&&(this.params=a);this.element("div","class","root",function(){b.canvas=b.element("canvas","class","screenshot-image");b.o=b.canvas.getContext("2d");b.canvas.addEventListener("mousedown",b.ua);$db(b)})}; T2.prototype.onDetach=function(){var a;(a=this.canvas)==null||a.removeEventListener("mousedown",this.ua);this.qa=[]}; function $db(a){a.canvas=a.canvas;var b=zl(a.params.Ni),c=new Image;c.onload=function(){a.canvas=a.canvas;a.canvas.width=c.width;a.canvas.height=c.height;a.Da=c;U2(a)}; c.src=b.toString()} function U2(a){if(a.canvas&&a.o&&a.Da){var b=a.canvas;a.o=a.o;a.o.clearRect(0,0,b.width,b.height);a.o.drawImage(a.Da,0,0);b=w(a.qa);for(var c=b.next();!c.done;c=b.next()){var e=c.value,f=a,h=e.x,k=e.y,l=e.width;c=e.height;e=e.mode;e==="HIGHLIGHT"?Zdb(f,h,k,l,c):e==="HIDE"&&(f.o=f.o,f.o.fillStyle="rgba(0, 0, 0, 1)",f.o.fillRect(h,k,l,c))}}} function Zdb(a,b,c,e,f){a.o=a.o;a.o.strokeStyle="rgb(255, 187, 41)";a.o.lineWidth=4;a.o.strokeRect(b,c,e,f)} function aeb(a){return La(function(b){return a.qa.length!==0&&a.canvas?b.return(new Promise(function(c){a.canvas.toBlob(function(e){c(e)})})):b.return(Promise.resolve(a.params.Ni))})} ;function V2(a){A.call(this,"sc.forms.ScreenshotEditControllers");this.ma=new Lo({text:"Cancel",ariaLabel:"Cancel",trigger:function(){Q2(311,59);a.QD()}, style:3,ue:"material-pill",Mc:"px"});this.o=new Lo({text:"Done",ariaLabel:"Done",trigger:function(){Q2(311,60);var b;(b=a.sI)==null||b.call(a)}, style:4,ue:"material-pill",Mc:"px"});this.params=a} u(V2,A);function beb(a){return new ru({ariaLabel:"Highlight",text:"Highlight",icon:"gm/highlight_alt",selected:a.params.Rf==="HIGHLIGHT",trigger:function(){Q2(311,58);a.params.hm("HIGHLIGHT")}})} function ceb(a){return new ru({ariaLabel:"Hide",text:"Hide",icon:"gm/featured_video",selected:a.params.Rf==="HIDE",trigger:function(){Q2(311,5);a.params.hm("HIDE")}})} V2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.element("div","class","edit-control-buttons","aria-live","off",function(){beb(a).render();ceb(a).render()}); a.element("div","class","modal-control-buttons",function(){a.ma.render();a.o.render()})})};function W2(a){A.call(this,"sc.forms.ScreenshotPreview");this.o=null;this.params=a;this.o=zl(a.Ni).toString();this.ma=deb(this)} u(W2,A);function deb(a){return new ru({text:"Highlight or hide content",ariaLabel:"Highlight or hide content",style:0,type:1,icon:"gm/edit",trigger:function(){Q2(310,24);a.params.HE()}, hx:!0})} W2.prototype.focus=function(){this.ma.focus()}; W2.prototype.onDetach=function(){this.o&&(URL.revokeObjectURL(/proxy?url=https%3A%2F%2Fsupport.google.com%2Fthis.o),this.o=null)}; W2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.element("img","class","screenshot-image","src",a.o,"alt","Captured screenshot");a.element("div","class","edit-button-container",function(){a.ma.render()})}); requestAnimationFrame(function(){return void a.focus()})};function X2(a){A.call(this,"sc.forms.ScreenshotPreviewControllers");this.ma=new Lo({text:"Capture again",ariaLabel:"Capture again",icon:"gm/restart_alt",Of:20,style:3,trigger:function(){Q2(310,56);a.UD()}}); this.o=new Lo({text:"Attach screenshot",ariaLabel:"Attach screenshot",icon:"gm/attach_file_add",Of:20,style:4,trigger:function(){Q2(310,57);a.wp()}})} u(X2,A);X2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.ma.render();a.o.render()})};function Y2(a){A.call(this,"sc.forms.ScreenshotCaptureDialog");var b=this;this.ma=0;this.stream=null;this.page="SCREENSHARE";this.Ni=new Blob;this.Rf="NONE";this.ua=new T2({Ni:this.Ni,Rf:this.Rf});this.oa=null;this.o=!1;this.qa=new R2({stream:this.stream,Sg:this.Sg,HI:function(c){b.o=c;b.Ia()}}); this.params=a;this.dialog=new vu({content:function(){b.element("div","class","screenshot-capture-dialog",function(){eeb(b)})}, Ih:{"background-color":"rgba(0,0,0,.3)"},Qm:!1,Pm:!1,ariaLabel:feb(this)})} u(Y2,A);function feb(a){switch(a.page){case "SCREENSHARE":return"Learn how we manage your data";case "SCREENSHOT_PREVIEW":return"Confirm screenshot";case "SCREENSHOT_EDIT":return"Highlight or hide information on the screenshot";default:return""}} function eeb(a){(new su).render({content:function(){a.element("div","class","screenshot-capture-dialog-content",function(){geb(a);heb(a);ieb(a)})}})} function jeb(a){a.element("div","class","screenshot-capture-dialog-title","role","heading",function(){switch(a.page){case "SCREENSHARE":(new Ho({icon:"gm/privacy_tip",size:24})).render();a.element("span","class","data-management-link","role","link","tabindex","0","onclick",function(b){Jl(window,yl("https://policies.google.com/privacy"),"_blank");b.preventDefault()},"onkeydown",function(b){b.key==="Enter"&&(Jl(window,yl("https://policies.google.com/privacy"),"_blank"),b.preventDefault())},"Learn how we manage your data"); break;case "SCREENSHOT_PREVIEW":a.element("span","Confirm screenshot");break;case "SCREENSHOT_EDIT":a.element("span","Highlight or hide information on the screenshot")}})} function geb(a){a.element("div","class","screenshot-capture-dialog-content-header",function(){jeb(a);keb(a)})} function keb(a){a.element("button","class","dialog-close-button","type","button","aria-label","Close","onclick",function(){a.close()},function(){(new Ho({icon:"gm/close", size:24,He:["close-icon"]})).render()})} function heb(a){a.oa=a.element("div","class","screenshot-capture-dialog-content-body",function(){switch(a.page){case "SCREENSHARE":a.qa.render({stream:a.stream,Sg:a.Sg,HI:function(b){a.o=b;a.Ia()}}); break;case "SCREENSHOT_PREVIEW":(new W2({Ni:a.Ni,HE:function(){a.HE()}})).render(); break;case "SCREENSHOT_EDIT":a.ua.render({Ni:a.Ni,Rf:a.Rf})}})} function ieb(a){a.element("div","class","screenshot-capture-dialog-footer",function(){switch(a.page){case "SCREENSHARE":(new S2({vS:function(){a.close();a.params.Bp()}, Bp:function(){leb(a)}, cN:a.o,Sg:a.Sg})).render();break;case "SCREENSHOT_PREVIEW":(new X2({UD:function(){a.UD()}, wp:function(){a.wp()}})).render(); break;case "SCREENSHOT_EDIT":(new V2({QD:function(){a.QD()}, hm:function(b){a.hm(b)}, Rf:a.Rf,sI:function(){a.sI()}})).render()}})} function leb(a){La(function(b){if(b.o==1)return a.oa.classList.add("flash"),setTimeout(function(){a.oa.classList.remove("flash")},750),b.yield(Wdb(a.qa),2); a.Ni=b.ma;a.page="SCREENSHOT_PREVIEW";a.Rf="NONE";meb(a);a.Ia();b.oa()})} n=Y2.prototype;n.QD=function(){this.Rf="NONE";this.setPage("SCREENSHOT_PREVIEW")}; n.setPage=function(a){this.page!==a&&(this.page=a,this.Ia())}; n.UD=function(){this.close();this.params.Bp()}; n.HE=function(){this.Rf="NONE";this.setPage("SCREENSHOT_EDIT")}; n.hm=function(a){this.Rf!==a&&(this.Rf=a,this.Ia())}; n.content=function(){var a=this;this.element("div","class","root",function(){a.dialog.Pi(feb(a));a.dialog.render()})}; n.open=function(a,b){var c=this;this.page="SCREENSHARE";this.Sg=b;this.stream=a;this.qa=new R2({stream:a,Sg:b,HI:function(e){c.o=e;c.Ia()}}); this.dialog.open();this.ma=window.pageYOffset;document.body.style.top=-this.ma+"px";document.body.style.width=document.body.clientWidth+"px";document.body.style.position="fixed";neb(this)}; n.close=function(){this.page==="SCREENSHARE"&&meb(this);document.body.style.position="";document.body.style.width="";document.body.style.top="";window.scroll(0,this.ma);this.dialog.close();this.dialog.Ua()}; function meb(a){if(a.stream){a=w(a.stream.getTracks());for(var b=a.next();!b.done;b=a.next())b.value.stop()}} function neb(a){if(a.stream){var b=a.stream.getTracks()[0],c=function(){a.page==="SCREENSHARE"&&a.close();b.removeEventListener("ended",c)}; b.addEventListener("ended",c)}} n.sI=function(){var a=this;return La(function(b){if(b.o==1)return b.yield(aeb(a.ua),2);a.Ni=b.ma;a.page="SCREENSHOT_PREVIEW";a.Rf="NONE";a.Ia();b.oa()})}; n.wp=function(){this.params.wp(this.Ni)};function Z2(a){A.call(this,"sc.forms.ScreenshotCapture");var b=this;this.Bf="scFormsScreenshotcapturescreenshot-capture-button-tooltip";this.ma=new Y2({Bp:this.Bp.bind(this),wp:this.wp.bind(this)});this.params=a;this.qa=new Lo({icon:"gm/add",text:this.params.allowMultipleFiles?"Choose files":"Choose file",ariaLabel:this.params.allowMultipleFiles?"Choose files":"Choose file",style:3,Of:24,trigger:function(){Q2(307,52);var c;(c=b.o)==null||c.click()}}); this.oa=new Lo({icon:"gm/screenshot_monitor",Of:24,text:"Capture screenshot",ariaLabel:"Capture screenshot. You will be asked to share your screen.",style:4,trigger:function(){Q2(306,52);b.Bp()}}); this.attachments=new MF({ag:this.params.ag,allowMultipleFiles:this.params.allowMultipleFiles,formId:this.params.formId,AB:function(c){oeb(b,c)}, zB:function(c){oeb(b,c)}})} u(Z2,A);Z2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.attachments.render();peb(a);qeb(a);Udb()&&reb(a);a.ma.render()})}; function qeb(a){a.element("div","class","screenshot-capture-button-container",function(){if(Udb()){var b=seb(a);(new nt({text:"You will be asked to share your screen.",trigger:b,Bf:a.Bf})).render()}teb(a)})} function seb(a){return a.element("label","class","screenshot-capture-button-wrapper",function(){a.oa.render()})} function teb(a){a.element("label","class","upload-label","for",a.params.id,function(){a.qa.render()})} function reb(a){a.element("div","class","callout-container",function(){(new nu({type:mu,message:"For the fastest resolution, click Capture screenshot. If you upload a file, make sure the image shows the entire screen rather than cropping it. Details like your account ID, date ranges, and page URLs are important for support specialists to review.",position:"component",icon:"gm/info"})).render()})} Z2.prototype.Bp=function(){var a=this,b,c;return La(function(e){if(e.o==1){e.ua(2);var f=e.yield,h=navigator.mediaDevices,k=h.getDisplayMedia;if("CaptureController"in window&&typeof window.CaptureController==="function"){a.Sg=new window.CaptureController;a.Sg.setFocusBehavior("no-focus-change");var l={video:{displaySurface:"browser"},audio:!1,controller:a.Sg}}else l={video:{displaySurface:"browser"},audio:!1};return f.call(e,k.call(h,l),4)}if(e.o!=2)return b=e.ma,Q2(306,10),a.ma.open(b,a.Sg),e.va(0); c=e.qa();c instanceof DOMException&&c.name==="NotAllowedError"?Q2(306,11):Q2(306,21);e.oa()})}; Z2.prototype.wp=function(a){var b=this,c,e,f;return La(function(h){c=(new Date).toISOString().replace(/[^0-9]/g,"");e="screenshot_"+c+".png";f=new File([a],e,{type:a.type});b.attachments.addAttachments([f]);ueb(b,f);b.ma.close();Q2(306,57);b.Ia();h.oa()})}; Z2.prototype.getValues=function(){var a=NF(this.attachments),b=[];a=w(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({name:this.params.id,value:"There was a file uploaded for this field."},{name:"upload_original_filename",value:c.filename},{name:"upload_cns_filename",value:c.If},{name:"upload_document_id",value:c.documentId});return b}; function peb(a){var b=["type","file","id",a.params.id,"name",a.params.id,"class","screenshot-capture-input","onchange",function(){var c=a.o;if(c&&c.files&&c.files.length>0){c=a.o;c=c!=null&&c.files?Array.from(c.files):[];a.o&&(a.o.value="");if(c.length){a.attachments.addAttachments(c);for(var e=w(c),f=e.next();!f.done;f=e.next())ueb(a,f.value);Q2(307,57)}a.Ia();c.length&&wCa(a.attachments)}}].concat(za(a.params.allowMultipleFiles?["multiple", "1"]:[]));a.o=a.element.apply(a,["input"].concat(za(b)))} function ueb(a,b){a.o&&ls(a.o,"uploadstart",{detail:b})} function oeb(a,b){a.o&&ls(a.o,"uploadend",{detail:b})} ;
false
false
false
true
true
true
false
true
false
true
true
false
false
9229674
false
false