Cancel your memberships

If you are logged in or are able to log into the YouTube website or mobile app, you can visit Purchases and Memberships to view and cancel your memberships.

 

Alternatively you can fill in this form to submit a cancellation request. Cancellations will be processed after this form is submitted and you have confirmed your identity, for which you will receive instructions at your designated email address.  Cancellations will be effective at the end of your current billing cycle, unless otherwise specified.

* Required field

Disclaimer: This form is available in German and English. You can cancel your memberships in all languages by visiting the Purchases and Memberships page.

Please indicate the type of cancellation you are seeking?

*
Note that subscriptions billed by Apple, Google Play, or other billing providers will need to be directly cancelled with them.
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
18413482416645838377
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(nbb).toString();var h=f.split(/[?#]/);e=/[?]/.test(f)?"?"+h[1]:"";b=h[0];f=/[#]/.test(f)?"#"+(e?h[2]:h[1]):"";a=kab(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 E1={wX:!1,bK:!1},F1;function G1(a){this.options=a=a===void 0?E1:a;if(!sbb(this.options)&&typeof navigator.msSaveOrOpenBlob!=="function"){var b;this.sandbox=new D1({UD:(b=this.options.bK)!=null?b:!1})}} G1.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?E1:e;return La(function(f){if(f.o==1)return f.yield(tbb(a,b,c,e),2);if(f.ma)return f.return();F1||(F1=new G1,F1.init());return f.yield(ubb(F1,a,b,c),0)})}; G1.prototype.init=function(){var a=this;return La(function(b){return a.sandbox==null?b.return():b.yield(a.sandbox.load(),0)})}; G1.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return La(function(f){return f.o==1?f.yield(tbb(a,b,c,e.options),2):f.ma?f.return():f.yield(ubb(e,a,b,c),0)})}; function ubb(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.Qa(2);break}navigator.msSaveOrOpenBlob(f,c);return l.yield(H1(),3);case 3:return l.return();case 2:if(!Lb()||Caa(jab(),16)>=0||!Gb()&&(!yb("iPad")&&!yb("iPhone")||Eb()||Gb()||(zb()?0:yb("Coast"))||Cb()||!yb("AppleWebKit"))){l.Qa(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(H1(),5);case 5:return l.return();case 4:return a.sandbox==null&&(a.sandbox=new D1({UD:(k=a.options.bK)!=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(H1(),0)}})} function tbb(a,b,c,e){c=c===void 0?"":c;e=e===void 0?E1:e;var f;return La(function(h){switch(h.o){case 1:if(!sbb(e))return h.return(!1);h.va(2);return h.yield(vbb(a,b,c),4);case 4:h.ua(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 sbb(a){a=a===void 0?E1:a;return a.wX&&!!window.showSaveFilePicker} function vbb(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.va(2);return l.yield(window.showSaveFilePicker(e),4);case 4:f=l.ma;l.ua(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.Oa(6),l.yield(k.write(a),6);case 6:return l.ya(),l.yield(k.close(),9);case 9:l.Ba(7);break;case 7:return l.return()}})} G1.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()}; function H1(){return new Promise(function(a){setTimeout(a,500)})} cb("SafeDownloader",G1);var wbb=[8000001,8000086,8000063,8000975,8000976,8000087,8000088],xbb=["CHECKBOX","RADIOBUTTON","DROPDOWN"]; function ybb(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.Nc=[];this.ya=new Map;this.bubbles=[];this.Oa=[];this.caseId=null;this.Da=new Map;this.Tj=new Map;this.c2c=null;this.listeners=[];this.Fe=0;this.Wa=!0;this.ma=null;this.va=this.Rf=this.Ub=!1;this.Ba=this.Va=this.recaptcha=null;this.rk=[];this.gcmRegistrationId="";this.productSpecificData={};this.Ha=[];this.oa=[];this.Ka=[];this.Sd="";this.zd=[];this.yb= [];this.parentCaseName="";this.Xh=[];this.Tc=!1;this.xc=[];this.ua=[];this.targetVerified=this.Sc=!1;this.qa=[];this.chatPoolId="";this.Rb=this.dg=this.Ia=this.Sa=!1;this.rb=this.o=null;this.Ma=27;this.jk=new Set;this.zl=this.model.show_recaptcha;this.Ze=this.querySelector(".form-screenshot");this.Tv=new Map;this.submissionChannel=0;this.Ra=new dF("HelpcenterFields/Form");this.submitId=tm;this.dispatchEvent("startinginitialization");a=this.querySelectorAll(".field");for(b=0;b0&&v.parents.push(la)}}}); J1(this);this.dispatchEvent("fieldsinitialized");this.zl&&Bbb(this);window.sc_createSpinner&&(this.ma=window.sc_createSpinner("small"),um(this.ma.getElement(),"submit-spin",!0));K1(this,!1);Cbb(this);Dbb(this);Ebb(this);L1(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.Ia=!1;e.Rb=!1}); this.model.c2c_configured&&(this.c2c=(0,window.sc_initFormClickToCall)(this));this.model.is_chat_form&&!this.shouldSubmitToCasesV2()&&M1(this);Fbb(this);this.dispatchEvent("validatorinitialized");this.dispatchEvent("initializationcomplete");N1(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 fr(new rk(b.value)),this.zd.push(jr(b)),this.oa.push(nP(b));a=w(this.fields);for(b=a.next();!b.done;b=a.next())if(b=b.value,c=b.getFrdIdentifier())this.Nc.push(b), (f=this.ya.get(c))?f.push(b):this.ya.set(c,[b]);Gbb(this,this.element.getAttribute("data-helpcenter-frd-fields-confg"));Hbb(this);Ibb(this);Jbb(this);Kbb(this)} function Kbb(a){var b=document.querySelector(".contact-form-suggestions-panel-container");b&&(yw.initialize(b,void 0),Pqa(document),yw.oi=function(c,e){return a.oi(c,e)},zw(),mSa(a.getRedwoodId()),b=function(){xw()},a.element.addEventListener("input",b),a.element.addEventListener("change",b),setTimeout(b,0),b=function(){Aw()},a.listen("nextpage",b),a.listen("highcontextchannelrecommendationfound",b),a.listen("submitstart",function(){yw.submitForm(); Aw()}))} n=ybb.prototype;n.querySelector=function(a){return this.element.querySelector(a)}; function O1(a,b){return a.element.querySelector(b)} n.querySelectorAll=function(a){return this.element.querySelectorAll(a)}; function I1(a,b){for(var c=0;c=a.model.total_pages;um(a.Ze,"hidden",!b);b?a.Ba.activate():a.Ba.deactivate()}} function K1(a,b){var c=a.page>=a.model.total_pages,e=a.querySelector(".submit-button");e&&(um(e,"hidden",!c),e.disabled=!a.Wa||b);if(a.va){var f=P1(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.Wa||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);Q1(a,b)} function P1(a){return!xm(a.querySelector(".high-context-channel-recommendation__container"),"hidden")} function Cbb(a){var b=a.querySelector(".submit-button");b&&(!z().li&&a.model.is_chat_form?(b.disabled=!0,O1(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(){Lbb(a,a.page-1)&&(a.dispatchEvent("previouspage"),N1(7))}); (b=a.querySelector(".next-button"))&&b.addEventListener("click",a.submitForm.bind(a))} function Jbb(a){if(Yab()&&!a.model.logged_in){N1(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 Ibb(a){if(Yab()&&a.model.logged_in&&!z().is_render_api){for(var b=[],c=w(wbb),e=c.next();!e.done;e=c.next())(e=a.ya.get(e.value))&&b.push.apply(b,za(e));b=w(b);c=b.next();for(e={};!c.done;e={Zt:void 0,Yv:void 0,UE:void 0,targetIdAuthorizationWarning:void 0},c=b.next())e.Zt=c.value,e.UE=e.Zt.getFrdIdentifier(),e.UE&&(e.Yv=e.Zt.querySelector(".text-input-container"),e.targetIdAuthorizationWarning=e.Zt.querySelector(".target-id-authorization-warning"),e.Zt.getElement().addEventListener("focusout", function(f){return function(){var h,k,l,p;return La(function(r){switch(r.o){case 1:h=f.Zt.getValues()[0].value;if(!h)return r.return();f.Yv&&um(f.Yv,"text-input-spin",!0);r.va(2,3);return r.yield(Mbb(a,f.UE,h),5);case 5:k=r.ma;if(jf(k,B1,1,Me()).length===0)return r.return();l=jf(k,B1,1,Me())[0];p=uf(l,2);um(f.targetIdAuthorizationWarning,"hidden",p);N1(p?4:5,305);case 3:r.ya();f.Yv&&um(f.Yv,"text-input-spin",!1);r.Ba(0);break;case 2:r.qa(),um(f.targetIdAuthorizationWarning,"hidden",!0),N1(5,305), r.Qa(3)}})}}(e)))}} function Dbb(a){a=a.element.getElementsByTagName("textarea");for(var b=0;b0&&x.getValues()[0].value!==""&&!xbb.includes(x.getType())&&x.getType()!=="HIDDEN";if(!E||!a.jk.has(E)&&!la){k=[];var ta=sf(v,2);ta?k=[ta]:jf(v,Pj,3,Me()).length>0&&(k=[].concat(za(Nbb(jf(v,Pj,3,Me())[0]))));k.length>0&&(h++,Jab(x,k)&&e++)}}}if(e>0){var ya=document.querySelector(".prefilled-callout"); ya&&um(ya,"hidden",!1)}Obb(e,h)}else Obb(0,0);a.yb=[];var Ba,Ha=(Ba=gf(f,v1,2))==null?void 0:Te(Ba,2,Pj,vP);if(Ha)for(var Oa=w(Ha.values()),Qa=Oa.next();!Qa.done;Qa=Oa.next()){var Ya=Qa.value,ib=tk(new rk,Ya),ub=new fr(ib);Ya.Nz()||ub.Yc(15);a.yb.push(nP(ub))}}catch(Ib){console.error("Failed to parse FormsGetPrefillDataResponse",Ib)}finally{L1(a,!1)}}, ld:function(e){window.sc_trackStatsEvent(313,21,"getprefilldata: "+e.statusText);console.error("getprefilldata endpoint returned an error",e);L1(a,!1)}, Ml:!0})}else L1(this,!1)}else L1(this,!1)}; function Obb(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 Nbb(a){return(a=Sj(a))?De(a,Gj,8,Of)?Hj(Jj(a)):De(a,Bj,2,Of)?Cj(a.Ug()).map(function(b){return""+b}):De(a,Gj,3,Of)?Hj(a.Oj()):De(a,zj,4,Of)?Aj(Lj(a)).map(function(b){return""+b}):Nf(a)!=null?[a.Qm().toString()]:De(a,Dj,6,Of)?Ej(a.Vm()).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=Pbb(c,a),f=void 0;if((f=e)==null?0:f.rO.length)c.setValues(e.rO,!0),(f=c.getId())&&this.jk.add(f);f=void 0;((f=e)==null?0:f.DW)&&c.hide()}}; function Pbb(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=[];I1(this,function(e){var f=Eab(e,a,b);f&&c.push({field:e,control:f,value:b})}); return c}; n.Yk=function(){return this.page}; n.submitForm=function(){var a=this;if(R1(this)&&this.dg&&this.Rb)Qbb(this);else{this.rb&&this.Ma!==27||(this.rb=yt.Od());for(var b=w(this.qa),c=b.next();!c.done;c=b.next()){c=c.value;var e=c.model;if(!e.tc()&&!e.hd().getId()){XQ(c,!0,this.model.strings.REQUIRED_FIELD);S1(this,"invalid",this.model.strings.VALIDATION_NOTE);this.dispatchEvent("invalidated");return}}K1(this,!0);I1(this,function(h){h.ua&&(a.Sc=!0,h.targetVerified()&&(a.targetVerified=!0))}); if(this.Fe!==0){var f=function(){a.element.removeEventListener("uploadend",f);a.submitForm()}; this.element.addEventListener("uploadend",f)}else this.dispatchEvent("validationstart"),T1(this)||this.dispatchEvent("beforesubmit"),Rbb(this).then(function(h){!a.c2c||a.model.use_cufinsert_api_when_validating_only&&a.validateOnly?U1(a)&&a.model.check_chat_availability_before_submitting_request&&!V1()&&!a.shouldSubmitToCasesV2()?Sbb(a,h):Tbb(a,h):Ubb(a,h)}).catch(function(){W1(a,a.model.strings.BACKEND_ERROR); a.dispatchEvent("validationend")})}}; function Vbb(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(){Wbb(a,!1)}); b.addEventListener("click",function(){Wbb(a,!0)}); c.addEventListener("click",function(){window.sc_trackStatsEvent(303,55,z().pid);Xbb(a,1)}); e.addEventListener("click",function(){window.sc_trackStatsEvent(303,54,z().pid);Xbb(a,2)})} function Xbb(a,b){b===2?Ybb(a,a.o,"channel_reco_chat_channel_selected"):Ybb(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 Wbb(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 Zbb(){var a=dn("FormSurveysFeature__trigger_id");iu(new hu,{triggerId:a,enableTestingMode:dn("FormSurveysFeature__enable_testing_mode")==="true",productData:{experimentIds:gn()}})} n.setAssistiveQuestionAnswers=function(a){this.ua=a;if(this.c2c&&(!this.model.use_cufinsert_api_when_validating_only||!this.validateOnly)){a=w(this.ua);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.c2cCountry&&b.c2cNumber){a=O1(this,'input[type="tel"]').closest(".field").querySelector("select");this.kf(a.name).setValues([[b.c2cCountry,b.c2cNumber]]);break}}}; function Bbb(a){var b="submit_form";a.model.has_custom_recaptcha_action&&(b="submit_form_"+a.getRedwoodId()+"_"+a.getId());var c=P1(a)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha";a.recaptcha=new bF(a.querySelector(c),function(){a.Rf=!0;N1(19,22)},b)} function $bb(a){var b=P1(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 jC(c,function(){e&&c.parentNode&&c.parentNode.removeChild(e.getElement());a.va=!0;N1(19,172);N1(4,172)})).Jn(function(){N1(14,172)})}} function acb(a,b){b=b===void 0?null:b;var c=hR().map(function(e){return e.toString()}); b&&c.push(b);c.push(vw());k1()&&c.push("intake_bridge_treatment");mab(a.getRedwoodId())&&c.push("screenshot_treatment");Mqa()&&c.push("suggest_form_fields_treatment");return[lP(jP(iP(new fr,8001336),8001336).Yc(15),[].concat(za(new Set(c))))]} function Ybb(a,b,c){b.form_frd_values=b.form_frd_values.filter(function(e){return e.frd_id!==8001336}); a=acb(a,c)[0];b.form_frd_values.push(i1(a.Cc))} function Rbb(a){var b,c,e,f,h,k,l,p,r,t,v,x,E,la,ta,ya,Ba,Ha,Oa,Qa,Ya,ib,ub,Ib;return La(function(Db){if(Db.o==1){if(a.Sa&&a.o)return Db.return(Promise.resolve(a.o));c={form_id:a.element.getAttribute("id"),header:[],subject:"",content:"",validate_only:a.validateOnly||X1(a)||T1(a)||R1(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:dR(dR(dR(dR(dR(dR(dR(new $Q,a.Ka),a.oa),a.Ra.Oc()),a.yb),a.qa.map(function(fb){return fb.model}).filter(function(fb){return fb.isRequired()&&fb.isPending()&&fb.isValid()}).map(function(fb){return fb.hd().setRequired(!0)})),[jP(iP(new fr,8000730),8000730).Yc(15).ih([Hm()])]),acb(a)).Oc().map(function(fb){return i1(fb.Cc)}), selected_symptom_frd_values:(b=a.selectedSymptomFrdValues)==null?void 0:iab(b),parent_case_name:a.parentCaseName,submission_channel:a.submissionChannel,cases_attachment:a.Xh.map(function(fb){return{blob_name:Lf(fb,1),file_name:fb.getFileName()}}), form_revision:Number(a.element.getAttribute("data-contact-form-revision"))};V1()&&(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.Ba?Db.yield(a.Ba.getScreenshotData(),3):Db.Qa(2)}Db.o!=2&&(h=Db.ma)&&(a.rk=[{name:"screenshot",value:"There was a file uploaded for this field."},{name:"upload_original_filename",value:h.originalFilename},{name:"upload_cns_filename",value:h.Bf}, {name:"upload_document_id",value:h.documentId}]);if(a.ua.length>0)for(c.is_assistive=!0,c.assistive_flow_results=[],k=w(a.ua),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});bcb(a)&&a.Ha&&a.Ha.length>0&&(c.dynamic_question_results=a.Ha.map(function(fb){return{question_text:fb.questionText, question_intent:fb.questionIntent,answer_values:fb.answerValues,relevance:fb.relevance,suggested_input_type:fb.suggestedInputType}})); t=a.getFieldValues();v=ccb(a,!0);x=new Map(a.getHcfNameScFrdValueMap().entries());a.qa.map(function(fb){return fb.model}).forEach(function(fb){fb.isValid()&&x.set(fb.getName(),nP(fb.hd()))}); for(E=0;E0&&(c.product_specific_data=Ya);a.Sc&&(c.target_submission_details={used_target_selector:!0,is_target_selector_verified:a.targetVerified});return Db.return(c)})} function Sbb(a,b){var c=Y1(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)?Tbb(a,b):(a.ma&&a.ma.hide(),M1(a))}, ld:function(e){window.sc_trackStatsEvent(52,21,"escalationavailability: - "+e.statusText);a.ma&&a.ma.hide();if(e=a.querySelector(".submit-button"))e.disabled=!1;W1(a,a.model.strings.BACKEND_ERROR);a.dispatchEvent("validationend")}})} n.getChatAvailability=function(){var a=this;return La(function(b){return b.return(dcb(a))})}; function Ubb(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.Qa(2)):a.Rf?p.yield(a.recaptcha.getResponse(),4):p.Qa(2);p.o!=2&&(c.recaptcha_response_v3=p.ma);a.c2c.populateCallParameters(c);a.shouldSubmitToCasesV2()&&(e={},f=Y1(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,PP,7)?e.sc_frd_values=hab(new $Q(f.getScFrdValues())):Be(f,ek,1)&&(e.frd_values=iab(new $Q(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){}Z1(a,{type:"c2c",response:t})}, ld:function(){Z1(a,{type:"c2c",response:!1})}}); p.oa()})} function Tbb(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.Qa(2)):a.Rf?k.yield(a.recaptcha.getResponse(),4):k.Qa(2);k.o!=2&&(h.recaptcha_response_v3=k.ma);U1(a)&&(a.shouldSubmitToCasesV2()||f)&&(a.Ub=!0);Im({httpMethod:"POST",endpoint:"cufinsert",params:c, requestBody:h,onLoadCallback:function(l){var p=null;try{p=JSON.parse(l.responseText)}catch(r){Z1(a,{type:"cuf",response:l.responseText,formData:b});return}Z1(a,{type:"cuf",response:p,formData:b})}, ld:function(){Z1(a,{type:"cuf",response:!1,formData:b})}, Ml:!0});k.oa()})} function U1(a){return a.model.is_chat_form||a.Sa&&a.o!==null&&a.o.submission_channel===2} function X1(a){if(!a.model.fix_multi_page)return!1;var b=!1;I1(a,function(c){Number(c.Yk())>a.Yk()&&c.hasSatisfiedDependencies()&&(b=!0)}); return b} function T1(a){var b=a.getContactType()===0;return a.model.logged_in&&$Ta()&&b&&!a.Sa} function R1(a){return a.model.logged_in&&!a.Ia&&bcb(a)} function bcb(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:[]).some(function(h){return h.value===b}); return c&&a} n.getHasCheckedForDynamicRecommendation=function(){return this.Ia}; n.setHasCheckedForDynamicRecommendation=function(a){this.Ia=a}; n.getShouldShowNextStep=function(){return this.dg}; n.setShouldShowNextStep=function(a){this.dg=a}; function Qbb(a,b){b=b===void 0?null:b;K1(a,!0);b&&(a.o=b);a.o.validate_only=a.validateOnly||X1(a);a.dispatchEvent("dynamicrecommendationfound");a.Rb=!0;a.Ia=!0;K1(a,!1)} function ecb(a,b){K1(a,!0);a.o=b;a.o.validate_only=a.validateOnly||X1(a);a.Sa=!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){$1(a,{response:c.responseText});return}$1(a,{response:e})}, ld:function(){$1(a,{response:!1})}, Ml:!0})} function $1(a,b){K1(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.Ma=28;fcb(a);gcb();window.sc_trackStatsEvent(303,4,z().pid);var c=a.querySelector(".high-context-channel-recommendation__container");hcb(a,!1);um(c,"hidden",!1);a.dispatchEvent("highcontextchannelrecommendationfound");a.zl&&Bbb(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=e0){W1(a,ncb(e),e);a.dispatchEvent("validationend");break a}ocb(a,e)}else W1(a,a.model.strings.BACKEND_ERROR,e)}else W1(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(X1(a))a2(a);else if(R1(a))Qbb(a,b);else if(T1(a))ecb(a, b);else{b=ym("cases2");if(b=U1(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,lcb(a));a.validateOnly||(!b||V1()||z().rs===79&&a.flags.enableChatMoleMigration||((0,window.sc_ensureSubscribed)(),a.dispatchEvent("chatrequested")),fcb(a),mcb(a));b2(!0);e=!0}else ocb(a,c);else W1(a,ncb(c),c);else W1(a,a.model.strings.CONNECTION_ERROR);c=ym("cases2");!e&&U1(a)&&(a.shouldSubmitToCasesV2()|| c)&&(a.Ub=!1);a.dispatchEvent("validationend")}} function pcb(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 ncb(a){var b;return((b=a.submit_error)==null?0:b.length)?(a=a.submit_error[0],pcb(a.code,a.sub_code)):""} function qcb(a,b){var c=P1(a)?".high-context-channel-recommendation__recaptcha":".recaptcha";(a=a.querySelector(c))&&um(a,"invalid",b)} function ocb(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=rcb(a,h[1],h[2]))h.isVisible()?XQ(h,!0,a.model.strings.REQUIRED_FIELD):e=a.model.strings.REQUIRED_FIELD+": "+h.model.getName(),c=!0}else{var k=a.kf(h[1]);if(h[0]==="REQUIRED_RECAPTCHA")a.page===a.model.total_pages&&(e=a,e.model.fallback_to_recaptcha_v2&&(e.va||(h=P1(e)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha", (h=e.querySelector(h))&&um(h,"hidden",!0),$bb(e)),qcb(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")M1(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?(S1(a,"invalid",e+scb(a,b)),a.dispatchEvent("invalidated"),N1(17)):a2(a)} function kcb(a){var b=a.querySelector(".notification-area");b&&(um(b,"error",!1),um(b,"invalid",!1),b.textContent="");I1(a,function(e){e.setValidity(!0)}); b=w(a.qa);for(var c=b.next();!c.done;c=b.next())XQ(c.value,!1);a.va&&qcb(a,!1)} function S1(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){S1(this,"error",a)}; function W1(a,b,c){a.setErrorMessage(b+scb(a,c));a.dispatchEvent("error");b2(!1)} function scb(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 a2(a){Lbb(a,a.page+1);a.dispatchEvent("nextpage");N1(6)} function mcb(a){a.dispatchEvent("submitstart");if(!U1(a)||a.ua.length>0)gcb(),hcb(a),tcb(a);if(U1(a)){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);Q1(a,!0);window.sc_enableFormSubmissionDetailsAndDownloadUi&&(ucb(a),vcb(a,O1(a,".submission-details-chat__content")),wcb(a),b=O1(a,".submission-details-chat__download-button"),b.addEventListener("click",function(){xcb(a)}),O1(a,".submission-details-chat__edit-button").addEventListener("click",function(){ycb(a)}),window.sc_trackStatsEvent(182, 4,z().pid),um(O1(a,".submission-details-chat"),"hidden",!1),b.focus()); O1(a,".notification-area").textContent=a.model.strings.CHAT_CREATING;a.dispatchEvent("chatrequested")}N1(22);a.dispatchEvent("submitend");a.dispatchEvent("cleancomplete");dn("FormSurveysFeature__enable_hats")==="true"&&Zbb()} function Q1(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 gcb(){var a=document.querySelector(".prefilled-callout");a&&um(a,"hidden",!0)} function hcb(a,b){b=b===void 0?!0:b;for(var c=U1(a)&&a.ua.length>0,e=0;e0&&a.Tj.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.Da.set(e,c.getDisplayValues())} function vcb(a,b){a=w(a.Da.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 xcb(a){for(var b="",c=w(a.Da.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";G1.download(b,c,"text/plain");window.sc_trackStatsEvent(182,47,z().pid);en("contact_form_submission_download")} function ycb(a){var b=new URLSearchParams;a=w(a.Tj.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 b2(a){Im({httpMethod:"POST",endpoint:"cufz",requestBody:{success:a,page_view_id:z().pvid}})} function rcb(a,b,c){return b&&c?a.qa.find(function(e){return oP(e.model.hd(),iP(jP(new fr,+b),+b).Yc(+c))}):null} n.kf=function(a){var b=null;I1(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 Lbb(a,b){if(b===a.page||ba.model.total_pages)return!1;a.page=b;J1(a);K1(a,!1);return!0} function N1(a,b){window.sc_trackStatsEvent(b===void 0?21:b,a,z().pid)} function zcb(a,b){var c=Y1(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"))}}, ld:function(){h(Error("escalationavailability endpoint returned an error"))}, Ml:!0})})} function Y1(a,b){var c=new ZQ,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=kP(f.value))!=null?h:[]))}a=UTa(dR(bR(new $Q,aR(a.selectedSymptomFrdValues)).md(a.selectedSymptomFrdValues.Vg()),[lP(iP(jP(new fr,8000072),8000072).Yc(15),b)]));kf(c,PP,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(zcb(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 dcb(a){var b,c,e;return La(function(f){return f.o==1?f.yield(zcb(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 Fbb(a){var b=a.querySelector(".contact-form__gdpr-dialog");if(b){var c=function(e){var f=this.Jb().strings,h=this.Jb().style_params,k=this.Jb().gdpr_privacy_policy_url,l=z().lang,p={};f=new jF(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 fR({Pa:f,locale:l,privacyPolicyUrl:k,Pq:h?{"font-family":h.font_family.title}:void 0,jp:h?{"font-family":h.font_family.body}: void 0,vp:h?{"font-weight":String(h.strong_font_weight)}:void 0});ro(e,function(){r.render()}); return r}.call(a,b); YTa(c,function(){c.data=new Map;c.Ja();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||gR(c,f.name,f.value);e=w(Object.keys(a.productSpecificData));for(f=e.next();!f.done;f=e.next())f=f.value,gR(c,f,a.productSpecificData[f]);a.gcmRegistrationId&&gR(c,"GCM",a.gcmRegistrationId)})}} function Abb(a,b){b.addEventListener("uploadstart",function(){++a.Fe}); b.addEventListener("uploadend",function(){--a.Fe;hn(a.element,"uploadend")})} function M1(a){if(!a.Ub){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);Q1(a,!0);b=O1(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.Jb=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.KS=function(){var a=[];I1(this,function(b){a.push(Acb(b))}); Array.prototype.push.apply(a,icb(this));return a}; function Acb(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.NS=function(){var a=[];I1(this,function(b){b.isVisible()&&a.push(Acb(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.Tc;)a.xc.shift()()} n.tv=function(){var a=this;if(OP(d2(this))){var b=document.activeElement;e2(this,!0);var c=new hQ;Ccb(this,c);Im({httpMethod:"POST",endpoint:"getavailablevaluesforgraph",params:{v:"1"},requestBody:c.serialize(),onLoadCallback:function(e){try{for(var f=rSa(e.responseText),h=w(jf(f,iQ,2,Me())),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.ya.get(x1(l));if(t)for(var v=w(t),x=v.next();!x.done;x=v.next()){var E=x.value,la=Vab(E),ta=Tf(la,2);if(!(r&&ta&& r!==ta||!p1(E))){var ya=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 Oa=Ha.value,Qa=ya.indexOf(Oa.querySelector("input").value)===-1;um(Oa,"hidden-by-vrg",Qa)}break;case "DROPDOWN":for(var Ya=w(E.querySelectorAll("option")),ib=Ya.next();!ib.done;ib=Ya.next()){var ub=ib.value;if(ub!==E.querySelector("option")){var Ib=ya.indexOf(ub.value)===-1;um(ub,"hidden-by-vrg",Ib)}}E.element.querySelector("select").dispatchEvent(new Event("selectvrgupdate"))}}}}}catch(Db){}e2(a, !1);b.focus();Bcb(a)}, ld:function(){e2(a,!1);b.focus();Bcb(a)}})}}; function e2(a,b){a.Tc=b;a=w(a.Nc);for(var c=a.next();!c.done;c=a.next())c=c.value,p1(c)&&Xab(c,b)} function Ccb(a,b){var c=d2(a);c=OP(c);oSa(b,qf(c,1));pSa(b,sf(c,2));c=[];for(var e=[],f=!1,h=w(a.Nc),k=h.next();!k.done;k=h.next()){k=k.value;if(p1(k)){var l=k.getFrdIdentifier();l&&c.push(l)}if(n1(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"?Dcb(Wab(k),l[0],p):k.getFrdIdentifier()===8000001?p.rj((new Bj).jh(l.map(function(v){return Number(v)||0}))):Kj(p,(new Gj).jh(l)),l=Tj(new Pj, p),p=Vab(k),(r=tf(p,2))&&Qj(l,xj(new wj,tf(p,1)).Yc(r)),(k=k.getFrdV2Identifier())&&Rj(l,k),e.push(l),!f&&x1(l)===8000072&&(f=!0))}}if(window.sc_filter_promoted_by_selected_symptom&&!f){var t; h=(t=a.selectedSymptomFrdValues)==null?void 0:aR(t);t=bp(qf(b,2));if(a.selectedSymptomFrdValues&&h&&t&&h===t){t=w(a.zd);for(h=t.next();!h.done;h=t.next())if(x1(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=kP(h.value))!=null?k:[]));e.push(jr(lP(iP(jP(new fr,8000072),8000072).Yc(15),f)))}}}Ue(b,3,c,td);eab(b,a.zd.concat(e));ag(b,5,a.model.content_publish_state)} function Dcb(a,b,c){switch(a){case 1:c.rj((new Bj).jh([Number(b)]));break;case 2:case 5:c.ih((new Gj).jh([b]));break;case 3:Mj(c,Vea(new zj,[Number(b)]));break;case 4:a=b.split(",");Kj(c,(new Gj).jh(a));break;case 9:c.Sh(b==="true");break;case 8:a=b.split(",").map(function(e){return Number(e)}); c.bx(Fj(new Dj,[(new Bj).jh(a)]));break;case 11:case 6:case 7:case 10:Oj(c,(new yj).jh([b]))}} function d2(a){a=JSON.parse(a.element.getAttribute("data-form-service-vrg"));return new NP(a)} n.getServiceVrgTaxonomyId=function(){var a=OP(d2(this));return a?bp(qf(a,1)):null}; n.getServiceVrgTaxonomyView=function(){var a=OP(d2(this));return a?Lf(a,2):null}; n.setSupportJourneyId=function(a){this.submitId=a}; function lcb(a){window.sc_log&&window.sc_log("Form","INFO","Case ID: "+a.caseId)} n.setIncludesTargetSelector=function(a){this.Sc=a}; n.setTargetVerified=function(a){this.targetVerified=a}; function Gbb(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 fQ(JSON.parse(b));a.Sd=(e=Bf(c,7))!=null?e:"";a.Sd&&window.sc_log&&window.sc_log("Helpcenter Field","INFO","Form Helpcenter Fields User-based FRD Value Lookup EventID: "+a.Sd);return v.yield(YQ({helpCenterFrdFieldsConfg:c,locale:z().lang,neoTaxonomy:gQ(),placements:[a.Pu(1),a.Pu(2)],Tw:"*"}),2)}f=v.ma;h=a.getScFrdValues().map(function(x){return new fr(x)}); k=w(a.ya.keys());for(l=k.next();!l.done;l=k.next())p=l.value,h.push(jP(new fr,p));r=a.getHcfNameScFrdValueMap();t=f.Ki;Ecb(a,t,2,h,r,".cf div.helpcenter-fields-container.top");Ecb(a,t,1,h,r,".cf div.helpcenter-fields-container.bottom");uP(a.Ra,a.qa.concat(f.As).map(function(x){return x.model})); v.oa()})} n.Pu=function(a){var b=new zP,c=new yP,e=this.getContactType();Ze(c,3,xP,ud(e));ag(c,2,a);nf(b,1,yP,c);c=new yP;e=this.getRedwoodId();Ze(c,1,xP,Rd(e));ag(c,2,a);nf(b,1,yP,c);a=new EP;lf(a,1,DP,b);return a}; function Ecb(a,b,c,e,f,h){if(h=a.element.querySelector(h)){var k=b.filter(function(l){if(l.model.placements.length||e.some(function(E){return oP(E,l.model.hd())})||!l.model.hd().getId()&&f.has(l.model.getName()))return!1; for(var p=w(l.model.va),r=p.next();!r.done;r=p.next()){r=r.value;var t=void 0,v=void 0,x=w((v=(t=r.Hv())==null?void 0:t.o())!=null?v:[]);for(t=x.next();!t.done;t=x.next())t.value.Au()===c&&l.model.placements.push(r)}return!!l.model.placements.length}); k.length&&ro(h,function(){for(var l=w(k),p=l.next();!p.done;p=l.next())p=p.value,p.render(),a.qa.push(p)})}} n.getHelpCenterFieldFrds=function(a){return this.Ra.Oc(a===void 0?!1:a).map(function(b){return nP(b)})}; n.setHelpCenterFieldFrd=function(a){a=new fr(a);for(var b=w(sP(this.Ra)),c=b.next();!c.done;c=b.next())if(c=c.value,oP(c.hd(),a)){fab(c,a);break}}; function Hbb(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(nP(lP(iP(jP(new fr,8000104),8000104).Yc(15),b)))} n.oi=function(a,b){a=this.ya.get(Number(a));if(!a||a.length===0)return!1;a=a[0].getElement();return Hw(a,b)}; function V1(){switch(z().rs){case 3:case 8:return!0;default:return!1}} window.sc_initForm=function(a,b,c){a=new ybb(a,b,c);return{getEscalationChannelAvailabilityInformation:a.getEscalationChannelAvailabilityInformation.bind(a),getContactType:a.getContactType.bind(a),submitForm:a.submitForm.bind(a),getFields:a.KS.bind(a),getVisibleFields:a.NS.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)}};function Fcb(){var a,b;return typeof((a=navigator)==null?void 0:(b=a.mediaDevices)==null?void 0:b.getDisplayMedia)==="function"} ;function f2(a,b){var c,e;(e=(c=window).sc_trackStatsEvent)==null||e.call(c,a,b,z().pid)} ;function g2(a){A.call(this,"sc.forms.Screenshare");this.o=null;this.ma=!1;this.params=a} u(g2,A);g2.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 tu({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||Gcb(b))})}; function Gcb(a){La(function(b){if(b.o==1){if(!a.params.Kg||!a.o)return b.Qa(0);b.va(3);return b.yield(a.params.Kg.forwardWheel(a.o),5)}if(b.o!=3){a.ma=!0;a.params.dI(a.ma);var c,e;(e=(c=window).sc_trackStatsImpressions)==null||e.call(c,[{type:309,id:z().pid}],!0);f2(309,10);a.Ja();return b.ua(0)}b.qa();b.oa()})} function Hcb(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")}))})} g2.prototype.lM=function(){return this.ma};function h2(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",Hf:24,trigger:function(){f2(309,56);a.OR()}}); this.o=new Qo({text:"Capture screenshot",ariaLabel:"Capture screenshot",style:4,icon:"gm/screenshot_monitor",Hf:24,trigger:function(){f2(309,46);a.To()}})} u(h2,A);function Icb(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 pt({trigger:a,text:b,uj:4,Dj:"35rem",Sq:c,hk:!1})).render()} function Jcb(a){a.element("div","class","screenshare-footer-scroll-info",function(){var b=a.params.lM,c="",e="",f=-150;a.params.Kg?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&&Icb(a,e,f))})} h2.prototype.content=function(){var a=this;this.element("div","class","screenshare-footer",function(){Jcb(a);a.element("div","class","screenshare-footer-buttons",function(){a.ma.render();a.o.render()})})};function i2(a){A.call(this,"sc.forms.ScreenshotEdit");var b=this;this.oa=!1;this.Ak=this.ma=0;this.scaleY=this.scaleX=1;this.qa=[];this.ua=function(c){if(b.params.Kf!=="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.Ak=(c.clientY-f.top)*b.scaleY;var h;(h=b.canvas)==null||h.addEventListener("mousemove",b.ya);var k;(k=b.canvas)==null||k.addEventListener("mouseup",b.Ba)}}; this.ya=function(c){if(b.oa){var e=b.canvas.getBoundingClientRect(),f=(c.clientX-e.left)*b.scaleX,h=(c.clientY-e.top)*b.scaleY;j2(b);b.o=b.o;c=Math.min(b.ma,f);e=Math.min(b.Ak,h);f=Math.abs(b.ma-f);h=Math.abs(b.Ak-h);var k=b.params.Kf;k==="HIGHLIGHT"?Kcb(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.Ak,h);f=Math.abs(b.ma-f);h=Math.abs(b.Ak-h);(f>0||h>0)&&b.qa.push({x:c,y:e,width:f,height:h,mode:b.params.Kf});var k;(k=b.canvas)==null||k.removeEventListener("mousemove",b.ya);var l;(l=b.canvas)==null||l.removeEventListener("mouseup",b.Ba);j2(b)}}; this.params=a} u(i2,A);i2.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);Lcb(b)})}; i2.prototype.onDetach=function(){var a;(a=this.canvas)==null||a.removeEventListener("mousedown",this.ua);this.qa=[]}; function Lcb(a){a.canvas=a.canvas;var b=Dl(a.params.Ci),c=new Image;c.onload=function(){a.canvas=a.canvas;a.canvas.width=c.width;a.canvas.height=c.height;a.Da=c;j2(a)}; c.src=b.toString()} function j2(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"?Kcb(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 Kcb(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 Mcb(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.Ci))})} ;function k2(a){A.call(this,"sc.forms.ScreenshotEditControllers");this.ma=new Qo({text:"Cancel",ariaLabel:"Cancel",trigger:function(){f2(311,59);a.jD()}, style:3,je:"material-pill",Lc:"px"});this.o=new Qo({text:"Done",ariaLabel:"Done",trigger:function(){f2(311,60);var b;(b=a.RH)==null||b.call(a)}, style:4,je:"material-pill",Lc:"px"});this.params=a} u(k2,A);function Ncb(a){return new tu({ariaLabel:"Highlight",text:"Highlight",icon:"gm/highlight_alt",selected:a.params.Kf==="HIGHLIGHT",trigger:function(){f2(311,58);a.params.Ol("HIGHLIGHT")}})} function Ocb(a){return new tu({ariaLabel:"Hide",text:"Hide",icon:"gm/featured_video",selected:a.params.Kf==="HIDE",trigger:function(){f2(311,5);a.params.Ol("HIDE")}})} k2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.element("div","class","edit-control-buttons","aria-live","off",function(){Ncb(a).render();Ocb(a).render()}); a.element("div","class","modal-control-buttons",function(){a.ma.render();a.o.render()})})};function l2(a){A.call(this,"sc.forms.ScreenshotPreview");this.o=null;this.params=a;this.o=Dl(a.Ci).toString();this.ma=Pcb(this)} u(l2,A);function Pcb(a){return new tu({text:"Highlight or hide content",ariaLabel:"Highlight or hide content",style:0,type:1,icon:"gm/edit",trigger:function(){f2(310,24);a.params.dE()}})} l2.prototype.focus=function(){this.ma.focus()}; l2.prototype.onDetach=function(){this.o&&(URL.revokeObjectURL(this.o),this.o=null)}; l2.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 m2(a){A.call(this,"sc.forms.ScreenshotPreviewControllers");this.ma=new Qo({text:"Capture again",ariaLabel:"Capture again",icon:"gm/restart_alt",Hf:20,style:3,trigger:function(){f2(310,56);a.lD()}}); this.o=new Qo({text:"Attach screenshot",ariaLabel:"Attach screenshot",icon:"gm/attach_file_add",Hf:20,style:4,trigger:function(){f2(310,57);a.Oo()}})} u(m2,A);m2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.ma.render();a.o.render()})};function n2(a){A.call(this,"sc.forms.ScreenshotCaptureDialog");var b=this;this.ma=0;this.stream=null;this.page="SCREENSHARE";this.Ci=new Blob;this.Kf="NONE";this.ua=new i2({Ci:this.Ci,Kf:this.Kf});this.oa=null;this.o=!1;this.qa=new g2({stream:this.stream,Kg:this.Kg,dI:function(c){b.o=c;b.Ja()}}); this.params=a;this.dialog=new xu({content:function(){b.element("div","class","screenshot-capture-dialog",function(){Qcb(b)})}, uh:{"background-color":"rgba(0,0,0,.3)"},Dm:!1,Cm:!1,ariaLabel:Rcb(this)})} u(n2,A);function Rcb(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 Qcb(a){(new uu).render({content:function(){a.element("div","class","screenshot-capture-dialog-content",function(){Scb(a);Tcb(a);Ucb(a)})}})} function Vcb(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 Scb(a){a.element("div","class","screenshot-capture-dialog-content-header",function(){Vcb(a);Wcb(a)})} function Wcb(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,Ae:["close-icon"]})).render()})} function Tcb(a){a.oa=a.element("div","class","screenshot-capture-dialog-content-body",function(){switch(a.page){case "SCREENSHARE":a.qa.render({stream:a.stream,Kg:a.Kg,dI:function(b){a.o=b;a.Ja()}}); break;case "SCREENSHOT_PREVIEW":(new l2({Ci:a.Ci,dE:function(){a.dE()}})).render(); break;case "SCREENSHOT_EDIT":a.ua.render({Ci:a.Ci,Kf:a.Kf})}})} function Ucb(a){a.element("div","class","screenshot-capture-dialog-footer",function(){switch(a.page){case "SCREENSHARE":(new h2({OR:function(){a.close();a.params.To()}, To:function(){Xcb(a)}, lM:a.o,Kg:a.Kg})).render();break;case "SCREENSHOT_PREVIEW":(new m2({lD:function(){a.lD()}, Oo:function(){a.Oo()}})).render(); break;case "SCREENSHOT_EDIT":(new k2({jD:function(){a.jD()}, Ol:function(b){a.Ol(b)}, Kf:a.Kf,RH:function(){a.RH()}})).render()}})} function Xcb(a){La(function(b){if(b.o==1)return a.oa.classList.add("flash"),setTimeout(function(){a.oa.classList.remove("flash")},750),b.yield(Hcb(a.qa),2); a.Ci=b.ma;a.page="SCREENSHOT_PREVIEW";a.Kf="NONE";Ycb(a);a.Ja();b.oa()})} n=n2.prototype;n.jD=function(){this.Kf="NONE";this.setPage("SCREENSHOT_PREVIEW")}; n.setPage=function(a){this.page!==a&&(this.page=a,this.Ja())}; n.lD=function(){this.close();this.params.To()}; n.dE=function(){this.Kf="NONE";this.setPage("SCREENSHOT_EDIT")}; n.Ol=function(a){this.Kf!==a&&(this.Kf=a,this.Ja())}; n.content=function(){var a=this;this.element("div","class","root",function(){a.dialog.Fi(Rcb(a));a.dialog.render()})}; n.open=function(a,b){var c=this;this.page="SCREENSHARE";this.Kg=b;this.stream=a;this.qa=new g2({stream:a,Kg:b,dI:function(e){c.o=e;c.Ja()}}); 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";Zcb(this)}; n.close=function(){this.page==="SCREENSHARE"&&Ycb(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 Ycb(a){if(a.stream){a=w(a.stream.getTracks());for(var b=a.next();!b.done;b=a.next())b.value.stop()}} function Zcb(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.RH=function(){var a=this;return La(function(b){if(b.o==1)return b.yield(Mcb(a.ua),2);a.Ci=b.ma;a.page="SCREENSHOT_PREVIEW";a.Kf="NONE";a.Ja();b.oa()})}; n.Oo=function(){this.params.Oo(this.Ci)};function o2(a){A.call(this,"sc.forms.ScreenshotCapture");var b=this;this.tf="scFormsScreenshotcapturescreenshot-capture-button-tooltip";this.ma=new n2({To:this.To.bind(this),Oo:this.Oo.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,Hf:24,trigger:function(){f2(307,52);var c;(c=b.o)==null||c.click()}}); this.oa=new Qo({icon:"gm/screenshot_monitor",Hf:24,text:"Capture screenshot",ariaLabel:"Capture screenshot. You will be asked to share your screen.",style:4,trigger:function(){f2(306,52);b.To()}}); this.attachments=new zF({Tf:this.params.Tf,allowMultipleFiles:this.params.allowMultipleFiles,formId:this.params.formId,eB:function(c){$cb(b,c)}, dB:function(c){$cb(b,c)}})} u(o2,A);o2.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.attachments.render();adb(a);bdb(a);Fcb()&&cdb(a);a.ma.render()})}; function bdb(a){a.element("div","class","screenshot-capture-button-container",function(){if(Fcb()){var b=ddb(a);(new pt({text:"You will be asked to share your screen.",trigger:b,tf:a.tf})).render()}edb(a)})} function ddb(a){return a.element("label","class","screenshot-capture-button-wrapper",function(){a.oa.render()})} function edb(a){a.element("label","class","upload-label","for",a.params.id,function(){a.qa.render()})} function cdb(a){a.element("div","class","callout-container",function(){(new pu({type:ou,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()})} o2.prototype.To=function(){var a=this,b,c;return La(function(e){if(e.o==1){e.va(2);var f=e.yield,h=navigator.mediaDevices,k=h.getDisplayMedia;if("CaptureController"in window&&typeof window.CaptureController==="function"){a.Kg=new window.CaptureController;a.Kg.setFocusBehavior("no-focus-change");var l={video:{displaySurface:"browser"},audio:!1,controller:a.Kg}}else l={video:{displaySurface:"browser"},audio:!1};return f.call(e,k.call(h,l),4)}if(e.o!=2)return b=e.ma,f2(306,10),a.ma.open(b,a.Kg),e.ua(0); c=e.qa();c instanceof DOMException&&c.name==="NotAllowedError"?f2(306,11):f2(306,21);e.oa()})}; o2.prototype.Oo=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]);fdb(b,f);b.ma.close();f2(306,57);b.Ja();h.oa()})}; o2.prototype.getValues=function(){var a=AF(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.Bf},{name:"upload_document_id",value:c.documentId});return b}; function adb(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())fdb(a,f.value);f2(307,57)}a.Ja();c.length&&gCa(a.attachments)}}].concat(za(a.params.allowMultipleFiles?["multiple", "1"]:[]));a.o=a.element.apply(a,["input"].concat(za(b)))} function fdb(a,b){a.o&&ns(a.o,"uploadstart",{detail:b})} function $cb(a,b){a.o&&ns(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
12307925
false
false