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
7321463723405201957
true
Search Help Center
false
true
true
true
true
true
59
'; var e=Hl(a);a=sl("data:text/html;charset=UTF-8;base64,"+btoa(e.toString()));b||(c.srcdoc=Jl(e))}else{if(b)throw Error("IFRAME_SANDBOX_URL is not supported with disableSandbox");a=new Map([["nonce",a]]);var f=tl(Gbb).toString();var h=f.split(/[?#]/);e=/[?]/.test(f)?"?"+h[1]:"";b=h[0];f=/[#]/.test(f)?"#"+(e?h[2]:h[1]):"";a=Cab(b,e,f,a)}c.src=tl(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 S1={bY:!1,sK:!1},T1;function U1(a){this.options=a=a===void 0?S1:a;if(!Lbb(this.options)&&typeof navigator.msSaveOrOpenBlob!=="function"){var b;this.sandbox=new R1({kE:(b=this.options.sK)!=null?b:!1})}} U1.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?S1:e;return La(function(f){if(f.o==1)return f.yield(Mbb(a,b,c,e),2);if(f.ma)return f.return();T1||(T1=new U1,T1.init());return f.yield(Nbb(T1,a,b,c),0)})}; U1.prototype.init=function(){var a=this;return La(function(b){return a.sandbox==null?b.return():b.yield(a.sandbox.load(),0)})}; U1.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return La(function(f){return f.o==1?f.yield(Mbb(a,b,c,e.options),2):f.ma?f.return():f.yield(Nbb(e,a,b,c),0)})}; function Nbb(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.Pa(2);break}navigator.msSaveOrOpenBlob(f,c);return l.yield(V1(),3);case 3:return l.return();case 2:if(!Lb()||Caa(Bab(),16)>=0||!Gb()&&(!yb("iPad")&&!yb("iPhone")||Eb()||Gb()||(zb()?0:yb("Coast"))||Db()||!yb("AppleWebKit"))){l.Pa(4);break}h=new FileReader;h.onload=function(){var p=Fn("A"),r=Cl(String(h.result)); Fl(p,r);p.download=c;p.click()}; h.readAsDataURL(f);return l.yield(V1(),5);case 5:return l.return();case 4:return a.sandbox==null&&(a.sandbox=new R1({kE:(k=a.options.sK)!=null?k:!1}),a.sandbox.load()),l.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 l.yield(V1(),0)}})} function Mbb(a,b,c,e){c=c===void 0?"":c;e=e===void 0?S1:e;var f;return La(function(h){switch(h.o){case 1:if(!Lbb(e))return h.return(!1);h.ua(2);return h.yield(Obb(a,b,c),4);case 4:h.ya(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 Lbb(a){a=a===void 0?S1:a;return a.bY&&!!window.showSaveFilePicker} function Obb(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.ya(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.va(),l.yield(k.close(),9);case 9:l.Ba(7);break;case 7:return l.return()}})} U1.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()}; function V1(){return new Promise(function(a){setTimeout(a,500)})} cb("SafeDownloader",U1);var Pbb=[8000001,8000086,8000063,8000975,8000976,8000087,8000088],Qbb=["CHECKBOX","RADIOBUTTON","DROPDOWN"]; function Rbb(a,b,c){var e=this;this.element=a;this.model=b;this.flags=c;this.validateOnly=ym("validate_only")==="true";this.page=1;this.fields=[];this.Tc=[];this.Da=new Map;this.bubbles=[];this.Ra=[];this.caseId=null;this.Ja=new Map;this.dk=new Map;this.c2c=null;this.listeners=[];this.Ie=0;this.Xa=!0;this.ma=null;this.va=this.hf=this.Gb=!1;this.Ha=this.Va=this.recaptcha=null;this.Dk=[];this.gcmRegistrationId="";this.productSpecificData={};this.ua=[];this.oa=[];this.Ma=[];this.Wd="";this.ud=[];this.Ab= [];this.parentCaseName="";this.ai=[];this.Uc=!1;this.Fc=[];this.Ba=[];this.targetVerified=this.ld=!1;this.qa=[];this.chatPoolId="";this.Ac=this.og=this.ya=this.Ka=!1;this.rb=this.o=null;this.Qa=27;this.zk=new Set;this.vk=this.model.show_recaptcha;this.Wf=this.querySelector(".form-screenshot");this.mw=new Map;this.submissionChannel=0;this.Sa=new mF("HelpcenterFields/Form");this.submitId=tm;this.dispatchEvent("startinginitialization");a=this.querySelectorAll(".field");for(b=0;b0&&v.parents.push(la)}}}); X1(this);this.dispatchEvent("fieldsinitialized");this.vk&&Ubb(this);window.sc_createSpinner&&(this.ma=window.sc_createSpinner("small"),um(this.ma.getElement(),"submit-spin",!0));Y1(this,!1);Vbb(this);Wbb(this);Xbb(this);Z1(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.ya=!1;e.Ac=!1}); this.model.c2c_configured&&(this.c2c=(0,window.sc_initFormClickToCall)(this));this.model.is_chat_form&&!this.shouldSubmitToCasesV2()&&$1(this);Ybb(this);this.dispatchEvent("validatorinitialized");this.dispatchEvent("initializationcomplete");a2(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 ir(new rk(b.value)),this.ud.push(mr(b)),this.oa.push(wP(b));a=w(this.fields);for(b=a.next();!b.done;b=a.next())if(b=b.value,c=b.getFrdIdentifier())this.Tc.push(b), (f=this.Da.get(c))?f.push(b):this.Da.set(c,[b]);Zbb(this,this.element.getAttribute("data-helpcenter-frd-fields-confg"));$bb(this);acb(this);bcb(this);ccb(this);dcb(this)} function ccb(a){var b=document.querySelector(".contact-form-suggestions-panel-container");b&&(Cw.initialize(b,void 0),Qqa(document),Cw.zi=function(c,e){return a.zi(c,e)},Dw(),ySa(a.getRedwoodId()),b=function(){Bw()},a.element.addEventListener("input",b),a.element.addEventListener("change",b),setTimeout(b,0),b=function(){Ew()},a.listen("nextpage",b),a.listen("highcontextchannelrecommendationfound",b),a.listen("submitstart",function(){Cw.submitForm(); Ew()}))} function dcb(a){if(b2(a)&&!z().is_render_api){var b=a.querySelector(".submit-button");b&&(b.textContent=a.model.strings.NEXT);a.listen("dynamicrecommendationfound",a.XU.bind(a));a.listen("error",function(){a.ua.length>0||a.Lv()}); a.listen("invalidated",function(){a.ua.length>0||a.Lv()}); a.listen("submitend",function(){a.Lv()}); (b=document.querySelector(".collapsed-form-container__header"))&&b.addEventListener("click",a.Lv.bind(a))}} function ecb(){return{gL:document.querySelector(".form-suggestions-wrapper"),hK:document.querySelector(".collapsed-form-container"),zK:document.querySelector(".contact-form-dynamic-recommendations-container")}} n=Rbb.prototype;n.Lv=function(){var a=ecb(),b=a.gL,c=a.hK;a=a.zK;b&&c&&a&&(um(c,"hidden",!0),um(a,"hidden",!0),um(b,"hidden",!1),this.setShouldShowNextStep(!0))}; n.XU=function(){var a=ecb(),b=a.gL,c=a.hK;a=a.zK;b&&c&&a&&(um(c,"hidden",!1),um(a,"hidden",!1),um(b,"hidden",!0),this.setShouldShowNextStep(!1),this.ya||zqa(a,this.getFieldValues(),this.Mq))}; n.querySelector=function(a){return this.element.querySelector(a)}; function c2(a,b){return a.element.querySelector(b)} n.querySelectorAll=function(a){return this.element.querySelectorAll(a)}; function W1(a,b){for(var c=0;c=a.model.total_pages;um(a.Wf,"hidden",!b);b?a.Ha.activate():a.Ha.deactivate()}} function Y1(a,b){var c=a.page>=a.model.total_pages,e=a.querySelector(".submit-button");e&&(um(e,"hidden",!c),e.disabled=!a.Xa||b);if(a.va){var f=d2(a)?".high-context-channel-recommendation__recaptcha":".recaptcha";um(a.querySelector(f),"hidden",!c)}if(f=a.querySelector(".previous-button"))um(f,"hidden",a.page===1),f.disabled=b;if(f=a.querySelector(".next-button"))um(f,"hidden",a.page===a.model.total_pages),f.disabled=!a.Xa||b;if(a.ma){b?a.ma.show():a.ma.hide();var h=a.ma.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"))&&um(c,"hidden",!b);e2(a,b)} function d2(a){return!xm(a.querySelector(".high-context-channel-recommendation__container"),"hidden")} function Vbb(a){var b=a.querySelector(".submit-button");b&&(!z().li&&a.model.is_chat_form?(b.disabled=!0,c2(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(){fcb(a,a.page-1)&&(a.dispatchEvent("previouspage"),a2(7))}); (b=a.querySelector(".next-button"))&&b.addEventListener("click",a.submitForm.bind(a))} function bcb(a){if(qbb()&&!a.model.logged_in){a2(4,304);var b=a.element.querySelector(".need-info-authentication-prompt__container");a=a.element.querySelector(".confirmation-message__authentication-prompt-container");b&&um(b,"hidden",!1);a&&um(a,"hidden",!1)}} function acb(a){if(qbb()&&a.model.logged_in&&!z().is_render_api){for(var b=[],c=w(Pbb),e=c.next();!e.done;e=c.next())(e=a.Da.get(e.value))&&b.push.apply(b,za(e));b=w(b);c=b.next();for(e={};!c.done;e={Cu:void 0,ww:void 0,mF:void 0,targetIdAuthorizationWarning:void 0},c=b.next())e.Cu=c.value,e.mF=e.Cu.getFrdIdentifier(),e.mF&&(e.ww=e.Cu.querySelector(".text-input-container"),e.targetIdAuthorizationWarning=e.Cu.querySelector(".target-id-authorization-warning"),e.Cu.getElement().addEventListener("focusout", function(f){return function(){var h,k,l,p;return La(function(r){switch(r.o){case 1:h=f.Cu.getValues()[0].value;if(!h)return r.return();f.ww&&um(f.ww,"text-input-spin",!0);r.ua(2,3);return r.yield(gcb(a,f.mF,h),5);case 5:k=r.ma;if(jf(k,P1,1,Le()).length===0)return r.return();l=jf(k,P1,1,Le())[0];p=uf(l,2);um(f.targetIdAuthorizationWarning,"hidden",p);a2(p?4:5,305);case 3:r.va();f.ww&&um(f.ww,"text-input-spin",!1);r.Ba(0);break;case 2:r.qa(),um(f.targetIdAuthorizationWarning,"hidden",!0),a2(5,305), r.Pa(3)}})}}(e)))}} function Wbb(a){a=a.element.getElementsByTagName("textarea");for(var b=0;b0&&x.getValues()[0].value!==""&&!Qbb.includes(x.getType())&&x.getType()!=="HIDDEN";if(!E||!a.zk.has(E)&&!la){k=[];var ta=sf(v,2);ta?k=[ta]:jf(v,Pj,3,Le()).length>0&&(k=[].concat(za(hcb(jf(v,Pj,3,Le())[0]))));k.length>0&&(h++,abb(x,k)&&e++)}}}if(e>0){var wa=document.querySelector(".prefilled-callout");wa&&um(wa,"hidden", !1)}icb(e,h)}else icb(0,0);a.Ab=[];var Ba,Ha=(Ba=gf(f,J1,2))==null?void 0:Te(Ba,2,Pj,EP);if(Ha)for(var Pa=w(Ha.values()),Ra=Pa.next();!Ra.done;Ra=Pa.next()){var Ya=Ra.value,hb=tk(new rk,Ya),ub=new ir(hb);Ya.cA()||ub.Zc(15);a.Ab.push(wP(ub))}}catch(Ib){console.error("Failed to parse FormsGetPrefillDataResponse",Ib)}finally{Z1(a,!1)}}, od:function(e){window.sc_trackStatsEvent(313,21,"getprefilldata: "+e.statusText);console.error("getprefilldata endpoint returned an error",e);Z1(a,!1)}, Ul:!0})}else Z1(this,!1)}else Z1(this,!1)}; function icb(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 hcb(a){return(a=Sj(a))?De(a,Gj,8,Of)?Hj(Jj(a)):De(a,Bj,2,Of)?Cj(a.Yg()).map(function(b){return""+b}):De(a,Gj,3,Of)?Hj(a.Vj()):De(a,zj,4,Of)?Aj(Lj(a)).map(function(b){return""+b}):Nf(a)!=null?[a.Zm().toString()]:De(a,Dj,6,Of)?Ej(a.vn()).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=jcb(c,a),f=void 0;if((f=e)==null?0:f.YO.length)c.setValues(e.YO,!0),(f=c.getId())&&this.zk.add(f);f=void 0;((f=e)==null?0:f.kX)&&c.hide()}}; function jcb(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.Gz=function(a,b){var c=[];W1(this,function(e){var f=Wab(e,a,b);f&&c.push({field:e,control:f,value:b})}); return c}; n.yl=function(){return this.page}; n.submitForm=function(){var a=this;if(this.og&&this.Ac&&!this.Ka)this.getStatusMessage()!==""&&(this.ya=!1),kcb(this);else{this.rb&&this.Qa!==27||(this.rb=Bt.Qd());for(var b=w(this.qa),c=b.next();!c.done;c=b.next()){c=c.value;var e=c.model;if(!e.uc()&&!e.jd().getId()){hR(c,!0,this.model.strings.REQUIRED_FIELD);f2(this,"invalid",this.model.strings.VALIDATION_NOTE);this.dispatchEvent("invalidated");return}}Y1(this,!0);W1(this,function(h){h.ya&&(a.ld=!0,h.targetVerified()&&(a.targetVerified=!0))}); if(this.Ie!==0){var f=function(){a.element.removeEventListener("uploadend",f);a.submitForm()}; this.element.addEventListener("uploadend",f)}else this.dispatchEvent("validationstart"),g2(this)||this.dispatchEvent("beforesubmit"),lcb(this).then(function(h){!a.c2c||a.model.use_cufinsert_api_when_validating_only&&a.validateOnly?h2(a)&&a.model.check_chat_availability_before_submitting_request&&!i2()&&!a.shouldSubmitToCasesV2()?mcb(a,h):ncb(a,h):ocb(a,h)}).catch(function(){j2(a,a.model.strings.BACKEND_ERROR); a.dispatchEvent("validationend")})}}; function pcb(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(){qcb(a,!1)}); b.addEventListener("click",function(){qcb(a,!0)}); c.addEventListener("click",function(){window.sc_trackStatsEvent(303,55,z().pid);rcb(a,1)}); e.addEventListener("click",function(){window.sc_trackStatsEvent(303,54,z().pid);rcb(a,2)})} function rcb(a,b){b===2?scb(a,a.o,"channel_reco_chat_channel_selected"):scb(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 qcb(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");um(a.querySelector("#channel-recommendation-chat-option"),"high-context-channel-recommendation-options__option--active",b);um(c,"high-context-channel-recommendation-options__option--active",!b);um(f,"hidden",!b);um(e,"hidden",b)} function tcb(){var a=dn("FormSurveysFeature__trigger_id");lu(new ku,{triggerId:a,enableTestingMode:dn("FormSurveysFeature__enable_testing_mode")==="true",productData:{experimentIds:gn()}})} n.setAssistiveQuestionAnswers=function(a){this.Ba=a;if(this.c2c&&(!this.model.use_cufinsert_api_when_validating_only||!this.validateOnly)){a=w(this.Ba);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.c2cCountry&&b.c2cNumber){a=c2(this,'input[type="tel"]').closest(".field").querySelector("select");this.tf(a.name).setValues([[b.c2cCountry,b.c2cNumber]]);break}}}; function Ubb(a){var b="submit_form";a.model.has_custom_recaptcha_action&&(b="submit_form_"+a.getRedwoodId()+"_"+a.getId());var c=d2(a)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha";a.recaptcha=new kF(a.querySelector(c),function(){a.hf=!0;a2(19,22)},b)} function ucb(a){var b=d2(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.Va=(new oC(c,function(){e&&c.parentNode&&c.parentNode.removeChild(e.getElement());a.va=!0;a2(19,172);a2(4,172)})).Sn(function(){a2(14,172)})}} function vcb(a,b){b=b===void 0?null:b;var c=uR().map(function(h){return h.toString()}); b&&c.push(b);var e,f;b=(f=(e=a.flags.smartIntakeDynamicQuestionsFormAllowlist)==null?void 0:e.primitive_value)!=null?f:[];e=wcb(a);f=z().lang;c.push.apply(c,za(pbb(a.getRedwoodId(),b,e,f)));return[uP(sP(rP(new ir,8001336),8001336).Zc(15),[].concat(za(new Set(c))))]} function scb(a,b,c){b.form_frd_values=b.form_frd_values.filter(function(e){return e.frd_id!==8001336}); a=vcb(a,c)[0];b.form_frd_values.push(x1(a.Ec))} function lcb(a){var b,c,e,f,h,k,l,p,r,t,v,x,E,la,ta,wa,Ba,Ha,Pa,Ra,Ya,hb,ub,Ib;return La(function(Cb){if(Cb.o==1){if(a.Ka&&a.o)return Cb.return(Promise.resolve(a.o));c={form_id:a.element.getAttribute("id"),header:[],subject:"",content:"",validate_only:a.validateOnly||k2(a)||g2(a)||b2(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:oR(oR(oR(oR(oR(oR(oR(new kR,a.Ma),a.oa),a.Sa.Pc()),a.Ab),a.qa.map(function(eb){return eb.model}).filter(function(eb){return eb.isRequired()&&eb.isPending()&&eb.isValid()}).map(function(eb){return eb.jd().setRequired(!0)})),[sP(rP(new ir,8000730),8000730).Zc(15).nh([Hm()])]),vcb(a)).Pc().map(function(eb){return x1(eb.Ec)}), selected_symptom_frd_values:(b=a.selectedSymptomFrdValues)==null?void 0:Aab(b),parent_case_name:a.parentCaseName,submission_channel:a.submissionChannel,cases_attachment:a.ai.map(function(eb){return{blob_name:Lf(eb,1),file_name:eb.getFileName()}}), form_revision:Number(a.element.getAttribute("data-contact-form-revision"))};i2()&&(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.Ha?Cb.yield(a.Ha.getScreenshotData(),3):Cb.Pa(2)}Cb.o!=2&&(h=Cb.ma)&&(a.Dk=[{name:"screenshot",value:"There was a file uploaded for this field."},{name:"upload_original_filename",value:h.originalFilename},{name:"upload_cns_filename",value:h.Gf}, {name:"upload_document_id",value:h.documentId}]);if(a.Ba.length>0)for(c.is_assistive=!0,c.assistive_flow_results=[],k=w(a.Ba),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});l2(a)&&a.ua&&a.ua.length>0&&(c.dynamic_question_results=a.ua.map(function(eb){return{question_text:eb.questionText, question_intent:eb.questionIntent,answer_values:eb.answerValues,relevance:eb.relevance,suggested_input_type:eb.suggestedInputType}})); t=a.getFieldValues();v=xcb(a,!0);x=new Map(a.getHcfNameScFrdValueMap().entries());a.qa.map(function(eb){return eb.model}).forEach(function(eb){eb.isValid()&&x.set(eb.getName(),wP(eb.jd()))}); for(E=0;E0&&(c.product_specific_data=Ya);a.ld&&(c.target_submission_details={used_target_selector:!0,is_target_selector_verified:a.targetVerified});return Cb.return(c)})} function mcb(a,b){var c=m2(a,1);Im({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)?ncb(a,b):(a.ma&&a.ma.hide(),$1(a))}, od:function(e){window.sc_trackStatsEvent(52,21,"escalationavailability: - "+e.statusText);a.ma&&a.ma.hide();if(e=a.querySelector(".submit-button"))e.disabled=!1;j2(a,a.model.strings.BACKEND_ERROR);a.dispatchEvent("validationend")}})} n.getChatAvailability=function(){var a=this;return La(function(b){return b.return(ycb(a))})}; function ocb(a,b){var c,e,f,h,k,l;La(function(p){if(p.o==1)return c={contact_flow:b},a.va?(c.recaptcha_response=a.Va.getResponse(),p.Pa(2)):a.hf?p.yield(a.recaptcha.getResponse(),4):p.Pa(2);p.o!=2&&(c.recaptcha_response_v3=p.ma);a.c2c.populateCallParameters(c);a.shouldSubmitToCasesV2()&&(e={},f=m2(a,5),dg(f,2)&&(e.form_id=Lf(f,2)),yd(we(f,4))!=null&&(e.redwood_form_id=Sf(f,4)),e.channel=[5],Be(f,YP,7)?e.sc_frd_values=zab(new kR(f.getScFrdValues())):Be(f,ek,1)&&(e.frd_values=Aab(new kR(gf(f,ek,1)))), c.escalation=e);h={v:"1",psd:JSON.stringify(a.productSpecificData)};(k=ym("test"))&&(h.test=k);(l=ym("cases2"))&&(h.cases2=l);b.submit_id=a.submitId;Im({httpMethod:"POST",endpoint:"createcall",params:h,requestBody:c,onLoadCallback:function(r){var t=null;try{t=JSON.parse(r.responseText)}catch(v){}n2(a,{type:"c2c",response:t})}, od:function(){n2(a,{type:"c2c",response:!1})}}); p.oa()})} function ncb(a,b){var c,e,f,h;La(function(k){if(k.o==1)return c={v:"0",psd:JSON.stringify(a.productSpecificData)},(e=ym("test"))&&(c.test=e),(f=ym("cases2"))&&(c.cases2=f),b.submit_id=a.submitId,h={common_params:{context_params:{view_id:z().vid}},resource:b},a.va?(h.recaptcha_response=a.Va.getResponse(),k.Pa(2)):a.hf?k.yield(a.recaptcha.getResponse(),4):k.Pa(2);k.o!=2&&(h.recaptcha_response_v3=k.ma);h2(a)&&(a.shouldSubmitToCasesV2()||f)&&(a.Gb=!0);Im({httpMethod:"POST",endpoint:"cufinsert",params:c, requestBody:h,onLoadCallback:function(l){var p=null;try{p=JSON.parse(l.responseText)}catch(r){n2(a,{type:"cuf",response:l.responseText,formData:b});return}n2(a,{type:"cuf",response:p,formData:b})}, od:function(){n2(a,{type:"cuf",response:!1,formData:b})}, Ul:!0});k.oa()})} function h2(a){return a.model.is_chat_form||a.Ka&&a.o!==null&&a.o.submission_channel===2} function k2(a){if(!a.model.fix_multi_page)return!1;var b=!1;W1(a,function(c){Number(c.yl())>a.yl()&&c.hasSatisfiedDependencies()&&(b=!0)}); return b} function g2(a){var b=a.getContactType()===0;return a.model.logged_in&&qUa()&&b&&!a.Ka} function b2(a){return a.model.logged_in&&!a.ya&&l2(a)} function l2(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&&tR(b,a,e)} n.getHasCheckedForDynamicRecommendation=function(){return this.ya}; n.setHasCheckedForDynamicRecommendation=function(a){this.ya=a}; n.getShouldShowNextStep=function(){return this.og}; n.setShouldShowNextStep=function(a){this.og=a}; function kcb(a,b){b=b===void 0?null:b;Y1(a,!0);b&&(a.o=b);a.o.validate_only=a.validateOnly||k2(a);a.dispatchEvent("dynamicrecommendationfound");a.Ac=!0;a.ya=!0;Y1(a,!1)} function zcb(a,b){Y1(a,!0);a.o=b;a.o.validate_only=a.validateOnly||k2(a);a.Ka=!0;b={contact_flow_model:b};Im({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){o2(a,{response:c.responseText});return}o2(a,{response:e})}, od:function(){o2(a,{response:!1})}, Ul:!0})} function o2(a,b){Y1(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.Qa=28;Acb(a);Bcb();window.sc_trackStatsEvent(303,4,z().pid);var c=a.querySelector(".high-context-channel-recommendation__container");Ccb(a,!1);um(c,"hidden",!1);l2(a)&&a.Lv();a.dispatchEvent("highcontextchannelrecommendationfound");a.vk&&Ubb(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&&Tl(c,im.Yd(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),Tl(c,im.Yd(b))):um(e,"hidden",!0);pcb(a)}else a.Qa=29,a.submitForm()} function gcb(a,b,c){var e;return La(function(f){e=Dbb(new O1,Cbb(Bbb(new M1,b),c));return f.return(new Promise(function(h,k){Im({httpMethod:"POST",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},endpoint:"authorizetargets",requestBody:e,onLoadCallback:function(l){var p=null;try{p=Fbb(l.responseText),h(p)}catch(r){k(Error("Failed to parse AuthorizeTargetsResponse."))}}, od:function(){k(Error("API error authorizing targets."))}, Ul:!0})}))})} function Acb(a){a.rb.report(a.Qa);a.rb=null;a.Qa=27} n.getSubjectFieldId=function(){return c2(this,'input[name="subject-line-field-id"]').value}; n.getBodyFieldId=function(){return c2(this,'input[name="body-text-field-id"]').value}; function xcb(a,b){var c=[];W1(a,function(p){if(p.hasSatisfiedDependencies())for(var r=p.getValues(b),t=0;t0){j2(a,Icb(e),e);a.dispatchEvent("validationend");break a}Jcb(a,e)}else j2(a,a.model.strings.BACKEND_ERROR,e)}else j2(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(k2(a))p2(a);else if(b2(a))kcb(a,b);else if(g2(a))zcb(a, b);else{b=ym("cases2");if(b=h2(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,Gcb(a));a.validateOnly||(!b||i2()||z().rs===79&&a.flags.enableChatMoleMigration||((0,window.sc_ensureSubscribed)(),a.dispatchEvent("chatrequested")),Acb(a),Hcb(a));q2(!0);e=!0}else Jcb(a,c);else j2(a,Icb(c),c);else j2(a,a.model.strings.CONNECTION_ERROR);c=ym("cases2");!e&&h2(a)&&(a.shouldSubmitToCasesV2()|| c)&&(a.Gb=!1);a.dispatchEvent("validationend")}} function Kcb(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 Icb(a){var b;return((b=a.submit_error)==null?0:b.length)?(a=a.submit_error[0],Kcb(a.code,a.sub_code)):""} function Lcb(a,b){var c=d2(a)?".high-context-channel-recommendation__recaptcha":".recaptcha";(a=a.querySelector(c))&&um(a,"invalid",b)} function Jcb(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=Mcb(a,h[1],h[2]))h.isVisible()?hR(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.va||(h=d2(e)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha", (h=e.querySelector(h))&&um(h,"hidden",!0),ucb(e)),Lcb(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")$1(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?(f2(a,"invalid",e+Ncb(a,b)),a.dispatchEvent("invalidated"),a2(17)):p2(a)} function Fcb(a){var b=a.querySelector(".notification-area");b&&(um(b,"error",!1),um(b,"invalid",!1),b.textContent="");W1(a,function(e){e.setValidity(!0)}); b=w(a.qa);for(var c=b.next();!c.done;c=b.next())hR(c.value,!1);a.va&&Lcb(a,!1)} function f2(a,b,c){var e=a.querySelector(".notification-area");e&&(um(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){f2(this,"error",a)}; function j2(a,b,c){a.setErrorMessage(b+Ncb(a,c));a.dispatchEvent("error");q2(!1)} function Ncb(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 p2(a){fcb(a,a.page+1);a.dispatchEvent("nextpage");a2(6)} function Hcb(a){a.dispatchEvent("submitstart");if(!h2(a)||a.Ba.length>0)Bcb(),Ccb(a),Ocb(a);if(h2(a)){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);e2(a,!0);window.sc_enableFormSubmissionDetailsAndDownloadUi&&(Pcb(a),Qcb(a,c2(a,".submission-details-chat__content")),Rcb(a),b=c2(a,".submission-details-chat__download-button"),b.addEventListener("click",function(){Scb(a)}),c2(a,".submission-details-chat__edit-button").addEventListener("click",function(){Tcb(a)}),window.sc_trackStatsEvent(182, 4,z().pid),um(c2(a,".submission-details-chat"),"hidden",!1),b.focus()); c2(a,".notification-area").textContent=a.model.strings.CHAT_CREATING;a.dispatchEvent("chatrequested")}a2(22);a.dispatchEvent("submitend");a.dispatchEvent("cleancomplete");dn("FormSurveysFeature__enable_hats")==="true"&&tcb()} function e2(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 Bcb(){var a=document.querySelector(".prefilled-callout");a&&um(a,"hidden",!0)} function Ccb(a,b){b=b===void 0?!0:b;for(var c=h2(a)&&a.Ba.length>0,e=0;e0&&a.dk.set(c.getId(),e)}b=w(a.qa);for(c=b.next();!c.done;c=b.next())c=c.value,e=c.Ue(),c.isVisible()&&e&&a.Ja.set(e,c.getDisplayValues())} function Qcb(a,b){a=w(a.Ja.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+=": ",um(c,"multi-value",f.length>1),e=w(f),f=e.next();!f.done;f=e.next())f=f.value,h=document.createElement("span"),um(h,"submission-value",!0),h.innerText=f,c.appendChild(h);b.appendChild(c)}} function Scb(a){for(var b="",c=w(a.Ja.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";U1.download(b,c,"text/plain");window.sc_trackStatsEvent(182,47,z().pid);en("contact_form_submission_download")} function Tcb(a){var b=new URLSearchParams;a=w(a.dk.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)}en("contact_form_submission_edit");window.sc_trackStatsEvent(182,24,z().pid);b=new URL(""+window.location.origin+window.location.pathname+"?"+b);Tm(b.toString())} function q2(a){Im({httpMethod:"POST",endpoint:"cufz",requestBody:{success:a,page_view_id:z().pvid}})} function Mcb(a,b,c){return b&&c?a.qa.find(function(e){return xP(e.model.jd(),rP(sP(new ir,+b),+b).Zc(+c))}):null} n.tf=function(a){var b=null;W1(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 fcb(a,b){if(b===a.page||b<1||b>a.model.total_pages)return!1;a.page=b;X1(a);Y1(a,!1);return!0} function a2(a,b){window.sc_trackStatsEvent(b===void 0?21:b,a,z().pid)} function Ucb(a,b){var c=m2(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){Im({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"))}}, od:function(){h(Error("escalationavailability endpoint returned an error"))}, Ul:!0})})} function m2(a,b){var c=new jR,e=a.getId();Zf(c,2,e);e=Number(a.getRedwoodId());Wf(c,4,e);Ue(c,3,[b],td);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=tP(f.value))!=null?h:[]))}a=kUa(oR(mR(new kR,lR(a.selectedSymptomFrdValues)).qd(a.selectedSymptomFrdValues.Zg()),[uP(rP(sP(new ir,8000072),8000072).Zc(15),b)]));kf(c,YP,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(Ucb(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 ycb(a){var b,c,e;return La(function(f){return f.o==1?f.yield(Ucb(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 Ybb(a){var b=a.querySelector(".contact-form__gdpr-dialog");if(b){var c=function(e){var f=this.Lb().strings,h=this.Lb().style_params,k=this.Lb().gdpr_privacy_policy_url,l=z().lang,p={};f=new sF(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 qR({Oa:f,locale:l,privacyPolicyUrl:k,jr:h?{"font-family":h.font_family.title}:void 0,Ap:h?{"font-family":h.font_family.body}: void 0,Fp:h?{"font-weight":String(h.strong_font_weight)}:void 0});ro(e,function(){r.render()}); return r}.call(a,b); oUa(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||rR(c,f.name,f.value);e=w(Object.keys(a.productSpecificData));for(f=e.next();!f.done;f=e.next())f=f.value,rR(c,f,a.productSpecificData[f]);a.gcmRegistrationId&&rR(c,"GCM",a.gcmRegistrationId)})}} function Tbb(a,b){b.addEventListener("uploadstart",function(){++a.Ie}); b.addEventListener("uploadend",function(){--a.Ie;hn(a.element,"uploadend")})} function $1(a){if(!a.Gb){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);e2(a,!0);b=c2(a,".notification-area");um(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.Lb=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.nT=function(){var a=[];W1(this,function(b){a.push(Vcb(b))}); Array.prototype.push.apply(a,Dcb(this));return a}; function Vcb(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.oT=function(){var a=[];W1(this,function(b){b.isVisible()&&a.push(Vcb(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.Uc;)a.Fc.shift()()} n.Kv=function(){var a=this;if(XP(s2(this))){var b=document.activeElement;t2(this,!0);var c=new qQ;Xcb(this,c);Im({httpMethod:"POST",endpoint:"getavailablevaluesforgraph",params:{v:"1"},requestBody:c.serialize(),onLoadCallback:function(e){try{for(var f=DSa(e.responseText),h=w(jf(f,rQ,2,Le())),k=h.next();!k.done;k=h.next()){var l=gf(k.value,Pj,1),p=l.getFrdContext(),r=p?Tf(p,2):null,t=a.Da.get(L1(l));if(t)for(var v=w(t),x=v.next();!x.done;x=v.next()){var E=x.value,la=lbb(E),ta=Tf(la,2);if(!(r&&ta&& r!==ta||!D1(E))){var wa=Hj(Jj(Sj(l)),Qc);switch(E.getType()){case "CHECKBOX":case "RADIOBUTTON":for(var Ba=w(E.querySelectorAll(".list-item")),Ha=Ba.next();!Ha.done;Ha=Ba.next()){var Pa=Ha.value,Ra=wa.indexOf(Pa.querySelector("input").value)===-1;um(Pa,"hidden-by-vrg",Ra)}break;case "DROPDOWN":for(var Ya=w(E.querySelectorAll("option")),hb=Ya.next();!hb.done;hb=Ya.next()){var ub=hb.value;if(ub!==E.querySelector("option")){var Ib=wa.indexOf(ub.value)===-1;um(ub,"hidden-by-vrg",Ib)}}E.element.querySelector("select").dispatchEvent(new Event("selectvrgupdate"))}}}}}catch(Cb){}t2(a, !1);b.focus();Wcb(a)}, od:function(){t2(a,!1);b.focus();Wcb(a)}})}}; function t2(a,b){a.Uc=b;a=w(a.Tc);for(var c=a.next();!c.done;c=a.next())c=c.value,D1(c)&&nbb(c,b)} function Xcb(a,b){var c=s2(a);c=XP(c);ASa(b,qf(c,1));BSa(b,sf(c,2));c=[];for(var e=[],f=!1,h=w(a.Tc),k=h.next();!k.done;k=h.next()){k=k.value;if(D1(k)){var l=k.getFrdIdentifier();l&&c.push(l)}if(B1(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 Ij,k.getType()==="HIDDEN"?Ycb(mbb(k),l[0],p):k.getFrdIdentifier()===8000001?p.yj((new Bj).oh(l.map(function(v){return Number(v)||0}))):Kj(p,(new Gj).oh(l)),l=Tj(new Pj, p),p=lbb(k),(r=tf(p,2))&&Qj(l,xj(new wj,tf(p,1)).Zc(r)),(k=k.getFrdV2Identifier())&&Rj(l,k),e.push(l),!f&&L1(l)===8000072&&(f=!0))}}if(window.sc_filter_promoted_by_selected_symptom&&!f){var t; h=(t=a.selectedSymptomFrdValues)==null?void 0:lR(t);t=bp(qf(b,2));if(a.selectedSymptomFrdValues&&h&&t&&h===t){t=w(a.ud);for(h=t.next();!h.done;h=t.next())if(L1(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=tP(h.value))!=null?k:[]));e.push(mr(uP(rP(sP(new ir,8000072),8000072).Zc(15),f)))}}}Ue(b,3,c,td);wab(b,a.ud.concat(e));ag(b,5,a.model.content_publish_state)} function Ycb(a,b,c){switch(a){case 1:c.yj((new Bj).oh([Number(b)]));break;case 2:case 5:c.nh((new Gj).oh([b]));break;case 3:Mj(c,Uea(new zj,[Number(b)]));break;case 4:a=b.split(",");Kj(c,(new Gj).oh(a));break;case 9:c.Vh(b==="true");break;case 8:a=b.split(",").map(function(e){return Number(e)}); c.zx(Fj(new Dj,[(new Bj).oh(a)]));break;case 11:case 6:case 7:case 10:Oj(c,(new yj).oh([b]))}} function s2(a){a=JSON.parse(a.element.getAttribute("data-form-service-vrg"));return new WP(a)} n.getServiceVrgTaxonomyId=function(){var a=XP(s2(this));return a?bp(qf(a,1)):null}; n.getServiceVrgTaxonomyView=function(){var a=XP(s2(this));return a?Lf(a,2):null}; n.setSupportJourneyId=function(a){this.submitId=a}; function Gcb(a){window.sc_log&&window.sc_log("Form","INFO","Case ID: "+a.caseId)} n.setIncludesTargetSelector=function(a){this.ld=a}; n.setTargetVerified=function(a){this.targetVerified=a}; function Zbb(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 oQ(JSON.parse(b));a.Wd=(e=Bf(c,7))!=null?e:"";a.Wd&&window.sc_log&&window.sc_log("Helpcenter Field","INFO","Form Helpcenter Fields User-based FRD Value Lookup EventID: "+a.Wd);return v.yield(iR({helpCenterFrdFieldsConfg:c,locale:z().lang,neoTaxonomy:pQ(),placements:[a.pv(1),a.pv(2)],qx:"*"}),2)}f=v.ma;h=a.getScFrdValues().map(function(x){return new ir(x)}); k=w(a.Da.keys());for(l=k.next();!l.done;l=k.next())p=l.value,h.push(sP(new ir,p));r=a.getHcfNameScFrdValueMap();t=f.Pi;Zcb(a,t,2,h,r,".cf div.helpcenter-fields-container.top");Zcb(a,t,1,h,r,".cf div.helpcenter-fields-container.bottom");DP(a.Sa,a.qa.concat(f.Os).map(function(x){return x.model})); v.oa()})} n.pv=function(a){var b=new IP,c=new HP,e=this.getContactType();Ze(c,3,GP,ud(e));ag(c,2,a);nf(b,1,HP,c);c=new HP;e=this.getRedwoodId();Ze(c,1,GP,Rd(e));ag(c,2,a);nf(b,1,HP,c);a=new NP;lf(a,1,MP,b);return a}; function Zcb(a,b,c,e,f,h){if(h=a.element.querySelector(h)){var k=obb(wcb(a));console.log("Form INFO: enableMultiTargets: "+k);var l=b.filter(function(p){if(p.model.placements.length||(!k||c!==1)&&e.some(function(la){return xP(la,p.model.jd())})||!p.model.jd().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.Xv())==null?void 0:v.o())!=null?x:[]);for(v=E.next();!v.done;v=E.next())v.value.Qu()===c&&p.model.placements.push(t)}return!!p.model.placements.length}); l.length&&ro(h,function(){for(var p=w(l),r=p.next();!r.done;r=p.next())r=r.value,r.render(),a.qa.push(r)})}} n.getHelpCenterFieldFrds=function(a){return this.Sa.Pc(a===void 0?!1:a).map(function(b){return wP(b)})}; n.setHelpCenterFieldFrd=function(a){a=new ir(a);for(var b=w(BP(this.Sa)),c=b.next();!c.done;c=b.next())if(c=c.value,xP(c.jd(),a)){xab(c,a);break}}; function wcb(a){var b,c;return(c=(b=a.flags.multiTargetsHelpCenterAllowlist)==null?void 0:b.primitive_value)!=null?c:[]} function $bb(a){var b=[];z().is_render_api||b.push("direct_to_form");ym("cse")==="gse"&&b.push("gse");ym("cse")==="google_marketing_advisor"&&b.push("google_marketing_advisor");b.length&&a.addScFrdValue(wP(uP(rP(sP(new ir,8000104),8000104).Zc(15),b)))} n.zi=function(a,b){a=this.Da.get(Number(a));if(!a||a.length===0)return!1;a=a[0].getElement();return Lw(a,b)}; function i2(){switch(z().rs){case 3:case 8:return!0;default:return!1}} window.sc_initForm=function(a,b,c){a=new Rbb(a,b,c);b={getEscalationChannelAvailabilityInformation:a.getEscalationChannelAvailabilityInformation.bind(a),getContactType:a.getContactType.bind(a),submitForm:a.submitForm.bind(a),getFields:a.nT.bind(a),getVisibleFields:a.oT.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)};return a.Mq=b};function $cb(){var a,b;return typeof((a=navigator)==null?void 0:(b=a.mediaDevices)==null?void 0:b.getDisplayMedia)==="function"} ;function u2(a,b){var c,e;(e=(c=window).sc_trackStatsEvent)==null||e.call(c,a,b,z().pid)} ;function v2(a){A.call(this,"sc.forms.Screenshare");this.o=null;this.ma=!1;this.params=a} u(v2,A);v2.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 wu({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||adb(b))})}; function adb(a){La(function(b){if(b.o==1){if(!a.params.Pg||!a.o)return b.Pa(0);b.ua(3);return b.yield(a.params.Pg.forwardWheel(a.o),5)}if(b.o!=3){a.ma=!0;a.params.uI(a.ma);var c,e;(e=(c=window).sc_trackStatsImpressions)==null||e.call(c,[{type:309,id:z().pid}],!0);u2(309,10);a.Ia();return b.ya(0)}b.qa();b.oa()})} function bdb(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")}))})} v2.prototype.VM=function(){return this.ma};function w2(a){A.call(this,"sc.forms.ScreenshareControllers");this.params=a;this.ma=new Qo({text:"Change tab",ariaLabel:"Change tab",style:3,icon:"gm/swap_horiz",Mf:24,trigger:function(){u2(309,56);a.nS()}}); this.o=new Qo({text:"Capture screenshot",ariaLabel:"Capture screenshot",style:4,icon:"gm/screenshot_monitor",Mf:24,trigger:function(){u2(309,46);a.jp()}})} u(w2,A);function cdb(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 st({trigger:a,text:b,Aj:4,Jj:"35rem",vr:c,xk:!1})).render()} function ddb(a){a.element("div","class","screenshare-footer-scroll-info",function(){var b=a.params.VM,c="",e="",f=-150;a.params.Pg?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&&cdb(a,e,f))})} w2.prototype.content=function(){var a=this;this.element("div","class","screenshare-footer",function(){ddb(a);a.element("div","class","screenshare-footer-buttons",function(){a.ma.render();a.o.render()})})};function x2(a){A.call(this,"sc.forms.ScreenshotEdit");var b=this;this.oa=!1;this.Jk=this.ma=0;this.scaleY=this.scaleX=1;this.qa=[];this.ua=function(c){if(b.params.Pf!=="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.Jk=(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.Ba)}}; 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;y2(b);b.o=b.o;c=Math.min(b.ma,f);e=Math.min(b.Jk,h);f=Math.abs(b.ma-f);h=Math.abs(b.Jk-h);var k=b.params.Pf;k==="HIGHLIGHT"?edb(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.Ba=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.Jk,h);f=Math.abs(b.ma-f);h=Math.abs(b.Jk-h);(f>0||h>0)&&b.qa.push({x:c,y:e,width:f,height:h,mode:b.params.Pf});var k;(k=b.canvas)==null||k.removeEventListener("mousemove",b.va);var l;(l=b.canvas)==null||l.removeEventListener("mouseup",b.Ba);y2(b)}}; this.params=a} u(x2,A);x2.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);fdb(b)})}; x2.prototype.onDetach=function(){var a;(a=this.canvas)==null||a.removeEventListener("mousedown",this.ua);this.qa=[]}; function fdb(a){a.canvas=a.canvas;var b=Dl(a.params.Hi),c=new Image;c.onload=function(){a.canvas=a.canvas;a.canvas.width=c.width;a.canvas.height=c.height;a.Da=c;y2(a)}; c.src=b.toString()} function y2(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"?edb(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 edb(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 gdb(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.Hi))})} ;function z2(a){A.call(this,"sc.forms.ScreenshotEditControllers");this.ma=new Qo({text:"Cancel",ariaLabel:"Cancel",trigger:function(){u2(311,59);a.zD()}, style:3,le:"material-pill",Nc:"px"});this.o=new Qo({text:"Done",ariaLabel:"Done",trigger:function(){u2(311,60);var b;(b=a.kI)==null||b.call(a)}, style:4,le:"material-pill",Nc:"px"});this.params=a} u(z2,A);function hdb(a){return new wu({ariaLabel:"Highlight",text:"Highlight",icon:"gm/highlight_alt",selected:a.params.Pf==="HIGHLIGHT",trigger:function(){u2(311,58);a.params.Wl("HIGHLIGHT")}})} function idb(a){return new wu({ariaLabel:"Hide",text:"Hide",icon:"gm/featured_video",selected:a.params.Pf==="HIDE",trigger:function(){u2(311,5);a.params.Wl("HIDE")}})} z2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.element("div","class","edit-control-buttons","aria-live","off",function(){hdb(a).render();idb(a).render()}); a.element("div","class","modal-control-buttons",function(){a.ma.render();a.o.render()})})};function A2(a){A.call(this,"sc.forms.ScreenshotPreview");this.o=null;this.params=a;this.o=Dl(a.Hi).toString();this.ma=jdb(this)} u(A2,A);function jdb(a){return new wu({text:"Highlight or hide content",ariaLabel:"Highlight or hide content",style:0,type:1,icon:"gm/edit",trigger:function(){u2(310,24);a.params.tE()}, Ww:!0})} A2.prototype.focus=function(){this.ma.focus()}; A2.prototype.onDetach=function(){this.o&&(URL.revokeObjectURL(this.o),this.o=null)}; A2.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 B2(a){A.call(this,"sc.forms.ScreenshotPreviewControllers");this.ma=new Qo({text:"Capture again",ariaLabel:"Capture again",icon:"gm/restart_alt",Mf:20,style:3,trigger:function(){u2(310,56);a.FD()}}); this.o=new Qo({text:"Attach screenshot",ariaLabel:"Attach screenshot",icon:"gm/attach_file_add",Mf:20,style:4,trigger:function(){u2(310,57);a.Zo()}})} u(B2,A);B2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.ma.render();a.o.render()})};function C2(a){A.call(this,"sc.forms.ScreenshotCaptureDialog");var b=this;this.ma=0;this.stream=null;this.page="SCREENSHARE";this.Hi=new Blob;this.Pf="NONE";this.ua=new x2({Hi:this.Hi,Pf:this.Pf});this.oa=null;this.o=!1;this.qa=new v2({stream:this.stream,Pg:this.Pg,uI:function(c){b.o=c;b.Ia()}}); this.params=a;this.dialog=new Au({content:function(){b.element("div","class","screenshot-capture-dialog",function(){kdb(b)})}, Ah:{"background-color":"rgba(0,0,0,.3)"},Lm:!1,Km:!1,ariaLabel:ldb(this)})} u(C2,A);function ldb(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 kdb(a){(new xu).render({content:function(){a.element("div","class","screenshot-capture-dialog-content",function(){mdb(a);ndb(a);odb(a)})}})} function pdb(a){a.element("div","class","screenshot-capture-dialog-title","role","heading",function(){switch(a.page){case "SCREENSHARE":(new Mo({icon:"gm/privacy_tip",size:24})).render();a.element("span","class","data-management-link","role","link","tabindex","0","onclick",function(b){Nl(window,Cl("https://policies.google.com/privacy"),"_blank");b.preventDefault()},"onkeydown",function(b){b.key==="Enter"&&(Nl(window,Cl("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 mdb(a){a.element("div","class","screenshot-capture-dialog-content-header",function(){pdb(a);qdb(a)})} function qdb(a){a.element("button","class","dialog-close-button","type","button","aria-label","Close","onclick",function(){a.close()},function(){(new Mo({icon:"gm/close", size:24,De:["close-icon"]})).render()})} function ndb(a){a.oa=a.element("div","class","screenshot-capture-dialog-content-body",function(){switch(a.page){case "SCREENSHARE":a.qa.render({stream:a.stream,Pg:a.Pg,uI:function(b){a.o=b;a.Ia()}}); break;case "SCREENSHOT_PREVIEW":(new A2({Hi:a.Hi,tE:function(){a.tE()}})).render(); break;case "SCREENSHOT_EDIT":a.ua.render({Hi:a.Hi,Pf:a.Pf})}})} function odb(a){a.element("div","class","screenshot-capture-dialog-footer",function(){switch(a.page){case "SCREENSHARE":(new w2({nS:function(){a.close();a.params.jp()}, jp:function(){rdb(a)}, VM:a.o,Pg:a.Pg})).render();break;case "SCREENSHOT_PREVIEW":(new B2({FD:function(){a.FD()}, Zo:function(){a.Zo()}})).render(); break;case "SCREENSHOT_EDIT":(new z2({zD:function(){a.zD()}, Wl:function(b){a.Wl(b)}, Pf:a.Pf,kI:function(){a.kI()}})).render()}})} function rdb(a){La(function(b){if(b.o==1)return a.oa.classList.add("flash"),setTimeout(function(){a.oa.classList.remove("flash")},750),b.yield(bdb(a.qa),2); a.Hi=b.ma;a.page="SCREENSHOT_PREVIEW";a.Pf="NONE";sdb(a);a.Ia();b.oa()})} n=C2.prototype;n.zD=function(){this.Pf="NONE";this.setPage("SCREENSHOT_PREVIEW")}; n.setPage=function(a){this.page!==a&&(this.page=a,this.Ia())}; n.FD=function(){this.close();this.params.jp()}; n.tE=function(){this.Pf="NONE";this.setPage("SCREENSHOT_EDIT")}; n.Wl=function(a){this.Pf!==a&&(this.Pf=a,this.Ia())}; n.content=function(){var a=this;this.element("div","class","root",function(){a.dialog.Ki(ldb(a));a.dialog.render()})}; n.open=function(a,b){var c=this;this.page="SCREENSHARE";this.Pg=b;this.stream=a;this.qa=new v2({stream:a,Pg:b,uI: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";tdb(this)}; n.close=function(){this.page==="SCREENSHARE"&&sdb(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 sdb(a){if(a.stream){a=w(a.stream.getTracks());for(var b=a.next();!b.done;b=a.next())b.value.stop()}} function tdb(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.kI=function(){var a=this;return La(function(b){if(b.o==1)return b.yield(gdb(a.ua),2);a.Hi=b.ma;a.page="SCREENSHOT_PREVIEW";a.Pf="NONE";a.Ia();b.oa()})}; n.Zo=function(){this.params.Zo(this.Hi)};function D2(a){A.call(this,"sc.forms.ScreenshotCapture");var b=this;this.Af="scFormsScreenshotcapturescreenshot-capture-button-tooltip";this.ma=new C2({jp:this.jp.bind(this),Zo:this.Zo.bind(this)});this.params=a;this.qa=new Qo({icon:"gm/add",text:this.params.allowMultipleFiles?"Choose files":"Choose file",ariaLabel:this.params.allowMultipleFiles?"Choose files":"Choose file",style:3,Mf:24,trigger:function(){u2(307,52);var c;(c=b.o)==null||c.click()}}); this.oa=new Qo({icon:"gm/screenshot_monitor",Mf:24,text:"Capture screenshot",ariaLabel:"Capture screenshot. You will be asked to share your screen.",style:4,trigger:function(){u2(306,52);b.jp()}}); this.attachments=new IF({Yf:this.params.Yf,allowMultipleFiles:this.params.allowMultipleFiles,formId:this.params.formId,uB:function(c){udb(b,c)}, tB:function(c){udb(b,c)}})} u(D2,A);D2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.attachments.render();vdb(a);wdb(a);$cb()&&xdb(a);a.ma.render()})}; function wdb(a){a.element("div","class","screenshot-capture-button-container",function(){if($cb()){var b=ydb(a);(new st({text:"You will be asked to share your screen.",trigger:b,Af:a.Af})).render()}zdb(a)})} function ydb(a){return a.element("label","class","screenshot-capture-button-wrapper",function(){a.oa.render()})} function zdb(a){a.element("label","class","upload-label","for",a.params.id,function(){a.qa.render()})} function xdb(a){a.element("div","class","callout-container",function(){(new su({type:ru,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()})} D2.prototype.jp=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.Pg=new window.CaptureController;a.Pg.setFocusBehavior("no-focus-change");var l={video:{displaySurface:"browser"},audio:!1,controller:a.Pg}}else l={video:{displaySurface:"browser"},audio:!1};return f.call(e,k.call(h,l),4)}if(e.o!=2)return b=e.ma,u2(306,10),a.ma.open(b,a.Pg),e.ya(0); c=e.qa();c instanceof DOMException&&c.name==="NotAllowedError"?u2(306,11):u2(306,21);e.oa()})}; D2.prototype.Zo=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]);Adb(b,f);b.ma.close();u2(306,57);b.Ia();h.oa()})}; D2.prototype.getValues=function(){var a=JF(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.Gf},{name:"upload_document_id",value:c.documentId});return b}; function vdb(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())Adb(a,f.value);u2(307,57)}a.Ia();c.length&&rCa(a.attachments)}}].concat(za(a.params.allowMultipleFiles?["multiple", "1"]:[]));a.o=a.element.apply(a,["input"].concat(za(b)))} function Adb(a,b){a.o&&rs(a.o,"uploadstart",{detail:b})} function udb(a,b){a.o&&rs(a.o,"uploadend",{detail:b})} ;
false
false
false
true
true
true
true
true
7309155,7249334,7303230,7332538,7420927,7303233,7247179,7247304,7247188,9305646,7247297
false
true
false
9229674
false
false